diff --git a/Rakefile b/Rakefile index d552768..2e7c24e 100644 --- a/Rakefile +++ b/Rakefile @@ -3,8 +3,8 @@ # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE.txt file for details. -require "bundler/gem_tasks" -require "rspec/core/rake_task" +require 'bundler/gem_tasks' +require 'rspec/core/rake_task' RSpec::Core::RakeTask.new(:spec) diff --git a/bin/console b/bin/console index 8a518c9..3a71b3b 100755 --- a/bin/console +++ b/bin/console @@ -4,15 +4,15 @@ # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE.txt file for details. -require "bundler/setup" -require "rackstash" +require 'bundler/setup' +require 'rackstash' # 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. # (If you use this, don't forget to add pry to your Gemfile!) -# require "pry" +# require 'pry' # Pry.start -require "irb" +require 'irb' IRB.start diff --git a/exe/rackstash b/exe/rackstash index b46d5b8..697523a 100644 --- a/exe/rackstash +++ b/exe/rackstash @@ -4,4 +4,4 @@ # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE.txt file for details. -require "rackstash" +require 'rackstash' diff --git a/lib/rackstash.rb b/lib/rackstash.rb index 24e7097..70e2ae4 100644 --- a/lib/rackstash.rb +++ b/lib/rackstash.rb @@ -3,7 +3,7 @@ # This software may be modified and distributed under the terms # of the MIT license. See the LICENSE.txt file for details. -require "rackstash/version" +require 'rackstash/version' module Rackstash # Your code goes here... diff --git a/lib/rackstash/version.rb b/lib/rackstash/version.rb index 510a281..7ad774e 100644 --- a/lib/rackstash/version.rb +++ b/lib/rackstash/version.rb @@ -4,5 +4,5 @@ # of the MIT license. See the LICENSE.txt file for details. module Rackstash - VERSION = "0.1.0" + VERSION = '0.1.0' end diff --git a/rackstash.gemspec b/rackstash.gemspec index eaad717..2e109a8 100644 --- a/rackstash.gemspec +++ b/rackstash.gemspec @@ -9,9 +9,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'rackstash/version' Gem::Specification.new do |spec| - spec.name = "rackstash" + spec.name = 'rackstash' spec.version = Rackstash::VERSION - spec.authors = ["Holger Just"] + spec.authors = ['Holger Just'] spec.summary = 'Easy structured logging for Ruby applications' spec.description = <<-TXT.gsub(/\s+|\n/, ' ').strip @@ -20,15 +20,15 @@ Gem::Specification.new do |spec| frameworks. It works best with a log receiver like Logstash or Graylog. TXT spec.homepage = 'https://github.com/meineerde/rackstash' - spec.license = "MIT" + spec.license = 'MIT' - - spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } - spec.bindir = "exe" + files = `git ls-files -z`.split("\x0") + spec.files = files.reject { |f| f.match(%r{^(test|spec|features)/}) } + spec.bindir = 'exe' spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } - spec.require_paths = ["lib"] + spec.require_paths = ['lib'] - spec.add_development_dependency "bundler", "~> 1.12" - spec.add_development_dependency "rake", "~> 10.0" - spec.add_development_dependency "rspec", "~> 3.0" + spec.add_development_dependency 'bundler', '~> 1.12' + spec.add_development_dependency 'rake', '~> 10.0' + spec.add_development_dependency 'rspec', '~> 3.0' end