From c9c12a382cb56d9efc7785fdf4d29b5696830e87 Mon Sep 17 00:00:00 2001 From: Marc Riera Casals Date: Wed, 10 Jul 2019 15:02:49 +0200 Subject: [PATCH] Disable `frozen_string_literal` check --- .rubocop.yml | 3 +++ Dangerfile | 2 -- Gemfile | 2 -- Guardfile | 2 -- Rakefile | 1 - examples/splines_api.rb | 2 -- features/steps/api_navigation.rb | 2 -- features/steps/default_config.rb | 2 -- features/support/api.rb | 2 -- features/support/env.rb | 2 -- features/support/fixtures.rb | 2 -- hyperclient.gemspec | 2 -- lib/faraday/connection.rb | 2 -- lib/hyperclient.rb | 2 -- lib/hyperclient/attributes.rb | 2 -- lib/hyperclient/collection.rb | 2 -- lib/hyperclient/curie.rb | 2 -- lib/hyperclient/entry_point.rb | 2 -- lib/hyperclient/link.rb | 2 -- lib/hyperclient/link_collection.rb | 2 -- lib/hyperclient/resource.rb | 2 -- lib/hyperclient/resource_collection.rb | 2 -- lib/hyperclient/version.rb | 4 +--- test/faraday/connection_test.rb | 2 -- test/hyperclient/attributes_test.rb | 2 -- test/hyperclient/collection_test.rb | 2 -- test/hyperclient/curie_test.rb | 2 -- test/hyperclient/entry_point_test.rb | 2 -- test/hyperclient/link_collection_test.rb | 2 -- test/hyperclient/link_test.rb | 2 -- test/hyperclient/resource_collection_test.rb | 2 -- test/hyperclient/resource_test.rb | 2 -- test/hyperclient_test.rb | 2 -- test/test_helper.rb | 2 -- 34 files changed, 4 insertions(+), 66 deletions(-) diff --git a/.rubocop.yml b/.rubocop.yml index 59f20da..b22a97d 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -5,3 +5,6 @@ AllCops: Metrics/BlockLength: ExcludedMethods: [it, describe] + +Style/FrozenStringLiteralComment: + Enabled: false \ No newline at end of file diff --git a/Dangerfile b/Dangerfile index c870559..7f3f1ad 100644 --- a/Dangerfile +++ b/Dangerfile @@ -1,4 +1,2 @@ -# frozen_string_literal: true - changelog.check toc.check diff --git a/Gemfile b/Gemfile index e311426..355f6f7 100644 --- a/Gemfile +++ b/Gemfile @@ -1,5 +1,3 @@ -# frozen_string_literal: true - # NOTE: this is temporary until Bundler 2.0 changes how github: references work. git_source(:github) { |repo| "https://github.com/#{repo['/'] ? repo : "#{repo}/#{repo}"}.git" } diff --git a/Guardfile b/Guardfile index 26bec48..aaaadf9 100644 --- a/Guardfile +++ b/Guardfile @@ -1,5 +1,3 @@ -# frozen_string_literal: true - guard 'minitest' do watch(%r{^test/(.*)_test\.rb}) watch(%r{^lib/(.*)([^/]+)\.rb}) { |m| "test/#{m[1]}#{m[2]}_test.rb" } diff --git a/Rakefile b/Rakefile index efb1c64..0c01671 100755 --- a/Rakefile +++ b/Rakefile @@ -1,5 +1,4 @@ #!/usr/bin/env rake -# frozen_string_literal: true require 'rubygems' require 'bundler' diff --git a/examples/splines_api.rb b/examples/splines_api.rb index 7ecda96..34d3b43 100644 --- a/examples/splines_api.rb +++ b/examples/splines_api.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'hyperclient' puts "Using Hyperclient #{Hyperclient::VERSION} ..." diff --git a/features/steps/api_navigation.rb b/features/steps/api_navigation.rb index 52cf47f..ff7c15f 100644 --- a/features/steps/api_navigation.rb +++ b/features/steps/api_navigation.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - class Spinach::Features::ApiNavigation < Spinach::FeatureSteps include API diff --git a/features/steps/default_config.rb b/features/steps/default_config.rb index b194540..c3379af 100644 --- a/features/steps/default_config.rb +++ b/features/steps/default_config.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - class Spinach::Features::DefaultConfig < Spinach::FeatureSteps include API diff --git a/features/support/api.rb b/features/support/api.rb index ebdfe3c..81e0268 100644 --- a/features/support/api.rb +++ b/features/support/api.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative 'fixtures' module API include Spinach::DSL diff --git a/features/support/env.rb b/features/support/env.rb index ec5a98d..5d73b35 100644 --- a/features/support/env.rb +++ b/features/support/env.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'minitest/spec' require 'webmock' WebMock.enable! diff --git a/features/support/fixtures.rb b/features/support/fixtures.rb index 23d9277..2c91cce 100644 --- a/features/support/fixtures.rb +++ b/features/support/fixtures.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'json' module Spinach diff --git a/hyperclient.gemspec b/hyperclient.gemspec index f1c3b41..bd95c5c 100644 --- a/hyperclient.gemspec +++ b/hyperclient.gemspec @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require File.expand_path('lib/hyperclient/version', __dir__) Gem::Specification.new do |gem| diff --git a/lib/faraday/connection.rb b/lib/faraday/connection.rb index da772c0..110354c 100644 --- a/lib/faraday/connection.rb +++ b/lib/faraday/connection.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'faraday' require 'faraday/digestauth' diff --git a/lib/hyperclient.rb b/lib/hyperclient.rb index abdc023..68e83f3 100644 --- a/lib/hyperclient.rb +++ b/lib/hyperclient.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'hyperclient/collection' require 'hyperclient/link' require 'hyperclient/attributes' diff --git a/lib/hyperclient/attributes.rb b/lib/hyperclient/attributes.rb index 78871d4..54b9473 100644 --- a/lib/hyperclient/attributes.rb +++ b/lib/hyperclient/attributes.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - module Hyperclient # Public: A wrapper class to easily acces the attributes in a Resource. # diff --git a/lib/hyperclient/collection.rb b/lib/hyperclient/collection.rb index a85c022..5bac533 100644 --- a/lib/hyperclient/collection.rb +++ b/lib/hyperclient/collection.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - module Hyperclient # Public: A helper class to wrap a collection of elements and provide # Hash-like access or via a method call. diff --git a/lib/hyperclient/curie.rb b/lib/hyperclient/curie.rb index b47a01a..fa39521 100644 --- a/lib/hyperclient/curie.rb +++ b/lib/hyperclient/curie.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - module Hyperclient # Internal: Curies are named tokens that you can define in the document and use # to express curie relation URIs in a friendlier, more compact fashion. diff --git a/lib/hyperclient/entry_point.rb b/lib/hyperclient/entry_point.rb index 71536d9..3b88ad9 100644 --- a/lib/hyperclient/entry_point.rb +++ b/lib/hyperclient/entry_point.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'faraday_middleware' require 'faraday_hal_middleware' require_relative '../faraday/connection' diff --git a/lib/hyperclient/link.rb b/lib/hyperclient/link.rb index 8895b2a..cb8b2d2 100644 --- a/lib/hyperclient/link.rb +++ b/lib/hyperclient/link.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'addressable' module Hyperclient diff --git a/lib/hyperclient/link_collection.rb b/lib/hyperclient/link_collection.rb index c26ddcd..985ad9e 100644 --- a/lib/hyperclient/link_collection.rb +++ b/lib/hyperclient/link_collection.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - module Hyperclient # Public: A wrapper class to easily acces the links in a Resource. # diff --git a/lib/hyperclient/resource.rb b/lib/hyperclient/resource.rb index 9932056..d953e85 100644 --- a/lib/hyperclient/resource.rb +++ b/lib/hyperclient/resource.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'forwardable' module Hyperclient diff --git a/lib/hyperclient/resource_collection.rb b/lib/hyperclient/resource_collection.rb index 46edc54..915ed9c 100644 --- a/lib/hyperclient/resource_collection.rb +++ b/lib/hyperclient/resource_collection.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - module Hyperclient # Public: A wrapper class to easily acces the embedded resources in a # Resource. diff --git a/lib/hyperclient/version.rb b/lib/hyperclient/version.rb index ba94b48..0165317 100644 --- a/lib/hyperclient/version.rb +++ b/lib/hyperclient/version.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - module Hyperclient - VERSION = '0.9.1' + VERSION = '0.9.1'.freeze end diff --git a/test/faraday/connection_test.rb b/test/faraday/connection_test.rb index 18fa42f..b2e705d 100644 --- a/test/faraday/connection_test.rb +++ b/test/faraday/connection_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require_relative '../../lib/faraday/connection' diff --git a/test/hyperclient/attributes_test.rb b/test/hyperclient/attributes_test.rb index c4ca510..4a176dd 100644 --- a/test/hyperclient/attributes_test.rb +++ b/test/hyperclient/attributes_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient/collection_test.rb b/test/hyperclient/collection_test.rb index a337cdc..fe9b58d 100644 --- a/test/hyperclient/collection_test.rb +++ b/test/hyperclient/collection_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient/curie_test.rb b/test/hyperclient/curie_test.rb index e46fd2b..23864fc 100644 --- a/test/hyperclient/curie_test.rb +++ b/test/hyperclient/curie_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient/entry_point_test.rb b/test/hyperclient/entry_point_test.rb index 9d6599a..007c4fd 100644 --- a/test/hyperclient/entry_point_test.rb +++ b/test/hyperclient/entry_point_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient/link_collection_test.rb b/test/hyperclient/link_collection_test.rb index 519a7bf..501add2 100644 --- a/test/hyperclient/link_collection_test.rb +++ b/test/hyperclient/link_collection_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient/link_test.rb b/test/hyperclient/link_test.rb index b2b8bfe..a1dbc5a 100644 --- a/test/hyperclient/link_test.rb +++ b/test/hyperclient/link_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient/resource_collection_test.rb b/test/hyperclient/resource_collection_test.rb index 147b8ad..b96ddcc 100644 --- a/test/hyperclient/resource_collection_test.rb +++ b/test/hyperclient/resource_collection_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient/resource_test.rb b/test/hyperclient/resource_test.rb index 5974b01..03925a4 100644 --- a/test/hyperclient/resource_test.rb +++ b/test/hyperclient/resource_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require_relative '../test_helper' require 'hyperclient' diff --git a/test/hyperclient_test.rb b/test/hyperclient_test.rb index d629a83..c64dd33 100644 --- a/test/hyperclient_test.rb +++ b/test/hyperclient_test.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - require 'test_helper' require 'hyperclient' diff --git a/test/test_helper.rb b/test/test_helper.rb index c8a7744..e94e721 100644 --- a/test/test_helper.rb +++ b/test/test_helper.rb @@ -1,5 +1,3 @@ -# frozen_string_literal: true - $LOAD_PATH << 'lib' require 'minitest/spec'