mirage 3.0.11 → 3.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2a243991a8b8aaa8643ddc35f9e4b817d4fd1642
4
- data.tar.gz: 7ff22557aaf2b0d086595945bc44334c2c50a425
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ YmJkMjRkYmVmZjFmZDQzM2FiNDUxOTM1ZjlmOWI5MGYzNTg5OTM0OQ==
5
+ data.tar.gz: !binary |-
6
+ ODVmZmI5NGNiZTIyNzJlZDc5N2I5ZmE0ODhkZmU1MGFhNjlmNGQyOQ==
5
7
  SHA512:
6
- metadata.gz: bbe396329fc373749c1d9bb3c62a704a9e1acfd2b0a0f97e2f19561029d7a31a6b40fe6e62e0f76d1527172f1e154e1dc0be58ecc559e736e1b6b376f661e4c4
7
- data.tar.gz: 1da9a76e891b9a7e682bd6bf757569a4aa700f924203bb16908310a8853392e27ca53c79ab50158ac6b8f696469c20a243d948b8e43633b632c72e1e46749441
8
+ metadata.gz: !binary |-
9
+ NWEzYWVjYWJhNmE2YmY3MDRiMDJjN2FhNmNmYjdiZGNmY2JlZDdjNTVkMWY5
10
+ MWE2YTMxNGJmZTQ1NzEyM2IxNWU5MmFjYjFmZWJjMThmMmFkZmU0ZjFlMjZm
11
+ MmExMzJlYjVlY2YwOGY5OWU2ODkxZTMxMTMxMDJhNjIwYWUxNDU=
12
+ data.tar.gz: !binary |-
13
+ NzVjMTg5NWE2ZjMzMmEzN2Y2ZmIyMzFkOWFkMWQzYTRiMjNiNDc5ZmYwZTZl
14
+ ZGMwYmViOTFjOTYwODkxZWU1NGZhNTljYzZiMmRiZjY4ZTI1ZTNhZjc1OTAz
15
+ Y2ZmYmM4YjljNDQwNmZjZDNhMDNjY2ZhNjViNWRhZGMzOTA1YmI=
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.11
1
+ 3.0.12
@@ -67,7 +67,6 @@ When /^I send (GET|POST) to '(.*)' with parameters:$/ do |http_method, endpoint,
67
67
  value = File.exists?(value) ? File.open(value, 'rb') : value
68
68
  parameters[parameter]=value
69
69
  end
70
- puts parameters
71
70
 
72
71
  @response = case http_method
73
72
  when 'POST' then
@@ -62,7 +62,6 @@ When /^the response '([^']*)' should be '([^']*)'$/ do |header, value|
62
62
  end
63
63
 
64
64
  Then /^request data should have been retrieved$/ do
65
- puts @response.body
66
65
  request_data = JSON.parse(@response.body)
67
66
  request_data.include?('parameters').should == true
68
67
  request_data.include?('headers').should == true
@@ -8,7 +8,6 @@ module Mirage
8
8
  HTTParty.put(*args)
9
9
  end
10
10
  def post *args
11
- puts "running this one"
12
11
  HTTParty.post(*args)
13
12
  end
14
13
  def delete *args
@@ -14,6 +14,8 @@ module Mirage
14
14
  request.body = result.body
15
15
  request.id = result.id
16
16
  request
17
+ rescue
18
+ raise NotReceivedException.new('Mirage has not received a request for this id')
17
19
  end
18
20
  end
19
21
 
@@ -22,5 +24,7 @@ module Mirage
22
24
  def delete
23
25
  self.class.delete(id)
24
26
  end
27
+
28
+ class NotReceivedException < StandardError ; end
25
29
  end
26
30
  end
data/mirage.gemspec CHANGED
@@ -2,16 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
- # stub: mirage 3.0.11 ruby lib
5
+ # stub: mirage 3.0.12 ruby lib
6
6
 
7
7
  Gem::Specification.new do |s|
8
8
  s.name = "mirage"
9
- s.version = "3.0.11"
9
+ s.version = "3.0.12"
10
10
 
11
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
12
  s.require_paths = ["lib"]
13
13
  s.authors = ["Leon Davis"]
14
- s.date = "2016-03-22"
14
+ s.date = "2016-04-03"
15
15
  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."
16
16
  s.executables = ["mirage"]
17
17
  s.extra_rdoc_files = [
@@ -126,7 +126,7 @@ Gem::Specification.new do |s|
126
126
  s.homepage = "https://github.com/lashd/mirage"
127
127
  s.licenses = ["MIT"]
128
128
  s.post_install_message = "\n===============================================================================\nMirage v3:\n\nMirage has just gone up a major version from 2 to 3. If your project uses\na previous version take a look at https://github.com/lashd/mirage to see\nwhat's changed\n===============================================================================\n"
129
- s.rubygems_version = "2.3.0"
129
+ s.rubygems_version = "2.4.8"
130
130
  s.summary = "Mirage is a easy mock server for testing your applications"
131
131
 
132
132
  if s.respond_to? :specification_version then
@@ -36,4 +36,9 @@ describe Request do
36
36
  request.id.should == id
37
37
  end
38
38
 
39
+ it 'raises error when request is not found' do
40
+ Request.should_receive(:backedup_get).and_raise(StandardError)
41
+
42
+ expect { Request.get(request_url) }.to raise_error(Request::NotReceivedException)
43
+ end
39
44
  end
metadata CHANGED
@@ -1,167 +1,167 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mirage
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.11
4
+ version: 3.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leon Davis
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-22 00:00:00.000000000 Z
11
+ date: 2016-04-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sinatra
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ! '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: childprocess
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ! '>='
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ! '>='
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: thor
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ! '>='
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ! '>='
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: ptools
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ! '>='
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ! '>='
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: httparty
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ! '>='
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ! '>='
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: haml
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - '>='
87
+ - - ! '>='
88
88
  - !ruby/object:Gem::Version
89
89
  version: '0'
90
90
  type: :runtime
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - '>='
94
+ - - ! '>='
95
95
  - !ruby/object:Gem::Version
96
96
  version: '0'
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: hashie
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - '>='
101
+ - - ! '>='
102
102
  - !ruby/object:Gem::Version
103
103
  version: '0'
104
104
  type: :runtime
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - '>='
108
+ - - ! '>='
109
109
  - !ruby/object:Gem::Version
110
110
  version: '0'
111
111
  - !ruby/object:Gem::Dependency
112
112
  name: rake
113
113
  requirement: !ruby/object:Gem::Requirement
114
114
  requirements:
115
- - - '>='
115
+ - - ! '>='
116
116
  - !ruby/object:Gem::Version
117
117
  version: '0'
118
118
  type: :development
119
119
  prerelease: false
120
120
  version_requirements: !ruby/object:Gem::Requirement
121
121
  requirements:
122
- - - '>='
122
+ - - ! '>='
123
123
  - !ruby/object:Gem::Version
124
124
  version: '0'
125
125
  - !ruby/object:Gem::Dependency
126
126
  name: jeweler
127
127
  requirement: !ruby/object:Gem::Requirement
128
128
  requirements:
129
- - - '>='
129
+ - - ! '>='
130
130
  - !ruby/object:Gem::Version
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
134
  version_requirements: !ruby/object:Gem::Requirement
135
135
  requirements:
136
- - - '>='
136
+ - - ! '>='
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: sinatra-contrib
141
141
  requirement: !ruby/object:Gem::Requirement
142
142
  requirements:
143
- - - '>='
143
+ - - ! '>='
144
144
  - !ruby/object:Gem::Version
145
145
  version: '0'
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
- - - '>='
150
+ - - ! '>='
151
151
  - !ruby/object:Gem::Version
152
152
  version: '0'
153
153
  - !ruby/object:Gem::Dependency
154
154
  name: jruby-openssl
155
155
  requirement: !ruby/object:Gem::Requirement
156
156
  requirements:
157
- - - '>='
157
+ - - ! '>='
158
158
  - !ruby/object:Gem::Version
159
159
  version: '0'
160
160
  type: :development
161
161
  prerelease: false
162
162
  version_requirements: !ruby/object:Gem::Requirement
163
163
  requirements:
164
- - - '>='
164
+ - - ! '>='
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  description: Mirage aids testing of your applications by hosting mock responses so
@@ -282,31 +282,38 @@ homepage: https://github.com/lashd/mirage
282
282
  licenses:
283
283
  - MIT
284
284
  metadata: {}
285
- post_install_message: |2
285
+ post_install_message: ! '
286
286
 
287
287
  ===============================================================================
288
+
288
289
  Mirage v3:
289
290
 
291
+
290
292
  Mirage has just gone up a major version from 2 to 3. If your project uses
293
+
291
294
  a previous version take a look at https://github.com/lashd/mirage to see
292
- what's changed
295
+
296
+ what''s changed
297
+
293
298
  ===============================================================================
299
+
300
+ '
294
301
  rdoc_options: []
295
302
  require_paths:
296
303
  - lib
297
304
  required_ruby_version: !ruby/object:Gem::Requirement
298
305
  requirements:
299
- - - '>='
306
+ - - ! '>='
300
307
  - !ruby/object:Gem::Version
301
308
  version: '0'
302
309
  required_rubygems_version: !ruby/object:Gem::Requirement
303
310
  requirements:
304
- - - '>='
311
+ - - ! '>='
305
312
  - !ruby/object:Gem::Version
306
313
  version: '0'
307
314
  requirements: []
308
315
  rubyforge_project:
309
- rubygems_version: 2.3.0
316
+ rubygems_version: 2.4.8
310
317
  signing_key:
311
318
  specification_version: 4
312
319
  summary: Mirage is a easy mock server for testing your applications