Browse Source

Enabling frozen string literal cop

Paulo Margarido 3 years ago
parent
commit
a2a2702bda
100 changed files with 102 additions and 7 deletions
  1. 0 7
      .rubocop_todo.yml
  2. 4 0
      CHANGELOG.md
  3. 1 0
      Gemfile
  4. 1 0
      Rakefile
  5. 1 0
      lib/active_resource/connection_ext.rb
  6. 1 0
      lib/active_resource/detailed_log_subscriber.rb
  7. 1 0
      lib/active_resource/json_errors.rb
  8. 1 0
      lib/shopify_api.rb
  9. 1 0
      lib/shopify_api/connection.rb
  10. 1 0
      lib/shopify_api/countable.rb
  11. 1 0
      lib/shopify_api/events.rb
  12. 1 0
      lib/shopify_api/limits.rb
  13. 1 0
      lib/shopify_api/message_enricher.rb
  14. 1 0
      lib/shopify_api/metafields.rb
  15. 1 0
      lib/shopify_api/pagination_link_headers.rb
  16. 1 0
      lib/shopify_api/resources.rb
  17. 1 0
      lib/shopify_api/resources/access_token.rb
  18. 1 0
      lib/shopify_api/resources/address.rb
  19. 1 0
      lib/shopify_api/resources/announcement.rb
  20. 1 0
      lib/shopify_api/resources/application_charge.rb
  21. 1 0
      lib/shopify_api/resources/application_credit.rb
  22. 1 0
      lib/shopify_api/resources/article.rb
  23. 1 0
      lib/shopify_api/resources/asset.rb
  24. 1 0
      lib/shopify_api/resources/assigned_fulfillment_order.rb
  25. 1 0
      lib/shopify_api/resources/base.rb
  26. 1 0
      lib/shopify_api/resources/billing_address.rb
  27. 1 0
      lib/shopify_api/resources/blog.rb
  28. 1 0
      lib/shopify_api/resources/carrier_service.rb
  29. 1 0
      lib/shopify_api/resources/cart.rb
  30. 1 0
      lib/shopify_api/resources/collect.rb
  31. 1 0
      lib/shopify_api/resources/collection_listing.rb
  32. 1 0
      lib/shopify_api/resources/comment.rb
  33. 1 0
      lib/shopify_api/resources/country.rb
  34. 1 0
      lib/shopify_api/resources/custom_collection.rb
  35. 1 0
      lib/shopify_api/resources/customer.rb
  36. 1 0
      lib/shopify_api/resources/customer_group.rb
  37. 1 0
      lib/shopify_api/resources/customer_invite.rb
  38. 1 0
      lib/shopify_api/resources/customer_saved_search.rb
  39. 1 0
      lib/shopify_api/resources/discount_code.rb
  40. 1 0
      lib/shopify_api/resources/draft_order.rb
  41. 1 0
      lib/shopify_api/resources/draft_order_invoice.rb
  42. 1 0
      lib/shopify_api/resources/event.rb
  43. 1 0
      lib/shopify_api/resources/fulfillment.rb
  44. 1 0
      lib/shopify_api/resources/fulfillment_event.rb
  45. 1 0
      lib/shopify_api/resources/fulfillment_order.rb
  46. 1 0
      lib/shopify_api/resources/fulfillment_order_locations_for_move.rb
  47. 1 0
      lib/shopify_api/resources/fulfillment_request.rb
  48. 1 0
      lib/shopify_api/resources/fulfillment_service.rb
  49. 1 0
      lib/shopify_api/resources/fulfillment_v2.rb
  50. 1 0
      lib/shopify_api/resources/gift_card.rb
  51. 1 0
      lib/shopify_api/resources/image.rb
  52. 1 0
      lib/shopify_api/resources/line_item.rb
  53. 1 0
      lib/shopify_api/resources/location.rb
  54. 1 0
      lib/shopify_api/resources/marketing_event.rb
  55. 1 0
      lib/shopify_api/resources/metafield.rb
  56. 1 0
      lib/shopify_api/resources/note_attribute.rb
  57. 1 0
      lib/shopify_api/resources/option.rb
  58. 1 0
      lib/shopify_api/resources/order.rb
  59. 1 0
      lib/shopify_api/resources/order_risk.rb
  60. 1 0
      lib/shopify_api/resources/page.rb
  61. 1 0
      lib/shopify_api/resources/payment_details.rb
  62. 1 0
      lib/shopify_api/resources/policy.rb
  63. 1 0
      lib/shopify_api/resources/price_rule.rb
  64. 1 0
      lib/shopify_api/resources/product.rb
  65. 1 0
      lib/shopify_api/resources/product_listing.rb
  66. 1 0
      lib/shopify_api/resources/province.rb
  67. 1 0
      lib/shopify_api/resources/receipt.rb
  68. 1 0
      lib/shopify_api/resources/recurring_application_charge.rb
  69. 1 0
      lib/shopify_api/resources/redirect.rb
  70. 1 0
      lib/shopify_api/resources/refund.rb
  71. 1 0
      lib/shopify_api/resources/report.rb
  72. 1 0
      lib/shopify_api/resources/rule.rb
  73. 1 0
      lib/shopify_api/resources/script_tag.rb
  74. 1 0
      lib/shopify_api/resources/shipping_address.rb
  75. 1 0
      lib/shopify_api/resources/shipping_line.rb
  76. 1 0
      lib/shopify_api/resources/shipping_zone.rb
  77. 1 0
      lib/shopify_api/resources/shop.rb
  78. 1 0
      lib/shopify_api/resources/smart_collection.rb
  79. 1 0
      lib/shopify_api/resources/storefront_access_token.rb
  80. 1 0
      lib/shopify_api/resources/tax_line.rb
  81. 1 0
      lib/shopify_api/resources/tax_service.rb
  82. 1 0
      lib/shopify_api/resources/theme.rb
  83. 1 0
      lib/shopify_api/resources/transaction.rb
  84. 1 0
      lib/shopify_api/resources/usage_charge.rb
  85. 1 0
      lib/shopify_api/resources/user.rb
  86. 1 0
      lib/shopify_api/resources/variant.rb
  87. 1 0
      lib/shopify_api/resources/webhook.rb
  88. 1 0
      lib/shopify_api/session.rb
  89. 1 0
      lib/shopify_api/version.rb
  90. 1 0
      lib/verify_docs.rb
  91. 1 0
      shopify_api.gemspec
  92. 1 0
      test/access_token_test.rb
  93. 1 0
      test/active_resource/json_errors_test.rb
  94. 1 0
      test/application_charge_test.rb
  95. 1 0
      test/application_credit_test.rb
  96. 1 0
      test/article_test.rb
  97. 1 0
      test/asset_test.rb
  98. 1 0
      test/assigned_fulfillment_order_test.rb
  99. 1 0
      test/base_test.rb
  100. 1 0
      test/blog_test.rb

+ 0 - 7
.rubocop_todo.yml

@@ -228,13 +228,6 @@ Style/CommandLiteral:
   Exclude:
     - 'shopify_api.gemspec'
 
-# Offense count: 150
-# Cop supports --auto-correct.
-# Configuration parameters: EnforcedStyle.
-# SupportedStyles: always, always_true, never
-Style/FrozenStringLiteralComment:
-  Enabled: false
-
 # Offense count: 1
 # Configuration parameters: AllowIfModifier.
 Style/IfInsideElse:

+ 4 - 0
CHANGELOG.md

@@ -1,3 +1,7 @@
+## Unreleased
+
+* Freeze all string literals. This should have no impact unless your application is modifying ('monkeypatching') the internals of the library in an unusual way.
+
 ## Version 9.2.0
 
 * Removes the `shopify` binary which will be used by the Shopify CLI

+ 1 - 0
Gemfile

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 source "https://rubygems.org"
 
 gemspec

+ 1 - 0
Rakefile

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'rake'
 require "bundler/gem_tasks"
 require 'rake/testtask'

+ 1 - 0
lib/active_resource/connection_ext.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'shopify_api/connection'
 
 module ActiveResource

+ 1 - 0
lib/active_resource/detailed_log_subscriber.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ActiveResource
   class DetailedLogSubscriber < ActiveSupport::LogSubscriber
     VERSION_EOL_WARNING_HEADER = 'x-shopify-api-version-warning'

+ 1 - 0
lib/active_resource/json_errors.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'active_resource/base'
 
 module ActiveResource

+ 1 - 0
lib/shopify_api.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 $:.unshift(File.dirname(__FILE__))
 require 'active_resource'
 require 'active_support/core_ext/class/attribute_accessors'

+ 1 - 0
lib/shopify_api/connection.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Connection < ActiveResource::Connection
     attr_reader :response

+ 1 - 0
lib/shopify_api/countable.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   module Countable
     def count(options = {})

+ 1 - 0
lib/shopify_api/events.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   module Events
     def events

+ 1 - 0
lib/shopify_api/limits.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   module Limits
     class LimitUnavailable < StandardError; end

+ 1 - 0
lib/shopify_api/message_enricher.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class MessageEnricher < SimpleDelegator
     def message

+ 1 - 0
lib/shopify_api/metafields.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   module Metafields
     def metafields(**options)

+ 1 - 0
lib/shopify_api/pagination_link_headers.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class InvalidPaginationLinksError < StandardError; end
 

+ 1 - 0
lib/shopify_api/resources.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'shopify_api/resources/base'
 require 'shopify_api/resources/array_base'
 Dir.glob("#{File.dirname(__FILE__)}/resources/*").each { |file| require(file) }

+ 1 - 0
lib/shopify_api/resources/access_token.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class AccessToken < Base
     def self.delegate(access_scope, expires_in = nil)

+ 1 - 0
lib/shopify_api/resources/address.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Address < Base
   end

+ 1 - 0
lib/shopify_api/resources/announcement.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Announcement < Base
   end

+ 1 - 0
lib/shopify_api/resources/application_charge.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class ApplicationCharge < Base
     undef_method :test

+ 1 - 0
lib/shopify_api/resources/application_credit.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class ApplicationCredit < Base
   end

+ 1 - 0
lib/shopify_api/resources/article.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Article < Base
     include Events

+ 1 - 0
lib/shopify_api/resources/asset.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   # Assets represent the files that comprise your theme.
   # There are different buckets which hold different kinds

+ 1 - 0
lib/shopify_api/resources/assigned_fulfillment_order.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class AssignedFulfillmentOrder < Base
 

+ 1 - 0
lib/shopify_api/resources/base.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'shopify_api/version'
 
 module ShopifyAPI

+ 1 - 0
lib/shopify_api/resources/billing_address.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class BillingAddress < Base
   end

+ 1 - 0
lib/shopify_api/resources/blog.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Blog < Base
     include Events

+ 1 - 0
lib/shopify_api/resources/carrier_service.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class CarrierService < Base
   end

+ 1 - 0
lib/shopify_api/resources/cart.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Cart < Base
   end

+ 1 - 0
lib/shopify_api/resources/collect.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   # For adding/removing products from custom collections
   class Collect < Base

+ 1 - 0
lib/shopify_api/resources/collection_listing.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class CollectionListing < Base
     self.primary_key = :collection_id

+ 1 - 0
lib/shopify_api/resources/comment.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Comment < Base
     def remove;   load_attributes_from_response(post(:remove, {}, only_id)); end

+ 1 - 0
lib/shopify_api/resources/country.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Country < Base
   end

+ 1 - 0
lib/shopify_api/resources/custom_collection.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class CustomCollection < Base
     include Events

+ 1 - 0
lib/shopify_api/resources/customer.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Customer < Base
     include Metafields

+ 1 - 0
lib/shopify_api/resources/customer_group.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'shopify_api/resources/customer_saved_search'
 
 module ShopifyAPI

+ 1 - 0
lib/shopify_api/resources/customer_invite.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class CustomerInvite < Base
   end

+ 1 - 0
lib/shopify_api/resources/customer_saved_search.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'shopify_api/resources/customer'
 
 module ShopifyAPI

+ 1 - 0
lib/shopify_api/resources/discount_code.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class DiscountCode < Base
     init_prefix :price_rule

+ 1 - 0
lib/shopify_api/resources/draft_order.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class DraftOrder < Base
     include Metafields

+ 1 - 0
lib/shopify_api/resources/draft_order_invoice.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class DraftOrderInvoice < Base
   end

+ 1 - 0
lib/shopify_api/resources/event.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Event < Base
     include DisablePrefixCheck

+ 1 - 0
lib/shopify_api/resources/fulfillment.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Fulfillment < Base
     init_prefix :order

+ 1 - 0
lib/shopify_api/resources/fulfillment_event.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class FulfillmentEvent < Base
     self.resource_prefix = "orders/:order_id/fulfillments/:fulfillment_id/"

+ 1 - 0
lib/shopify_api/resources/fulfillment_order.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class FulfillmentOrder < Base
     MINIMUM_VERSION = '2020-01'

+ 1 - 0
lib/shopify_api/resources/fulfillment_order_locations_for_move.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class FulfillmentOrderLocationsForMove < Base
   end

+ 1 - 0
lib/shopify_api/resources/fulfillment_request.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class FulfillmentRequest < Base
     init_prefix :order

+ 1 - 0
lib/shopify_api/resources/fulfillment_service.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class FulfillmentService < Base
   end

+ 1 - 0
lib/shopify_api/resources/fulfillment_v2.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class FulfillmentV2 < Base
     self.element_name = 'fulfillment'

+ 1 - 0
lib/shopify_api/resources/gift_card.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class GiftCard < Base
     def disable

+ 1 - 0
lib/shopify_api/resources/image.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Image < Base
     init_prefix :product

+ 1 - 0
lib/shopify_api/resources/line_item.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class LineItem < Base
     class Property < Base

+ 1 - 0
lib/shopify_api/resources/location.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Location < Base
 

+ 1 - 0
lib/shopify_api/resources/marketing_event.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class MarketingEvent < Base
     include Countable

+ 1 - 0
lib/shopify_api/resources/metafield.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Metafield < Base
     include DisablePrefixCheck

+ 1 - 0
lib/shopify_api/resources/note_attribute.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class NoteAttribute < Base
   end

+ 1 - 0
lib/shopify_api/resources/option.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Option < Base
   end

+ 1 - 0
lib/shopify_api/resources/order.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Order < Base
     include Events

+ 1 - 0
lib/shopify_api/resources/order_risk.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class OrderRisk < Base
     init_prefix :order

+ 1 - 0
lib/shopify_api/resources/page.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Page < Base
     include Events

+ 1 - 0
lib/shopify_api/resources/payment_details.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class PaymentDetails < Base
   end

+ 1 - 0
lib/shopify_api/resources/policy.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Policy < Base
     def self.all

+ 1 - 0
lib/shopify_api/resources/price_rule.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class PriceRule < Base
 

+ 1 - 0
lib/shopify_api/resources/product.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Product < Base
     include Events

+ 1 - 0
lib/shopify_api/resources/product_listing.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class ProductListing < Base
     self.primary_key = :product_id

+ 1 - 0
lib/shopify_api/resources/province.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Province < Base
     init_prefix :country

+ 1 - 0
lib/shopify_api/resources/receipt.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Receipt < Base
   end

+ 1 - 0
lib/shopify_api/resources/recurring_application_charge.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class RecurringApplicationCharge < Base
     undef_method :test

+ 1 - 0
lib/shopify_api/resources/redirect.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Redirect < Base
   end

+ 1 - 0
lib/shopify_api/resources/refund.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Refund < Base
     init_prefix :order

+ 1 - 0
lib/shopify_api/resources/report.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Report < Base
   end

+ 1 - 0
lib/shopify_api/resources/rule.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Rule < Base
   end

+ 1 - 0
lib/shopify_api/resources/script_tag.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class ScriptTag < Base
   end

+ 1 - 0
lib/shopify_api/resources/shipping_address.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class ShippingAddress < Base
   end

+ 1 - 0
lib/shopify_api/resources/shipping_line.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class ShippingLine < Base
   end

+ 1 - 0
lib/shopify_api/resources/shipping_zone.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class ShippingZone < Base
   end

+ 1 - 0
lib/shopify_api/resources/shop.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   # Shop object. Use Shop.current to receive
   # the shop.

+ 1 - 0
lib/shopify_api/resources/smart_collection.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class SmartCollection < Base
     include Events

+ 1 - 0
lib/shopify_api/resources/storefront_access_token.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class StorefrontAccessToken < Base
   end

+ 1 - 0
lib/shopify_api/resources/tax_line.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class TaxLine < Base
   end

+ 1 - 0
lib/shopify_api/resources/tax_service.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class TaxService < Base
   end

+ 1 - 0
lib/shopify_api/resources/theme.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Theme < Base
   end

+ 1 - 0
lib/shopify_api/resources/transaction.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Transaction < Base
     init_prefix :order

+ 1 - 0
lib/shopify_api/resources/usage_charge.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class UsageCharge < Base
     init_prefix :recurring_application_charge

+ 1 - 0
lib/shopify_api/resources/user.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class User < Base
   end

+ 1 - 0
lib/shopify_api/resources/variant.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Variant < Base
     include Metafields

+ 1 - 0
lib/shopify_api/resources/webhook.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   class Webhook < Base
   end

+ 1 - 0
lib/shopify_api/session.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'openssl'
 require 'rack'
 

+ 1 - 0
lib/shopify_api/version.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 module ShopifyAPI
   VERSION = "9.2.0"
 end

+ 1 - 0
lib/verify_docs.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 class VerifyDocs
   def self.call
     readme_content = File.read("README.md").lines[2..-1]

+ 1 - 0
shopify_api.gemspec

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 $:.push(File.expand_path("../lib", __FILE__))
 require "shopify_api/version"
 

+ 1 - 0
test/access_token_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 
 class AccessTokenTest < Test::Unit::TestCase

+ 1 - 0
test/active_resource/json_errors_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 
 module ActiveResource

+ 1 - 0
test/application_charge_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 
 class ApplicationChargeTest < Test::Unit::TestCase

+ 1 - 0
test/application_credit_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 
 class ApplicationCreditTest < Test::Unit::TestCase

+ 1 - 0
test/article_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 
 class ArticleTest < Test::Unit::TestCase

+ 1 - 0
test/asset_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 
 class AssetTest < Test::Unit::TestCase

+ 1 - 0
test/assigned_fulfillment_order_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 require 'fulfillment_order_test_helper'
 

+ 1 - 0
test/base_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 require "active_support/log_subscriber/test_helper"
 

+ 1 - 0
test/blog_test.rb

@@ -1,3 +1,4 @@
+# frozen_string_literal: true
 require 'test_helper'
 class BlogTest < Test::Unit::TestCase
   test "blog creation" do

Some files were not shown because too many files changed in this diff