panda 1.6.0 → 1.6.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -20,9 +20,13 @@ Panda gem provides an interface to access the [Panda](http://pandastream.com) AP
20
20
  You can just set the default Panda adapter if you are not happy with the current one.
21
21
 
22
22
  Panda.default_adapter = :excon
23
-
23
+
24
+ For rails 4, try the net_http adapter. This fixes disable_ssl_peer_verification related errors caused by the default adapter.
25
+
26
+ Panda.default_adapter = :net_http
27
+
24
28
  ### Creating an instance of the client
25
-
29
+
26
30
  Panda.configure do
27
31
  access_key "panda_access_key"
28
32
  secret_key "panda_secret_key"
@@ -153,6 +157,8 @@ The name of the profile can be found in your [Panda account](http://pandastream.
153
157
  videos = Panda::Video.all(:page => 2, :per_page => 20)
154
158
  videos.size
155
159
  => 20
160
+
161
+ Note: maximum :per_page is 100.
156
162
 
157
163
  ##### Find all success videos
158
164
 
@@ -59,7 +59,7 @@ module Panda
59
59
  def rescue_json_parsing(&block)
60
60
  begin
61
61
  data = yield
62
- MultiJson.load(data)
62
+ MultiJson.load(data) if data and data != ""
63
63
  rescue MultiJson::DecodeError
64
64
  raise ServiceNotAvailable, data
65
65
  end
@@ -1,3 +1,3 @@
1
1
  module Panda
2
- VERSION = "1.6.0"
2
+ VERSION = "1.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: panda
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.6.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-03 00:00:00.000000000 Z
12
+ date: 2014-04-02 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ruby-hmac
@@ -185,21 +185,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
185
185
  - - ! '>='
186
186
  - !ruby/object:Gem::Version
187
187
  version: '0'
188
- segments:
189
- - 0
190
- hash: -2129573717660849291
191
188
  required_rubygems_version: !ruby/object:Gem::Requirement
192
189
  none: false
193
190
  requirements:
194
191
  - - ! '>='
195
192
  - !ruby/object:Gem::Version
196
193
  version: '0'
197
- segments:
198
- - 0
199
- hash: -2129573717660849291
200
194
  requirements: []
201
195
  rubyforge_project: panda
202
- rubygems_version: 1.8.24
196
+ rubygems_version: 1.8.23
203
197
  signing_key:
204
198
  specification_version: 3
205
199
  summary: Panda Client