grizzly-weibo 0.3.6 → 0.3.7
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.
- data/README.markdown +3 -0
- data/lib/grizzly.rb +1 -0
- data/lib/grizzly/errors/timeout.rb +6 -4
- data/lib/grizzly/version.rb +1 -1
- metadata +3 -3
data/README.markdown
CHANGED
|
@@ -98,6 +98,9 @@ end
|
|
|
98
98
|
### Error Handling
|
|
99
99
|
Grizzly has its own set of errors that it can throw. ```Grizzly::Errors::NoAccessToken``` is thrown when the client is created with out an access token. ```Grizzly::Errors::WeiboAPI``` is thrown when ever there is an error returned by an end point of the API. This will return both a message and a weibo error code. ```Grizzly::Errors::Timeout``` will be thrown when the Weibo API is taking too long to respond to a response. There currently is a five second limit on the request time of each request made by Grizzly. Note that when your using a cursor class described above this time out applies to each request the cursor makes not the total time that the cursor takes to build the results of a given GET from the api.
|
|
100
100
|
|
|
101
|
+
### Pull Requests
|
|
102
|
+
The changes are that what you want to do with the API is not supported. Let me know if that is the case and I will add support for anything you need to do. I will also accept any pull requests with new features included. I did not intend to release this gem full supported with each end point mapped.
|
|
103
|
+
|
|
101
104
|
### License
|
|
102
105
|
Copyright (c) 2012 Stewart Matheson
|
|
103
106
|
|
data/lib/grizzly.rb
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
module
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
module Grizzly
|
|
2
|
+
module Errors
|
|
3
|
+
class Timeout < StandardError
|
|
4
|
+
def to_s
|
|
5
|
+
"The request to the Weibo API has timed out. This was most likely caused by the Weibo API not responding to given API call in a timley fashon."
|
|
6
|
+
end
|
|
5
7
|
end
|
|
6
8
|
end
|
|
7
9
|
end
|
data/lib/grizzly/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: grizzly-weibo
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.3.
|
|
4
|
+
version: 0.3.7
|
|
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-
|
|
12
|
+
date: 2012-05-22 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: rspec
|
|
@@ -126,7 +126,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
126
126
|
version: '0'
|
|
127
127
|
segments:
|
|
128
128
|
- 0
|
|
129
|
-
hash:
|
|
129
|
+
hash: 3165468726042172570
|
|
130
130
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
131
131
|
none: false
|
|
132
132
|
requirements:
|