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 CHANGED
@@ -3,7 +3,7 @@ require 'htmlentities'
3
3
 
4
4
  module BostonRuby
5
5
 
6
- VERSION = '0.0.4'
6
+ VERSION = '0.0.5'
7
7
 
8
8
  MAX_WIDTH = 90
9
9
  CODER = HTMLEntities.new
@@ -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
@@ -17,6 +17,7 @@ tweets.map {|post| post.merge(parsed_time: DateTime.parse(post['created_at']))}.
17
17
  text = post['text']
18
18
  time = post[:parsed_time]
19
19
  puts BostonRuby.format_item(longest_name_length, author, text, time)
20
+ puts
20
21
  end
21
22
 
22
23
  __END__
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.0.4
4
+ version: 0.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: