mirage 3.0.0.alpha.13 → 3.0.0.alpha.14
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.
- data/VERSION +1 -1
- data/mirage.gemspec +1 -1
- data/test.rb +3 -1
- data/views/index.haml +2 -8
- data/views/response.haml +14 -9
- metadata +2 -2
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.0.0.alpha.
|
1
|
+
3.0.0.alpha.14
|
data/mirage.gemspec
CHANGED
data/test.rb
CHANGED
data/views/index.haml
CHANGED
@@ -4,18 +4,12 @@
|
|
4
4
|
%h1 Welcome to Mirage
|
5
5
|
|
6
6
|
%p
|
7
|
-
Below are any responses you are currently hosting.
|
7
|
+
Below are any responses you are currently hosting.
|
8
8
|
%br
|
9
9
|
%br
|
10
|
-
|
10
|
+
Click the response itself to peek at it and click 'track' to view the last request that triggered it.
|
11
11
|
%br
|
12
12
|
%br
|
13
|
-
Responses with '*' at the end are default responses. I.e. they will be returned, where appropriate, for requests to a sub endpoint if a response is not found at that level.
|
14
|
-
%br
|
15
|
-
%br
|
16
|
-
%strong Note:
|
17
|
-
if requests or responses contain xml, you will need to view page source to see it properly.
|
18
|
-
%br
|
19
13
|
|
20
14
|
%h2 Responses
|
21
15
|
- ::Mirage::MockResponse.all.each do |mock_response|
|
data/views/response.haml
CHANGED
@@ -4,6 +4,12 @@
|
|
4
4
|
%label{:style => 'font-weight: bold'}
|
5
5
|
endpoint:
|
6
6
|
%a{href: "/templates/#{response.response_id}/body"} #{response.name}
|
7
|
+
%span -:-
|
8
|
+
%a{href: "/requests/#{response.response_id}"} Track
|
9
|
+
%br
|
10
|
+
%label{:style => 'font-weight: bold'}
|
11
|
+
ID:
|
12
|
+
#{response.response_id}
|
7
13
|
%br
|
8
14
|
%label{:style => 'font-weight: bold'}
|
9
15
|
status:
|
@@ -12,15 +18,6 @@
|
|
12
18
|
%label{:style => 'font-weight: bold'}
|
13
19
|
Content-Type:
|
14
20
|
#{response.response_spec[:content_type]}
|
15
|
-
|
16
|
-
%br
|
17
|
-
%label{:style => 'font-weight: bold'}
|
18
|
-
delay:
|
19
|
-
#{response.response_spec.delay}
|
20
|
-
%br
|
21
|
-
%label{:style => 'font-weight: bold'}
|
22
|
-
default:
|
23
|
-
#{response.default? ? 'true' : 'false'}
|
24
21
|
%br
|
25
22
|
%label{:style => 'font-weight: bold'}
|
26
23
|
required http method:
|
@@ -38,4 +35,12 @@
|
|
38
35
|
required body content:
|
39
36
|
#{response.request_spec.body_content}
|
40
37
|
%br
|
38
|
+
%label{:style => 'font-weight: bold'}
|
39
|
+
delay:
|
40
|
+
#{response.response_spec.delay}
|
41
|
+
%br
|
42
|
+
%label{:style => 'font-weight: bold'}
|
43
|
+
default:
|
44
|
+
#{response.default? ? 'true' : 'false'}
|
45
|
+
%br
|
41
46
|
%br
|
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.0.alpha.
|
4
|
+
version: 3.0.0.alpha.14
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -354,7 +354,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
354
354
|
version: '0'
|
355
355
|
segments:
|
356
356
|
- 0
|
357
|
-
hash:
|
357
|
+
hash: 2135651075516207221
|
358
358
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
359
359
|
none: false
|
360
360
|
requirements:
|