betty_resource 0.0.12 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.rdoc +6 -0
- data/lib/betty_resource/model/record.rb +2 -5
- data/lib/betty_resource/version.rb +1 -1
- data/test/unit/model/test_record.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3419f4f10757834dfcdd7c5c5ff8be658f581812
|
4
|
+
data.tar.gz: e423740a5b9710b1bf01f056898c9671db454b93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 91d74a552ac48b8858061a7bd566a7c86a965a94c57381d98669c6b1ad5e87588666f4964f628360430379b6ce94d9b2c097c1335fae290c1de9af50c4c9b481
|
7
|
+
data.tar.gz: 094d06fde8b922c2d973b3f1adb2b4b1aaa3be9f04c2cb3ee6d292ef4c05ac65e71814b0ba4ac949f1fe746debd1fa84398056e7b3d3a95ec1d5b7e579f82e05
|
data/CHANGELOG.rdoc
CHANGED
@@ -12,11 +12,8 @@ class DirtyHashy < HashWithIndifferentAccess
|
|
12
12
|
end
|
13
13
|
|
14
14
|
def set_typecasted(key, value)
|
15
|
-
if @model
|
16
|
-
|
17
|
-
else
|
18
|
-
value
|
19
|
-
end
|
15
|
+
value = @model.typecast(key, value) if @model
|
16
|
+
instance_variable_set("@typecasted_#{key}", value)
|
20
17
|
end
|
21
18
|
|
22
19
|
end
|
@@ -136,6 +136,7 @@ module Unit
|
|
136
136
|
relations = BettyResource::Relation.all(:filters => [filter])
|
137
137
|
assert_equal 1, relations.size
|
138
138
|
assert_equal 1, relations[0].group.id
|
139
|
+
assert relations[0].group.object_id == relations[0].group.object_id
|
139
140
|
|
140
141
|
assert_nil BettyResource::Relation.new.group
|
141
142
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: betty_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.13
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chiel Wester
|
@@ -11,7 +11,7 @@ authors:
|
|
11
11
|
autorequire:
|
12
12
|
bindir: bin
|
13
13
|
cert_chain: []
|
14
|
-
date: 2013-10-
|
14
|
+
date: 2013-10-02 00:00:00.000000000 Z
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|
17
17
|
name: httparty
|