소스 검색

Apply frozen_string_literal: true

Andrew Swistak 6 년 전
부모
커밋
ac9ff5a8c7
7개의 변경된 파일14개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      lib/pkparse.rb
  2. 2 0
      lib/pkparse/error.rb
  3. 2 0
      lib/pkparse/pokemon.rb
  4. 2 0
      lib/pkparse/response.rb
  5. 2 0
      lib/pkparse/response_error.rb
  6. 2 0
      lib/tagged_logger.rb
  7. 2 0
      spec/lib/pkparse/client_spec.rb

+ 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