netrecorder 0.1.4 → 0.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('netrecorder', '0.1.4') do |p|
5
+ Echoe.new('netrecorder', '0.1.5') do |p|
6
6
  p.description = "Record network responses for easy stubbing of external calls"
7
7
  p.url = "http://github.com/chrisyoung/netrecorder"
8
8
  p.author = "Chris Young"
@@ -54,7 +54,7 @@ Given /^a cached example page$/ do
54
54
  end
55
55
 
56
56
  Then /^the cache should be empty$/ do
57
- NetRecorder.fakes.should == nil
57
+ NetRecorder.fakes.should == []
58
58
  end
59
59
 
60
60
  Then /^the example entry should have (.+) responses$/ do |count|
@@ -61,8 +61,9 @@ private
61
61
  # extend NET library to record requests and responses
62
62
  def self.record_net_calls
63
63
  return if @@configured
64
+ @@configured = true
65
+
64
66
  Net::HTTP.extend(NetHTTP)
65
67
  Net::HTTPHeader.extend(NetHTTPHeader)
66
- @@configured = true
67
68
  end
68
69
  end
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{netrecorder}
5
- s.version = "0.1.4"
5
+ s.version = "0.1.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Chris Young"]
9
- s.date = %q{2010-01-21}
9
+ s.date = %q{2010-01-23}
10
10
  s.description = %q{Record network responses for easy stubbing of external calls}
11
11
  s.email = %q{beesucker@gmail.com}
12
12
  s.extra_rdoc_files = ["README.rdoc", "lib/config.rb", "lib/http.rb", "lib/http_header.rb", "lib/netrecorder.rb"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: netrecorder
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Young
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-21 00:00:00 -07:00
12
+ date: 2010-01-23 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency