rubyuw 0.99.6 → 0.99.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.99.6
1
+ 0.99.7
@@ -126,7 +126,8 @@ module RubyUW
126
126
  {
127
127
  :sln => $4.to_s,
128
128
  :section => $5.to_s,
129
- :type => ($6.to_i > 0) ? "LC" : $3.to_s
129
+ :type => ($6.to_i > 0) ? "LC" : $3.to_s,
130
+ :unformatted_entry => pre_text
130
131
  }
131
132
  end
132
133
 
data/rubyuw.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rubyuw}
8
- s.version = "0.99.6"
8
+ s.version = "0.99.7"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Mitchell Hashimoto"]
@@ -241,6 +241,13 @@ class CurriculumTest < Test::Unit::TestCase
241
241
  end
242
242
  end
243
243
 
244
+ should "contain unformatted text as well" do
245
+ node = @page.search("//table[@bgcolor=\"#99ccff\"]//following-sibling::table")[0]
246
+
247
+ returned = RubyUW::Curriculum.extract_course_listing(node)
248
+ assert !returned[:unformatted_entry].empty?
249
+ end
250
+
244
251
  should "raise an exception if the listing does not match" do
245
252
  pre_node = mock('pre_node')
246
253
  pre_node.expects(:inner_text).once.returns("I don't match")
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubyuw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.99.6
4
+ version: 0.99.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mitchell Hashimoto