sham_rack 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.markdown +4 -0
- data/README.markdown +1 -3
- data/Rakefile +0 -7
- data/lib/sham_rack/http.rb +2 -5
- data/lib/sham_rack/version.rb +1 -1
- data/sham_rack.gemspec +2 -2
- metadata +2 -2
data/CHANGES.markdown
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
## 15-Jan-2010 [jeremy.burks@gmail.com]
|
2
|
+
|
3
|
+
* Fix an incompatibility with rest-client 1.2.0.
|
4
|
+
|
1
5
|
## 27-Nov-2009 [mdub@dogbiscuit.org]
|
2
6
|
|
3
7
|
* Change of approach: extend rather than reimplement Net:HTTP. This should improve coverage of all the weird and wonderful ways of using the Net:HTTP API.
|
data/README.markdown
CHANGED
@@ -19,8 +19,7 @@ all without having to boot it in a server.
|
|
19
19
|
Installing it
|
20
20
|
-------------
|
21
21
|
|
22
|
-
gem
|
23
|
-
sudo gem install mdub-sham_rack
|
22
|
+
gem install sham_rack
|
24
23
|
|
25
24
|
Using it
|
26
25
|
--------
|
@@ -61,7 +60,6 @@ Using it
|
|
61
60
|
What's the catch?
|
62
61
|
-----------------
|
63
62
|
|
64
|
-
* It's brand new! (there will be dragons)
|
65
63
|
* Your Rack request-handling code runs in the same Ruby VM, in fact the same Thread, as your request.
|
66
64
|
|
67
65
|
Thanks to
|
data/Rakefile
CHANGED
@@ -15,13 +15,6 @@ end
|
|
15
15
|
require 'rake/rdoctask'
|
16
16
|
|
17
17
|
Rake::RDocTask.new do |rdoc|
|
18
|
-
if File.exist?('VERSION.yml')
|
19
|
-
config = YAML.load(File.read('VERSION.yml'))
|
20
|
-
version = "#{config[:major]}.#{config[:minor]}.#{config[:patch]}"
|
21
|
-
else
|
22
|
-
version = ""
|
23
|
-
end
|
24
|
-
|
25
18
|
rdoc.rdoc_dir = 'rdoc'
|
26
19
|
rdoc.title = "ShamRack #{ShamRack::VERSION}"
|
27
20
|
rdoc.main = "ShamRack"
|
data/lib/sham_rack/http.rb
CHANGED
@@ -6,9 +6,6 @@ module ShamRack
|
|
6
6
|
|
7
7
|
attr_accessor :rack_app
|
8
8
|
|
9
|
-
attr_accessor :read_timeout, :open_timeout
|
10
|
-
attr_accessor :use_ssl,:key, :cert, :ca_file, :ca_path, :verify_mode, :verify_callback, :verify_depth, :cert_store
|
11
|
-
|
12
9
|
def start
|
13
10
|
yield self
|
14
11
|
end
|
@@ -49,7 +46,7 @@ module ShamRack
|
|
49
46
|
raise(ArgumentError, "both request.body and body argument were provided") if (request.body && body)
|
50
47
|
body ||= request.body || ""
|
51
48
|
{
|
52
|
-
"rack.input" => StringIO.new(body),
|
49
|
+
"rack.input" => StringIO.new(body.to_s),
|
53
50
|
"rack.errors" => $stderr
|
54
51
|
}
|
55
52
|
end
|
@@ -106,4 +103,4 @@ module ShamRack
|
|
106
103
|
|
107
104
|
end
|
108
105
|
|
109
|
-
end
|
106
|
+
end
|
data/lib/sham_rack/version.rb
CHANGED
data/sham_rack.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{sham_rack}
|
8
|
-
s.version = "1.2.
|
8
|
+
s.version = "1.2.1"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Mike Williams"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2010-01-15}
|
13
13
|
s.description = %q{ShamRack plumbs Net::HTTP directly into Rack, for quick and easy HTTP testing.}
|
14
14
|
s.email = %q{mdub@dogbiscuit.org}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sham_rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date:
|
12
|
+
date: 2010-01-15 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|