boston-ruby 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/boston-ruby.rb +1 -1
- data/lib/boston-ruby/github.rb +1 -1
- data/lib/boston-ruby/twitter.rb +1 -0
- metadata +1 -1
data/lib/boston-ruby.rb
CHANGED
data/lib/boston-ruby/github.rb
CHANGED
@@ -15,7 +15,7 @@ longest_name_length = updates.reduce(0) {|max, x| [max, x['author'].length].max}
|
|
15
15
|
updates.reverse.each do |update|
|
16
16
|
author = update['author']
|
17
17
|
#text = [update['title'], update['content']].join("\n\n")
|
18
|
-
text = update['title']
|
18
|
+
text = update['title'].sub(/\w+\s?/, '')
|
19
19
|
time = DateTime.parse update['date']
|
20
20
|
puts BostonRuby.format_item(longest_name_length, author, text, time)
|
21
21
|
end
|
data/lib/boston-ruby/twitter.rb
CHANGED