stars 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +30 -23
- data/VERSION +1 -1
- data/bin/stars +2 -1
- data/lib/stars/client.rb +3 -1
- data/stars.gemspec +3 -3
- data/test/test_client.rb +9 -3
- metadata +3 -3
data/README.markdown
CHANGED
@@ -11,34 +11,41 @@ So anyway, I spend a lot of time on the command line, and switching over to the
|
|
11
11
|
|
12
12
|
Install with `gem install stars`, then do a quick `stars`, fill in your Twitter username, and let it do its sultry magic. This is me lately:
|
13
13
|
|
14
|
-
|
15
|
-
| Stars
|
16
|
-
|
17
|
-
| * |
|
18
|
-
| * *
|
19
|
-
| *
|
20
|
-
| *
|
21
|
-
| *
|
22
|
-
| *
|
23
|
-
| *
|
24
|
-
| * |
|
25
|
-
| *
|
26
|
-
| *
|
27
|
-
| *
|
28
|
-
| * | 5 days ago | I
|
29
|
-
| *
|
30
|
-
| * *
|
31
|
-
| *
|
32
|
-
| *
|
33
|
-
| *
|
34
|
-
| *
|
35
|
-
|
14
|
+
+---------+-------------+--------------------------------------------------------+
|
15
|
+
| Stars | Time | Your Funnies |
|
16
|
+
+---------+-------------+--------------------------------------------------------+
|
17
|
+
| * * | 11 days ago | I have a severe sore throat. Or, if I said that ou... |
|
18
|
+
| * * | 11 days ago | Way too many Scientology ads on Muni buses. It wor... |
|
19
|
+
| * | 11 days ago | Napping didn't fix this cold; I feel a bit worse. M... |
|
20
|
+
| * | 10 days ago | God I leave the room for one minute and the girls o... |
|
21
|
+
| * | 10 days ago | Man, Avatar really fucked Up. |
|
22
|
+
| * | 9 days ago | I'd play out here, but the west coast is all about ... |
|
23
|
+
| * | 9 days ago | I just want to know who moved my Maps app to my iPh... |
|
24
|
+
| * * | 9 days ago | just about finished my thesis on generating free en... |
|
25
|
+
| * * * | 7 days ago | You change your Facebook pic, that syncs to my iPho... |
|
26
|
+
| * | 6 days ago | Going to totally refork and rework my dotfiles soon... |
|
27
|
+
| * | 6 days ago | Oh hey, a year or so of my beer consumption: http:/... |
|
28
|
+
| * * | 5 days ago | In another life I want to be a pop star heartthrob ... |
|
29
|
+
| * * * | 5 days ago | I pre-ordered an iPad, checked into lunch, and now ... |
|
30
|
+
| * * * * | 3 days ago | I wouldn't say I'm "saving daylight" as much as I'm... |
|
31
|
+
| * x 13 | 3 days ago | So for the seven of us that are both nerdy *and* va... |
|
32
|
+
| * * * | 2 days ago | Just got my third free replacement earbuds from the... |
|
33
|
+
| * | 2 days ago | Oh, they're doing a MacGruber movie. This makes sen... |
|
34
|
+
| * | 2 days ago | At the MySQL + Rails combined meetup. I don't want ... |
|
35
|
+
+---------+-------------+--------------------------------------------------------+
|
36
36
|
|
37
37
|
You can tell from the relative dearth of stars that I'm in my *screw followers I'm important so here's what I had for lunch* phase. Don't worry; I'll become a star whore again and tweet pop culture references in relation to presidential penile size soon enough.
|
38
38
|
|
39
|
+
You can also specify which user you want to run the query against by passing it in as your one argument. This value is saved for he future, too. For example:
|
40
|
+
|
41
|
+
stars holman # generates @holman's stars
|
42
|
+
stars # generates @holman's stars
|
43
|
+
stars goodtutorials # generates @goodtutorials' stars
|
44
|
+
stars # generates @goodtutorials' stars
|
45
|
+
|
39
46
|
## state of affairs
|
40
47
|
|
41
|
-
This was a one-night hack thing; ideally it'd be cool to
|
48
|
+
This was a one-night hack thing; ideally it'd be cool to maybe retain some "this was read" state, and improve the formatting (if only "★" worked better in a fixed-width environment, AMIRITE?). All in due time. I mean, for you to fork and do it yourself, I mean.
|
42
49
|
|
43
50
|
## who
|
44
51
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.1
|
data/bin/stars
CHANGED
data/lib/stars/client.rb
CHANGED
data/stars.gemspec
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{stars}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Zach Holman"]
|
12
|
-
s.date = %q{2010-03-
|
12
|
+
s.date = %q{2010-03-18}
|
13
13
|
s.default_executable = %q{stars}
|
14
14
|
s.description = %q{Recent favstar faves on your command line.}
|
15
15
|
s.email = %q{github.com@zachholman.com}
|
data/test/test_client.rb
CHANGED
@@ -2,10 +2,16 @@ require 'helper'
|
|
2
2
|
|
3
3
|
class TestClient < Test::Unit::TestCase
|
4
4
|
|
5
|
-
def
|
5
|
+
def test_load_with_username
|
6
6
|
mock(Stars::Formatter).new.with_any_args
|
7
|
-
mock(Stars::Client).puts.with_any_args
|
8
|
-
Stars::Client.load!
|
7
|
+
mock(Stars::Client).puts.times(any_times).with_any_args
|
8
|
+
Stars::Client.load!('holman')
|
9
|
+
end
|
10
|
+
|
11
|
+
def test_load_without_username
|
12
|
+
mock(Stars::Formatter).new.with_any_args
|
13
|
+
mock(Stars::Client).puts.times(any_times).with_any_args
|
14
|
+
Stars::Client.load!(nil)
|
9
15
|
end
|
10
16
|
|
11
17
|
def test_username_when_exists
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 1
|
8
|
-
-
|
9
|
-
version: 0.1.
|
8
|
+
- 1
|
9
|
+
version: 0.1.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Zach Holman
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-03-
|
17
|
+
date: 2010-03-18 00:00:00 -07:00
|
18
18
|
default_executable: stars
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|