redrock 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -6
- data/history.txt +7 -0
- data/spec/spec_helper.rb +2 -1
- metadata +27 -12
data/README.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
== What is this?
|
4
4
|
|
5
|
-
A wrapper for running WebMock[
|
5
|
+
A wrapper for running WebMock[http://github.com/bblimke/webmock] remotely
|
6
6
|
(ie mocking requests made by an application that's not running in the same
|
7
7
|
process as your tests).
|
8
8
|
|
@@ -12,8 +12,8 @@ If you're testing an application that makes remote web requests, and for some
|
|
12
12
|
reason you can't run the application code directly inside your test framework.
|
13
13
|
This might be because you're running integration tests against a stack of
|
14
14
|
applications, you're using something like
|
15
|
-
Culerity[
|
16
|
-
Selenium[
|
15
|
+
Culerity[http://github.com/langalex/culerity] or
|
16
|
+
Selenium[http://seleniumhq.org/], or maybe the application doesn't use one
|
17
17
|
of the HTTP libraries that WebMock supports, or isn't even written in Ruby.
|
18
18
|
|
19
19
|
== Getting started
|
@@ -29,7 +29,7 @@ You can then make most of the same calls you would normally make to WebMock,
|
|
29
29
|
and they will be transparently handled by RedRock. For example:
|
30
30
|
|
31
31
|
stub_request :any, "localhost:4242/chunky/bacon"
|
32
|
-
|
32
|
+
...
|
33
33
|
RedRock.should have_requested :get, "http://localhost:4242/chunky/bacon"
|
34
34
|
|
35
35
|
The RedRock server starts automatically when required, but you can start it
|
@@ -47,7 +47,7 @@ you'll have to set up a reverse proxy as well.
|
|
47
47
|
|
48
48
|
== How does it work?
|
49
49
|
|
50
|
-
RedRock fires up a thin[
|
50
|
+
RedRock fires up a thin[http://code.macournoyer.com/thin/] server (by
|
51
51
|
default on port 4242), which attempts to proxy all incoming requests using
|
52
52
|
Net::HTTP, at which point they are intercepted by WebMock. You point your
|
53
53
|
application under test at this server, instead of the real service it's
|
@@ -84,5 +84,5 @@ you've had seven years or so.
|
|
84
84
|
|
85
85
|
Version 0.1.0 was released on Whyday, 19 August 2010.
|
86
86
|
|
87
|
-
RedRock is intended to replace FakeTTP[
|
87
|
+
RedRock is intended to replace FakeTTP[http://github.com/kerryb/fakettp],
|
88
88
|
which no-one apart from me and a few colleagues ever used.
|
data/history.txt
ADDED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redrock
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Kerry Buckley
|
@@ -15,26 +15,25 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-08-
|
18
|
+
date: 2010-08-20 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
|
-
name:
|
22
|
+
name: webmock
|
23
23
|
prerelease: false
|
24
24
|
requirement: &id001 !ruby/object:Gem::Requirement
|
25
25
|
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
hash:
|
29
|
+
hash: 3
|
30
30
|
segments:
|
31
|
-
- 1
|
32
31
|
- 0
|
33
|
-
version: "
|
32
|
+
version: "0"
|
34
33
|
type: :runtime
|
35
34
|
version_requirements: *id001
|
36
35
|
- !ruby/object:Gem::Dependency
|
37
|
-
name:
|
36
|
+
name: thin
|
38
37
|
prerelease: false
|
39
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
40
39
|
none: false
|
@@ -45,10 +44,10 @@ dependencies:
|
|
45
44
|
segments:
|
46
45
|
- 0
|
47
46
|
version: "0"
|
48
|
-
type: :
|
47
|
+
type: :runtime
|
49
48
|
version_requirements: *id002
|
50
49
|
- !ruby/object:Gem::Dependency
|
51
|
-
name:
|
50
|
+
name: rspec
|
52
51
|
prerelease: false
|
53
52
|
requirement: &id003 !ruby/object:Gem::Requirement
|
54
53
|
none: false
|
@@ -61,6 +60,20 @@ dependencies:
|
|
61
60
|
version: "0"
|
62
61
|
type: :development
|
63
62
|
version_requirements: *id003
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: curb
|
65
|
+
prerelease: false
|
66
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
type: :development
|
76
|
+
version_requirements: *id004
|
64
77
|
description:
|
65
78
|
email: kerryjbuckley@gmail.com
|
66
79
|
executables: []
|
@@ -69,12 +82,14 @@ extensions: []
|
|
69
82
|
|
70
83
|
extra_rdoc_files:
|
71
84
|
- README.rdoc
|
85
|
+
- history.txt
|
72
86
|
files:
|
73
87
|
- spec/redrock_spec.rb
|
74
88
|
- spec/spec_helper.rb
|
75
89
|
- lib/redrock/server.rb
|
76
90
|
- lib/redrock.rb
|
77
91
|
- README.rdoc
|
92
|
+
- history.txt
|
78
93
|
has_rdoc: true
|
79
94
|
homepage: http://github.com/kerryb/redrock
|
80
95
|
licenses: []
|