mongoid_nested_fields 0.1.2 → 0.1.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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
@@ -11,7 +11,7 @@ module MongoidNestedFields
11
11
 
12
12
  set_validations
13
13
  set_field_options(name, options)
14
- set_allowed_types_in_field(name, options.delete(:allowed_types))
14
+ set_allowed_types_in_field(name, options[:allowed_types])
15
15
 
16
16
  define_method("#{name}=") do |value|
17
17
  raise TypeError unless [String, Array].include?(value.class)
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{mongoid_nested_fields}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["retro"]
@@ -201,7 +201,7 @@ class TestMongoidNestedFields < Test::Unit::TestCase
201
201
  assert_equal field_options, {
202
202
  :title => {:custom_option => 'custom'},
203
203
  :paragraph => {},
204
- :test_hash => {:nested => true}
204
+ :test_hash => {:nested => true, :allowed_types => [Hash]}
205
205
  }
206
206
  end
207
207
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - retro
@@ -218,7 +218,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
218
218
  requirements:
219
219
  - - ">="
220
220
  - !ruby/object:Gem::Version
221
- hash: -3846493665174645855
221
+ hash: 1384202810899061606
222
222
  segments:
223
223
  - 0
224
224
  version: "0"