mogli 0.0.12 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. data/lib/mogli/client.rb +1 -1
  2. data/lib/mogli/post.rb +3 -3
  3. metadata +2 -2
data/lib/mogli/client.rb CHANGED
@@ -102,7 +102,7 @@ module Mogli
102
102
  end
103
103
 
104
104
  def create_instance(klass,data)
105
- klass_to_create = determine_class(data["type"]||klass,data)
105
+ klass_to_create = determine_class(klass,data)
106
106
  if klass_to_create.nil?
107
107
  raise UnrecognizeableClassError.new("unable to recognize klass for #{klass.inspect} => #{data.inspect}")
108
108
  end
data/lib/mogli/post.rb CHANGED
@@ -3,9 +3,9 @@ module Mogli
3
3
 
4
4
  define_properties :id, :to, :message, :picture, :link, :name, :caption,
5
5
  :description, :source, :icon, :attribution, :actions, :likes,
6
- :created_time, :updated_time, :privacy
6
+ :created_time, :updated_time, :privacy, :type
7
7
 
8
- creation_properties :message, :picture, :link, :name, :description
8
+ creation_properties :message, :picture, :link, :name, :description, :caption, :source
9
9
 
10
10
  hash_populating_accessor :actions, "Action"
11
11
  hash_populating_accessor :comments, "Comment"
@@ -15,4 +15,4 @@ module Mogli
15
15
  client.post("#{id}/likes",nil,{})
16
16
  end
17
17
  end
18
- end
18
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mogli
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
  - Mike Mangino
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-07-21 00:00:00 -04:00
12
+ date: 2010-07-26 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency