gnip-tools 0.0.2
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 +7 -0
- data/lib/gnip-tools.rb +6 -0
- data/lib/gnip-tools/api.rb +7 -0
- data/lib/gnip-tools/client.rb +14 -0
- data/lib/gnip-tools/error.rb +14 -0
- data/lib/gnip-tools/search.rb +11 -0
- metadata +63 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 055bcc3c9c6e7e5095561fe9e7a8e010d96b58d3
|
4
|
+
data.tar.gz: f4fdbaa189961b6b6f7cd007a4815a4275a1b640
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 9f14af9d807bffc8920b41ca75c8d6653d16eab3b93d195b03ae1aa0c4168e76dc252edde0987f15fedf64bb6ce9275f084ece6e7c7d966e6e7548dcb65290a6
|
7
|
+
data.tar.gz: 5a889de6b93ec08d01c4b48a09de61cecffa6b750edd036cd9da834af88b2bdc12c6e5034329861c44d103cee74eaeeb9d9d47f923d809803fcc96c4db655548
|
data/lib/gnip-tools.rb
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
require "rest-client"
|
2
|
+
module GnipTools
|
3
|
+
module Search
|
4
|
+
def search_30_day(url, query)
|
5
|
+
response = RestClient::Request.execute(method: :get, url: url, user: @username, password: @password,
|
6
|
+
headers: { params: query })
|
7
|
+
|
8
|
+
JSON.parse(response)
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: gnip-tools
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Justin Moulton
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-07 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rest-client
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.8.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.8.0
|
27
|
+
description: ''
|
28
|
+
email: moultonjust@gmail.com
|
29
|
+
executables: []
|
30
|
+
extensions: []
|
31
|
+
extra_rdoc_files: []
|
32
|
+
files:
|
33
|
+
- lib/gnip-tools.rb
|
34
|
+
- lib/gnip-tools/api.rb
|
35
|
+
- lib/gnip-tools/client.rb
|
36
|
+
- lib/gnip-tools/error.rb
|
37
|
+
- lib/gnip-tools/search.rb
|
38
|
+
homepage: https://github.com/jmoulton/gnip-tools
|
39
|
+
licenses:
|
40
|
+
- Justin Moulton
|
41
|
+
metadata: {}
|
42
|
+
post_install_message:
|
43
|
+
rdoc_options: []
|
44
|
+
require_paths:
|
45
|
+
- lib
|
46
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
47
|
+
requirements:
|
48
|
+
- - ">="
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
version: '0'
|
51
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
52
|
+
requirements:
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: '0'
|
56
|
+
requirements: []
|
57
|
+
rubyforge_project:
|
58
|
+
rubygems_version: 2.4.5.1
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
61
|
+
summary: GNIP API Support!
|
62
|
+
test_files: []
|
63
|
+
has_rdoc:
|