plug common on ruby gem.org
Joel AZEMAR
committed Apr 14, 2014
commit 646904aa3188739df7b767c98cbc3492dc3e1040
Showing 7
changed files with
15 additions
and 9 deletions
.gitignore
+2
-0
| @@ | @@ -21,3 +21,5 @@ doc/ |
| spec/fixtures/default/log/* | |
| .ruby-* | |
| + | |
| + | log |
Gemfile
+1
-1
| @@ | @@ -3,7 +3,7 @@ source 'https://rubygems.org' |
| gemspec | |
| group :development do | |
| - | gem 'locomotivecms_common', path: '../common' |
| + | gem 'locomotivecms_common', '~> 0.0.1', require: 'common' # path: '../common' |
| gem 'thin' | |
| end | |
Gemfile.lock
+3
-6
| @@ | @@ -5,6 +5,7 @@ PATH |
| activesupport (~> 3.2) | |
| dragonfly (~> 1.0.3) | |
| locomotivecms-solid | |
| + | locomotivecms_common (~> 0.0.1) |
| locomotivecms_mounter | |
| moneta (~> 0.7.20) | |
| rack-cache (~> 1.1) | |
| @@ | @@ -13,11 +14,6 @@ PATH |
| sprockets-sass (~> 1.0) | |
| will_paginate (~> 3.0) | |
| - | PATH |
| - | remote: ../common |
| - | specs: |
| - | locomotivecms_common (0.0.1) |
| - | |
| GEM | |
| remote: https://rubygems.org/ | |
| specs: | |
| @@ | @@ -78,6 +74,7 @@ GEM |
| locomotivecms-liquid (2.6.0) | |
| locomotivecms-solid (0.2.2.1) | |
| locomotivecms-liquid (~> 2.6.0) | |
| + | locomotivecms_common (0.0.1) |
| locomotivecms_mounter (1.4.0) | |
| RedCloth (~> 4.2.3) | |
| activesupport (~> 3.2.15) | |
| @@ | @@ -170,7 +167,7 @@ DEPENDENCIES |
| coveralls | |
| i18n-spec | |
| launchy | |
| - | locomotivecms_common! |
| + | locomotivecms_common (~> 0.0.1) |
| locomotivecms_steam! | |
| pry | |
| rack-test | |
example/server.rb
+3
-2
| @@ | @@ -3,7 +3,10 @@ |
| require 'rubygems' | |
| require 'bundler/setup' | |
| + | Bundler.require |
| + | |
| require 'thin' | |
| + | require 'common' |
| require_relative '../lib/steam' | |
| require_relative '../lib/locomotive/steam/server' | |
| @@ | @@ -11,8 +14,6 @@ require_relative '../lib/locomotive/steam/initializers' |
| path = File.join(File.expand_path(File.dirname(__FILE__)), '../spec/fixtures/default') | |
| - | Locomotive::Common::Logger.setup(path + '/log/steam.log') |
| - | |
| reader = Locomotive::Mounter::Reader::FileSystem.instance | |
| reader.run!(path: path) | |
locomotive/steam/initializers.rb b/lib/locomotive/steam/initializers.rb
+4
-0
| @@ | @@ -1,3 +1,7 @@ |
| require_relative 'initializers/sprockets.rb' | |
| require_relative 'initializers/i18n.rb' | |
| require_relative 'initializers/dragonfly.rb' | |
| + | |
| + | Locomotive::Common.configure do |config| |
| + | config.notifier = Locomotive::Common::Logger.setup(File.join(File.expand_path(File.dirname(__FILE__)), '..', '..', '..', 'log', 'locomotivecms.log')) |
| + | end |
locomotive/steam/initializers/dragonfly.rb b/lib/locomotive/steam/initializers/dragonfly.rb
+1
-0
| @@ | @@ -1,4 +1,5 @@ |
| require 'dragonfly' | |
| + | require 'common' |
| # Configure | |
| Dragonfly.app(:steam).configure do | |
locomotivecms_steam.gemspec
+1
-0
| @@ | @@ -37,6 +37,7 @@ Gem::Specification.new do |spec| |
| spec.add_dependency 'locomotivecms_mounter' | |
| spec.add_dependency 'locomotivecms-solid' | |
| + | spec.add_dependency 'locomotivecms_common', '~> 0.0.1' |
| spec.required_ruby_version = '~> 2.0' | |
| end | |