bcdatabase 1.0.5 → 1.0.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.markdown CHANGED
@@ -1,3 +1,7 @@
1
+ 1.0.6
2
+ =====
3
+ - Use `ENV['RAILS_ENV']` instead of the unreliable `RAILS_ENV` constant.
4
+
1
5
  1.0.5
2
6
  =====
3
7
  - Loosen highline dependency so that bcdatabase can be used in buildr buildfiles.
@@ -1,3 +1,3 @@
1
1
  module Bcdatabase
2
- VERSION = '1.0.5'
2
+ VERSION = '1.0.6'
3
3
  end
data/lib/bcdatabase.rb CHANGED
@@ -80,7 +80,7 @@ module Bcdatabase
80
80
  begin
81
81
  unseparated_yaml(n => self[groupname, dbname])
82
82
  rescue Bcdatabase::Error => e
83
- if defined?(RAILS_ENV) and RAILS_ENV == n
83
+ if ENV['RAILS_ENV'] == n
84
84
  raise e
85
85
  else
86
86
  # Not using that configuration right now, so return a dummy instead
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bcdatabase
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
5
- prerelease:
4
+ hash: 27
5
+ prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 5
10
- version: 1.0.5
9
+ - 6
10
+ version: 1.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rhett Sutphin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-21 00:00:00 -06:00
18
+ date: 2011-06-28 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -138,7 +138,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
138
138
  requirements: []
139
139
 
140
140
  rubyforge_project:
141
- rubygems_version: 1.5.2
141
+ rubygems_version: 1.3.7
142
142
  signing_key:
143
143
  specification_version: 3
144
144
  summary: Server-central database configuration for rails and other ruby apps