reqres_rspec 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/CHANGELOG.txt +4 -0
- data/lib/reqres_rspec/collector.rb +2 -1
- data/lib/reqres_rspec/templates/header.erb +25 -23
- data/lib/reqres_rspec/templates/spec.erb +2 -2
- data/lib/reqres_rspec/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34c946bb8f46d9b8c1773295b21c48ee640cbb21
|
4
|
+
data.tar.gz: eeb01fb48798d0191ab78f808e41960f29c37fe9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80cb8294e4cf2aa8f41083410b05930d61a1c83b31c9fee2ef7655f5353582a2f11654dcb85d8e4431d114a4baf215572789ab0728fa1236563b27c6522763c5
|
7
|
+
data.tar.gz: 9cc4ead993457a941c778572cb04874e38d2777477d0d7abf33fd84a7d06b18d1c8684f1efa0ea5154bafc8ac1719471b343e2f0bb34ec7f82f31d41ae19e053
|
data/CHANGELOG.txt
CHANGED
@@ -9,7 +9,8 @@ module ReqresRspec
|
|
9
9
|
# Param types
|
10
10
|
# NOTE: make sure sub-strings go at the end
|
11
11
|
PARAM_TYPES = ['Boolean', 'Text', 'Float', 'DateTime', 'Date', 'File', 'UUID', 'Hash',
|
12
|
-
'Array of Integer', 'Array of String', 'Array', 'Integer', 'String'
|
12
|
+
'Array of Integer', 'Array of String', 'Array', 'Integer', 'String',
|
13
|
+
'Email']
|
13
14
|
|
14
15
|
# Exclude replacement in symbolized path
|
15
16
|
EXCLUDE_PARAMS = %w[limit offset format description controller action]
|
@@ -22,8 +22,8 @@
|
|
22
22
|
padding: 0;
|
23
23
|
width: 100%;
|
24
24
|
}
|
25
|
-
h1, h2,
|
26
|
-
margin: 0
|
25
|
+
h1, h2, ol {
|
26
|
+
margin: 0 20px 10px;
|
27
27
|
padding: 0;
|
28
28
|
}
|
29
29
|
h1 {
|
@@ -36,40 +36,42 @@
|
|
36
36
|
color: #1d96d2;
|
37
37
|
text-decoration: none;
|
38
38
|
}
|
39
|
-
|
40
|
-
|
41
|
-
list-style: none;
|
39
|
+
ol {
|
40
|
+
counter-reset: item;
|
42
41
|
}
|
43
|
-
li{
|
44
|
-
|
42
|
+
ol > li {
|
43
|
+
counter-increment: item;
|
45
44
|
}
|
46
|
-
|
47
|
-
|
48
|
-
margin: 0 0 10px 0;
|
49
|
-
padding: 0 10px 0 50px;
|
45
|
+
ol ol > li {
|
46
|
+
display: block;
|
50
47
|
}
|
51
|
-
ol li{
|
52
|
-
|
53
|
-
|
54
|
-
margin: 0;
|
55
|
-
padding: 0 4px;
|
48
|
+
ol ol > li:before {
|
49
|
+
content: counters(item, ".") ". ";
|
50
|
+
margin-left: -20px;
|
56
51
|
}
|
52
|
+
|
57
53
|
</style>
|
58
54
|
</head>
|
59
55
|
<body>
|
60
56
|
<div class="container">
|
61
57
|
<h1><%= ReqresRspec.configuration.title %></h1>
|
62
58
|
<p>Generated <%= Time.now.strftime('%d %B %Y at %H:%m:%S')%> with <a href="https://github.com/reqres-api/reqres_rspec">reqres_rspec</a></p>
|
63
|
-
<
|
64
|
-
<% @records.
|
59
|
+
<ol>
|
60
|
+
<% @records.group_by { |x| x[:group] }.sort.each do |group, records| %>
|
65
61
|
<li>
|
66
|
-
|
67
|
-
<
|
68
|
-
|
69
|
-
|
62
|
+
<h3><%= group %></h3>
|
63
|
+
<ol>
|
64
|
+
<% records.each do |record| %>
|
65
|
+
<li>
|
66
|
+
<a href="rspec_doc_<%= record[:filename] %>.html">
|
67
|
+
<%= record[:title] %>
|
68
|
+
</a>
|
69
|
+
</li>
|
70
|
+
<% end %>
|
71
|
+
</ol>
|
70
72
|
</li>
|
71
73
|
<% end %>
|
72
|
-
</
|
74
|
+
</ol>
|
73
75
|
</div>
|
74
76
|
</body>
|
75
77
|
</html>
|
@@ -150,8 +150,8 @@
|
|
150
150
|
<body>
|
151
151
|
<div class="container">
|
152
152
|
<h3>
|
153
|
-
<a href="
|
154
|
-
|
153
|
+
<a href="rspec_doc_table_of_content.html" target="specs">▲</a>
|
154
|
+
<%= @record[:title] %>
|
155
155
|
</h3>
|
156
156
|
|
157
157
|
<p>
|
data/lib/reqres_rspec/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: reqres_rspec
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- rilian
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07
|
11
|
+
date: 2015-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coderay
|
@@ -148,7 +148,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
148
148
|
version: '0'
|
149
149
|
requirements: []
|
150
150
|
rubyforge_project:
|
151
|
-
rubygems_version: 2.
|
151
|
+
rubygems_version: 2.4.5
|
152
152
|
signing_key:
|
153
153
|
specification_version: 4
|
154
154
|
summary: Generates API documentation in PDF, HTML, JSON, YAML format for integration
|