mogli 0.0.24 → 0.0.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module Mogli
2
2
  class Activity < Model
3
- define_properties :name, :category, :id
3
+ define_properties :name, :category, :id, :created_time
4
4
  end
5
5
  end
data/lib/mogli/book.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  module Mogli
2
2
  class Book < Model
3
- define_properties :name, :category, :id
3
+ define_properties :name, :category, :id, :created_time
4
4
 
5
5
 
6
6
  end
@@ -1,5 +1,5 @@
1
1
  module Mogli
2
- class Model < Hashie::Dash
2
+ class Model
3
3
  module Search
4
4
  attr_reader :search_type
5
5
 
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
@@ -1,6 +1,6 @@
1
1
  module Mogli
2
2
  class Music < Model
3
- define_properties :name, :category, :id
3
+ define_properties :name, :category, :id, :created_time
4
4
 
5
5
  end
6
6
  end
data/lib/mogli/post.rb CHANGED
@@ -12,6 +12,7 @@ module Mogli
12
12
  hash_populating_accessor :actions, "Action"
13
13
  has_association :comments, "Comment"
14
14
  hash_populating_accessor :from, "User"
15
+ hash_populating_accessor :application, "Application"
15
16
 
16
17
  def likes_create
17
18
  client.post("#{id}/likes",nil,{})
data/lib/mogli/user.rb CHANGED
@@ -15,6 +15,7 @@ module Mogli
15
15
 
16
16
  hash_populating_accessor :location, "Page"
17
17
  hash_populating_accessor :hometown, "Page"
18
+ hash_populating_accessor :languages, "Page"
18
19
 
19
20
  has_association :activities, "Activity"
20
21
  has_association :friends, "User"
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: 47
4
+ hash: 45
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 24
10
- version: 0.0.24
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-01 00:00:00 -05:00
18
+ date: 2011-02-03 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency