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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6207a8a7b023f1062a2b9a7e8cfd6bc0ab5890ec
4
- data.tar.gz: d3733f430d5c0eb72a65f7f2866f11577d4c7e58
3
+ metadata.gz: 3419f4f10757834dfcdd7c5c5ff8be658f581812
4
+ data.tar.gz: e423740a5b9710b1bf01f056898c9671db454b93
5
5
  SHA512:
6
- metadata.gz: 79870dfe0d30d3769794dadabf4c7bb91d0d11575ca149212963ec14d63a06a4e26f2d97a683aa9cd7f85f69decf6934efc24e0bf51cc953f4012b9dc647340f
7
- data.tar.gz: 72b2dac0746261f67254455cd777643949e402b653d5b33a6354ecffc32b48f14730c6a1d3dbdbd15ae4ac7dfed68789d30a73b55aea51fdd6af92bf97ccb7a8
6
+ metadata.gz: 91d74a552ac48b8858061a7bd566a7c86a965a94c57381d98669c6b1ad5e87588666f4964f628360430379b6ce94d9b2c097c1335fae290c1de9af50c4c9b481
7
+ data.tar.gz: 094d06fde8b922c2d973b3f1adb2b4b1aaa3be9f04c2cb3ee6d292ef4c05ac65e71814b0ba4ac949f1fe746debd1fa84398056e7b3d3a95ec1d5b7e579f82e05
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,11 @@
1
1
  = BettyResource CHANGELOG
2
2
 
3
+ === 0.0.13 / 2013-10-02
4
+
5
+ * 1 improvement:
6
+
7
+ * Memoizing belongs_to variables
8
+
3
9
  === 0.0.12 / 2013-10-01
4
10
 
5
11
  * 1 adjustment:
@@ -12,11 +12,8 @@ class DirtyHashy < HashWithIndifferentAccess
12
12
  end
13
13
 
14
14
  def set_typecasted(key, value)
15
- if @model
16
- @model.typecast(key, value)
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
@@ -1,7 +1,7 @@
1
1
  module BettyResource
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- TINY = 12
4
+ TINY = 13
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  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.12
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-01 00:00:00.000000000 Z
14
+ date: 2013-10-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: httparty