ttt-client 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/ttt.rb +5 -5
- data/lib/ttt/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63c4315b68a4baa07182004408b0853918a9ce3f
|
4
|
+
data.tar.gz: 74893f6751ac2ecef4783ee90e0fb4bf43e09d9c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa4532cb4dfd5fc600c48f261ed396b2cead5cbe3b003ca47a1a5c8fbabbb3740bea5157a3b675d44e89f66e039d3613f90d741b8f664c1b6509425a4a0e890b
|
7
|
+
data.tar.gz: 93d9ab15c97ba97a3124bf143e91d35a4e8ad8b6769787faa36911ae3761e6cc517ff5bb0e67a47b5fae315bc8ffc9d4ed2f374d13cb9ad82595a98ceea1e7c5
|
data/README.md
CHANGED
data/lib/ttt.rb
CHANGED
@@ -54,18 +54,18 @@ end
|
|
54
54
|
command :tweet do |c|
|
55
55
|
c.syntax = 'ttt tweet'
|
56
56
|
c.description = 'Tweets to a specified user in the list'
|
57
|
-
c.option '--
|
57
|
+
c.option '--to STRING', String, 'The user you want to tweet to'
|
58
58
|
c.option '--body STRING', String, 'The body of the tweet'
|
59
59
|
c.action do |args, options|
|
60
60
|
client.lists.each do |list|
|
61
61
|
if list.name == "Teen Tech Twitter"
|
62
62
|
members = []
|
63
63
|
client.list_members(list).each { |user| members << user.screen_name }
|
64
|
-
if members.include? options.
|
65
|
-
client.update('@' + options.
|
66
|
-
puts "Success: #{options.
|
64
|
+
if members.include? options.to
|
65
|
+
client.update('@' + options.to + ' ' + options.body)
|
66
|
+
puts "Success: #{options.to} is a tech teen"
|
67
67
|
else
|
68
|
-
puts "Error: #{options.
|
68
|
+
puts "Error: #{options.to} is not a tech teen"
|
69
69
|
end
|
70
70
|
end
|
71
71
|
end
|
data/lib/ttt/version.rb
CHANGED