ginjo-rfm 3.0.6 → 3.0.7
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 +8 -8
- data/CHANGELOG.md +13 -0
- data/lib/rfm/VERSION +1 -1
- data/lib/rfm/record.rb +4 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzYwZGY1MDliMjZkM2U5NTBhZTQ0YjRiYWU2ZWFkYmQ1ZGM0MmE3Zg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NDZkOTg4ODU2OGExYTc1M2QwMDA1ZjQxZjhmZDg4ZTgyNzgwMjJhOQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MGM4YzRjMjMzMmUwNzM2YjliNzQ5OGI1OGI0NGYxZGU1M2FiOGY5MDdkOGQ5
|
10
|
+
OGRiYTU0MmRhNDQzZjA5ZTU0ZjA5ODM3ZjA5MzM5YmRmNGQwZTBkYTVjMDc4
|
11
|
+
MmQyYmFjNGRmYTlhZGM1YzFhYmRiOWRkODM4ZWUxNTZlNDdkY2I=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWJmM2RiNDZjMjhjZmM5ODRjYTc1YWE2MDg4MTY4MzNkZWFkMDkxZTIyMTk0
|
14
|
+
ZDI0MzEzZDAxMDM1NDY0YmY5YjZlOTk3NGNlY2FiNWM0ZWIwZjFjODEyNmNi
|
15
|
+
ZjJmODc4NDU0YzEzYjFiZWUyYzcyMjVjMTRlYzY3M2UxZDYyYjg=
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,18 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## Ginjo-Rfm 3.0.7
|
4
|
+
|
5
|
+
* Changed record creation so that generic records created from non-modelized layouts will be instances of Rfm::Record, instead of instances of a transient model class based on the layout. Transient model classes will foul up serialization and any number of other things. Records created from a user-defined model class will continue to be instances of the model class.
|
6
|
+
|
7
|
+
my_layout.find(12345).class == Rfm::Record
|
8
|
+
MyModel.find(12345).class == MyModel
|
9
|
+
|
10
|
+
|
11
|
+
## Ginjo-Rfm 3.0.6
|
12
|
+
|
13
|
+
* Fixed duplicate portal-name merging, added specs to test this.
|
14
|
+
* Minor updates to gem maintenance & release tools.
|
15
|
+
|
3
16
|
## Ginjo-Rfm 3.0.5
|
4
17
|
|
5
18
|
* Fixed parser handling of `<field>` element that's missing a `<data>` element.
|
data/lib/rfm/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.
|
1
|
+
3.0.7
|
data/lib/rfm/record.rb
CHANGED
@@ -118,9 +118,11 @@ module Rfm
|
|
118
118
|
record = case
|
119
119
|
|
120
120
|
# Get model from layout, then allocate record.
|
121
|
-
|
121
|
+
# This should only use model class if the class already exists,
|
122
|
+
# since we don't want to create classes that aren't defined by the user - they won't be persistant.
|
123
|
+
when args[0].is_a?(Resultset) && args[0].layout && args[0].layout.model
|
122
124
|
args[0].layout.modelize.allocate
|
123
|
-
|
125
|
+
|
124
126
|
# Allocate instance of Rfm::Record.
|
125
127
|
else
|
126
128
|
self.allocate
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ginjo-rfm
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Geoff Coffey
|
@@ -12,7 +12,7 @@ authors:
|
|
12
12
|
autorequire:
|
13
13
|
bindir: bin
|
14
14
|
cert_chain: []
|
15
|
-
date: 2014-09-
|
15
|
+
date: 2014-09-25 00:00:00.000000000 Z
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|
18
18
|
name: activemodel
|