rails_current 1.4.0 → 1.4.1

Sign up to get free protection for your applications and to get access to all the features.
data/lib/rails_current.rb CHANGED
@@ -4,7 +4,7 @@ require 'map'
4
4
 
5
5
  module Current
6
6
  def Current.version
7
- '1.4.0'
7
+ '1.4.1'
8
8
  end
9
9
 
10
10
  def Current.data
@@ -62,7 +62,7 @@ module Current
62
62
  unless respond_to?(name)
63
63
  singleton_class.module_eval do
64
64
  define_method(name) do
65
- if data.has_key?(name)
65
+ if data.has_key?(name) and !data[name].nil?
66
66
  data[name]
67
67
  else
68
68
  if generator = generators[name]
@@ -3,7 +3,7 @@
3
3
 
4
4
  Gem::Specification::new do |spec|
5
5
  spec.name = "rails_current"
6
- spec.version = "1.4.0"
6
+ spec.version = "1.4.1"
7
7
  spec.platform = Gem::Platform::RUBY
8
8
  spec.summary = "rails_current"
9
9
  spec.description = "description: rails_current kicks the ass"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_current
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.0
4
+ version: 1.4.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: