diff --git a/Gemfile b/Gemfile index 5034345..de7fcff 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + source 'https://rubygems.org' # Specify your gem's dependencies in bunnyrun.gemspec diff --git a/Rakefile b/Rakefile index 4c774a2..82bb534 100644 --- a/Rakefile +++ b/Rakefile @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/gem_tasks' require 'rspec/core/rake_task' diff --git a/bin/console b/bin/console index 6e7f2a7..d44485f 100755 --- a/bin/console +++ b/bin/console @@ -1,7 +1,8 @@ #!/usr/bin/env ruby +# frozen_string_literal: true -require "bundler/setup" -require "bunnyrun" +require 'bundler/setup' +require 'bunnyrun' # You can add fixtures and/or initialization code here to make experimenting # with your gem easier. You can also use a different console, if you like. @@ -10,5 +11,5 @@ require "bunnyrun" # require "pry" # Pry.start -require "irb" +require 'irb' IRB.start(__FILE__) diff --git a/bunnyrun.gemspec b/bunnyrun.gemspec index 9f8545c..3cd0ee9 100644 --- a/bunnyrun.gemspec +++ b/bunnyrun.gemspec @@ -1,4 +1,4 @@ -# coding: utf-8 +# frozen_string_literal: true lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) @@ -23,10 +23,10 @@ Gem::Specification.new do |spec| spec.require_paths = ['lib'] spec.add_development_dependency 'bundler', '~> 1.14' + spec.add_development_dependency 'byebug' spec.add_development_dependency 'rake', '~> 10.0' spec.add_development_dependency 'rspec', '~> 3.0' - spec.add_development_dependency 'rubocop', '~> 0.50' - spec.add_development_dependency 'byebug' + spec.add_development_dependency 'rubocop', '~> 0.51' spec.add_runtime_dependency 'bunny', '~> 2.6' spec.add_runtime_dependency 'trollop', '~> 2.1.2' diff --git a/lib/bunny_run.rb b/lib/bunny_run.rb index 1869f9b..304a689 100644 --- a/lib/bunny_run.rb +++ b/lib/bunny_run.rb @@ -1 +1,3 @@ +# frozen_string_literal: true + require 'bunnyrun' diff --git a/lib/bunnyrun/consumer.rb b/lib/bunnyrun/consumer.rb index 9a4562d..4a591a6 100644 --- a/lib/bunnyrun/consumer.rb +++ b/lib/bunnyrun/consumer.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bunnyrun/message' module BunnyRun diff --git a/lib/bunnyrun/message.rb b/lib/bunnyrun/message.rb index 567160b..0bd5ee3 100644 --- a/lib/bunnyrun/message.rb +++ b/lib/bunnyrun/message.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BunnyRun class Message attr_reader :delivery_info diff --git a/lib/bunnyrun/runner.rb b/lib/bunnyrun/runner.rb index 510a901..1009b1d 100644 --- a/lib/bunnyrun/runner.rb +++ b/lib/bunnyrun/runner.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bunny' require 'logger' diff --git a/lib/bunnyrun/version.rb b/lib/bunnyrun/version.rb index 0407877..c2a6812 100644 --- a/lib/bunnyrun/version.rb +++ b/lib/bunnyrun/version.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + module BunnyRun - VERSION = '0.1.0'.freeze + VERSION = '0.1.0' end diff --git a/spec/bunnyrun_spec.rb b/spec/bunnyrun_spec.rb index 2e28654..bff3d4e 100644 --- a/spec/bunnyrun_spec.rb +++ b/spec/bunnyrun_spec.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'spec_helper' RSpec.describe Bunnyrun do diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 7343800..8afb796 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,3 +1,5 @@ +# frozen_string_literal: true + require 'bundler/setup' require 'bunnyrun'