tweetgem 0.9.0 → 0.10.0
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/tweetgem.rb +37 -8
- metadata +6 -8
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: e052b397c49b1e8301e287570cc858754de586be
|
|
4
|
+
data.tar.gz: e15747894e84aa09ed08c4429fa53c10cf598851
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: 3fc2ef0cb3c878d3216e4672786a5e78e6420afe081636174ffd3502efdc1ec61df22fcc8ee43086bcf98a481b46f69a884dc0987e62449682317c9e7a337188
|
|
7
|
+
data.tar.gz: 6cede84f71cc30d1f11550ac33e68d00396b001b0271973509bf2f38442336fba9e1e40fc43283ed3fd35fa21ba8e67298453ccba2136f06c158ecead7030bd2
|
data/lib/tweetgem.rb
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
require_relative "./auth/appauth"
|
|
2
2
|
|
|
3
3
|
class TweetApi
|
|
4
|
-
|
|
4
|
+
|
|
5
5
|
attr_reader :me, :newest_followers, :newest_friends
|
|
6
|
-
|
|
6
|
+
|
|
7
7
|
def initialize(username,token = nil)
|
|
8
8
|
token ||= AppAuth::init
|
|
9
9
|
@bearer = token
|
|
@@ -12,24 +12,53 @@ class TweetApi
|
|
|
12
12
|
@newest_followers = AppAuth::user_newest_followers(@bearer,username)
|
|
13
13
|
@newest_friends = AppAuth::user_newest_friends(@bearer,username)
|
|
14
14
|
end
|
|
15
|
-
|
|
15
|
+
|
|
16
|
+
def user_show(username = nil,gist = true)
|
|
17
|
+
username ||= @screen_name
|
|
18
|
+
return AppAuth::user_show(@bearer,username,gist)
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
def timeline(username = nil, count = 10)
|
|
22
|
+
username ||= @screen_name
|
|
23
|
+
return AppAuth::user_timeline(@bearer,username,count)
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def get_newest_followers(username = nil,gist = true)
|
|
27
|
+
username ||= @screen_name
|
|
28
|
+
return AppAuth::user_newest_followers(@bearer,username,gist)
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def get_newest_friends(username = nil,gist = true)
|
|
32
|
+
username ||= @screen_name
|
|
33
|
+
return AppAuth::user_newest_friends(@bearer,username,gist)
|
|
34
|
+
end
|
|
35
|
+
|
|
16
36
|
def lists(username = nil,ownership_first = false)
|
|
17
37
|
username ||= @screen_name
|
|
18
38
|
return AppAuth::lists(@bearer,username,ownership_first)
|
|
19
39
|
end
|
|
20
|
-
|
|
40
|
+
|
|
21
41
|
def lists_owner(username = nil,count = 30)
|
|
22
42
|
username ||= @screen_name
|
|
23
43
|
return AppAuth::lists_owner(@bearer,username,count)
|
|
24
44
|
end
|
|
25
|
-
|
|
45
|
+
|
|
26
46
|
def lists_subscription(username = nil,count = 30)
|
|
27
47
|
username ||= @screen_name
|
|
28
48
|
return AppAuth::lists_subscription(@bearer,username,count)
|
|
29
49
|
end
|
|
30
|
-
|
|
50
|
+
|
|
51
|
+
def list_recent_favourites(username = nil,count = 30)
|
|
52
|
+
username ||= @screen_name
|
|
53
|
+
return AppAuth::list_recent_favourites(@bearer,username,count)
|
|
54
|
+
end
|
|
55
|
+
|
|
31
56
|
def global_trend()
|
|
32
57
|
return AppAuth::global_trend(@bearer)
|
|
33
58
|
end
|
|
34
|
-
|
|
35
|
-
|
|
59
|
+
|
|
60
|
+
def search(hashtag)
|
|
61
|
+
return AppAuth::cus_search(@bearer, hashtag)
|
|
62
|
+
end
|
|
63
|
+
|
|
64
|
+
end
|
metadata
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: tweetgem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
5
|
-
prerelease:
|
|
4
|
+
version: 0.10.0
|
|
6
5
|
platform: ruby
|
|
7
6
|
authors:
|
|
8
7
|
- Mayank Badola
|
|
@@ -21,26 +20,25 @@ files:
|
|
|
21
20
|
homepage: https://github.com/mbad0la/TweetGem
|
|
22
21
|
licenses:
|
|
23
22
|
- MIT
|
|
23
|
+
metadata: {}
|
|
24
24
|
post_install_message:
|
|
25
25
|
rdoc_options: []
|
|
26
26
|
require_paths:
|
|
27
27
|
- lib
|
|
28
28
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
29
|
-
none: false
|
|
30
29
|
requirements:
|
|
31
|
-
- -
|
|
30
|
+
- - ">="
|
|
32
31
|
- !ruby/object:Gem::Version
|
|
33
32
|
version: '0'
|
|
34
33
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
35
|
-
none: false
|
|
36
34
|
requirements:
|
|
37
|
-
- -
|
|
35
|
+
- - ">="
|
|
38
36
|
- !ruby/object:Gem::Version
|
|
39
37
|
version: '0'
|
|
40
38
|
requirements: []
|
|
41
39
|
rubyforge_project:
|
|
42
|
-
rubygems_version:
|
|
40
|
+
rubygems_version: 2.4.6
|
|
43
41
|
signing_key:
|
|
44
|
-
specification_version:
|
|
42
|
+
specification_version: 4
|
|
45
43
|
summary: Ruby wrapper for Twitter API
|
|
46
44
|
test_files: []
|