boston-ruby 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +16 -1
- data/bin/boston-ruby +6 -0
- data/lib/boston-ruby.rb +1 -1
- metadata +1 -1
data/README.md
CHANGED
@@ -10,6 +10,7 @@ line.
|
|
10
10
|
t Show recent tweets by BostonRB members
|
11
11
|
g Show recent github activity by BostonRB members
|
12
12
|
b Show recent blog posts
|
13
|
+
w Show current Boston weather
|
13
14
|
|
14
15
|
## Install
|
15
16
|
|
@@ -105,7 +106,21 @@ add your name and Twitter handle:
|
|
105
106
|
|
106
107
|
https://github.com/bostonrb/bostonrb/wiki/All-Rubyists
|
107
108
|
|
108
|
-
If your GitHub activity is not showing,
|
109
|
+
If your GitHub activity is not showing, try updating your GitHub user location to
|
110
|
+
one of these locations. It's case-insensitive.
|
109
111
|
|
112
|
+
- cambridge, ma
|
113
|
+
- boston
|
114
|
+
- boston, ma
|
115
|
+
- somerville, ma
|
116
|
+
- salem, ma
|
117
|
+
- providence, ri
|
118
|
+
- salem, ma
|
119
|
+
- portsmouth, nh
|
120
|
+
- portland, me
|
121
|
+
|
122
|
+
|
123
|
+
If your location is not shown but ought to be included in the BostonRB
|
124
|
+
community, please post an issue.
|
110
125
|
|
111
126
|
|
data/bin/boston-ruby
CHANGED
@@ -13,6 +13,11 @@ when /^b/
|
|
13
13
|
require 'boston-ruby/blogs'
|
14
14
|
when /^g/
|
15
15
|
require 'boston-ruby/github'
|
16
|
+
when /^w/
|
17
|
+
require 'nokogiri'
|
18
|
+
html = `curl -s http://ruby.bostonstuff.org/weather`
|
19
|
+
puts "\nCurrent Boston weather:"
|
20
|
+
puts Nokogiri::HTML(html).at('div.infoholder').inner_text
|
16
21
|
else
|
17
22
|
puts <<HELP
|
18
23
|
boston-ruby #{BostonRuby::VERSION}
|
@@ -24,6 +29,7 @@ Commands:
|
|
24
29
|
t Show recent tweets by BostonRB members
|
25
30
|
g Show recent github activity by BostonRB members
|
26
31
|
b Show recent blog posts
|
32
|
+
w Show current Boston weather
|
27
33
|
|
28
34
|
Project homepage: http://github.com/danchoi/boston-ruby
|
29
35
|
Author: Daniel Choi <dhchoi@gmail.com>
|
data/lib/boston-ruby.rb
CHANGED