mogli 0.0.30 → 0.0.31

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/mogli/client.rb +3 -3
  2. data/lib/mogli/post.rb +1 -0
  3. metadata +4 -4
data/lib/mogli/client.rb CHANGED
@@ -173,9 +173,9 @@ module Mogli
173
173
  f.concat(hash["data"])
174
174
  f.client = self
175
175
  f.classes = Array(klass)
176
- if hash["paging"]
177
- f.next_url = hash["paging"]["next"]
178
- f.previous_url = hash["paging"]["previous"]
176
+ if paging=hash["paging"]
177
+ f.next_url = URI.encode paging["next"] unless paging["next"].nil?
178
+ f.previous_url = URI.encode paging["previous"] unless paging["previous"].nil?
179
179
  end
180
180
  f
181
181
  end
data/lib/mogli/post.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'multi_json'
1
2
  require 'json'
2
3
 
3
4
  module Mogli
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: 35
4
+ hash: 33
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 30
10
- version: 0.0.30
9
+ - 31
10
+ version: 0.0.31
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-08-17 00:00:00 -04:00
18
+ date: 2011-08-29 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency