boston-ruby 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.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
@@ -3,7 +3,7 @@ require 'htmlentities'
3
3
 
4
4
  module BostonRuby
5
5
 
6
- VERSION = '0.1.0'
6
+ VERSION = '0.1.1'
7
7
 
8
8
  MAX_WIDTH = 90
9
9
  CODER = HTMLEntities.new
@@ -4,7 +4,7 @@ require 'json'
4
4
  require 'date'
5
5
  require 'boston-ruby'
6
6
 
7
- tweets = JSON.parse(open("http://ruby.bostonstuff.org/tweets?raw=true").read)
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.0
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: 2012-03-21 00:00:00.000000000 Z
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.19
87
+ rubygems_version: 1.8.23
88
88
  signing_key:
89
89
  specification_version: 3
90
90
  summary: Track BostonRB group and member activity