config_reader 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.7
1
+ 0.0.8
@@ -1,51 +1,48 @@
1
1
  # Generated by jeweler
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{config_reader}
8
- s.version = "0.0.7"
8
+ s.version = "0.0.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Michael Moen"]
12
- s.date = %q{2010-02-24}
12
+ s.date = %q{2011-05-12}
13
13
  s.description = %q{Provides a way to manage environment specific configuration settings.}
14
14
  s.email = %q{michael@underpantsgnome.com}
15
15
  s.extra_rdoc_files = [
16
16
  "README.rdoc"
17
17
  ]
18
18
  s.files = [
19
- ".gitignore",
20
- "History.txt",
21
- "License.txt",
22
- "README.rdoc",
23
- "Rakefile",
24
- "VERSION",
25
- "config_reader.gemspec",
26
- "lib/config_reader.rb",
27
- "spec/config_reader_spec.rb",
28
- "spec/spec.opts",
29
- "spec/spec_helper.rb",
30
- "spec/test_config.rb",
31
- "spec/test_config.yml"
19
+ "History.txt",
20
+ "License.txt",
21
+ "README.rdoc",
22
+ "Rakefile",
23
+ "VERSION",
24
+ "config_reader.gemspec",
25
+ "lib/config_reader.rb",
26
+ "spec/config_reader_spec.rb",
27
+ "spec/spec.opts",
28
+ "spec/spec_helper.rb",
29
+ "spec/test_config.rb",
30
+ "spec/test_config.yml"
32
31
  ]
33
32
  s.homepage = %q{http://github.com/UnderpantsGnome/config_reader-gem}
34
- s.rdoc_options = ["--charset=UTF-8"]
35
33
  s.require_paths = ["lib"]
36
- s.rubygems_version = %q{1.3.6}
34
+ s.rubygems_version = %q{1.7.2}
37
35
  s.summary = %q{Provides a way to manage environment specific configuration settings.}
38
36
  s.test_files = [
39
37
  "spec/config_reader_spec.rb",
40
- "spec/spec_helper.rb",
41
- "spec/test_config.rb"
38
+ "spec/spec_helper.rb",
39
+ "spec/test_config.rb"
42
40
  ]
43
41
 
44
42
  if s.respond_to? :specification_version then
45
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
46
43
  s.specification_version = 3
47
44
 
48
- if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
45
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
46
  s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
50
47
  else
51
48
  s.add_dependency(%q<rspec>, [">= 1.2.9"])
data/lib/config_reader.rb CHANGED
@@ -30,7 +30,9 @@ class ConfigReader
30
30
 
31
31
  raise 'No config found' unless conf
32
32
 
33
- if defined?(RAILS_ENV)
33
+ if defined?(Rails) && Rails.env
34
+ env = Rails.env
35
+ elsif defined?(RAILS_ENV)
34
36
  env = RAILS_ENV
35
37
  elsif defined?(APP_ENV)
36
38
  env = APP_ENV
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_reader
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
4
+ hash: 15
5
+ prerelease:
5
6
  segments:
6
7
  - 0
7
8
  - 0
8
- - 7
9
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
10
11
  platform: ruby
11
12
  authors:
12
13
  - Michael Moen
@@ -14,16 +15,17 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-02-24 00:00:00 -06:00
18
- default_executable:
18
+ date: 2011-05-12 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rspec
22
22
  prerelease: false
23
23
  requirement: &id001 !ruby/object:Gem::Requirement
24
+ none: false
24
25
  requirements:
25
26
  - - ">="
26
27
  - !ruby/object:Gem::Version
28
+ hash: 13
27
29
  segments:
28
30
  - 1
29
31
  - 2
@@ -40,7 +42,6 @@ extensions: []
40
42
  extra_rdoc_files:
41
43
  - README.rdoc
42
44
  files:
43
- - .gitignore
44
45
  - History.txt
45
46
  - License.txt
46
47
  - README.rdoc
@@ -53,33 +54,36 @@ files:
53
54
  - spec/spec_helper.rb
54
55
  - spec/test_config.rb
55
56
  - spec/test_config.yml
56
- has_rdoc: true
57
57
  homepage: http://github.com/UnderpantsGnome/config_reader-gem
58
58
  licenses: []
59
59
 
60
60
  post_install_message:
61
- rdoc_options:
62
- - --charset=UTF-8
61
+ rdoc_options: []
62
+
63
63
  require_paths:
64
64
  - lib
65
65
  required_ruby_version: !ruby/object:Gem::Requirement
66
+ none: false
66
67
  requirements:
67
68
  - - ">="
68
69
  - !ruby/object:Gem::Version
70
+ hash: 3
69
71
  segments:
70
72
  - 0
71
73
  version: "0"
72
74
  required_rubygems_version: !ruby/object:Gem::Requirement
75
+ none: false
73
76
  requirements:
74
77
  - - ">="
75
78
  - !ruby/object:Gem::Version
79
+ hash: 3
76
80
  segments:
77
81
  - 0
78
82
  version: "0"
79
83
  requirements: []
80
84
 
81
85
  rubyforge_project:
82
- rubygems_version: 1.3.6
86
+ rubygems_version: 1.7.2
83
87
  signing_key:
84
88
  specification_version: 3
85
89
  summary: Provides a way to manage environment specific configuration settings.
data/.gitignore DELETED
@@ -1,2 +0,0 @@
1
- pkg
2
- *.gem