mirage 3.0.13 → 3.0.14

Sign up to get free protection for your applications and to get access to all the features.
Files changed (76) hide show
  1. checksums.yaml +8 -8
  2. metadata +1 -75
  3. data/.ruby-gemset +0 -1
  4. data/.ruby-version +0 -1
  5. data/.simplecov +0 -6
  6. data/.travis.yml +0 -4
  7. data/Gemfile +0 -27
  8. data/Gemfile.lock +0 -142
  9. data/HISTORY +0 -24
  10. data/Rakefile +0 -10
  11. data/VERSION +0 -1
  12. data/features/.nav +0 -29
  13. data/features/client/clear.feature +0 -78
  14. data/features/client/configure.feature +0 -72
  15. data/features/client/model.feature +0 -95
  16. data/features/client/preview_responses.feature +0 -33
  17. data/features/client/prime.feature +0 -32
  18. data/features/client/put.feature +0 -111
  19. data/features/client/readme.md +0 -3
  20. data/features/client/requests.feature +0 -20
  21. data/features/client/running.feature +0 -51
  22. data/features/client/save_and_revert.feature +0 -39
  23. data/features/client/start.feature +0 -46
  24. data/features/client/stop.feature +0 -53
  25. data/features/commandline_interface/help.feature +0 -17
  26. data/features/commandline_interface/readme.md +0 -1
  27. data/features/commandline_interface/start.feature +0 -18
  28. data/features/commandline_interface/stop.feature +0 -42
  29. data/features/logging.feature +0 -6
  30. data/features/prime.feature +0 -35
  31. data/features/readme.md +0 -7
  32. data/features/requests/delete.feature +0 -48
  33. data/features/requests/get.feature +0 -36
  34. data/features/save_and_revert.feature +0 -35
  35. data/features/step_definitions/my_steps.rb +0 -97
  36. data/features/step_definitions/observation_steps.rb +0 -102
  37. data/features/support/command_line.rb +0 -37
  38. data/features/support/env.rb +0 -22
  39. data/features/support/hooks.rb +0 -26
  40. data/features/support/mirage.rb +0 -12
  41. data/features/support/web.rb +0 -19
  42. data/features/templates/delete.feature +0 -45
  43. data/features/templates/get.feature +0 -54
  44. data/features/templates/path_wildcards.feature +0 -10
  45. data/features/templates/preview.feature +0 -18
  46. data/features/templates/put.feature +0 -77
  47. data/features/templates/put_with_substitutions.feature +0 -22
  48. data/features/templates/readme.md +0 -4
  49. data/features/templates/required_content.feature +0 -113
  50. data/features/web_user_interface.feature +0 -44
  51. data/full_build.sh +0 -100
  52. data/mirage.gemspec +0 -174
  53. data/spec/mirage/client/cli_bridge_spec.rb +0 -63
  54. data/spec/mirage/client/client_spec.rb +0 -179
  55. data/spec/mirage/client/helpers/method_builder_spec.rb +0 -48
  56. data/spec/mirage/client/request_spec.rb +0 -44
  57. data/spec/mirage/client/requests_spec.rb +0 -9
  58. data/spec/mirage/client/runner_spec.rb +0 -138
  59. data/spec/mirage/client/template/configuration_spec.rb +0 -32
  60. data/spec/mirage/client/template/model/common_methods_spec.rb +0 -25
  61. data/spec/mirage/client/template/model/instance_methods_spec.rb +0 -169
  62. data/spec/mirage/client/template/model_spec.rb +0 -119
  63. data/spec/mirage/client/template_spec.rb +0 -146
  64. data/spec/mirage/client/templates_spec.rb +0 -197
  65. data/spec/mirage/wait_methods_spec.rb +0 -42
  66. data/spec/resources/binary.file +0 -0
  67. data/spec/server/binary_data_checker_spec.rb +0 -21
  68. data/spec/server/helpers/http_headers_spec.rb +0 -20
  69. data/spec/server/helpers/template_requirements_spec.rb +0 -34
  70. data/spec/server/mock_response_set_spec.rb +0 -57
  71. data/spec/server/mock_response_spec.rb +0 -577
  72. data/spec/server/server_spec.rb +0 -156
  73. data/spec/spec_helper.rb +0 -85
  74. data/tasks/application.rake +0 -7
  75. data/tasks/packaging.rake +0 -28
  76. data/tasks/tests.rake +0 -25
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ODUxZjg2NGFkN2M4N2E5ZTVlYzRmMDQzODBlNzE3MjFkNWE2ZDFiYQ==
4
+ NjNiNzU3NTM2Zjk4YzE0MGNlYzE1YWVlMGQ4OWJhMmQ4M2FkOTdkMA==
5
5
  data.tar.gz: !binary |-
6
- MjQ5ZWNmYTNiNzdiNDc1YmRiMGMxMjEzYjNjMTdhOTczN2NiYmE5Ng==
6
+ ZjFiYmQzYjZlYzMxYWFiNmZlNTUxMWQ2MWUzOTQyMGU0NjIyMmEyMw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- NGZlNjk5ZjkxYTRmYzE2MzE3ZWE3ZjU5OTcyZDM2MWU4YWYwNDdiNzQ2NDJi
10
- NjVmZWMwOWQ1NTViZTFmMDI4NDNmN2NjYmFmN2JjY2YzZmJjMzI2NmI2MDEz
11
- MWUyZmJhYTZlYzIxNjg1YzIxNTk3YTJkOTcyNzViODY5MGM0MzY=
9
+ Y2FmMjAwOTc1YzhlMzZlODIwMzVkODcyYzcyY2E2ZDQ5NmNlZDExZmVhMWZh
10
+ N2M0MDgyOWE0OTdkMzVlOWMzOWFhNWM0YTY5MDZjYmZhZDBiZjQ5YzI4YzE1
11
+ YTM1OWQ3MzZlZDg0MDkwMmJiNGM5NGVmODY2YzJhNjE2YmNhZTA=
12
12
  data.tar.gz: !binary |-
13
- ZTVjNzk5ODA3ZjBlYjkzM2ZiMjAwZDJhZjYzODhlN2MzZWRhZTBlMzMxNjlk
14
- ZDM2ZDY1ODBjNzkyMDZjYjUwYjRjNjY5NWQ2MTI1NWNjY2RmZWQ4ZDc2MjU4
15
- NzM1NmY4ZGZmM2I3MTc4YWU4NzZlYjRlNmM0MjIzZGFiZDNlNjM=
13
+ NzNiMTIyOGQxMzlhYmM1NmM0ZDQyOTgzMWIwYmM3MDdkMmQ3ZDAyODI2MDMy
14
+ NjM1NmUzZWQxZjY3ZDc2NjAyNjQ1NGEzNTczZTE2ZDNiYjg3YTJjMjc4NDI4
15
+ YmY3ODhkYjZmMGNhY2NiODYzMDk3NjI2YzY3MGQ5MzJlOGYyOTQ=
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirage
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.13
4
+ version: 3.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Davis
@@ -174,57 +174,8 @@ extensions: []
174
174
  extra_rdoc_files:
175
175
  - README.md
176
176
  files:
177
- - .ruby-gemset
178
- - .ruby-version
179
- - .simplecov
180
- - .travis.yml
181
- - Gemfile
182
- - Gemfile.lock
183
- - HISTORY
184
177
  - README.md
185
- - Rakefile
186
- - VERSION
187
178
  - bin/mirage
188
- - features/.nav
189
- - features/client/clear.feature
190
- - features/client/configure.feature
191
- - features/client/model.feature
192
- - features/client/preview_responses.feature
193
- - features/client/prime.feature
194
- - features/client/put.feature
195
- - features/client/readme.md
196
- - features/client/requests.feature
197
- - features/client/running.feature
198
- - features/client/save_and_revert.feature
199
- - features/client/start.feature
200
- - features/client/stop.feature
201
- - features/commandline_interface/help.feature
202
- - features/commandline_interface/readme.md
203
- - features/commandline_interface/start.feature
204
- - features/commandline_interface/stop.feature
205
- - features/logging.feature
206
- - features/prime.feature
207
- - features/readme.md
208
- - features/requests/delete.feature
209
- - features/requests/get.feature
210
- - features/save_and_revert.feature
211
- - features/step_definitions/my_steps.rb
212
- - features/step_definitions/observation_steps.rb
213
- - features/support/command_line.rb
214
- - features/support/env.rb
215
- - features/support/hooks.rb
216
- - features/support/mirage.rb
217
- - features/support/web.rb
218
- - features/templates/delete.feature
219
- - features/templates/get.feature
220
- - features/templates/path_wildcards.feature
221
- - features/templates/preview.feature
222
- - features/templates/put.feature
223
- - features/templates/put_with_substitutions.feature
224
- - features/templates/readme.md
225
- - features/templates/required_content.feature
226
- - features/web_user_interface.feature
227
- - full_build.sh
228
179
  - lib/mirage/client.rb
229
180
  - lib/mirage/client/cli_bridge.rb
230
181
  - lib/mirage/client/client.rb
@@ -240,7 +191,6 @@ files:
240
191
  - lib/mirage/client/template/model/instance_methods.rb
241
192
  - lib/mirage/client/templates.rb
242
193
  - lib/mirage/wait_methods.rb
243
- - mirage.gemspec
244
194
  - mirage_server.rb
245
195
  - server/app.rb
246
196
  - server/binary_data_checker.rb
@@ -252,30 +202,6 @@ files:
252
202
  - server/mock_response.rb
253
203
  - server/mock_response_set.rb
254
204
  - server/server.rb
255
- - spec/mirage/client/cli_bridge_spec.rb
256
- - spec/mirage/client/client_spec.rb
257
- - spec/mirage/client/helpers/method_builder_spec.rb
258
- - spec/mirage/client/request_spec.rb
259
- - spec/mirage/client/requests_spec.rb
260
- - spec/mirage/client/runner_spec.rb
261
- - spec/mirage/client/template/configuration_spec.rb
262
- - spec/mirage/client/template/model/common_methods_spec.rb
263
- - spec/mirage/client/template/model/instance_methods_spec.rb
264
- - spec/mirage/client/template/model_spec.rb
265
- - spec/mirage/client/template_spec.rb
266
- - spec/mirage/client/templates_spec.rb
267
- - spec/mirage/wait_methods_spec.rb
268
- - spec/resources/binary.file
269
- - spec/server/binary_data_checker_spec.rb
270
- - spec/server/helpers/http_headers_spec.rb
271
- - spec/server/helpers/template_requirements_spec.rb
272
- - spec/server/mock_response_set_spec.rb
273
- - spec/server/mock_response_spec.rb
274
- - spec/server/server_spec.rb
275
- - spec/spec_helper.rb
276
- - tasks/application.rake
277
- - tasks/packaging.rake
278
- - tasks/tests.rake
279
205
  - views/index.haml
280
206
  - views/response.haml
281
207
  homepage: https://github.com/lashd/mirage
@@ -1 +0,0 @@
1
- mirage
@@ -1 +0,0 @@
1
- 1.9.3
data/.simplecov DELETED
@@ -1,6 +0,0 @@
1
- SimpleCov.start do
2
- command_name "spec:#{ENV['coverage']}"
3
- add_filter "/spec/"
4
- add_group "Server", "server"
5
- add_group "Client", "lib"
6
- end
@@ -1,4 +0,0 @@
1
- rvm:
2
- - '1.9.3'
3
- - '2.0.0'
4
- - '2.1.5'
data/Gemfile DELETED
@@ -1,27 +0,0 @@
1
- source 'https://rubygems.org'
2
-
3
- gem 'sinatra'
4
- gem 'childprocess'
5
- gem "thor"
6
- gem "ptools"
7
- gem "httparty"
8
- gem "haml"
9
- gem 'hashie'
10
-
11
- group :test do
12
- gem 'cucumber'
13
- gem 'rspec', require: 'rspec/core/rake_task'
14
- gem 'rack-test'
15
- gem 'simplecov', require: false
16
- end
17
-
18
- group :development do
19
- gem 'rake'
20
- gem "jeweler"
21
- gem 'sinatra-contrib'
22
-
23
- platform :jruby do
24
- gem "jruby-openssl"
25
- end
26
- end
27
-
@@ -1,142 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.3.5)
5
- backports (3.6.8)
6
- bouncy-castle-java (1.5.0147)
7
- builder (3.2.2)
8
- childprocess (0.3.9)
9
- ffi (~> 1.0, >= 1.0.11)
10
- cucumber (1.3.8)
11
- builder (>= 2.1.2)
12
- diff-lcs (>= 1.1.3)
13
- gherkin (~> 2.12.1)
14
- multi_json (>= 1.7.5, < 2.0)
15
- multi_test (>= 0.0.2)
16
- diff-lcs (1.2.4)
17
- faraday (0.8.8)
18
- multipart-post (~> 1.2.0)
19
- ffi (1.9.0)
20
- ffi (1.9.0-java)
21
- ffi (1.9.0-x86-mingw32)
22
- gherkin (2.12.2)
23
- multi_json (~> 1.3)
24
- gherkin (2.12.2-java)
25
- multi_json (~> 1.3)
26
- gherkin (2.12.2-x86-mingw32)
27
- multi_json (~> 1.3)
28
- git (1.2.6)
29
- github_api (0.10.1)
30
- addressable
31
- faraday (~> 0.8.1)
32
- hashie (>= 1.2)
33
- multi_json (~> 1.4)
34
- nokogiri (~> 1.5.2)
35
- oauth2
36
- haml (4.0.3)
37
- tilt
38
- hashie (2.0.5)
39
- highline (1.6.20)
40
- httparty (0.12.0)
41
- json (~> 1.8)
42
- multi_xml (>= 0.5.2)
43
- httpauth (0.2.0)
44
- jeweler (1.8.8)
45
- builder
46
- bundler (~> 1.0)
47
- git (>= 1.2.5)
48
- github_api (= 0.10.1)
49
- highline (>= 1.6.15)
50
- nokogiri (= 1.5.10)
51
- rake
52
- rdoc
53
- jruby-openssl (0.9.4)
54
- bouncy-castle-java (>= 1.5.0147)
55
- json (1.8.1)
56
- json (1.8.1-java)
57
- jwt (0.1.8)
58
- multi_json (>= 1.5)
59
- multi_json (1.8.2)
60
- multi_test (0.0.2)
61
- multi_xml (0.5.5)
62
- multipart-post (1.2.0)
63
- nokogiri (1.5.10)
64
- nokogiri (1.5.10-java)
65
- nokogiri (1.5.10-x86-mingw32)
66
- oauth2 (0.9.2)
67
- faraday (~> 0.8)
68
- httpauth (~> 0.2)
69
- jwt (~> 0.1.4)
70
- multi_json (~> 1.0)
71
- multi_xml (~> 0.5)
72
- rack (~> 1.2)
73
- ptools (1.2.2)
74
- ptools (1.2.2-x86-mingw32)
75
- win32-file (>= 0.5.4)
76
- rack (1.5.2)
77
- rack-protection (1.5.1)
78
- rack
79
- rack-test (0.6.2)
80
- rack (>= 1.0)
81
- rake (10.1.0)
82
- rdoc (4.0.1)
83
- json (~> 1.4)
84
- rspec (2.14.1)
85
- rspec-core (~> 2.14.0)
86
- rspec-expectations (~> 2.14.0)
87
- rspec-mocks (~> 2.14.0)
88
- rspec-core (2.14.6)
89
- rspec-expectations (2.14.3)
90
- diff-lcs (>= 1.1.3, < 2.0)
91
- rspec-mocks (2.14.4)
92
- simplecov (0.7.1)
93
- multi_json (~> 1.0)
94
- simplecov-html (~> 0.7.1)
95
- simplecov-html (0.7.1)
96
- sinatra (1.4.4)
97
- rack (~> 1.4)
98
- rack-protection (~> 1.4)
99
- tilt (~> 1.3, >= 1.3.4)
100
- sinatra-contrib (1.4.1)
101
- backports (>= 2.0)
102
- multi_json
103
- rack-protection
104
- rack-test
105
- sinatra (~> 1.4.0)
106
- tilt (~> 1.3)
107
- thor (0.18.1)
108
- tilt (1.4.1)
109
- win32-api (1.5.0-x86-mingw32)
110
- win32-file (0.6.8)
111
- win32-api (>= 1.2.1)
112
- win32-file-stat (>= 1.3.2)
113
- windows-pr (>= 1.0.8)
114
- win32-file-stat (1.3.6)
115
- windows-pr (>= 1.0.0)
116
- windows-api (0.4.2)
117
- win32-api (>= 1.4.5)
118
- windows-pr (1.2.2)
119
- win32-api (>= 1.4.5)
120
- windows-api (>= 0.3.0)
121
-
122
- PLATFORMS
123
- java
124
- ruby
125
- x86-mingw32
126
-
127
- DEPENDENCIES
128
- childprocess
129
- cucumber
130
- haml
131
- hashie
132
- httparty
133
- jeweler
134
- jruby-openssl
135
- ptools
136
- rack-test
137
- rake
138
- rspec
139
- simplecov
140
- sinatra
141
- sinatra-contrib
142
- thor
data/HISTORY DELETED
@@ -1,24 +0,0 @@
1
- v3.0.12 - Merge of [pull request from @asehra](https://github.com/lashd/mirage/pull/17). Raises exception when trying to retrieve request information and request has not been received.
2
- V3.0.11 - Implement waiting function within project and remove dependency on waitforit
3
- V3.0.8 - bug fix for issue 13: https://github.com/lashd/mirage/issues/13 - match Content-Length header
4
- V3.0.7 - bug fix for issue 13: https://github.com/lashd/mirage/issues/13 - match Content-Type header
5
- V3.0.6 - bug fix
6
- V3.0.5 - fixed bug in builder methods
7
- V3.0.1 - updating gem post install message to point people towards the readme due checkout the differences between version 2 and 3 of Mirage
8
- V3.0.0 - Major update see README.md
9
- V2.4.2 - update eventmachine, make sure Mirage.start always returns a client
10
- V2.4.1 - adding rdoc for configure method
11
- V2.4.0 - Adding ability to set defaults
12
- V2.3.0 - Enhanced commandline/programmatic api
13
- V2.2.3 - fix bug where mirage is already running a client calls exit.
14
- V2.2.1/2 - Code tidy up
15
- V2.2.0 - Api for starting and stopping Mirage locally
16
- V2.1.2 - rename status_code to status
17
- V2.1.1 - Set response code and tidy ups
18
- V2.0.16 - minor typo fix for window command window title in windows
19
- V2.0.15 - fix uploading files from client and fix starting mirage on windows
20
- V2.0.12/13/14 - updating gem versions
21
- V2.0.8/9/10/11 - tidy up code, still a lot to do :)
22
- V2.0.7 - fix missing dependency on waitforit gem
23
- V2.0.1/2/3 - tidying up code
24
- V2.0.0 - Converted to restful interface
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- require 'bundler/setup'
2
-
3
- Bundler.setup(:default, :development)
4
- Bundler.require(:test, :development)
5
-
6
- Dir["#{File.dirname(__FILE__)}/tasks/**/*.rake"].each do |tasks|
7
- import tasks
8
- end
9
-
10
- task :default => [:specs, :install, :features, :clean]
data/VERSION DELETED
@@ -1 +0,0 @@
1
- 3.0.13
@@ -1,29 +0,0 @@
1
- - commandline_interface (Commandline interface):
2
- - help.feature
3
- - start.feature
4
- - stop.featre
5
- - templates (Templates):
6
- - put.feature
7
- - required_content.feature
8
- - put_with_substitutions.feature
9
- - get.feature
10
- - delete.feature
11
- - requests:
12
- - get.feature
13
- - delete.feature
14
- - requests:
15
- - save_and_revert.feature (Snapshot)
16
- - prime.feature
17
- - logging.feature (Logs)
18
- - web_user_interface.feature
19
- - client (Ruby client):
20
- - start.feature
21
- - stop.feature
22
- - running.feature
23
- - put.feature
24
- - configure.feature
25
- - clear.feature
26
- - preview_responses.feature
27
- - model.feature
28
- - requests.feature
29
- - save_and_revert.feature
@@ -1,78 +0,0 @@
1
- Feature: Clearing Templates
2
-
3
- The client can be used to clear responses and tracked request data from Mirage.
4
-
5
- Like when calling Mirage's own interface directly, clearing a template also clears any associated request data
6
-
7
- Background:
8
- Given the following require statements are needed:
9
- """
10
- require 'rubygems'
11
- require 'mirage/client'
12
- """
13
-
14
- And a template for 'greeting' has been set with a value of 'Hello'
15
-
16
- And I send GET to '/responses/greeting' with parameters:
17
- | message | hello there |
18
- And a template for 'leaving' has been set with a value of 'Goodbye'
19
-
20
- And I send GET to '/responses/greeting' with parameters:
21
- | message | I'm going |
22
-
23
-
24
- Scenario: Clearing a template
25
- Given I run
26
- """
27
- Mirage::Client.new.templates(1).delete
28
- """
29
- When GET is sent to '/responses/greeting'
30
- Then a 404 should be returned
31
- When GET is sent to '/requests/1'
32
- Then a 404 should be returned
33
-
34
- When GET is sent to '/responses/leaving'
35
- Then a 200 should be returned
36
- When GET is sent to '/requests/2'
37
- Then a 200 should be returned
38
-
39
-
40
- Scenario: Clearing a request
41
- Given I run
42
- """
43
- Mirage::Client.new.requests(1).delete
44
- """
45
- When GET is sent to '/requests/1'
46
- Then a 404 should be returned
47
- When GET is sent to '/responses/greeting'
48
- Then a 200 should be returned
49
-
50
-
51
- Scenario: Clearing everything
52
- When I run
53
- """
54
- Mirage::Client.new.templates.delete_all
55
- """
56
- And GET is sent to '/responses/greeting'
57
- Then a 404 should be returned
58
-
59
- When GET is sent to '/requests/1'
60
- Then a 404 should be returned
61
-
62
- And GET is sent to '/responses/leaving'
63
- Then a 404 should be returned
64
-
65
- When GET is sent to '/requests/2'
66
- Then a 404 should be returned
67
-
68
-
69
- Scenario: Clearing all request data
70
- When I run
71
- """
72
- Mirage::Client.new.requests.delete_all
73
- """
74
- When GET is sent to '/requests/1'
75
- Then a 404 should be returned
76
-
77
- When GET is sent to '/requests/2'
78
- Then a 404 should be returned