mwilliams-fleakr 0.5.1 → 0.5.2

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/Rakefile CHANGED
@@ -18,7 +18,7 @@ spec = Gem::Specification.new do |s|
18
18
  s.homepage = 'http://sneaq.net'
19
19
  s.files = %w(README.rdoc Rakefile) + Dir.glob("{lib,test}/**/*")
20
20
 
21
- s.add_dependency('hpricot', '~> 0.8.1')
21
+ s.add_dependency('hpricot', '~> 0.6.164')
22
22
  s.add_dependency('activesupport', '~> 2.0')
23
23
  s.add_dependency('loggable', '~> 0.2.0')
24
24
  end
data/lib/fleakr.rb CHANGED
@@ -4,7 +4,7 @@ require 'rubygems'
4
4
  require 'uri'
5
5
  require 'cgi'
6
6
  require 'net/http'
7
- require 'nokogiri'
7
+ require 'hpricot'
8
8
  require 'forwardable'
9
9
 
10
10
  # Require only what we need from ActiveSupport
@@ -3,7 +3,7 @@ module Fleakr
3
3
 
4
4
  MAJOR = 0
5
5
  MINOR = 5
6
- TINY = 0
6
+ TINY = 2
7
7
 
8
8
  def self.to_s
9
9
  [MAJOR, MINOR, TINY].join('.')
@@ -7,18 +7,18 @@ module Fleakr::Api
7
7
 
8
8
  should "provide the response body as an Hpricot element" do
9
9
  response_xml = '<xml>'
10
- nokogiri_stub = stub()
10
+ hpricot_stub = stub()
11
11
 
12
- Nokogiri.expects(:XML).with(response_xml).returns(nokogiri_stub)
12
+ Hpricot.expects(:XML).with(response_xml).returns(hpricot_stub)
13
13
 
14
14
  response = Response.new(response_xml)
15
- response.body.should == nokogiri_stub
15
+ response.body.should == hpricot_stub
16
16
  end
17
17
 
18
18
  should "memoize the Hpricot document" do
19
19
  response = Response.new('<xml>')
20
20
 
21
- Nokogiri.expects(:XML).with(kind_of(String)).once.returns(stub())
21
+ Hpricot.expects(:XML).with(kind_of(String)).once.returns(stub())
22
22
 
23
23
  2.times { response.body }
24
24
  end
metadata CHANGED
@@ -1,26 +1,26 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mwilliams-fleakr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
- - Patrick Reagan, Matthew Williams
7
+ - Patrick Reagan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-05-13 00:00:00 -07:00
12
+ date: 2009-06-30 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: nokogiri
16
+ name: hpricot
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: 1.3.2
23
+ version: 0.6.164
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: activesupport