reqres_rspec 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7de6b872bc84d101f1a6cef2274042aaffd44b76
4
- data.tar.gz: 71a541d777f098c2a61f622e834c11e23f483ccb
3
+ metadata.gz: 34c946bb8f46d9b8c1773295b21c48ee640cbb21
4
+ data.tar.gz: eeb01fb48798d0191ab78f808e41960f29c37fe9
5
5
  SHA512:
6
- metadata.gz: 6a8cd452ebe2245ed9810bbb617d12d3ccce879e2be05de4a19b2c71d45c46338dd52dbdeab54c0272aa29006a3562b6eeda60ddd2ba00d936143b674279a670
7
- data.tar.gz: b657d0dce186f87cfabc3d95506bcc198fbedd5a91250ea7d9cf1a07fe9c2e1b134cbc09de7da3af27cbcabddbfcd19c43310780dc4b1891661bd2f68d5d3c16
6
+ metadata.gz: 80cb8294e4cf2aa8f41083410b05930d61a1c83b31c9fee2ef7655f5353582a2f11654dcb85d8e4431d114a4baf215572789ab0728fa1236563b27c6522763c5
7
+ data.tar.gz: 9cc4ead993457a941c778572cb04874e38d2777477d0d7abf33fd84a7d06b18d1c8684f1efa0ea5154bafc8ac1719471b343e2f0bb34ec7f82f31d41ae19e053
data/CHANGELOG.txt CHANGED
@@ -1,3 +1,7 @@
1
+ version 0.2.2
2
+
3
+ Render reqres_section values in table of contents
4
+
1
5
  version 0.2.1
2
6
 
3
7
  Added GoogleDrive uploader. Please review README how to use it.
@@ -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, ul {
26
- margin: 0 0 10px;
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
- ul {
40
- padding-left: 0;
41
- list-style: none;
39
+ ol {
40
+ counter-reset: item;
42
41
  }
43
- li{
44
- margin-bottom: 4px;
42
+ ol > li {
43
+ counter-increment: item;
45
44
  }
46
-
47
- ol{
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
- white-space: pre;
53
- border-left: 1px solid #ccc;
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
- <ul>
64
- <% @records.each_with_index do |record, index| %>
59
+ <ol>
60
+ <% @records.group_by { |x| x[:group] }.sort.each do |group, records| %>
65
61
  <li>
66
- <%= index+1 %>.
67
- <a href="rspec_doc_<%= record[:filename] %>.html">
68
- <%= record[:title] %>
69
- </a>
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
- </ul>
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="spec_doc_table_of_content.html">&#9650</a>
154
- <a id="<%= @index %>"></a><%= @index %>. <%= @record[:title] %>
153
+ <a href="rspec_doc_table_of_content.html" target="specs">&#9650</a>
154
+ <%= @record[:title] %>
155
155
  </h3>
156
156
 
157
157
  <p>
@@ -1,3 +1,3 @@
1
1
  module ReqresRspec
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
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.1
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-13 00:00:00.000000000 Z
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.2.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