service_double 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +15 -0
- data/.gitignore +1 -0
- data/lib/service_double/configuration.rb +1 -1
- data/lib/service_double/manager.rb +3 -3
- data/lib/service_double/version.rb +1 -1
- metadata +6 -22
- data/log/rspec_server.log +0 -26
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZDBlMGZmYWEyMTk5MTE3NjEyN2IzN2UyNGQzMTU4ZjFiNWE2ZGM1Nw==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
NGQ1NWE0MmM5ODAwMWY0ZWNlNzQ5OTQ1MzIwYzJlNDg0YjQ2MWRiNA==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MTA0N2Y5OWJhYTc2OGYwMjBkM2MyN2M1NTk5ZjRhZGMwNjQ4YjY3YjI5ZDRm
|
10
|
+
M2NiM2FmNmY5MWI5ODk2ZGJhZTEzN2NlYzQ2ZTM0YmIzNmQ2Mzk1NzQ2MzBh
|
11
|
+
Y2Q1YmIwY2Q1YjRkZjhjNjMwODZiMzM4YzI5N2RkODgzM2RmMGQ=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
YTg2N2NmYzJmZjgxODA3ZWYwMzI4ODkyZTBkMDQ3ZmMzNzgyOWE2ZDBiNGU0
|
14
|
+
M2Y5YmQxNjU4YWU5ZWY4N2M1MGQ2MTBjZjI2ZTE0NWUxNzA2OWQ1YjA1MzVi
|
15
|
+
Y2Q0NmNmMDg4NTFiYzJlYjQyNTVhMmJjMTJiZTgzNzcwYTBkOGQ=
|
data/.gitignore
CHANGED
@@ -24,7 +24,7 @@ module ServiceDouble
|
|
24
24
|
@config = config
|
25
25
|
@root_url = config.url
|
26
26
|
@log_file = config.log_file
|
27
|
-
@timeout = config.timeout
|
27
|
+
@timeout = config.timeout.to_f
|
28
28
|
@server = config.server
|
29
29
|
@name = config.name
|
30
30
|
end
|
@@ -55,7 +55,7 @@ module ServiceDouble
|
|
55
55
|
|
56
56
|
def wait
|
57
57
|
unless timed_out?
|
58
|
-
sleep 0.
|
58
|
+
sleep 0.2
|
59
59
|
else
|
60
60
|
raise Timeout, "It took more than #{timeout} seconds to start #{name}. Check the logs at #{log_file} to see why."
|
61
61
|
end
|
@@ -78,7 +78,7 @@ module ServiceDouble
|
|
78
78
|
end
|
79
79
|
|
80
80
|
def timed_out?
|
81
|
-
Time.now -
|
81
|
+
Time.now - started_at > timeout
|
82
82
|
end
|
83
83
|
|
84
84
|
def connection
|
metadata
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: service_double
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- iain
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2013-
|
11
|
+
date: 2013-05-13 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: faraday
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
@@ -22,7 +20,6 @@ dependencies:
|
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
24
|
- - ! '>='
|
28
25
|
- !ruby/object:Gem::Version
|
@@ -30,7 +27,6 @@ dependencies:
|
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sinatra
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
31
|
- - ! '>='
|
36
32
|
- !ruby/object:Gem::Version
|
@@ -38,7 +34,6 @@ dependencies:
|
|
38
34
|
type: :runtime
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
38
|
- - ! '>='
|
44
39
|
- !ruby/object:Gem::Version
|
@@ -46,7 +41,6 @@ dependencies:
|
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: verbose_hash_fetch
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
45
|
- - ! '>='
|
52
46
|
- !ruby/object:Gem::Version
|
@@ -54,7 +48,6 @@ dependencies:
|
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
52
|
- - ! '>='
|
60
53
|
- !ruby/object:Gem::Version
|
@@ -62,7 +55,6 @@ dependencies:
|
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: bundler
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
59
|
- - ~>
|
68
60
|
- !ruby/object:Gem::Version
|
@@ -70,7 +62,6 @@ dependencies:
|
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
66
|
- - ~>
|
76
67
|
- !ruby/object:Gem::Version
|
@@ -78,7 +69,6 @@ dependencies:
|
|
78
69
|
- !ruby/object:Gem::Dependency
|
79
70
|
name: rake
|
80
71
|
requirement: !ruby/object:Gem::Requirement
|
81
|
-
none: false
|
82
72
|
requirements:
|
83
73
|
- - ! '>='
|
84
74
|
- !ruby/object:Gem::Version
|
@@ -86,7 +76,6 @@ dependencies:
|
|
86
76
|
type: :development
|
87
77
|
prerelease: false
|
88
78
|
version_requirements: !ruby/object:Gem::Requirement
|
89
|
-
none: false
|
90
79
|
requirements:
|
91
80
|
- - ! '>='
|
92
81
|
- !ruby/object:Gem::Version
|
@@ -94,7 +83,6 @@ dependencies:
|
|
94
83
|
- !ruby/object:Gem::Dependency
|
95
84
|
name: rspec
|
96
85
|
requirement: !ruby/object:Gem::Requirement
|
97
|
-
none: false
|
98
86
|
requirements:
|
99
87
|
- - ! '>='
|
100
88
|
- !ruby/object:Gem::Version
|
@@ -102,7 +90,6 @@ dependencies:
|
|
102
90
|
type: :development
|
103
91
|
prerelease: false
|
104
92
|
version_requirements: !ruby/object:Gem::Requirement
|
105
|
-
none: false
|
106
93
|
requirements:
|
107
94
|
- - ! '>='
|
108
95
|
- !ruby/object:Gem::Version
|
@@ -110,7 +97,6 @@ dependencies:
|
|
110
97
|
- !ruby/object:Gem::Dependency
|
111
98
|
name: cucumber
|
112
99
|
requirement: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
100
|
requirements:
|
115
101
|
- - ! '>='
|
116
102
|
- !ruby/object:Gem::Version
|
@@ -118,7 +104,6 @@ dependencies:
|
|
118
104
|
type: :development
|
119
105
|
prerelease: false
|
120
106
|
version_requirements: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
107
|
requirements:
|
123
108
|
- - ! '>='
|
124
109
|
- !ruby/object:Gem::Version
|
@@ -145,34 +130,32 @@ files:
|
|
145
130
|
- lib/service_double/frameworks/rspec.rb
|
146
131
|
- lib/service_double/manager.rb
|
147
132
|
- lib/service_double/version.rb
|
148
|
-
- log/rspec_server.log
|
149
133
|
- service_double.gemspec
|
150
134
|
- spec/service_double_spec.rb
|
151
135
|
- spec/support/rspec_server.rb
|
152
136
|
homepage: https://github.com/yourkarma/service_double
|
153
137
|
licenses:
|
154
138
|
- MIT
|
139
|
+
metadata: {}
|
155
140
|
post_install_message:
|
156
141
|
rdoc_options: []
|
157
142
|
require_paths:
|
158
143
|
- lib
|
159
144
|
required_ruby_version: !ruby/object:Gem::Requirement
|
160
|
-
none: false
|
161
145
|
requirements:
|
162
146
|
- - ! '>='
|
163
147
|
- !ruby/object:Gem::Version
|
164
148
|
version: '0'
|
165
149
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
166
|
-
none: false
|
167
150
|
requirements:
|
168
151
|
- - ! '>='
|
169
152
|
- !ruby/object:Gem::Version
|
170
153
|
version: '0'
|
171
154
|
requirements: []
|
172
155
|
rubyforge_project:
|
173
|
-
rubygems_version:
|
156
|
+
rubygems_version: 2.0.3
|
174
157
|
signing_key:
|
175
|
-
specification_version:
|
158
|
+
specification_version: 4
|
176
159
|
summary: A tool for making fake versions of external (web) services.
|
177
160
|
test_files:
|
178
161
|
- features/service_double.feature
|
@@ -180,3 +163,4 @@ test_files:
|
|
180
163
|
- features/support/env.rb
|
181
164
|
- spec/service_double_spec.rb
|
182
165
|
- spec/support/rspec_server.rb
|
166
|
+
has_rdoc:
|
data/log/rspec_server.log
DELETED
@@ -1,26 +0,0 @@
|
|
1
|
-
[2013-03-05 15:36:55] INFO WEBrick 1.3.1
|
2
|
-
[2013-03-05 15:36:55] INFO ruby 1.9.3 (2013-02-22) [x86_64-darwin12.2.0]
|
3
|
-
== Sinatra/1.3.5 has taken the stage on 8083 for development with backup from WEBrick
|
4
|
-
[2013-03-05 15:36:55] INFO WEBrick::HTTPServer#start: pid=51710 port=8083
|
5
|
-
127.0.0.1 - - [05/Mar/2013 15:36:55] "GET / HTTP/1.1" 200 - 0.0022
|
6
|
-
localhost - - [05/Mar/2013:15:36:55 CET] "GET / HTTP/1.1" 200 0
|
7
|
-
- -> /
|
8
|
-
127.0.0.1 - - [05/Mar/2013 15:36:55] "DELETE / HTTP/1.1" 200 - 0.0003
|
9
|
-
localhost - - [05/Mar/2013:15:36:55 CET] "DELETE / HTTP/1.1" 200 0
|
10
|
-
- -> /
|
11
|
-
127.0.0.1 - - [05/Mar/2013 15:36:55] "POST /remember HTTP/1.1" 200 21 0.0003
|
12
|
-
localhost - - [05/Mar/2013:15:36:55 CET] "POST /remember HTTP/1.1" 200 21
|
13
|
-
- -> /remember
|
14
|
-
127.0.0.1 - - [05/Mar/2013 15:36:55] "GET /remembered HTTP/1.1" 200 40 0.0003
|
15
|
-
localhost - - [05/Mar/2013:15:36:55 CET] "GET /remembered HTTP/1.1" 200 40
|
16
|
-
- -> /remembered
|
17
|
-
127.0.0.1 - - [05/Mar/2013 15:36:55] "DELETE / HTTP/1.1" 200 - 0.0002
|
18
|
-
localhost - - [05/Mar/2013:15:36:55 CET] "DELETE / HTTP/1.1" 200 0
|
19
|
-
- -> /
|
20
|
-
127.0.0.1 - - [05/Mar/2013 15:36:55] "GET /remembered HTTP/1.1" 200 17 0.0002
|
21
|
-
localhost - - [05/Mar/2013:15:36:55 CET] "GET /remembered HTTP/1.1" 200 17
|
22
|
-
- -> /remembered
|
23
|
-
|
24
|
-
== Sinatra has ended his set (crowd applauds)
|
25
|
-
[2013-03-05 15:36:57] INFO going to shutdown ...
|
26
|
-
[2013-03-05 15:36:57] INFO WEBrick::HTTPServer#start done.
|