pupil 0.6.2 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -3
- data/bin/eyedrops +16 -23
- data/bin/pupil +7 -0
- data/lib/pupil.rb +2 -1
- data/lib/pupil/base.rb +2 -2
- data/lib/pupil/cli.rb +12 -0
- data/lib/pupil/direct_messages.rb +3 -3
- data/lib/pupil/friendships.rb +9 -9
- data/lib/pupil/general.rb +2 -2
- data/lib/pupil/help.rb +1 -1
- data/lib/pupil/lists.rb +3 -3
- data/lib/pupil/users.rb +2 -2
- data/lib/pupil/version.rb +1 -1
- data/pupil.gemspec +1 -0
- data/spec/pupil_spec.rb +9 -71
- metadata +36 -33
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 563a43e46ef9e6eb1ca21c18f9f013b1b7a381e3
|
4
|
+
data.tar.gz: d18223c01429ae623174b9c634f64bba6d7100e0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: aa39e39dfd5ac39033fe794cd3952a0c21157daed8a7a1473dc2482818ca77809baf9bbcf852df6ab23001f4ca65a40a8c400f6408f048da4ba0628cd40141ca
|
7
|
+
data.tar.gz: 4153554e166dbb3368ef5711c34a62dd95ee2fb164c1b70b9cba66bc6524658a9bd11ccd780be753cd6cdcbae83aaab3a1f3bdd9ebf42efa93ebc32e2832b314
|
data/.gitignore
CHANGED
@@ -1,9 +1,7 @@
|
|
1
1
|
*.gem
|
2
2
|
*.rbc
|
3
|
-
.bundle
|
4
3
|
.config
|
5
4
|
.yardoc
|
6
|
-
.DS_Store
|
7
5
|
*.tmproj
|
8
6
|
tmtags
|
9
7
|
Gemfile.lock
|
@@ -17,4 +15,12 @@ rdoc
|
|
17
15
|
spec/reports
|
18
16
|
spec/keys/pupil_testkey.rb
|
19
17
|
test/
|
20
|
-
tmp
|
18
|
+
tmp/
|
19
|
+
|
20
|
+
# bundler
|
21
|
+
/vendor/bundle
|
22
|
+
.bundle
|
23
|
+
|
24
|
+
# OS specific
|
25
|
+
.DS_Store
|
26
|
+
Thumbs.db
|
data/bin/eyedrops
CHANGED
@@ -7,16 +7,9 @@ require "yaml"
|
|
7
7
|
require "fileutils"
|
8
8
|
require "readline"
|
9
9
|
require "optparse"
|
10
|
-
require "pp"
|
11
|
-
|
12
|
-
class String
|
13
|
-
def undent
|
14
|
-
gsub /^.{#{slice(/^ +/).length}}/, ''
|
15
|
-
end
|
16
|
-
end
|
17
10
|
|
18
11
|
class Eyedrops
|
19
|
-
VERSION = "1.
|
12
|
+
VERSION = "1.1"
|
20
13
|
end
|
21
14
|
|
22
15
|
class Credentials
|
@@ -42,21 +35,21 @@ class Credentials
|
|
42
35
|
end
|
43
36
|
|
44
37
|
def display_help
|
45
|
-
puts <<-EOD
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
38
|
+
puts <<-EOD
|
39
|
+
Usage: eyedrops [OPTIONS]
|
40
|
+
|
41
|
+
eyedrops> twitter #=> Prepared Pupil instance
|
42
|
+
|
43
|
+
options:
|
44
|
+
-i, --inspect\tDisplay inspected results
|
45
|
+
-a name, --account name\tSign-in account name
|
46
|
+
-h, --help\tShow help
|
47
|
+
-v, --version\tShow version
|
48
|
+
|
49
|
+
eyedrops commands:
|
50
|
+
help\tShow help
|
51
|
+
quit\tExit eyedrops
|
52
|
+
show-account\tDisplay active account
|
60
53
|
EOD
|
61
54
|
end
|
62
55
|
|
data/bin/pupil
ADDED
data/lib/pupil.rb
CHANGED
data/lib/pupil/base.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require "rubygems"
|
1
|
+
require "rubygems" if RUBY_VERSION < "1.9.0"
|
2
2
|
require "net/http"
|
3
3
|
require "uri"
|
4
4
|
require "oauth"
|
@@ -8,7 +8,7 @@ class Pupil
|
|
8
8
|
attr_reader :screen_name
|
9
9
|
class NetworkError < StandardError ; end
|
10
10
|
|
11
|
-
TWITTER_API_URL = "
|
11
|
+
TWITTER_API_URL = "https://api.twitter.com"
|
12
12
|
|
13
13
|
# @param [Hash] pupil_key
|
14
14
|
def initialize key
|
data/lib/pupil/cli.rb
ADDED
@@ -3,7 +3,7 @@ class Pupil
|
|
3
3
|
# @param [Hash] param
|
4
4
|
# @return [Hash] directmessages
|
5
5
|
def direct_messages(param = {})
|
6
|
-
response = self.get("/1/direct_messages.json", param)
|
6
|
+
response = self.get("/1.1/direct_messages.json", param)
|
7
7
|
return false unless response
|
8
8
|
directmessages = Array.new
|
9
9
|
response.each do |element|
|
@@ -18,7 +18,7 @@ class Pupil
|
|
18
18
|
# @param [Hash] param
|
19
19
|
# @return [Hash] directmessage you sent
|
20
20
|
def sent_direct_messages(param = {})
|
21
|
-
response = self.get("/1/direct_messages/sent.json", param)
|
21
|
+
response = self.get("/1.1/direct_messages/sent.json", param)
|
22
22
|
return false unless response
|
23
23
|
directmessages = Array.new
|
24
24
|
response.each do |element|
|
@@ -31,7 +31,7 @@ class Pupil
|
|
31
31
|
|
32
32
|
def send_direct_message(sentence, opts)
|
33
33
|
raise ArgumentError, ":to parameter not given" unless opts[:to]
|
34
|
-
response = self.post("/1/direct_messages/new.json", {:text => sentence, guess_parameter(opts[:to]) => opts[:to]})
|
34
|
+
response = self.post("/1.1/direct_messages/new.json", {:text => sentence, guess_parameter(opts[:to]) => opts[:to]})
|
35
35
|
return false unless response
|
36
36
|
response
|
37
37
|
end
|
data/lib/pupil/friendships.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
class Pupil
|
2
2
|
def friends_ids(name=@screen_name)
|
3
3
|
name ||= self.profile.screen_name
|
4
|
-
response = self.get("/1/friends/ids.json", {guess_parameter(name) => name})
|
4
|
+
response = self.get("/1.1/friends/ids.json", {guess_parameter(name) => name})
|
5
5
|
return false unless response
|
6
6
|
ids = []
|
7
7
|
response["ids"].each do |element|
|
@@ -23,7 +23,7 @@ class Pupil
|
|
23
23
|
|
24
24
|
def followers_ids(name=@screen_name)
|
25
25
|
name ||= self.profile.screen_name
|
26
|
-
response = self.get("/1/followers/ids.json", {guess_parameter(name) => name})
|
26
|
+
response = self.get("/1.1/followers/ids.json", {guess_parameter(name) => name})
|
27
27
|
return false unless response
|
28
28
|
ids = []
|
29
29
|
response["ids"].each do |element|
|
@@ -40,13 +40,13 @@ class Pupil
|
|
40
40
|
end
|
41
41
|
|
42
42
|
def no_retweet_ids()
|
43
|
-
response = self.get("/1/friendships/no_retweet_ids.json")
|
43
|
+
response = self.get("/1.1/friendships/no_retweet_ids.json")
|
44
44
|
return false unless response
|
45
45
|
return response
|
46
46
|
end
|
47
47
|
|
48
48
|
def outgoing(param={})
|
49
|
-
response = self.get("/1/friendships/outgoing.json")
|
49
|
+
response = self.get("/1.1/friendships/outgoing.json")
|
50
50
|
return false unless response
|
51
51
|
ids = []
|
52
52
|
response["ids"].each do |element|
|
@@ -56,7 +56,7 @@ class Pupil
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def incoming(param={})
|
59
|
-
response = self.get("/1/friendships/incoming.json")
|
59
|
+
response = self.get("/1.1/friendships/incoming.json")
|
60
60
|
return false unless response
|
61
61
|
ids = []
|
62
62
|
response["ids"].each do |element|
|
@@ -71,7 +71,7 @@ class Pupil
|
|
71
71
|
# @return [Boolean] return true if paired users have friendship, or ruturn false
|
72
72
|
def friendship?(src, dst)
|
73
73
|
param = {"source_#{guess_parameter(src)}" => src, "target_#{guess_parameter(dst)}" => dst}
|
74
|
-
response = self.get("/1/friendships/show.json", param)
|
74
|
+
response = self.get("/1.1/friendships/show.json", param)
|
75
75
|
return nil unless response
|
76
76
|
if response["relationship"]["source"]["following"] == true && response["relationship"]["target"]["following"] == true then
|
77
77
|
return true
|
@@ -85,7 +85,7 @@ class Pupil
|
|
85
85
|
alias_method "friendships_exists?", "friendship?"
|
86
86
|
|
87
87
|
def update_friendships(target, param)
|
88
|
-
response = self.post("/1/friendships/update.json", param)
|
88
|
+
response = self.post("/1.1/friendships/update.json", param)
|
89
89
|
return false unless response
|
90
90
|
return response
|
91
91
|
end
|
@@ -94,7 +94,7 @@ class Pupil
|
|
94
94
|
# @param [String] name screen_name
|
95
95
|
# @return [Hash] response
|
96
96
|
def follow(param)
|
97
|
-
response = self.post("/1/friendships/create.json", {guess_parameter(param) => param})
|
97
|
+
response = self.post("/1.1/friendships/create.json", {guess_parameter(param) => param})
|
98
98
|
return false unless response
|
99
99
|
User.new(response, @access_token)
|
100
100
|
end
|
@@ -103,7 +103,7 @@ class Pupil
|
|
103
103
|
# @param [String] name screen_name
|
104
104
|
# @return [Hash] response
|
105
105
|
def unfollow(param)
|
106
|
-
response = self.post("/1/friendships/destroy.json", {guess_parameter(param) => param})
|
106
|
+
response = self.post("/1.1/friendships/destroy.json", {guess_parameter(param) => param})
|
107
107
|
return false unless response
|
108
108
|
User.new response
|
109
109
|
end
|
data/lib/pupil/general.rb
CHANGED
@@ -5,7 +5,7 @@ class Pupil
|
|
5
5
|
when :users
|
6
6
|
users = Array.new
|
7
7
|
source.each_slice(100) do |sliced|
|
8
|
-
response = self.get("/1/users/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option))
|
8
|
+
response = self.get("/1.1/users/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option))
|
9
9
|
return false unless response
|
10
10
|
response.each do |element|
|
11
11
|
user = User.new(element, @access_token)
|
@@ -17,7 +17,7 @@ class Pupil
|
|
17
17
|
when :friendships
|
18
18
|
fs = Array.new
|
19
19
|
source.each_slice(100) do |sliced|
|
20
|
-
response = self.get("/1/friendships/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option))
|
20
|
+
response = self.get("/1.1/friendships/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option))
|
21
21
|
return false unless response
|
22
22
|
|
23
23
|
response.each do |element|
|
data/lib/pupil/help.rb
CHANGED
data/lib/pupil/lists.rb
CHANGED
@@ -2,10 +2,10 @@ class Pupil
|
|
2
2
|
# @return [Hash] lists
|
3
3
|
def lists(param={})
|
4
4
|
if param[:contains]
|
5
|
-
response = self.get("/1/lists/memberships.json", param.reject{|p|p==:contains}.update(guess_parameter(param[:contains]) => param[:contains]))
|
5
|
+
response = self.get("/1.1/lists/memberships.json", param.reject{|p|p==:contains}.update(guess_parameter(param[:contains]) => param[:contains]))
|
6
6
|
response = response["lists"]
|
7
7
|
else
|
8
|
-
response = self.get("/1/lists/all.json", param)
|
8
|
+
response = self.get("/1.1/lists/all.json", param)
|
9
9
|
end
|
10
10
|
return [] unless response
|
11
11
|
lists = Array.new
|
@@ -16,7 +16,7 @@ class Pupil
|
|
16
16
|
end
|
17
17
|
|
18
18
|
def create_list(name, option={})
|
19
|
-
response = self.post("/1/lists/create.json", {:name => name}.update(option))
|
19
|
+
response = self.post("/1.1/lists/create.json", {:name => name}.update(option))
|
20
20
|
return List.new(response, @access_token)
|
21
21
|
end
|
22
22
|
end
|
data/lib/pupil/users.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
class Pupil
|
2
2
|
def user(target, option={})
|
3
|
-
response = self.get("/1/users/show.json", {guess_parameter(target) => target}.update(option))
|
3
|
+
response = self.get("/1.1/users/show.json", {guess_parameter(target) => target}.update(option))
|
4
4
|
return false unless response
|
5
5
|
user = User.new(response, @access_token)
|
6
6
|
return user
|
7
7
|
end
|
8
8
|
|
9
9
|
def search_user(keyword, option={})
|
10
|
-
response = self.get("/1/users/search.json", {:q => keyword}.update(option))
|
10
|
+
response = self.get("/1.1/users/search.json", {:q => keyword}.update(option))
|
11
11
|
users = Array.new
|
12
12
|
response.each do |element|
|
13
13
|
user = User.new(element, @access_token)
|
data/lib/pupil/version.rb
CHANGED
data/pupil.gemspec
CHANGED
@@ -16,6 +16,7 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.version = Pupil::VERSION
|
17
17
|
gem.add_dependency "oauth"
|
18
18
|
gem.add_dependency "json"
|
19
|
+
gem.add_dependency "thor"
|
19
20
|
gem.add_development_dependency "rake"
|
20
21
|
gem.add_development_dependency "rspec"
|
21
22
|
gem.add_development_dependency "yard"
|
data/spec/pupil_spec.rb
CHANGED
@@ -1,3 +1,5 @@
|
|
1
|
+
# encoding: utf-8
|
2
|
+
|
1
3
|
# -*- coding: utf-8 -*-
|
2
4
|
|
3
5
|
### WARNING ###
|
@@ -52,7 +54,7 @@ end
|
|
52
54
|
describe Pupil, "が #user_timeline を呼ぶ時は" do
|
53
55
|
before do
|
54
56
|
pupil = Pupil.new PUPIL_TESTKEY
|
55
|
-
@user_timeline = pupil.user_timeline pupil.screen_name
|
57
|
+
@user_timeline = pupil.user_timeline pupil.profile.screen_name
|
56
58
|
end
|
57
59
|
|
58
60
|
it "Array型を返すこと" do
|
@@ -63,8 +65,8 @@ end
|
|
63
65
|
describe Pupil, "が #friendship? を呼ぶ時は" do
|
64
66
|
before do
|
65
67
|
pupil = Pupil.new PUPIL_TESTKEY
|
66
|
-
@nonfriendship = pupil.friendship? pupil.screen_name, KNOWN_NONFOLLOWED_USER
|
67
|
-
@friendship = pupil.friendship? pupil.screen_name, KNOWN_USER
|
68
|
+
@nonfriendship = pupil.friendship? pupil.profile.screen_name, KNOWN_NONFOLLOWED_USER
|
69
|
+
@friendship = pupil.friendship? pupil.profile.screen_name, KNOWN_USER
|
68
70
|
end
|
69
71
|
|
70
72
|
it "フォロー関係に無い場合はFalseClass型を返すこと" do
|
@@ -76,70 +78,6 @@ describe Pupil, "が #friendship? を呼ぶ時は" do
|
|
76
78
|
end
|
77
79
|
end
|
78
80
|
|
79
|
-
describe Pupil, "が #follow を呼ぶ時は" do
|
80
|
-
before do
|
81
|
-
pupil = Pupil.new PUPIL_TESTKEY
|
82
|
-
@follow = pupil.follow KNOWN_NONFOLLOWED_USER
|
83
|
-
@follow_fail = pupil.follow UNKNOWN_USER
|
84
|
-
end
|
85
|
-
|
86
|
-
it "フォローに成功した場合はPupil::User型を返すこと" do
|
87
|
-
@follow.class.should == Pupil::User
|
88
|
-
end
|
89
|
-
|
90
|
-
it "フォローに失敗した場合はFalseClass型を返すこと" do
|
91
|
-
@follow_fail.class.should == FalseClass
|
92
|
-
end
|
93
|
-
end
|
94
|
-
|
95
|
-
describe Pupil, "が #unfollow を呼ぶ時は" do
|
96
|
-
before do
|
97
|
-
pupil = Pupil.new PUPIL_TESTKEY
|
98
|
-
@unfollow = pupil.unfollow KNOWN_NONFOLLOWED_USER
|
99
|
-
@unfollow_fail = pupil.unfollow UNKNOWN_USER
|
100
|
-
end
|
101
|
-
|
102
|
-
it "成功した場合はPupil::User型を返すこと" do
|
103
|
-
@unfollow.class.should == Pupil::User
|
104
|
-
end
|
105
|
-
|
106
|
-
it "失敗した場合にはFalseClassを返すこと" do
|
107
|
-
@unfollow_fail.class.should == FalseClass
|
108
|
-
end
|
109
|
-
end
|
110
|
-
|
111
|
-
describe Pupil, "が #block を呼ぶ時は" do
|
112
|
-
before do
|
113
|
-
pupil = Pupil.new PUPIL_TESTKEY
|
114
|
-
@block = pupil.block KNOWN_NONFOLLOWED_USER
|
115
|
-
@block_fail = pupil.block UNKNOWN_USER
|
116
|
-
end
|
117
|
-
|
118
|
-
it "成功した場合はPupil::User型を返すこと" do
|
119
|
-
@block.class.should == Pupil::User
|
120
|
-
end
|
121
|
-
|
122
|
-
it "失敗した場合にはFalseClassを返すこと" do
|
123
|
-
@block_fail.class.should == FalseClass
|
124
|
-
end
|
125
|
-
end
|
126
|
-
|
127
|
-
describe Pupil, "が #unblock を呼ぶ時は" do
|
128
|
-
before do
|
129
|
-
pupil = Pupil.new PUPIL_TESTKEY
|
130
|
-
@unblock = pupil.unblock KNOWN_NONFOLLOWED_USER
|
131
|
-
@unblock_fail = pupil.unblock UNKNOWN_USER
|
132
|
-
end
|
133
|
-
|
134
|
-
it "成功した場合はPupil::User型を返すこと" do
|
135
|
-
@unblock.class.should == Pupil::User
|
136
|
-
end
|
137
|
-
|
138
|
-
it "失敗した場合にはFalseClassを返すこと" do
|
139
|
-
@unblock_fail.class.should == FalseClass
|
140
|
-
end
|
141
|
-
end
|
142
|
-
|
143
81
|
describe Pupil, "が #blocking を呼ぶ時は" do
|
144
82
|
before do
|
145
83
|
pupil = Pupil.new PUPIL_TESTKEY
|
@@ -151,17 +89,17 @@ describe Pupil, "が #blocking を呼ぶ時は" do
|
|
151
89
|
end
|
152
90
|
end
|
153
91
|
|
154
|
-
describe Pupil, "
|
92
|
+
describe Pupil, "が #search を呼ぶ時は" do
|
155
93
|
before do
|
156
94
|
pupil = Pupil.new PUPIL_TESTKEY
|
157
|
-
@search = pupil.search("Twitter", :rpp =>
|
95
|
+
@search = pupil.search("Twitter", :rpp => 1)
|
158
96
|
end
|
159
97
|
|
160
98
|
it "Array型を返すこと" do
|
161
99
|
@search.class.should == Array
|
162
100
|
end
|
163
101
|
|
164
|
-
it "sizeが
|
165
|
-
@search.size.should ==
|
102
|
+
it "sizeが1であること" do
|
103
|
+
@search.size.should == 1
|
166
104
|
end
|
167
105
|
end
|
metadata
CHANGED
@@ -1,110 +1,111 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pupil
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Oame
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-05-09 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: oauth
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: json
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thor
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
44
53
|
- !ruby/object:Gem::Version
|
45
54
|
version: '0'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: rake
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - '>='
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: '0'
|
54
62
|
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - '>='
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: '0'
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: rspec
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- -
|
73
|
+
- - '>='
|
68
74
|
- !ruby/object:Gem::Version
|
69
75
|
version: '0'
|
70
76
|
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- -
|
80
|
+
- - '>='
|
76
81
|
- !ruby/object:Gem::Version
|
77
82
|
version: '0'
|
78
83
|
- !ruby/object:Gem::Dependency
|
79
84
|
name: yard
|
80
85
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
86
|
requirements:
|
83
|
-
- -
|
87
|
+
- - '>='
|
84
88
|
- !ruby/object:Gem::Version
|
85
89
|
version: '0'
|
86
90
|
type: :development
|
87
91
|
prerelease: false
|
88
92
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
93
|
requirements:
|
91
|
-
- -
|
94
|
+
- - '>='
|
92
95
|
- !ruby/object:Gem::Version
|
93
96
|
version: '0'
|
94
97
|
- !ruby/object:Gem::Dependency
|
95
98
|
name: bundler
|
96
99
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
100
|
requirements:
|
99
|
-
- -
|
101
|
+
- - '>='
|
100
102
|
- !ruby/object:Gem::Version
|
101
103
|
version: '0'
|
102
104
|
type: :development
|
103
105
|
prerelease: false
|
104
106
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
107
|
requirements:
|
107
|
-
- -
|
108
|
+
- - '>='
|
108
109
|
- !ruby/object:Gem::Version
|
109
110
|
version: '0'
|
110
111
|
description: The "Lazy" Twitter API Library for Ruby 1.9.x. Easy to use.
|
@@ -112,6 +113,7 @@ email:
|
|
112
113
|
- oame@oameya.com
|
113
114
|
executables:
|
114
115
|
- eyedrops
|
116
|
+
- pupil
|
115
117
|
extensions: []
|
116
118
|
extra_rdoc_files: []
|
117
119
|
files:
|
@@ -125,10 +127,12 @@ files:
|
|
125
127
|
- README.md
|
126
128
|
- Rakefile
|
127
129
|
- bin/eyedrops
|
130
|
+
- bin/pupil
|
128
131
|
- lib/pupil.rb
|
129
132
|
- lib/pupil/account.rb
|
130
133
|
- lib/pupil/base.rb
|
131
134
|
- lib/pupil/blocks.rb
|
135
|
+
- lib/pupil/cli.rb
|
132
136
|
- lib/pupil/direct_messages.rb
|
133
137
|
- lib/pupil/essentials.rb
|
134
138
|
- lib/pupil/friendships.rb
|
@@ -151,27 +155,26 @@ files:
|
|
151
155
|
- spec/spec_helper.rb
|
152
156
|
homepage: http://oame.github.com/pupil
|
153
157
|
licenses: []
|
158
|
+
metadata: {}
|
154
159
|
post_install_message:
|
155
160
|
rdoc_options: []
|
156
161
|
require_paths:
|
157
162
|
- lib
|
158
163
|
required_ruby_version: !ruby/object:Gem::Requirement
|
159
|
-
none: false
|
160
164
|
requirements:
|
161
|
-
- -
|
165
|
+
- - '>='
|
162
166
|
- !ruby/object:Gem::Version
|
163
167
|
version: '0'
|
164
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
165
|
-
none: false
|
166
169
|
requirements:
|
167
|
-
- -
|
170
|
+
- - '>='
|
168
171
|
- !ruby/object:Gem::Version
|
169
172
|
version: '0'
|
170
173
|
requirements: []
|
171
174
|
rubyforge_project:
|
172
|
-
rubygems_version:
|
175
|
+
rubygems_version: 2.0.3
|
173
176
|
signing_key:
|
174
|
-
specification_version:
|
177
|
+
specification_version: 4
|
175
178
|
summary: The "Lazy" Twitter API Library for Ruby 1.9.x
|
176
179
|
test_files:
|
177
180
|
- spec/pupil_spec.rb
|