boston-ruby 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +17 -0
- data/lib/boston-ruby.rb +1 -1
- data/lib/boston-ruby/twitter.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -17,12 +17,20 @@ line.
|
|
17
17
|
|
18
18
|
gem install boston-ruby
|
19
19
|
|
20
|
+
## Alias or wrap in a bash script
|
21
|
+
|
20
22
|
If you want to save a few keystrokes when you invoke the command, put something like
|
21
23
|
|
22
24
|
alias brb=boston-ruby
|
23
25
|
|
24
26
|
in your `~/.bash_profile` and use your alias.
|
25
27
|
|
28
|
+
Or you can write a executable wrapper script (I named mine `brb`) like this to always pipe the output to `less +G`:
|
29
|
+
|
30
|
+
#!/bin/bash
|
31
|
+
boston-ruby $1 | less +G
|
32
|
+
|
33
|
+
|
26
34
|
## Sample output
|
27
35
|
|
28
36
|
|
@@ -102,6 +110,15 @@ BostonRB member github activity:
|
|
102
110
|
jferris : jferris pushed to master at jferris/jferris.github.com : 06:44PM 03/20
|
103
111
|
[...]
|
104
112
|
|
113
|
+
## Unix pipelining tip
|
114
|
+
|
115
|
+
In all cases, the most recent items (thread, post, tweet) are at the bottom of
|
116
|
+
the output. So to see the latest stuff immediately, with the option to scroll
|
117
|
+
up to see into the past, I recommend piping the command to `less +G`, e.g.
|
118
|
+
|
119
|
+
boston-ruby m | less +G
|
120
|
+
|
121
|
+
|
105
122
|
## Not seeing yourself in the output?
|
106
123
|
|
107
124
|
To get your tweets included in the output, go to this BostonRB wiki page and
|
data/lib/boston-ruby.rb
CHANGED
data/lib/boston-ruby/twitter.rb
CHANGED
@@ -4,7 +4,7 @@ require 'json'
|
|
4
4
|
require 'date'
|
5
5
|
require 'boston-ruby'
|
6
6
|
|
7
|
-
tweets = JSON.parse(open("http://
|
7
|
+
tweets = JSON.parse(open("http://poddb.com:9292/tweets?raw=true").read)
|
8
8
|
|
9
9
|
longest_name_length = tweets.reduce(0) {|max, post| [max, post['user_screen_name'].length].max}
|
10
10
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: boston-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2013-02-06 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
84
84
|
version: '0'
|
85
85
|
requirements: []
|
86
86
|
rubyforge_project: boston-ruby
|
87
|
-
rubygems_version: 1.8.
|
87
|
+
rubygems_version: 1.8.23
|
88
88
|
signing_key:
|
89
89
|
specification_version: 3
|
90
90
|
summary: Track BostonRB group and member activity
|