twat 0.2.5 → 0.2.7

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock ADDED
@@ -0,0 +1,31 @@
1
+ GEM
2
+ remote: http://rubygems.org/
3
+ specs:
4
+ addressable (2.2.6)
5
+ faraday (0.7.4)
6
+ addressable (~> 2.2.6)
7
+ multipart-post (~> 1.1.0)
8
+ rack (>= 1.1.0, < 2)
9
+ faraday_middleware (0.7.0)
10
+ faraday (~> 0.7.3)
11
+ hashie (1.1.0)
12
+ multi_json (1.0.3)
13
+ multi_xml (0.2.2)
14
+ multipart-post (1.1.3)
15
+ oauth (0.4.5)
16
+ rack (1.3.2)
17
+ simple_oauth (0.1.5)
18
+ twitter (1.6.2)
19
+ faraday (~> 0.7.4)
20
+ faraday_middleware (~> 0.7.0)
21
+ hashie (~> 1.1.0)
22
+ multi_json (~> 1.0.0)
23
+ multi_xml (~> 0.2.0)
24
+ simple_oauth (~> 0.1.5)
25
+
26
+ PLATFORMS
27
+ ruby
28
+
29
+ DEPENDENCIES
30
+ oauth
31
+ twitter
data/TODO ADDED
@@ -0,0 +1,2 @@
1
+ twat -l -> <newsfeed>
2
+ twat -l [count] -> <count entries from newsfeed>
data/doc/twat.1 ADDED
@@ -0,0 +1,25 @@
1
+ .TH twat 1 "September 2011" "" ""
2
+ .SH NAME
3
+ twat \- a cli/ruby interface to twitter.
4
+ .SH SYNOPSIS
5
+ .B twat [-n account] <-a|-d|tweet>
6
+ .SH DESCRIPTION
7
+ .B twat
8
+ gives a simple interface to twitter from the command line.
9
+ .SH USAGE
10
+ generally, twat -an accountname will prompt you to authenticate via a given
11
+ URL, and from that point on twat -n accountname "tweet" will post "tweet" to
12
+ your twitter account.
13
+ .SH OPTIONS
14
+ .IP -n account
15
+ Specify which account to connect with. If not specified, twat searches your
16
+ config for an account named default.
17
+ .IP -a
18
+ Tell twat to execute the routines for authenticating itself with OAuth for your
19
+ account.
20
+ .IP -d
21
+ Delete speficied account.
22
+ .SH FILES
23
+ .IP ~/.twatrc
24
+ yaml file containing a mapping of account nicknames to oauth credentials.
25
+ Should always be readable only to you.
data/lib/twat.rb CHANGED
@@ -13,7 +13,7 @@ end
13
13
  module Twat
14
14
  VERSION_MAJOR = 0
15
15
  VERSION_MINOR = 2
16
- VERSION_PATCH = 5
16
+ VERSION_PATCH = 7
17
17
 
18
18
  VERSION = "#{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_PATCH}"
19
19
  class Twat
data/lib/twat/actions.rb CHANGED
@@ -52,6 +52,14 @@ module Twat
52
52
  end
53
53
  end
54
54
 
55
+ def show(opts)
56
+ puts "#{opts[:count]} Tweets XD"
57
+ end
58
+
59
+ def version(opts)
60
+ puts "twat: #{VERSION_MAJOR}.#{VERSION_MINOR}.#{VERSION_PATCH}"
61
+ end
62
+
55
63
  private
56
64
 
57
65
  def cf
data/lib/twat/argparse.rb CHANGED
@@ -33,6 +33,13 @@ module Twat
33
33
  puts opts
34
34
  exit
35
35
  end
36
+ opts.on('-l', '--list [COUNT]', 'Display [count] tweets from your newsfeed') do |count|
37
+ options[:count] = count || 10
38
+ options[:action] = :show
39
+ end
40
+ opts.on('-v', '--version', 'Display version info') do
41
+ options[:action] = :version
42
+ end
36
43
  end
37
44
  @optparser.parse!
38
45
  REQUIRED.each do |req|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twat
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.5
4
+ version: 0.2.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-29 00:00:00.000000000Z
12
+ date: 2011-09-19 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: twitter
16
- requirement: &72461730 !ruby/object:Gem::Requirement
16
+ requirement: &11627540 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *72461730
24
+ version_requirements: *11627540
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: oauth
27
- requirement: &72461490 !ruby/object:Gem::Requirement
27
+ requirement: &11626400 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *72461490
35
+ version_requirements: *11626400
36
36
  description: Command line tool for tweeting and whatnot
37
37
  email:
38
38
  - richo@psych0tik.net
@@ -43,8 +43,11 @@ extra_rdoc_files: []
43
43
  files:
44
44
  - .rvmrc
45
45
  - Gemfile
46
+ - Gemfile.lock
46
47
  - README
48
+ - TODO
47
49
  - bin/twat
50
+ - doc/twat.1
48
51
  - lib/twat.rb
49
52
  - lib/twat/actions.rb
50
53
  - lib/twat/argparse.rb