mirage 1.0.0 → 1.0.1

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.
File without changes
@@ -1,5 +1,6 @@
1
1
  Feature: Mirage can also be used to host files.
2
2
 
3
+ #TODO - generate zip file or move resources directory
3
4
  Scenario: A file is set as a response
4
5
  Given I hit 'http://localhost:7001/mirage/set/some/location/download' with parameters:
5
6
  | response | features/resources/test.zip |
File without changes
File without changes
File without changes
@@ -16,7 +16,7 @@ Feature: After a response has been served from Mirage, the content of the reques
16
16
  | response | Hello |
17
17
 
18
18
 
19
- Scenario: Querying a response that was triggered by a request that had content in the body
19
+ Scenario: Tracking a response that was triggered by a request that had content in the body
20
20
  Given I hit 'http://localhost:7001/mirage/get/greeting' with request body:
21
21
  """
22
22
  Hello MockServer
@@ -25,7 +25,7 @@ Feature: After a response has been served from Mirage, the content of the reques
25
25
  Then 'Hello MockServer' should be returned
26
26
 
27
27
 
28
- Scenario: Querying a response that was triggered by a request with a query string
28
+ Scenario: Tracking a response that was triggered by a request with a query string
29
29
  Given I hit 'http://localhost:7001/mirage/get/greeting' with parameters:
30
30
  | surname | Davis |
31
31
  | firstname | Leon |
@@ -33,7 +33,7 @@ Feature: After a response has been served from Mirage, the content of the reques
33
33
  Then 'surname=Davis&firstname=Leon' should be returned
34
34
 
35
35
 
36
- Scenario: Querying a response that has not been served yet
36
+ Scenario: Tracking a response that has not been served yet
37
37
  Given I hit 'http://localhost:7001/mirage/track/1'
38
38
  Then a 404 should be returned
39
39
 
@@ -1,7 +1,7 @@
1
1
  Feature: Mirage's home page allows you to see what response are currently being hosted.
2
2
  From this page you can:
3
3
  - Peek at a responses content
4
- - Check the response to see if a request has been made to it
4
+ - Track the response to see if a request has been made to it
5
5
 
6
6
  Background: There are already a couple of responses hosted on he Mirage server
7
7
  Given I hit 'http://localhost:7001/mirage/set/greeting' with parameters:
@@ -20,11 +20,11 @@ Feature: Mirage's home page allows you to see what response are currently being
20
20
  When I click 'peek_response_1'
21
21
  Then I should see 'hello'
22
22
 
23
- Scenario: Using the home page to check if a request has been made
23
+ Scenario: Using the home page to track if a request has been made
24
24
  Given I hit 'http://localhost:7001/mirage/get/greeting' with request body:
25
25
  """
26
26
  Yo!
27
27
  """
28
28
  Given I goto 'http://localhost:7001/mirage'
29
- When I click 'check_response_1'
29
+ When I click 'track_response_1'
30
30
  Then I should see 'Yo!'
@@ -15,7 +15,7 @@
15
15
  <?r unless @responses.empty? ?>
16
16
  <table border="1" width='100%'>
17
17
  <?r @responses.each do |key, response| ?>
18
- <tr><td><a id='peek_response_#{response.response_id}' href="/mirage/peek/#{response.response_id}">#{key}</a></td><td><a id='check_response_#{response.response_id}' href="/mirage/track/#{response.response_id}">check</a></td></tr>
18
+ <tr><td><a id='peek_response_#{response.response_id}' href="/mirage/peek/#{response.response_id}">#{key}</a></td><td><a id='track_response_#{response.response_id}' href="/mirage/track/#{response.response_id}">track</a></td></tr>
19
19
  <?r end ?>
20
20
  </table>
21
21
  <?r end ?>
data/mirage.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'mirage'
3
- s.version = '1.0.0'
3
+ s.version = '1.0.1'
4
4
  s.authors = ["Leon Davis"]
5
5
  s.homepage = 'https://github.com/lashd/mirage'
6
6
  s.description = 'Mirage aids testing of your applications by hosting mock responses so that your applications do not have to talk to real endpoints. Its accessible via HTTP and has a RESTful interface.'
metadata CHANGED
@@ -1,13 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirage
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
4
  prerelease:
6
- segments:
7
- - 1
8
- - 0
9
- - 0
10
- version: 1.0.0
5
+ version: 1.0.1
11
6
  platform: ruby
12
7
  authors:
13
8
  - Leon Davis
@@ -26,11 +21,6 @@ dependencies:
26
21
  requirements:
27
22
  - - ~>
28
23
  - !ruby/object:Gem::Version
29
- hash: 19
30
- segments:
31
- - 1
32
- - 1
33
- - 0
34
24
  version: 1.1.0
35
25
  type: :runtime
36
26
  version_requirements: *id001
@@ -42,11 +32,6 @@ dependencies:
42
32
  requirements:
43
33
  - - ">="
44
34
  - !ruby/object:Gem::Version
45
- hash: 16127
46
- segments:
47
- - 2011
48
- - 1
49
- - 30
50
35
  version: 2011.01.30
51
36
  type: :runtime
52
37
  version_requirements: *id002
@@ -58,11 +43,6 @@ dependencies:
58
43
  requirements:
59
44
  - - ">="
60
45
  - !ruby/object:Gem::Version
61
- hash: 23
62
- segments:
63
- - 1
64
- - 0
65
- - 0
66
46
  version: 1.0.0
67
47
  type: :runtime
68
48
  version_requirements: *id003
@@ -74,9 +54,6 @@ dependencies:
74
54
  requirements:
75
55
  - - ">="
76
56
  - !ruby/object:Gem::Version
77
- hash: 3
78
- segments:
79
- - 0
80
57
  version: "0"
81
58
  type: :development
82
59
  version_requirements: *id004
@@ -88,9 +65,6 @@ dependencies:
88
65
  requirements:
89
66
  - - ">="
90
67
  - !ruby/object:Gem::Version
91
- hash: 3
92
- segments:
93
- - 0
94
68
  version: "0"
95
69
  type: :development
96
70
  version_requirements: *id005
@@ -102,9 +76,6 @@ dependencies:
102
76
  requirements:
103
77
  - - ">="
104
78
  - !ruby/object:Gem::Version
105
- hash: 3
106
- segments:
107
- - 0
108
79
  version: "0"
109
80
  type: :development
110
81
  version_requirements: *id006
@@ -116,9 +87,6 @@ dependencies:
116
87
  requirements:
117
88
  - - ">="
118
89
  - !ruby/object:Gem::Version
119
- hash: 3
120
- segments:
121
- - 0
122
90
  version: "0"
123
91
  type: :development
124
92
  version_requirements: *id007
@@ -135,7 +103,6 @@ files:
135
103
  - Gemfile
136
104
  - README.md
137
105
  - bin/mirage
138
- - features/clear.feature
139
106
  - features/client/clear.feature
140
107
  - features/client/get.feature
141
108
  - features/client/mirage_client.feature
@@ -143,22 +110,23 @@ files:
143
110
  - features/client/save_and_revert.feature
144
111
  - features/client/set.feature
145
112
  - features/client/track.feature
146
- - features/command_line_iterface.feature
147
- - features/file_hosting.feature
148
- - features/logging.feature
149
- - features/peek.feature
150
- - features/prime.feature
151
113
  - features/resources/test.zip
152
- - features/response_templates.feature
153
- - features/save_and_revert.feature
154
- - features/set.feature
155
- - features/set_default_response.feature
156
- - features/set_with_a_delay.feature
157
- - features/set_with_a_pattern.feature
114
+ - features/server/clear.feature
115
+ - features/server/command_line_iterface.feature
116
+ - features/server/file_responses.feature
117
+ - features/server/logging.feature
118
+ - features/server/peek.feature
119
+ - features/server/prime.feature
120
+ - features/server/response_templates.feature
121
+ - features/server/save_and_revert.feature
122
+ - features/server/set.feature
123
+ - features/server/set_default_response.feature
124
+ - features/server/set_with_a_delay.feature
125
+ - features/server/set_with_a_pattern.feature
126
+ - features/server/track.feature
127
+ - features/server/web_user_interface.feature
158
128
  - features/step_definitions/my_steps.rb
159
129
  - features/support/env.rb
160
- - features/track.feature
161
- - features/web_user_interface.feature
162
130
  - full_build.sh
163
131
  - lib/config.ru
164
132
  - lib/mirage.rb
@@ -174,18 +142,13 @@ has_rdoc: true
174
142
  homepage: https://github.com/lashd/mirage
175
143
  licenses: []
176
144
 
177
- post_install_message: |
178
-
179
- ===============================================================================
180
- Thanks you for installing mirage-1.0.0.
181
-
182
- Run Mirage with:
183
-
184
- mirage start
185
-
186
- For more information go to: https://github.com/lashd/mirage/wiki
187
- ===============================================================================
188
-
145
+ post_install_message: "\n\
146
+ ===============================================================================\n\
147
+ Thanks you for installing mirage-1.0.1. \n\n\
148
+ Run Mirage with:\n\n\
149
+ mirage start \n\n\
150
+ For more information go to: https://github.com/lashd/mirage/wiki\n\
151
+ ===============================================================================\n"
189
152
  rdoc_options: []
190
153
 
191
154
  require_paths:
@@ -195,18 +158,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
195
158
  requirements:
196
159
  - - ">="
197
160
  - !ruby/object:Gem::Version
198
- hash: 3
199
- segments:
200
- - 0
201
161
  version: "0"
202
162
  required_rubygems_version: !ruby/object:Gem::Requirement
203
163
  none: false
204
164
  requirements:
205
165
  - - ">="
206
166
  - !ruby/object:Gem::Version
207
- hash: 3
208
- segments:
209
- - 0
210
167
  version: "0"
211
168
  requirements: []
212
169
 
@@ -214,9 +171,8 @@ rubyforge_project:
214
171
  rubygems_version: 1.6.1
215
172
  signing_key:
216
173
  specification_version: 3
217
- summary: mirage-1.0.0
174
+ summary: mirage-1.0.1
218
175
  test_files:
219
- - features/clear.feature
220
176
  - features/client/clear.feature
221
177
  - features/client/get.feature
222
178
  - features/client/mirage_client.feature
@@ -224,19 +180,20 @@ test_files:
224
180
  - features/client/save_and_revert.feature
225
181
  - features/client/set.feature
226
182
  - features/client/track.feature
227
- - features/command_line_iterface.feature
228
- - features/file_hosting.feature
229
- - features/logging.feature
230
- - features/peek.feature
231
- - features/prime.feature
232
183
  - features/resources/test.zip
233
- - features/response_templates.feature
234
- - features/save_and_revert.feature
235
- - features/set.feature
236
- - features/set_default_response.feature
237
- - features/set_with_a_delay.feature
238
- - features/set_with_a_pattern.feature
184
+ - features/server/clear.feature
185
+ - features/server/command_line_iterface.feature
186
+ - features/server/file_responses.feature
187
+ - features/server/logging.feature
188
+ - features/server/peek.feature
189
+ - features/server/prime.feature
190
+ - features/server/response_templates.feature
191
+ - features/server/save_and_revert.feature
192
+ - features/server/set.feature
193
+ - features/server/set_default_response.feature
194
+ - features/server/set_with_a_delay.feature
195
+ - features/server/set_with_a_pattern.feature
196
+ - features/server/track.feature
197
+ - features/server/web_user_interface.feature
239
198
  - features/step_definitions/my_steps.rb
240
199
  - features/support/env.rb
241
- - features/track.feature
242
- - features/web_user_interface.feature