Skip to content

Commit

Permalink
Merge pull request #4 from locomotivecms/add_colorize_dependency
Browse files Browse the repository at this point in the history
add colorize as gem dependency
  • Loading branch information
demental committed Jun 3, 2014
2 parents d7d1fdd + 992fa36 commit 8ec2a5f
Show file tree
Hide file tree
Showing 7 changed files with 17 additions and 13 deletions.
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,12 @@ PATH
remote: .
specs:
locomotivecms_common (0.0.1)
colorize

GEM
remote: https://rubygems.org/
specs:
colorize (0.7.3)
diff-lcs (1.2.5)
rake (10.2.2)
rspec (2.14.1)
Expand Down
4 changes: 2 additions & 2 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ require 'rake'
require 'rspec'
require 'rspec/core/rake_task'

require_relative 'lib/common'
require_relative 'lib/locomotive/common'

RSpec::Core::RakeTask.new('spec:all') do |spec|
spec.pattern = 'spec/**/*_spec.rb'
end

task spec: ['spec:all']
task default: :spec
task default: :spec
13 changes: 6 additions & 7 deletions lib/common.rb → lib/locomotive/common.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
require_relative 'locomotive/common/version'
require_relative 'locomotive/common/logger'
require_relative 'locomotive/common/exception'
require_relative 'locomotive/common/notifier'

require_relative 'locomotive/common/configuration'
require_relative 'common/version'
require_relative 'common/logger'
require_relative 'common/exception'
require_relative 'common/notifier'
require_relative 'common/configuration'

module Locomotive
module Common
Expand All @@ -23,4 +22,4 @@ def self.configure
yield(configuration)
end
end
end
end
4 changes: 3 additions & 1 deletion lib/locomotive/common/logger.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
require 'colorize'

module Locomotive
module Common

Expand Down Expand Up @@ -66,4 +68,4 @@ def log_file_path log_file_full_path
end
end
end
end
end
File renamed without changes.
3 changes: 2 additions & 1 deletion locomotivecms_common.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative 'lib/common'
require_relative 'lib/locomotive/common/version'

Gem::Specification.new do |spec|
spec.name = 'locomotivecms_common'
Expand All @@ -20,5 +20,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rake', '~> 10.1'
spec.add_development_dependency 'rspec', '~> 2.14'

spec.add_dependency 'colorize'
spec.required_ruby_version = '~> 2.0'
end
4 changes: 2 additions & 2 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
require 'rubygems'
require 'bundler/setup'

require_relative '../lib/common'
require_relative '../lib/locomotive/common'

RSpec.configure do |config|
config.filter_run focused: true
config.run_all_when_everything_filtered = true
end
end

0 comments on commit 8ec2a5f

Please sign in to comment.