mirage 3.0.0.alpha.13 → 3.0.0.alpha.14

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.0.alpha.13
1
+ 3.0.0.alpha.14
data/mirage.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "mirage"
8
- s.version = "3.0.0.alpha.13"
8
+ s.version = "3.0.0.alpha.14"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new("> 1.3.1") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Leon Davis"]
data/test.rb CHANGED
@@ -1,3 +1,5 @@
1
1
  require 'mirage/client'
2
2
 
3
- Mirage.start.put('greeting', 'hello')
3
+ Mirage.start.put('greeting', 'hello') do
4
+ content_type "text/html"
5
+ end
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. Click the response itself to peek at it and click 'track' to view the last request that triggered it.
7
+ Below are any responses you are currently hosting.
8
8
  %br
9
9
  %br
10
- Patterns and delays are shown for responses that have them.
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.13
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: -834089398035739627
357
+ hash: 2135651075516207221
358
358
  required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  none: false
360
360
  requirements: