Kaynağa Gözat

fixed terminology in line with public versioning

Toney Mathews 5 yıl önce
ebeveyn
işleme
37e4a442d5

+ 2 - 2
lib/active_resource/detailed_log_subscriber.rb

@@ -38,8 +38,8 @@ module ActiveResource
 
         when VERSION_EOL_WARNING_HEADER
           warning_message = <<-MSG
-          [Version EOL Warning] ShopifyAPI made a call to #{payload[:method].upcase} #{payload[:path]}, and this call made
-          use of an API version that is expired or will expire within 30 days. See #{header_value} for more details.
+          [API Version Warning] ShopifyAPI made a call to #{payload[:method].upcase} #{payload[:path]}, and this call used
+          an API version that is unsupported or will become unsupported within 30 days. See #{header_value} for more details.
           MSG
 
           warn warning_message

+ 2 - 2
test/detailed_log_subscriber_test.rb

@@ -115,7 +115,7 @@ class LogSubscriberTest < Test::Unit::TestCase
     )
   end
 
-  test "warns when the server responds with a x-shopify-api-version-warning" do
+  test "warns when the server responds with a x-shopify-api-version-warning header" do
     fake(
       "pages/1",
       method: :get,
@@ -128,7 +128,7 @@ class LogSubscriberTest < Test::Unit::TestCase
     assert_equal 1, @logger.logged(:warn).size
 
     assert_match(
-      %r{\[Version EOL Warning\] ShopifyAPI made a call to GET /admin/api/2019-01/pages/1.json},
+      %r{\[API Version Warning\] ShopifyAPI made a call to GET /admin/api/2019-01/pages/1.json},
       @logger.logged(:warn).first
     )
     assert_match(