configoro 1.2.0 → 1.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/configoro.gemspec +1 -1
  3. data/lib/configoro.rb +11 -5
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.0
1
+ 1.2.1
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "configoro"
8
- s.version = "1.2.0"
8
+ s.version = "1.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Tim Morgan"]
@@ -1,11 +1,17 @@
1
- raise "Configoro must be used in the context of a Rails 3 application" unless defined?(Rails)
1
+ in_rails = defined?(Rails)
2
2
 
3
3
  require 'erb'
4
4
  require 'yaml'
5
- require 'bundler'
6
- Bundler.setup
5
+
6
+ if in_rails
7
+ require 'bundler'
8
+ Bundler.setup
9
+ end
7
10
 
8
11
  require 'configoro/base'
9
12
  require 'configoro/hash'
10
- require 'configoro/railtie'
11
- require "#{File.dirname __FILE__}/../generators/configoro_generator"
13
+
14
+ if in_rails
15
+ require 'configoro/railtie'
16
+ require "#{File.dirname __FILE__}/../generators/configoro_generator"
17
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configoro
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -158,7 +158,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
158
158
  version: '0'
159
159
  segments:
160
160
  - 0
161
- hash: -4443263758316120902
161
+ hash: -496878938871840213
162
162
  required_rubygems_version: !ruby/object:Gem::Requirement
163
163
  none: false
164
164
  requirements: