cassette-rack 0.5.0 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -0
- data/lib/cassette-rack/request.rb +11 -11
- data/lib/cassette-rack/response.rb +2 -0
- data/lib/cassette-rack/version.rb +1 -1
- data/lib/templates/layouts/application.html.liquid +16 -6
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b21c217f69cf7280e75130c4ffeb42e1f550d5ea
|
4
|
+
data.tar.gz: ca0662737ec616e546a26f65c626b35eca0da7a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a5e41f438b0aae56f20db527d1f14fbc775f3259820d9690fa78e8be3a8c856f18f3c9c73e8b0165df3d0bac1e83b61dd40a5b2ebdac0a01ca24e9cecb61e5c
|
7
|
+
data.tar.gz: bcf7b4b5e5330762c677546ea1a0d8895bc0f62102af924c52ac876ba70434b10d2db4532ab3e5d36698bcc4c8bebb27001c8e77f474440588bcb376b251f431
|
data/README.md
CHANGED
@@ -5,27 +5,27 @@ module CassetteRack
|
|
5
5
|
module Request
|
6
6
|
attr_reader :request_options
|
7
7
|
|
8
|
-
def get(path, params=
|
8
|
+
def get(path, params={}, headers={})
|
9
9
|
request(:get, path, params, headers)
|
10
10
|
end
|
11
11
|
|
12
|
-
def post(path, body, headers=
|
13
|
-
request(:post, path,
|
12
|
+
def post(path, body, headers={})
|
13
|
+
request(:post, path, {}, headers, body)
|
14
14
|
end
|
15
15
|
|
16
|
-
def patch(path, body, headers=
|
17
|
-
request(:patch, path,
|
16
|
+
def patch(path, body, headers={})
|
17
|
+
request(:patch, path, {}, headers, body)
|
18
18
|
end
|
19
19
|
|
20
|
-
def put(path, body=
|
21
|
-
request(:put, path,
|
20
|
+
def put(path, body={}, headers={})
|
21
|
+
request(:put, path, {}, headers, body)
|
22
22
|
end
|
23
23
|
|
24
|
-
def delete(path, headers=
|
25
|
-
request(:delete, path,
|
24
|
+
def delete(path, headers={})
|
25
|
+
request(:delete, path, {}, headers)
|
26
26
|
end
|
27
27
|
|
28
|
-
def request(method, path, params=
|
28
|
+
def request(method, path, params={}, headers={}, body={}, options={})
|
29
29
|
if request_options
|
30
30
|
options = request_options
|
31
31
|
else
|
@@ -36,7 +36,7 @@ module CassetteRack
|
|
36
36
|
res = conn.send(method) do |req|
|
37
37
|
case method
|
38
38
|
when :get, :delete
|
39
|
-
req.url path
|
39
|
+
req.url path, params
|
40
40
|
when :post, :patch, :put
|
41
41
|
req.path = path
|
42
42
|
req.body = parse_content(body, req)
|
@@ -33,19 +33,29 @@
|
|
33
33
|
}
|
34
34
|
|
35
35
|
#content {
|
36
|
-
margin-left:
|
36
|
+
margin-left: 160px;
|
37
37
|
border-left: solid #ccc;
|
38
38
|
}
|
39
39
|
|
40
40
|
#sidebar {
|
41
41
|
float: left;
|
42
|
-
width:
|
42
|
+
width: 160px;
|
43
43
|
margin-left: -100%;
|
44
44
|
background: #fff;
|
45
45
|
border-right: solid #ccc;
|
46
46
|
}
|
47
47
|
|
48
|
-
#tree
|
48
|
+
#tree {
|
49
|
+
margin-left: 10px;
|
50
|
+
}
|
51
|
+
|
52
|
+
#tree ol {
|
53
|
+
padding-left: 12px;
|
54
|
+
}
|
55
|
+
|
56
|
+
#tree li {
|
57
|
+
list-style: none;
|
58
|
+
}
|
49
59
|
|
50
60
|
#tree li label.branch {
|
51
61
|
position: relative;
|
@@ -55,7 +65,7 @@
|
|
55
65
|
content: '';
|
56
66
|
position: absolute;
|
57
67
|
top: 50%;
|
58
|
-
left: -
|
68
|
+
left: -12px;
|
59
69
|
margin-top: -4px;
|
60
70
|
border: 4px solid transparent;
|
61
71
|
border-left: 7px solid #999;
|
@@ -66,7 +76,7 @@
|
|
66
76
|
#tree li .branch + input[type=checkbox] + ol > li { display: none; }
|
67
77
|
#tree li .branch + input[type=checkbox]:checked + ol > li { display: block; }
|
68
78
|
|
69
|
-
#tree li .leaf { padding-left:
|
79
|
+
#tree li .leaf { padding-left: 12px; }
|
70
80
|
#tree li .leaf > a { color: #333; text-decoration: none; }
|
71
81
|
#tree li .leaf > a:visited { color: #333; }
|
72
82
|
#tree li .leaf > a:hover { color: #333; background-color:#fff; }
|
@@ -75,7 +85,7 @@
|
|
75
85
|
#tree li .active > a:hover { color: #fff; background-color:#999; }
|
76
86
|
|
77
87
|
div.scroll {
|
78
|
-
width:
|
88
|
+
width: 150px;
|
79
89
|
overflow: scroll;
|
80
90
|
}
|
81
91
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cassette-rack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ogom
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|