ritetag 0.0.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 +7 -0
- data/lib/ritetag.rb +18 -0
- metadata +47 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3f265a8f775708456d431776abe376450b5fb672
|
4
|
+
data.tar.gz: 7a02f1511aeb1ce17d6a1dc8f057ff2722e01d6b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a02631143f78c887e214f639c10fa19019d9e24c998ad4d02b105e9be60352bd285f20ea44c78fdafb7455b389ec6b37cb44d90ab3b160019a5426095da5fb46
|
7
|
+
data.tar.gz: 17a299d99e306afa8132e4a7044d94d5b2645bbbabc2d039d99f1624ed00eb2ce8ef3b62b1c477390c949d59050b95aba805b14211c21c14b9add08d6bd75237
|
data/lib/ritetag.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'oauth'
|
2
|
+
require 'json'
|
3
|
+
|
4
|
+
class RiteTag
|
5
|
+
|
6
|
+
def initialize(auth)
|
7
|
+
@auth = auth
|
8
|
+
@consumer=OAuth::Consumer.new @auth['consumer_key'], @auth['consumer_secret'], {:site=>"http://ritetag.com/api/v2"}
|
9
|
+
|
10
|
+
@access_token = OAuth::AccessToken.new(@consumer, @auth['token'], @auth['token_secret'])
|
11
|
+
end
|
12
|
+
|
13
|
+
def get(query)
|
14
|
+
json_response = @access_token.get("/ai/twitter/#{query}/").body
|
15
|
+
return JSON.parse(json_response)
|
16
|
+
end
|
17
|
+
|
18
|
+
end
|
metadata
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ritetag
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Marcus Yearwood
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2014-06-10 00:00:00.000000000 Z
|
12
|
+
dependencies: []
|
13
|
+
description: |2
|
14
|
+
This gem provides a simple interface to the RiteTag API. It handles
|
15
|
+
authentification and makes calls to the API.
|
16
|
+
email: m.yearwood@live.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- lib/ritetag.rb
|
22
|
+
homepage: https://github.com/myearwood/ritetag
|
23
|
+
licenses:
|
24
|
+
- MIT
|
25
|
+
metadata:
|
26
|
+
tags: Twitter,hashtags,RiteTag
|
27
|
+
post_install_message:
|
28
|
+
rdoc_options: []
|
29
|
+
require_paths:
|
30
|
+
- lib
|
31
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: '0'
|
36
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
requirements: []
|
42
|
+
rubyforge_project:
|
43
|
+
rubygems_version: 2.2.2
|
44
|
+
signing_key:
|
45
|
+
specification_version: 4
|
46
|
+
summary: A gem for accessing the RiteTag API
|
47
|
+
test_files: []
|