form_obj 1.0.2 → 1.0.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 52a8db57a0aa766bd26bfbc373628fc03bfb3ad1ec6af8632d2dda7794023f7f
4
- data.tar.gz: 936150e73db9a6a1112697fedc9dffe8349e3436f38b162c3af7264109eadac4
3
+ metadata.gz: 0dfd55ec0cafcf6ed8223e4103802216ffaf43c97e1cc22b4d7ddd790cafba3e
4
+ data.tar.gz: d29c7baa9a80f3207dd9efb6049689b6fda51330a2c93169b47baab956a428a3
5
5
  SHA512:
6
- metadata.gz: 79007cdba40e1c96af3bf4e35eb58b674d34d1b6e1097fbb83a2d3cdad2b71c0c63f490731943ceb2049cbe762ddbc46ea5f3724bde706dbfcffda98a02e82f1
7
- data.tar.gz: b8dc843ea727770b48519ac9734f83d370b8032270b3e1ee223d289816ddc4fca97fe3d4d8e79da41503f92858296f06f54eadb26878c480435979f8f0ef236e
6
+ metadata.gz: 2d4f0eeb30f7543a34db70cbf4f373b9eb9ec7d5a1e7af57c4ca79589af6e88a88ca1282866e5d8f6fdec69dcedc767b55ed6ffe18b23b1a734abf2210a55771
7
+ data.tar.gz: 6e95534b0846f9d14839386aea8037f87d74547b5caa28cc3cc78c042f6d0d5e19200bbba8c1e1d58ae67fd79db9e0ebe3ca2ddc6059e14f688b3bd03f80f366
@@ -1,7 +1,14 @@
1
1
  # Change Log
2
2
 
3
- ## [v1.0.2](https://github.com/akoltun/form_obj/tree/v1.0.2) (2018-08-14)
3
+ ## [v1.0.3](https://github.com/akoltun/form_obj/tree/v1.0.3) (2018-10-02)
4
+
5
+ [Full Changelog](https://github.com/akoltun/form_obj/compare/v1.0.2...v1.0.3)
6
+
7
+ **Merged pull requests:**
8
+
9
+ - Bugfix assigning subform [\#67](https://github.com/akoltun/form_obj/pull/67) ([akoltun](https://github.com/akoltun))
4
10
 
11
+ ## [v1.0.2](https://github.com/akoltun/form_obj/tree/v1.0.2) (2018-08-14)
5
12
  [Full Changelog](https://github.com/akoltun/form_obj/compare/v1.0.1...v1.0.2)
6
13
 
7
14
  **Closed issues:**
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- form_obj (1.0.2)
4
+ form_obj (1.0.3)
5
5
  activemodel (>= 3.2)
6
6
  activesupport (>= 3.2)
7
7
  typed_array (>= 1.0.2)
@@ -80,7 +80,7 @@ module FormObj
80
80
  if attr.nil?
81
81
  raise UnknownAttributeError.new(attr_name) if raise_if_not_found
82
82
  else
83
- if attr.subform?
83
+ if attr.subform? && !attr_value.is_a?(FormObj::Struct)
84
84
  read_attribute(attr).update_attributes(attr_value, raise_if_not_found: raise_if_not_found)
85
85
  else
86
86
  update_attribute(attr, attr_value)
@@ -1,3 +1,3 @@
1
1
  module FormObj
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: form_obj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Koltun
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-08-14 00:00:00.000000000 Z
11
+ date: 2018-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typed_array
@@ -192,7 +192,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
192
192
  version: '0'
193
193
  requirements: []
194
194
  rubyforge_project:
195
- rubygems_version: 2.7.7
195
+ rubygems_version: 2.7.6
196
196
  signing_key:
197
197
  specification_version: 4
198
198
  summary: Simple but powerful form object compatible with Rails form builders.