bzsnippets 0.0.4 → 0.0.5

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.
@@ -48,7 +48,7 @@ module Bzsnippets
48
48
 
49
49
  module ClassMethods
50
50
  def env_attribute name, opts={}
51
- opts[:env] ||= lambda{(Rails.env if defined? Rails) || RAILS_ENV || "development"}
51
+ opts[:env] ||= lambda{(Rails.env if defined? Rails) || ENV["RAILS_ENV"] || "development"}
52
52
  define_method name do
53
53
  v = instance_variable_get("@#{name}")
54
54
  instance_variable_set("@#{name}", EnvProxy.new(nil, opts)) unless v
@@ -1,3 +1,3 @@
1
1
  module Bzsnippets
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bzsnippets
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-10 00:00:00.000000000 Z
12
+ date: 2013-01-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport