gnip_api 1.1.0 → 1.1.1
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +7 -1
- data/lib/gnip_api/adapter.rb +2 -0
- data/lib/gnip_api/errors.rb +6 -0
- data/lib/gnip_api/gnip/message.rb +4 -0
- data/lib/gnip_api/version.rb +1 -1
- data/spec/gnip_api/gnip/message_spec.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa62208071b71ee1b39f62ea2e2a1f828a1988d9
|
4
|
+
data.tar.gz: aba53bd23b19aab7e0d8093cd0d17032173956f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9b59171474daf4d71ba16aea659c2c5c86d502fd9c0c63d79489f4601e1d300ea4120f66f3aea7e6755d2c1649e584259624eec22d87fb4be90cbbf8aa3206a
|
7
|
+
data.tar.gz: 55d5b7fe81df412c02fd6f4386a692df3b381ee62ed40ecdad611efe2bf7019f26b3940208f601ff09c10299dcaa1ffd4b712fc5a37ca25565cc7e0b031f08b5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
### Important: Gnip
|
1
|
+
### Important: Gnip support for PowerTrack v1 are officially deprecated.
|
2
2
|
|
3
3
|
# GnipApi
|
4
4
|
|
@@ -59,6 +59,12 @@ Note that you'll need a source and a label. Source is the data source within Gni
|
|
59
59
|
|
60
60
|
### Search API
|
61
61
|
|
62
|
+
## Important
|
63
|
+
|
64
|
+
While using the Full Archived Histocial keep in mind Gnip seems to have some issues with their pagination on certain situations. You may face 503 errors which are unrecoverable from client side. If you come across this error please report the situationt to Gnip.
|
65
|
+
|
66
|
+
## Overview
|
67
|
+
|
62
68
|
The Search API allows you to get counts or activities in a time period, with a maximum period size of 30 days per request. PowerTrack rules are used as query parameter, but be careful **PowerTrack operators may not be supported on Search API or could behave differently**. Read the Gnip docs to make sure.
|
63
69
|
To access the Search API you will need a rule first, you can use PowerTrack Rule object for it:
|
64
70
|
|
data/lib/gnip_api/adapter.rb
CHANGED
@@ -51,6 +51,8 @@ module GnipApi
|
|
51
51
|
else
|
52
52
|
error_message = response.error_message
|
53
53
|
@logger.error "#{response.request_method} request to #{response.request_uri} returned with status #{response.status} FAIL: #{error_message}"
|
54
|
+
raise GnipApi::Errors::Adapter::GnipSoftwareError.new error_message if response.status == 503 || response.status == '503'
|
55
|
+
# raise GnipApi::Errors::Adapter::RateLimitedError.new error_message if response.status == 429
|
54
56
|
raise GnipApi::Errors::Adapter::RequestError.new error_message
|
55
57
|
end
|
56
58
|
end
|
data/lib/gnip_api/errors.rb
CHANGED
data/lib/gnip_api/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gnip_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rayko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-03-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|