betty_resource 0.0.9 → 0.0.10

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: cfa495aa7363146a42eed8058b57cb3c6ce730b4
4
- data.tar.gz: ad3b006f15cf5825b317afe092a435913a3f0807
3
+ metadata.gz: a99e0f9122d86d44fa23ea2eff52e2e96482487a
4
+ data.tar.gz: ab481d3b4677f148cbc359f71cd119912961e3d4
5
5
  SHA512:
6
- metadata.gz: cf411c5cfe9e29b168c0043c774f353fe91a7cb75faafb3ae16935a4384593468f1bded2a8c2a274a898335840509c67fa46f8ad9a2bcdd81fd430b47dc921ce
7
- data.tar.gz: f5bb929a910371dab0c0e54e0d99cb0bd5f8236358a3c3076c21adfa567f3ebff0ea4329cc9a68a6812674acd85d220b3a46950d9705e99bd3b882e7a31fc384
6
+ metadata.gz: 25801637ce2b747faf20f263e7ec252bf3a384d5a4608411f28f906c744ea26b3e70e0ee8d158216d7e6cb4384ea115b6e198026190534734f2614f6628ca2a6
7
+ data.tar.gz: 54566dd55c8c745c3aadec88c6593369ce2836cd58cf6ab5832b2904a12a9b736cb2d60d9d6cbe8ed163de14b533e7f45f94d834d43a2ac1d42840e8ba1b58b6
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,11 @@
1
1
  = BettyResource CHANGELOG
2
2
 
3
+ === 0.0.10 / 2013-05-14
4
+
5
+ * 1 bugfix:
6
+
7
+ * Correct belongs-to properties for new records
8
+
3
9
  === 0.0.9 / 2013-05-14
4
10
 
5
11
  * 4 improvements:
@@ -14,7 +14,7 @@ module BettyResource
14
14
  end
15
15
 
16
16
  def typecast(value)
17
- if kind == "belongs_to" && id = value["id"]
17
+ if kind == "belongs_to" && id = (value && value["id"])
18
18
  model.get(id)
19
19
  else
20
20
  value
@@ -1,7 +1,7 @@
1
1
  module BettyResource
2
2
  MAJOR = 0
3
3
  MINOR = 0
4
- TINY = 9
4
+ TINY = 10
5
5
 
6
6
  VERSION = [MAJOR, MINOR, TINY].join(".")
7
7
  end
@@ -127,6 +127,8 @@ module Unit
127
127
  relations = BettyResource::Relation.all(:filters => [filter])
128
128
  assert_equal 1, relations.size
129
129
  assert_equal 1, relations[0].group.id
130
+
131
+ assert_nil BettyResource::Relation.new.group
130
132
  end
131
133
  end
132
134
 
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chiel Wester