pd-rspec_hpricot_matchers 1.1.0 → 1.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.0
1
+ 1.2.0
@@ -49,9 +49,9 @@ module RspecHpricotMatchers
49
49
  if Nokogiri::XML::Document === input
50
50
  input
51
51
  elsif input.respond_to?(:body)
52
- Nokogiri.parse(input.body)
52
+ Nokogiri::HTML(input.body)
53
53
  else
54
- Nokogiri.parse(input.to_s)
54
+ Nokogiri::HTML(input.to_s)
55
55
  end
56
56
  end
57
57
 
@@ -4,5 +4,5 @@ require 'nokogiri'
4
4
  require 'rspec_hpricot_matchers/have_tag'
5
5
 
6
6
  class Nokogiri::XML::Element
7
- alias body to_s
7
+ alias body inner_html
8
8
  end
@@ -0,0 +1,46 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = %q{rspec_hpricot_matchers}
5
+ s.version = "1.2.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Kyle Hargraves"]
9
+ s.date = %q{2009-06-09}
10
+ s.description = %q{rspec_hpricot_matchers provides an implementation of rspec_on_rails' have_tag() matcher which does not depend on Rails' assert_select. Using Hpricot instead, the matcher is available to non-Rails projects, and enjoys the full flexibility of Hpricot's advanced CSS and XPath selector support.}
11
+ s.email = %q{pd@krh.me}
12
+ s.extra_rdoc_files = [
13
+ "README"
14
+ ]
15
+ s.files = [
16
+ ".gitignore",
17
+ "MIT-LICENSE",
18
+ "README",
19
+ "Rakefile",
20
+ "VERSION",
21
+ "lib/rspec_hpricot_matchers.rb",
22
+ "lib/rspec_hpricot_matchers/have_tag.rb",
23
+ "rspec_hpricot_matchers.gemspec",
24
+ "spec/rspec_hpricot_matchers/have_tag_spec.rb",
25
+ "spec/spec_helper.rb"
26
+ ]
27
+ s.has_rdoc = true
28
+ s.rdoc_options = ["--charset=UTF-8"]
29
+ s.require_paths = ["lib"]
30
+ s.rubygems_version = %q{1.3.1}
31
+ s.summary = %q{Implementation of have_tag() rspec matcher using Hpricot}
32
+ s.test_files = [
33
+ "spec/rspec_hpricot_matchers/have_tag_spec.rb",
34
+ "spec/spec_helper.rb"
35
+ ]
36
+
37
+ if s.respond_to? :specification_version then
38
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
39
+ s.specification_version = 2
40
+
41
+ if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
42
+ else
43
+ end
44
+ else
45
+ end
46
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pd-rspec_hpricot_matchers
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kyle Hargraves
@@ -29,6 +29,7 @@ files:
29
29
  - VERSION
30
30
  - lib/rspec_hpricot_matchers.rb
31
31
  - lib/rspec_hpricot_matchers/have_tag.rb
32
+ - rspec_hpricot_matchers.gemspec
32
33
  - spec/rspec_hpricot_matchers/have_tag_spec.rb
33
34
  - spec/spec_helper.rb
34
35
  has_rdoc: true