structure 0.17.2 → 0.17.3

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.
@@ -1,3 +1,3 @@
1
1
  class Structure
2
- VERSION = '0.17.2'
2
+ VERSION = '0.17.3'
3
3
  end
data/lib/structure.rb CHANGED
@@ -49,7 +49,7 @@ class Structure
49
49
  raise NameError, "#{name} is taken"
50
50
  end
51
51
 
52
- if default.nil? || default.is_a?(type)
52
+ if default.nil? || type.nil? || default.is_a?(type)
53
53
  defaults[name] = default
54
54
  else
55
55
  raise TypeError, "#{default} isn't a #{type}"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: structure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.2
4
+ version: 0.17.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -46,7 +46,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
46
46
  version: '0'
47
47
  segments:
48
48
  - 0
49
- hash: 1259463852739656642
49
+ hash: -1271073369301198649
50
50
  required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
@@ -55,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
55
55
  version: '0'
56
56
  segments:
57
57
  - 0
58
- hash: 1259463852739656642
58
+ hash: -1271073369301198649
59
59
  requirements: []
60
60
  rubyforge_project: structure
61
61
  rubygems_version: 1.8.6