Przeglądaj źródła

Apply frozen_string_literal: true

Andrew Swistak 6 lat temu
rodzic
commit
ac9ff5a8c7

+ 2 - 0
lib/pkparse.rb

@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require './lib/pkparse/response'
 require './lib/pkparse/error'
 require './lib/pkparse/response_error'

+ 2 - 0
lib/pkparse/error.rb

@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module PKParse
   class Error < StandardError
     attr_accessor :original_exception

+ 2 - 0
lib/pkparse/pokemon.rb

@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module PKParse
   # Define a PKParse::Pokemon to keep Rails' model distinct and allow this to be
   # updated independently without fear of breaking the app.

+ 2 - 0
lib/pkparse/response.rb

@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module PKParse
   class Response
     attr_accessor :response, :pokemon

+ 2 - 0
lib/pkparse/response_error.rb

@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 module PKParse
   class ResponseError < Error
     def initialize(e)

+ 2 - 0
lib/tagged_logger.rb

@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 class TaggedLogger
   attr_reader :logger, :tag
 

+ 2 - 0
spec/lib/pkparse/client_spec.rb

@@ -1,3 +1,5 @@
+# frozen_string_literal: true
+
 require 'rails_helper'
 
 RSpec.describe PKParse::Client do