mogli 0.0.24 → 0.0.25
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/mogli/activity.rb +1 -1
- data/lib/mogli/book.rb +1 -1
- data/lib/mogli/model/search.rb +1 -1
- data/lib/mogli/model.rb +5 -0
- data/lib/mogli/music.rb +1 -1
- data/lib/mogli/post.rb +1 -0
- data/lib/mogli/user.rb +1 -0
- metadata +4 -4
data/lib/mogli/activity.rb
CHANGED
data/lib/mogli/book.rb
CHANGED
data/lib/mogli/model/search.rb
CHANGED
data/lib/mogli/model.rb
CHANGED
@@ -134,6 +134,11 @@ module Mogli
|
|
134
134
|
raise ArgumentError.new("You cannot fetch models without a populated id attribute") if id.nil?
|
135
135
|
other = self.class.find(id,client)
|
136
136
|
merge!(other) if other
|
137
|
+
self
|
138
|
+
end
|
139
|
+
|
140
|
+
def ==(other)
|
141
|
+
other.is_a?(Model) and self.id == other.id
|
137
142
|
end
|
138
143
|
|
139
144
|
def merge!(other)
|
data/lib/mogli/music.rb
CHANGED
data/lib/mogli/post.rb
CHANGED
data/lib/mogli/user.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mogli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 45
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 25
|
10
|
+
version: 0.0.25
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Mike Mangino
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-02-
|
18
|
+
date: 2011-02-03 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|