diff --git a/lib/lita-wit.rb b/lib/lita-wit.rb index e970d66..edaaa7c 100644 --- a/lib/lita-wit.rb +++ b/lib/lita-wit.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require 'lita' require 'wit' diff --git a/lib/lita/actions/base.rb b/lib/lita/actions/base.rb index 3edaca4..af875ef 100644 --- a/lib/lita/actions/base.rb +++ b/lib/lita/actions/base.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Actions class Base diff --git a/lib/lita/actions/weather.rb b/lib/lita/actions/weather.rb index 3759da9..a6db5e0 100644 --- a/lib/lita/actions/weather.rb +++ b/lib/lita/actions/weather.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Actions class Weather < Base @@ -10,6 +11,7 @@ def actions(source) Utils::ContextPiper.pipe(r['context'], r['entities'], 'location', 'loc') r['context'] end) + end end end diff --git a/lib/lita/handlers/wit.rb b/lib/lita/handlers/wit.rb index 048a56a..9dac2a1 100644 --- a/lib/lita/handlers/wit.rb +++ b/lib/lita/handlers/wit.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Handlers class Wit < Handler diff --git a/lib/lita/services/wit_client.rb b/lib/lita/services/wit_client.rb index e1955fe..6706ac3 100644 --- a/lib/lita/services/wit_client.rb +++ b/lib/lita/services/wit_client.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Services class WitClient diff --git a/lib/lita/utils/alias_stripper.rb b/lib/lita/utils/alias_stripper.rb index d9f4662..6dc2dbe 100644 --- a/lib/lita/utils/alias_stripper.rb +++ b/lib/lita/utils/alias_stripper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Utils class AliasStripper diff --git a/lib/lita/utils/aliases.rb b/lib/lita/utils/aliases.rb index 454522d..090c7b4 100644 --- a/lib/lita/utils/aliases.rb +++ b/lib/lita/utils/aliases.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Utils class Aliases diff --git a/lib/lita/utils/bickle.rb b/lib/lita/utils/bickle.rb index 214c049..e754b53 100644 --- a/lib/lita/utils/bickle.rb +++ b/lib/lita/utils/bickle.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Utils class Bickle diff --git a/lib/lita/utils/context_piper.rb b/lib/lita/utils/context_piper.rb index 68fa77c..62061c7 100644 --- a/lib/lita/utils/context_piper.rb +++ b/lib/lita/utils/context_piper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Utils class ContextPiper diff --git a/lib/lita/utils/entities_navigator.rb b/lib/lita/utils/entities_navigator.rb index 17ec343..871552c 100644 --- a/lib/lita/utils/entities_navigator.rb +++ b/lib/lita/utils/entities_navigator.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true module Lita module Utils class EntitiesNavigator diff --git a/lita-wit.gemspec b/lita-wit.gemspec index 3d84bcd..c8cb87f 100644 --- a/lita-wit.gemspec +++ b/lita-wit.gemspec @@ -1,3 +1,4 @@ +# frozen_string_literal: true Gem::Specification.new do |spec| spec.name = 'lita-wit' spec.version = '0.1.3' diff --git a/spec/lita_config.rb b/spec/lita_config.rb index f5a29a4..7bcdf55 100644 --- a/spec/lita_config.rb +++ b/spec/lita_config.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true Lita.configure do |config| config.robot.name = 'Lita' config.robot.log_level = :info diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 0f2d78f..2c7400a 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,4 @@ +# frozen_string_literal: true require 'simplecov' require 'coveralls' @@ -31,4 +32,4 @@ config.configure_rspec_metadata! end -SESSION_ID = 'unique-1234' +SESSION_ID = 'unique-1234'.freeze