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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/ttt.rb +5 -5
  4. data/lib/ttt/version.rb +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85d61e2150cf0180526c80bd5b4963b0f6597b86
4
- data.tar.gz: 011de8143003d66cecaa338311d5059f67509dec
3
+ metadata.gz: 63c4315b68a4baa07182004408b0853918a9ce3f
4
+ data.tar.gz: 74893f6751ac2ecef4783ee90e0fb4bf43e09d9c
5
5
  SHA512:
6
- metadata.gz: 06c51ad9cee1fe7e924714f8af3678cfc5d476ca1269b42cae2eefedcdce625105834369228cfeab78eaec08ad9fe3b6c9150321cefbbe67d387f405dc21253d
7
- data.tar.gz: 13b5acf707fa65548b877424aa43b0674d4557b23a39dada6dfe4e7946fd9b03b1f14cbbcdd3845854eb917ba8314d9c167dc984e5de547f0aa95f7e75f8b522
6
+ metadata.gz: aa4532cb4dfd5fc600c48f261ed396b2cead5cbe3b003ca47a1a5c8fbabbb3740bea5157a3b675d44e89f66e039d3613f90d741b8f664c1b6509425a4a0e890b
7
+ data.tar.gz: 93d9ab15c97ba97a3124bf143e91d35a4e8ad8b6769787faa36911ae3761e6cc517ff5bb0e67a47b5fae315bc8ffc9d4ed2f374d13cb9ad82595a98ceea1e7c5
data/README.md CHANGED
@@ -30,7 +30,7 @@ docs
30
30
  ### tweet
31
31
  tweet text to a user
32
32
  ```bash
33
- ttt tweet --user jfkingsley --body 'jon you tech teeeen'
33
+ ttt tweet --to JFKingsley --body 'jon you tech teeeen'
34
34
  ```
35
35
 
36
36
  ### get members
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 '--user STRING', String, 'The user you want to tweet to'
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.user
65
- client.update('@' + options.user + ' ' + options.body)
66
- puts "Success: #{options.user} is a tech teen"
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.user} is not a tech teen"
68
+ puts "Error: #{options.to} is not a tech teen"
69
69
  end
70
70
  end
71
71
  end
@@ -2,7 +2,7 @@ module Ttt
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- PATCH = 1
5
+ PATCH = 2
6
6
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ttt-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Trommel