1
0
mirror of https://github.com/meineerde/rackstash.git synced 2025-10-17 14:01:01 +00:00

Use single-quotes and check line-length to 80 chars

This commit is contained in:
Holger Just 2017-01-15 18:48:32 +01:00
parent 063f2fc53f
commit 572b95c580
6 changed files with 19 additions and 19 deletions

View File

@ -3,8 +3,8 @@
# This software may be modified and distributed under the terms # This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details. # of the MIT license. See the LICENSE.txt file for details.
require "bundler/gem_tasks" require 'bundler/gem_tasks'
require "rspec/core/rake_task" require 'rspec/core/rake_task'
RSpec::Core::RakeTask.new(:spec) RSpec::Core::RakeTask.new(:spec)

View File

@ -4,15 +4,15 @@
# This software may be modified and distributed under the terms # This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details. # of the MIT license. See the LICENSE.txt file for details.
require "bundler/setup" require 'bundler/setup'
require "rackstash" require 'rackstash'
# You can add fixtures and/or initialization code here to make experimenting # 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. # 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!) # (If you use this, don't forget to add pry to your Gemfile!)
# require "pry" # require 'pry'
# Pry.start # Pry.start
require "irb" require 'irb'
IRB.start IRB.start

View File

@ -4,4 +4,4 @@
# This software may be modified and distributed under the terms # This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details. # of the MIT license. See the LICENSE.txt file for details.
require "rackstash" require 'rackstash'

View File

@ -3,7 +3,7 @@
# This software may be modified and distributed under the terms # This software may be modified and distributed under the terms
# of the MIT license. See the LICENSE.txt file for details. # of the MIT license. See the LICENSE.txt file for details.
require "rackstash/version" require 'rackstash/version'
module Rackstash module Rackstash
# Your code goes here... # Your code goes here...

View File

@ -4,5 +4,5 @@
# of the MIT license. See the LICENSE.txt file for details. # of the MIT license. See the LICENSE.txt file for details.
module Rackstash module Rackstash
VERSION = "0.1.0" VERSION = '0.1.0'
end end

View File

@ -9,9 +9,9 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rackstash/version' require 'rackstash/version'
Gem::Specification.new do |spec| Gem::Specification.new do |spec|
spec.name = "rackstash" spec.name = 'rackstash'
spec.version = Rackstash::VERSION spec.version = Rackstash::VERSION
spec.authors = ["Holger Just"] spec.authors = ['Holger Just']
spec.summary = 'Easy structured logging for Ruby applications' spec.summary = 'Easy structured logging for Ruby applications'
spec.description = <<-TXT.gsub(/\s+|\n/, ' ').strip 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. frameworks. It works best with a log receiver like Logstash or Graylog.
TXT TXT
spec.homepage = 'https://github.com/meineerde/rackstash' spec.homepage = 'https://github.com/meineerde/rackstash'
spec.license = "MIT" spec.license = 'MIT'
files = `git ls-files -z`.split("\x0")
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } spec.files = files.reject { |f| f.match(%r{^(test|spec|features)/}) }
spec.bindir = "exe" spec.bindir = 'exe'
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } 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 'bundler', '~> 1.12'
spec.add_development_dependency "rake", "~> 10.0" spec.add_development_dependency 'rake', '~> 10.0'
spec.add_development_dependency "rspec", "~> 3.0" spec.add_development_dependency 'rspec', '~> 3.0'
end end