ticketmaster-trac 0.3.2 → 0.3.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.2
1
+ 0.3.3
data/lib/trac/trac.rb CHANGED
@@ -10,11 +10,14 @@ class CommentUtil
10
10
  def comments
11
11
  comment_id = 0
12
12
  @doc.css('h3.change a.timeline').collect do |value|
13
- body = @doc.css('div.comment p')
13
+ body = @doc.css('div.comment')
14
14
  authors = @doc.css('h3.change')
15
15
  comment_id += 1
16
16
  unless body[comment_id-1].nil? || authors[comment_id-1].nil?
17
- build_comment_hash(value, comment_id, body[comment_id-1].text, authors[comment_id-1].content)
17
+ comment_body = body[comment_id-1].text
18
+ if comment_body =~ /\w+/
19
+ build_comment_hash(value, comment_id, comment_body, authors[comment_id-1].content)
20
+ end
18
21
  end
19
22
  end
20
23
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-trac}
8
- s.version = "0.3.2"
8
+ s.version = "0.3.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rafael George"]
12
- s.date = %q{2011-04-18}
12
+ s.date = %q{2011-04-19}
13
13
  s.description = %q{Allows ticketmaster to interact with Your System.}
14
14
  s.email = %q{rafael@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-trac
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rafael George
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-18 00:00:00 -04:00
18
+ date: 2011-04-19 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency