aspec_rb 0.0.6 → 0.0.7

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
- SHA1:
3
- metadata.gz: 761010f19d7ad3485c65f72edc6b9e438777e680
4
- data.tar.gz: fef2e1403570de7dba974e48bad1bfe02b15f3f2
2
+ SHA256:
3
+ metadata.gz: 508e54358f63aebe0f2d3ad79ee515001acc5a6bf85ada26085eeebc7d172189
4
+ data.tar.gz: 564d76a4df37e34cd6ff4f4549b70ad902f0acdb53f63778b639e2a5b5da8b83
5
5
  SHA512:
6
- metadata.gz: f4f3f05739378fad8e1add57de8cacc4d67a483a6fdc58c80cf8df28d0bb37426c3c52f3ab27aacd586b129510af133ad5148afbcdfba28d366b9146a1dbae86
7
- data.tar.gz: d0e4421826c674162dd886ee7fd33b132f8064e517bbe33aea451bfcd95c73dd606a8a20f8d7280a693b77c02446f573cc2ea0c624c7cb1ea4164a09233737c1
6
+ metadata.gz: 7727e081234a7ea89b2c56d17953efe95b2869b2eee90d823cdd35d8d6cf00be962f0b64e63286881db2d8060dfbad2cb55ea3ec648a16b8864c7d7f5508d05e
7
+ data.tar.gz: 0e8f05f791e9e109e35ab45b51a7cc6830ada21d4cdda3e5571ba31c5862f93d42c990c3ffe43841e5284073211f42ea8acac0018bc73b7c36c92df1d0115e50
data/.travis.yml CHANGED
@@ -1,22 +1,24 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
- - 2.3.0
5
- - 2.3.3
6
- - 2.4.1
7
- - 2.5.1
4
+ - 2.3.0
5
+ - 2.3.3
6
+ - 2.4.1
7
+ - 2.5.1
8
8
  before_install: gem install bundler
9
9
  before_script:
10
10
  - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
11
11
  - chmod +x ./cc-test-reporter
12
- - ./cc-test-reporter before-build
12
+ - "./cc-test-reporter before-build"
13
13
  env:
14
14
  global:
15
- - CC_TEST_REPORTER_ID=c1e8280a8a6ecf2d508dae62d5c2b166096f78f9099482766f4ece28e189a75b
16
- # matrix:
17
- # - secure: U0/JntV2C3Chcoce1ZvTpbgh9yeaG06i6M6DuKG3R2mIt4+yywfei7Ia+9QVtYeMWkfRhU/JgvKa+UNP1k2VZHRA+uOJ3eqxfNGn9FyAnIZaYw+6bfy0RZG+lsPk1240sHC/6VWURsLX8bcIKeDBcgmEB0FzfGqRI7dIyGSUVzTHiSTYTI68i64dqpN2hMrcPzfAnU4kAGek/vBYUUnjtiPBk6nLdzhvkg5OakitirfU6TZwMjTiNaZMV4NDYorbIlMS29bJriIV9jkP0sj3tn0T3LK42AAfmQhaeXem4LGolRHJvDgFxIJq0JhA9Kzn4Wj+oMKqjMgorrsaKg/QZyyV0AtZaxoZB2tfuD/+FfgxUExiNIA0TChSdfXnN9UPwNVSxDQ8BUUsxS9Em2EAnywY9ChVAhKuO3YS7EcJc0QsA3MmPxQfxkMmK6b/JVutDR9D7JqcQ/579wdCSb55fCxpapCmKzvTOays6Hmg4sSqECMKPhD7PRpGCAQlic/bpjEHgBw29Jy29DobQTBk/p2edzBh71lj3WZDYQ9Duxrq4QoqQy7455TlZZZPSt0bmn9WW6nDXXXebTjQrws58QBglsYR5fp83BL8/dqflpYlW3Zqo54VOM3TFE5gHKlYUh0lLX4Ta9wt+nUfJhFgNCfU20wImDwg8JvEmSSXcSY=
18
- # - secure: DLnzaQqvtjrG2b5VZ4M8IZhdGPNAPEb5BaO7iSlkV9HFp4us/KB7w2DVzE70U/a1eastll+kP5C+pBPkMGAYBbdVzAaB8qj3aAmuPvUoOs69b7RJftYsAJwO0c29lt/dz4rxLfKQluaVwTu/UM0NMyCVOePdF+pxSYxpOgkckGZhfknuzY1PP/QFEZKoo37FhG8gQGtzjItnIQ2C7zYH3lTkRrOgcpzq3HF0PAMtMercv/TTl8mB1sSXHr5EDfM5SWsc58Sh/p/BG9UQpLG/2J8f7IKfSgSa+T7j+ki1mog9PokFRRlS8I5l4MQa5GpxvNDM6yjo5oRpBVjGvOft8XwymG99SwUFCMKooydZ4RCc4nQFxjTtlc0g118pNnUmHmXKfCadMCExFqqbo3tllRIjUZm2qUnMuwCoAtPFSCRvbKjHk6Rlg6V0hBy8mLCFr5EaSAoW7wtKBlocfKs+uDKIyX+MFG7x4Q2etKxO8UTKWqCSJcweLw/1OnTqFPU9RA8YEzLZKsg+gEKa4MtCIV1hwer6qDWr/eWTW3H2SlHym+ifLFmYbR7maRLbZV8cg5AB2NuTMPPJD3BfVL2s8lVWo1VoxioV2BPA8o3owdfS+AvJW/uZof8RGeznTRx3i2xEFU+FNGj8tXl1TJvdr6HRVt/BI+UAq0Su9zk1E4o=
15
+ - CC_TEST_REPORTER_ID=c1e8280a8a6ecf2d508dae62d5c2b166096f78f9099482766f4ece28e189a75b
19
16
  script:
20
- - bundle exec rake test
17
+ - bundle exec rake test
21
18
  after_script:
22
- - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT
19
+ - "./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT"
20
+ deploy:
21
+ provider: rubygems
22
+ api_key:
23
+ secure: im9y4APQgejHtu2REPxRi6gW5kbxIjlBrsPOqGtsg3yojUza7WG1iVcQ9zg9ruRzDpUoi/OJfoDYY8SSNZjW97PX0eFrw2ZeuT/KY3+U5UzEXL/MspLV+LKi59gOY8dtGVC9y42X5a9FmFWDBBQqWw07VgpKkfLOI0lVOasdiu/nrqKqWR2wvQVtoTaQXn7OFZ+MBZ5uUGvim+lcb2WsC8m38s292lrKIHVkmzap3pnLoWWm1xMDpjUBfq9sudfH6Yq5RDaDiv2Qi1A6O+FmyTYGCr2NGa2qZK+MFfFkNMrBck4pMWKTPzlxCnD+CBViHtIBh3iMaWzjw5ya/bswLLKStraIE8ounAOgUuel9STf2pDqqitNfgswvhSTRXXp9R+MxVBWNMZacRgDwlWZL35EE1ggNXGz2VeRWsykOL6dYweVGUR2Lqn3351F9xryrMPsoadcjnGoLV4LMz1Cikvlclr+t2sKi9U++FXCC78jIuGcZLz/RPzhfRqYHqnn7oAUkA36ceJvQ0T0ls7+5M9Z88n26bchdLyonbN5PpMGufBc3gWVXE4buSo4ktroOwqSIpmyrtSIAGw96oJqsx2ffLrXkeD1fskailBXxfpNFHF//AjKg/9Y+lcRK5q1xwoPs0+G1TExremIMuDhOJET9pBDC0JYN2WIr5g4NSQ=
24
+ gem: aspec_rb
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- aspec_rb (0.0.6)
4
+ aspec_rb (0.0.7)
5
5
  asciidoctor
6
6
 
7
7
  GEM
data/README.md CHANGED
@@ -1,11 +1,14 @@
1
1
  # aspec_rb
2
2
 
3
- [![Build Status](https://travis-ci.org/tcob/aspec_rb.svg?branch=master)](https://travis-ci.org/tcob/aspec_rb)
4
3
  [![Gem Version](https://badge.fury.io/rb/aspec_rb.svg)](https://badge.fury.io/rb/aspec_rb)
5
- [![Maintainability](https://api.codeclimate.com/v1/badges/11ef540aabef88117720/maintainability)](https://codeclimate.com/github/tcob/aspec_rb/maintainability)
4
+ [![Build Status](https://travis-ci.org/tcob/aspec_rb.svg?branch=master)](https://travis-ci.org/tcob/aspec_rb)
6
5
  [![Test Coverage](https://api.codeclimate.com/v1/badges/11ef540aabef88117720/test_coverage)](https://codeclimate.com/github/tcob/aspec_rb/test_coverage)
6
+ [![Maintainability](https://api.codeclimate.com/v1/badges/11ef540aabef88117720/maintainability)](https://codeclimate.com/github/tcob/aspec_rb/maintainability)
7
+
7
8
  ## Installation
8
9
 
10
+ Install using Rubygems.org:
11
+
9
12
  ```
10
13
  gem install aspec_rb
11
14
  ```
@@ -18,7 +21,7 @@ asciidoctor -r aspec_rb index.adoc
18
21
 
19
22
  ## Development
20
23
 
21
- To build a local copy of the gem to the `pkg` directory:
24
+ To build a local copy of the gem:
22
25
 
23
26
  ```
24
27
  rake build
@@ -27,11 +30,13 @@ rake build
27
30
  To install from a local build:
28
31
 
29
32
  ```
30
- gem install pkg/aspec_rb<version>.gem
33
+ gem install pkg/aspec_rb<your_version>.gem
31
34
  ```
32
35
 
33
- To release a new version, edit the version number in `lib/aspec_rb/version.rb`, run bundle install to regenerate the `Gemfile.lock`.
34
- To release this version, use `rake release` command, providing all has been committed. This command builds the gem to the pkg directory in preparation for a push to Rubygems.org.
36
+ ### Deployment
37
+
38
+ To release a new version, edit the version number in `lib/aspec_rb/version.rb` and run `bundle install`.
39
+ Publishing to Rubygems.org is done automatically when a new version is detected on the master branch and Travis builds are green.
35
40
 
36
41
  ### Testing
37
42
 
@@ -0,0 +1,986 @@
1
+
2
+
3
+ /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
4
+ /**
5
+ * 1. Set default font family to sans-serif.
6
+ * 2. Prevent iOS text size adjust after orientation change, without disabling
7
+ * user zoom.
8
+ */
9
+ html {
10
+ font-family: sans-serif;
11
+ /* 1 */
12
+ -ms-text-size-adjust: 100%;
13
+ /* 2 */
14
+ -webkit-text-size-adjust: 100%;
15
+ /* 2 */ }
16
+
17
+ /**
18
+ * Remove default margin.
19
+ */
20
+ body {
21
+ margin: 0; }
22
+
23
+ /* HTML5 display definitions
24
+ ========================================================================== */
25
+ /**
26
+ * Correct `block` display not defined for any HTML5 element in IE 8/9.
27
+ * Correct `block` display not defined for `details` or `summary` in IE 10/11
28
+ * and Firefox.
29
+ * Correct `block` display not defined for `main` in IE 11.
30
+ */
31
+ article,
32
+ aside,
33
+ details,
34
+ figcaption,
35
+ figure,
36
+ footer,
37
+ header,
38
+ hgroup,
39
+ main,
40
+ menu,
41
+ nav,
42
+ section,
43
+ summary {
44
+ display: block; }
45
+
46
+ /**
47
+ * 1. Correct `inline-block` display not defined in IE 8/9.
48
+ * 2. Normalize vertical alignment of `progress` in Chrome, Firefox, and Opera.
49
+ */
50
+ audio,
51
+ canvas,
52
+ progress,
53
+ video {
54
+ display: inline-block;
55
+ /* 1 */
56
+ vertical-align: baseline;
57
+ /* 2 */ }
58
+
59
+ /**
60
+ * Prevent modern browsers from displaying `audio` without controls.
61
+ * Remove excess height in iOS 5 devices.
62
+ */
63
+ audio:not([controls]) {
64
+ display: none;
65
+ height: 0; }
66
+
67
+ /**
68
+ * Address `[hidden]` styling not present in IE 8/9/10.
69
+ * Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
70
+ */
71
+ [hidden],
72
+ template {
73
+ display: none; }
74
+
75
+ /* Links
76
+ ========================================================================== */
77
+ /**
78
+ * Remove the gray background color from active links in IE 10.
79
+ */
80
+ a {
81
+ background-color: transparent; }
82
+
83
+ /**
84
+ * Improve readability when focused and also mouse hovered in all browsers.
85
+ */
86
+ a:active,
87
+ a:hover {
88
+ outline: 0; }
89
+
90
+ /* Text-level semantics
91
+ ========================================================================== */
92
+ /**
93
+ * Address styling not present in IE 8/9/10/11, Safari, and Chrome.
94
+ */
95
+ abbr[title] {
96
+ border-bottom: 1px dotted; }
97
+
98
+ /**
99
+ * Address style set to `bolder` in Firefox 4+, Safari, and Chrome.
100
+ */
101
+ b,
102
+ strong {
103
+ font-weight: bold; }
104
+
105
+ /**
106
+ * Address styling not present in Safari and Chrome.
107
+ */
108
+ dfn {
109
+ font-style: italic; }
110
+
111
+ /**
112
+ * Address variable `h1` font-size and margin within `section` and `article`
113
+ * contexts in Firefox 4+, Safari, and Chrome.
114
+ */
115
+ h1 {
116
+ font-size: 2em;
117
+ margin: 0.67em 0; }
118
+
119
+ /**
120
+ * Address styling not present in IE 8/9.
121
+ */
122
+ mark {
123
+ background: #ff0;
124
+ color: #000; }
125
+
126
+ /**
127
+ * Address inconsistent and variable font size in all browsers.
128
+ */
129
+ small {
130
+ font-size: 80%; }
131
+
132
+ /**
133
+ * Prevent `sub` and `sup` affecting `line-height` in all browsers.
134
+ */
135
+ sub,
136
+ sup {
137
+ font-size: 75%;
138
+ line-height: 0;
139
+ position: relative;
140
+ vertical-align: baseline; }
141
+
142
+ sup {
143
+ top: -0.5em; }
144
+
145
+ sub {
146
+ bottom: -0.25em; }
147
+
148
+ /* Embedded content
149
+ ========================================================================== */
150
+ /**
151
+ * Remove border when inside `a` element in IE 8/9/10.
152
+ */
153
+ img {
154
+ border: 0; }
155
+
156
+ /**
157
+ * Correct overflow not hidden in IE 9/10/11.
158
+ */
159
+ svg:not(:root) {
160
+ overflow: hidden; }
161
+
162
+ /* Grouping content
163
+ ========================================================================== */
164
+ /**
165
+ * Address margin not present in IE 8/9 and Safari.
166
+ */
167
+ figure {
168
+ margin: 1em 40px; }
169
+
170
+ /**
171
+ * Address differences between Firefox and other browsers.
172
+ */
173
+ hr, .content h3::before {
174
+ -moz-box-sizing: content-box;
175
+ box-sizing: content-box;
176
+ height: 0; }
177
+
178
+ /**
179
+ * Contain overflow in all browsers.
180
+ */
181
+ pre {
182
+ overflow: auto; }
183
+
184
+ /**
185
+ * Address odd `em`-unit font size rendering in all browsers.
186
+ */
187
+ code,
188
+ kbd,
189
+ pre,
190
+ samp {
191
+ font-family: monospace, monospace;
192
+ font-size: 1em; }
193
+
194
+ /* Forms
195
+ ========================================================================== */
196
+ /**
197
+ * Known limitation: by default, Chrome and Safari on OS X allow very limited
198
+ * styling of `select`, unless a `border` property is set.
199
+ */
200
+ /**
201
+ * 1. Correct color not being inherited.
202
+ * Known issue: affects color of disabled elements.
203
+ * 2. Correct font properties not being inherited.
204
+ * 3. Address margins set differently in Firefox 4+, Safari, and Chrome.
205
+ */
206
+ button,
207
+ input,
208
+ optgroup,
209
+ select,
210
+ textarea {
211
+ color: inherit;
212
+ /* 1 */
213
+ font: inherit;
214
+ /* 2 */
215
+ margin: 0;
216
+ /* 3 */ }
217
+
218
+ /**
219
+ * Address `overflow` set to `hidden` in IE 8/9/10/11.
220
+ */
221
+ button {
222
+ overflow: visible; }
223
+
224
+ /**
225
+ * Address inconsistent `text-transform` inheritance for `button` and `select`.
226
+ * All other form control elements do not inherit `text-transform` values.
227
+ * Correct `button` style inheritance in Firefox, IE 8/9/10/11, and Opera.
228
+ * Correct `select` style inheritance in Firefox.
229
+ */
230
+ button,
231
+ select {
232
+ text-transform: none; }
233
+
234
+ /**
235
+ * 1. Avoid the WebKit bug in Android 4.0.* where (2) destroys native `audio`
236
+ * and `video` controls.
237
+ * 2. Correct inability to style clickable `input` types in iOS.
238
+ * 3. Improve usability and consistency of cursor style between image-type
239
+ * `input` and others.
240
+ */
241
+ button,
242
+ html input[type="button"],
243
+ input[type="reset"],
244
+ input[type="submit"] {
245
+ -webkit-appearance: button;
246
+ /* 2 */
247
+ cursor: pointer;
248
+ /* 3 */ }
249
+
250
+ /**
251
+ * Re-set default cursor for disabled elements.
252
+ */
253
+ button[disabled],
254
+ html input[disabled] {
255
+ cursor: default; }
256
+
257
+ /**
258
+ * Remove inner padding and border in Firefox 4+.
259
+ */
260
+ button::-moz-focus-inner,
261
+ input::-moz-focus-inner {
262
+ border: 0;
263
+ padding: 0; }
264
+
265
+ /**
266
+ * Address Firefox 4+ setting `line-height` on `input` using `!important` in
267
+ * the UA stylesheet.
268
+ */
269
+ input {
270
+ line-height: normal; }
271
+
272
+ /**
273
+ * It's recommended that you don't attempt to style these elements.
274
+ * Firefox's implementation doesn't respect box-sizing, padding, or width.
275
+ *
276
+ * 1. Address box sizing set to `content-box` in IE 8/9/10.
277
+ * 2. Remove excess padding in IE 8/9/10.
278
+ */
279
+ input[type="checkbox"],
280
+ input[type="radio"] {
281
+ box-sizing: border-box;
282
+ /* 1 */
283
+ padding: 0;
284
+ /* 2 */ }
285
+
286
+ /**
287
+ * Fix the cursor style for Chrome's increment/decrement buttons. For certain
288
+ * `font-size` values of the `input`, it causes the cursor style of the
289
+ * decrement button to change from `default` to `text`.
290
+ */
291
+ input[type="number"]::-webkit-inner-spin-button,
292
+ input[type="number"]::-webkit-outer-spin-button {
293
+ height: auto; }
294
+
295
+ /**
296
+ * 1. Address `appearance` set to `searchfield` in Safari and Chrome.
297
+ * 2. Address `box-sizing` set to `border-box` in Safari and Chrome
298
+ * (include `-moz` to future-proof).
299
+ */
300
+ input[type="search"] {
301
+ -webkit-appearance: textfield;
302
+ /* 1 */
303
+ -moz-box-sizing: content-box;
304
+ -webkit-box-sizing: content-box;
305
+ /* 2 */
306
+ box-sizing: content-box; }
307
+
308
+ /**
309
+ * Remove inner padding and search cancel button in Safari and Chrome on OS X.
310
+ * Safari (but not Chrome) clips the cancel button when the search input has
311
+ * padding (and `textfield` appearance).
312
+ */
313
+ input[type="search"]::-webkit-search-cancel-button,
314
+ input[type="search"]::-webkit-search-decoration {
315
+ -webkit-appearance: none; }
316
+
317
+ /**
318
+ * Define consistent border, margin, and padding.
319
+ */
320
+ fieldset {
321
+ border: 1px solid #c0c0c0;
322
+ margin: 0 2px;
323
+ padding: 0.35em 0.625em 0.75em; }
324
+
325
+ /**
326
+ * 1. Correct `color` not being inherited in IE 8/9/10/11.
327
+ * 2. Remove padding so people aren't caught out if they zero out fieldsets.
328
+ */
329
+ legend {
330
+ border: 0;
331
+ /* 1 */
332
+ padding: 0;
333
+ /* 2 */ }
334
+
335
+ /**
336
+ * Remove default vertical scrollbar in IE 8/9/10/11.
337
+ */
338
+ textarea {
339
+ overflow: auto; }
340
+
341
+ /**
342
+ * Don't inherit the `font-weight` (applied by a rule above).
343
+ * NOTE: the default cannot safely be changed in Chrome and Safari on OS X.
344
+ */
345
+ optgroup {
346
+ font-weight: bold; }
347
+
348
+ /* Tables
349
+ ========================================================================== */
350
+ /**
351
+ * Remove most spacing between table cells.
352
+ */
353
+ table {
354
+ border-collapse: collapse;
355
+ border-spacing: 0; }
356
+
357
+ td,
358
+ th {
359
+ padding: 0; }
360
+
361
+ a.back-to-top {
362
+ display: none;
363
+ width: 25px;
364
+ height: 25px;
365
+ text-indent: -9999px;
366
+ position: fixed;
367
+ z-index: 999;
368
+ right: 20px;
369
+ bottom: 20px;
370
+ background: #2ba6cb url("up-arrow.png") no-repeat center 43%;
371
+ -webkit-border-radius: 30px;
372
+ -moz-border-radius: 30px;
373
+ border-radius: 30px; }
374
+
375
+ a:hover.back-to-top {
376
+ background-color: #F7D425; }
377
+
378
+ #tocbutton {
379
+ z-index: 1050;
380
+ position: fixed;
381
+ top: 0px;
382
+ left: 0px; }
383
+
384
+ table {
385
+ width: 100%;
386
+ margin-bottom: 1.75em; }
387
+
388
+ tr {
389
+ border-bottom: 1px solid #EEE; }
390
+
391
+ tr:nth-child(even) {
392
+ background: #fcfcfc; }
393
+
394
+ td, th {
395
+ padding: 8px;
396
+ text-align: left; }
397
+
398
+ th {
399
+ padding-bottom: 4px; }
400
+
401
+ input::-ms-clear,
402
+ input::-ms-reveal {
403
+ display: none !important; }
404
+
405
+ body {
406
+ height: auto;
407
+ overflow-x: hidden;
408
+ background-color: white; }
409
+ body.nav-open {
410
+ overflow: hidden; }
411
+ body.nav-open nav,
412
+ body.nav-open header > form {
413
+ display: block; }
414
+ body.nav-open header {
415
+ bottom: 0; }
416
+ body::before {
417
+ content: "";
418
+ background-color: #fff;
419
+ overflow-y: scroll;
420
+ position: fixed;
421
+ top: 0;
422
+ right: 0;
423
+ bottom: 0;
424
+ left: 0;
425
+ z-index: -1; }
426
+ @media (min-width: 700px) {
427
+ body {
428
+ padding: 0 50px 0 330px; }
429
+ body.nav-open {
430
+ overflow: auto; }
431
+ body::after, body::before {
432
+ content: "";
433
+ position: fixed;
434
+ top: 0;
435
+ bottom: 0;
436
+ z-index: -1; }
437
+ body::after {
438
+ left: 0;
439
+ width: 330px;
440
+ /*background-color: #f5f5f5;*/ }
441
+ /* body #search-input, body::after {
442
+ box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.1); }*/
443
+ body::before {
444
+ left: 330px;
445
+ right: 0;
446
+ /* background-color: #fff;*/ } }
447
+
448
+ .main {
449
+ margin-left: 30px;
450
+ margin-top: 67px; }
451
+ @media (min-width: 700px) {
452
+ .main {
453
+ margin-top: 0; } }
454
+
455
+ header {
456
+ position: fixed;
457
+ top: 0;
458
+ left: 0;
459
+ right: 0;
460
+ overflow-x: hidden;
461
+ overflow-y: scroll;
462
+ height: 100%;
463
+ z-index: 1;
464
+ background-color: #f5f5f5; }
465
+ header ul {
466
+ padding: 0;
467
+ margin: 0; }
468
+ header h1 {
469
+ padding: 12.5px 7px;
470
+ height: 60px;
471
+ box-sizing: border-box;
472
+ background-color: #3583d6;
473
+ color: #fff;
474
+ margin: 0;
475
+ font-size: 1.7rem;
476
+ line-height: 0.8;
477
+ letter-spacing: 0;
478
+ font-weight: 400;
479
+ text-indent: 0;
480
+ display: -webkit-flex;
481
+ display: flex;
482
+ -webkit-flex-direction: row;
483
+ flex-direction: row;
484
+ -webkit-align-items: center;
485
+ align-items: center; }
486
+ header h1 img {
487
+ height: 35px;
488
+ width: 35px;
489
+ margin-right: 2px; }
490
+ header .open-nav {
491
+ background-image: url(menu.svg);
492
+ background-color: transparent;
493
+ background-repeat: no-repeat;
494
+ background-size: 100%;
495
+ width: 35px;
496
+ height: 35px;
497
+ border: 0;
498
+ position: absolute;
499
+ top: 12.5px;
500
+ right: 7px;
501
+ border-radius: 2px; }
502
+ header .open-nav:focus {
503
+ outline: none;
504
+ background-color: rgba(0, 0, 0, 0.05); }
505
+ header .open-nav:hover {
506
+ background-color: rgba(0, 0, 0, 0.1); }
507
+ @media (min-width: 700px) {
508
+ header {
509
+ background-color: transparent;
510
+ width: 350px;
511
+ right: auto;
512
+ bottom: auto; }
513
+ header .open-nav {
514
+ display: none; }
515
+ header h1 {
516
+ box-shadow: inset -10px 0 10px -10px rgba(0, 0, 0, 0.1); } }
517
+
518
+ .content {
519
+ position: relative;
520
+ color: #222; }
521
+ .content h3::before {
522
+ content: "";
523
+ margin: 60px 0; }
524
+
525
+ .content,
526
+ .page-header {
527
+ max-width: 1400px;
528
+ padding: 0 12px 7px;
529
+ margin: 7px auto 0 auto; }
530
+
531
+ .page-header h2,
532
+ .page-header h3 {
533
+ margin: 0;
534
+ line-height: 1.2;
535
+ letter-spacing: -1px; }
536
+ .page-header h2 {
537
+ font-size: 2rem;
538
+ margin-left: -1px;
539
+ color: #888;
540
+ letter-spacing: 0; }
541
+ .page-header h3 {
542
+ font-size: 4rem;
543
+ margin-left: -4px; }
544
+ @media (min-width: 700px) {
545
+ .page-header h2 {
546
+ font-size: 2.65rem; }
547
+ .page-header h3 {
548
+ font-size: 5.4rem; } }
549
+ @media (min-width: 1778px) {
550
+ .page-header {
551
+ margin-top: 55px; } }
552
+
553
+ nav,
554
+ header > form {
555
+ display: none; }
556
+ @media (min-width: 700px) {
557
+ nav,
558
+ header > form {
559
+ display: block; } }
560
+
561
+ nav > ul {
562
+ padding: 3.5px 0; }
563
+ nav > ul + ul {
564
+ border-top: 1px solid rgba(0, 0, 0, 0.075); }
565
+
566
+ .nav-open nav {
567
+ display: none; }
568
+
569
+ .nav-item {
570
+ font-family: "Open Sans", sans-serif;
571
+ line-height: 1;
572
+ margin: 0; }
573
+ nav:not(.full-navigation) .nav-item > ul {
574
+ display: none; }
575
+ nav:not(.full-navigation) .nav-item.current > ul {
576
+ display: block; }
577
+ .nav-item > a {
578
+ color: #666;
579
+ text-decoration: none;
580
+ font-size: 1.4rem;
581
+ padding: 3.5px 0 3.5px 7px;
582
+ display: block;
583
+ word-break: break-word;
584
+ max-width: 290px; }
585
+ .nav-item.current > a,
586
+ .nav-item > a:active,
587
+ .nav-item > a:hover {
588
+ color: cornflowerblue; }
589
+ .nav-item.top-level > a {
590
+ line-height: 1.5;
591
+ font-weight: 600;
592
+ padding-left: 7px; }
593
+ .nav-item ol {
594
+ padding-left: 15px; }
595
+
596
+ .settings-panel-example {
597
+ display: -webkit-flex;
598
+ display: flex;
599
+ -webkit-flex-direction: column;
600
+ flex-direction: column; }
601
+ .settings-panel-example .example {
602
+ max-width: 300px;
603
+ background-color: #fafafa;
604
+ margin: 0;
605
+ padding: 0;
606
+ font-size: 0;
607
+ line-height: 1;
608
+ border-radius: 2px;
609
+ overflow: hidden; }
610
+ @media (min-width: 960px) {
611
+ .settings-panel-example {
612
+ -webkit-flex-direction: row;
613
+ flex-direction: row; }
614
+ .settings-panel-example .details {
615
+ -webkit-flex: 1;
616
+ flex: 1;
617
+ margin-right: 20px; }
618
+ .settings-panel-example p + .highlight > pre, .settings-panel-example .settings-panel-example + .highlight > pre {
619
+ margin-bottom: 0; }
620
+ .settings-panel-example .example {
621
+ -webkit-flex: 0 0 300px;
622
+ flex: 0 0 300px;
623
+ max-width: 100%; } }
624
+
625
+ .highlight {
626
+ margin-left: 0;
627
+ margin-right: 0; }
628
+
629
+ h3 + .warning {
630
+ margin-top: 1.75em; }
631
+
632
+ h4 code {
633
+ background: #f5f5f5;
634
+ color: #222;
635
+ background-color: transparent;
636
+ font-weight: 700;
637
+ padding: 0;
638
+ font-size: 1.1em;
639
+ line-height: 1; }
640
+
641
+ h4 svg {
642
+ vertical-align: middle;
643
+ margin-right: 6px;
644
+ position: relative;
645
+ top: -2px;
646
+ fill: #2E2E2E;
647
+ height: 23px; }
648
+
649
+ .required {
650
+ position: relative; }
651
+
652
+ .required::after {
653
+ content: "REQUIRED";
654
+ font-size: 12px;
655
+ position: absolute;
656
+ top: 5px;
657
+ line-height: 1;
658
+ color: #3583d6;
659
+ padding-left: 5px; }
660
+
661
+ #search-results {
662
+ margin: 0;
663
+ padding: 0; }
664
+ #search-results li {
665
+ list-style: none;
666
+ margin: 0;
667
+ padding: 0; }
668
+ #search-results li h4 {
669
+ font-size: 2rem; }
670
+ #search-results li p, #search-results li .settings-panel-example {
671
+ line-height: 1.5; }
672
+
673
+ #search-input {
674
+ -webkit-appearance: none;
675
+ display: block;
676
+ margin: 0;
677
+ padding: 10px 20px 10px 15px;
678
+ width: 100%;
679
+ box-sizing: border-box;
680
+ border: 0;
681
+ border-bottom: 1px solid rgba(0, 0, 0, 0.075);
682
+ border-left: 5px solid transparent;
683
+ font-size: 1.5rem;
684
+ font-weight: 600;
685
+ line-height: 1.8; }
686
+ #search-input:focus {
687
+ outline: none;
688
+ border-left-color: #3583d6; }
689
+
690
+ .changelog,
691
+ .changelog > div {
692
+ margin: 0;
693
+ padding: 0;
694
+ list-style: none; }
695
+ .changelog .date {
696
+ color: #888;
697
+ font-style: italic; }
698
+
699
+ .badge {
700
+ font-family: "Open Sans", sans-serif;
701
+ padding: 2px 5px;
702
+ text-transform: uppercase;
703
+ font-size: 0.8rem;
704
+ border-radius: 2px;
705
+ background: #eee;
706
+ font-weight: bold; }
707
+ .badge.major {
708
+ background: #3583d6;
709
+ color: #fff; }
710
+
711
+ blockquote {
712
+ border-left: 5px solid #FD0;
713
+ padding: 10px 15px;
714
+ margin-left: -15px;
715
+ margin-right: -10px;
716
+ background-color: #ebf3fb;
717
+ border-color: #3583d6; }
718
+ blockquote p:last-child, blockquote .settings-panel-example:last-child {
719
+ margin-bottom: 0; }
720
+ @media (max-width: 1778px) {
721
+ blockquote {
722
+ margin-left: 0;
723
+ margin-right: 0; } }
724
+
725
+ img {
726
+ max-width: 100%;
727
+ height: auto;
728
+ display: block;
729
+ margin: auto; }
730
+
731
+ .editor-link {
732
+ display: none;
733
+ margin-top: 0; }
734
+ .editor-link .btn {
735
+ border: 0;
736
+ border-radius: 2px;
737
+ width: 100%;
738
+ max-width: 500px;
739
+ box-sizing: border-box;
740
+ font-size: 2rem;
741
+ text-decoration: none;
742
+ padding: 10px 15px;
743
+ margin: 0;
744
+ font-size: 18px;
745
+ cursor: pointer;
746
+ background-color: #f7e064;
747
+ color: #333;
748
+ box-shadow: 1px 1px 5px 0 rgba(0, 0, 0, 0.2); }
749
+ .editor-link .btn:hover {
750
+ background-color: #f4d525;
751
+ color: #333; }
752
+
753
+ .cms-editor-active .editor-link {
754
+ display: block; }
755
+
756
+ nav {
757
+ position: relative;
758
+ top: 10px;
759
+ width: 350px;
760
+ padding-bottom: 60px; }
761
+
762
+ #search-header {
763
+ position: fixed;
764
+ z-index: 20;
765
+ width: 350px; }
766
+
767
+ @media only screen and (max-width: 700px) {
768
+ header {
769
+ height: 15%; } }
770
+ .top-level ul {
771
+ margin-left: 15px;
772
+ list-style-type: none; }
773
+
774
+ .imageblock {
775
+ margin: 40px 0 40px 0; }
776
+
777
+ .nav-item.top-level > a {
778
+ display: initial; }
779
+
780
+ nav > ul + ul {
781
+ list-style-type: none; }
782
+
783
+ .requirement {
784
+ margin-bottom: 0;
785
+ border: none; }
786
+
787
+ .requirement > table > tbody > tr > td.content > div.title {
788
+ display: none; }
789
+
790
+ .requirement > table > tbody > tr > td.icon {
791
+ display: none; }
792
+
793
+ .requirement > table > tbody > tr > td.content {
794
+ border-left: none; }
795
+
796
+ .requirement table td.content {
797
+ margin: 0px;
798
+ padding: 0px; }
799
+
800
+ p.panel-primary, .panel-primary.settings-panel-example {
801
+ padding-left: 10px; }
802
+
803
+ .requirement div.paragraph, .requirement div.dlist {
804
+ padding-left: 20px; }
805
+
806
+ .requirement div.title {
807
+ padding-left: 15px;
808
+ padding-bottom: 10px; }
809
+
810
+ .requirement .hdlist {
811
+ padding: 5px; }
812
+
813
+ .requirement td.hdlist1 {
814
+ vertical-align: top;
815
+ padding-right: 10px; }
816
+
817
+ .panel > div, .panel .admonitionblock {
818
+ padding-left: 15px;
819
+ padding-right: 15px; }
820
+
821
+ div.admonitionblock {
822
+ margin: auto
823
+ }
824
+
825
+ .panel .hdlist, div.panel table.tableblock {
826
+ padding: 0 20px 0 20px; }
827
+
828
+ .conum[data-value] {
829
+ display: inline-block;
830
+ color: #fff !important;
831
+ background-color: #222222;
832
+ -webkit-border-radius: 100px;
833
+ border-radius: 100px;
834
+ text-align: center;
835
+ font-size: 0.75em;
836
+ width: 1.67em;
837
+ height: 1.67em;
838
+ line-height: 1.67em;
839
+ font-family: "Open Sans", "DejaVu Sans", sans-serif;
840
+ font-style: normal; }
841
+
842
+ .conum[data-value] * {
843
+ color: #fff !important; }
844
+
845
+ .conum[data-value] + b {
846
+ display: none; }
847
+
848
+ .conum[data-value]:after {
849
+ content: attr(data-value); }
850
+
851
+ pre .conum[data-value] {
852
+ position: relative;
853
+ top: -0.125em; }
854
+
855
+ b.conum * {
856
+ color: inherit !important; }
857
+
858
+ .conum:not([data-value]):empty {
859
+ display: none; }
860
+
861
+ div.colist.arabic table {
862
+ display: inline-grid; }
863
+
864
+ div.colist.arabic tr {
865
+ border: none; }
866
+
867
+ .colist.arabic td {
868
+ padding-left: 5px;
869
+ border: none; }
870
+
871
+ .colist.arabic tr:nth-child(even) {
872
+ background-color: none; }
873
+
874
+ .colist.arabic tr td:nth-child(odd) {
875
+ vertical-align: top; }
876
+
877
+ .admonitionblock > table {
878
+ border-collapse: separate;
879
+ border: 0;
880
+ background: none;
881
+ width: 100%; }
882
+
883
+ .admonitionblock > table td.icon {
884
+ text-align: center;
885
+ width: 80px; }
886
+
887
+ .admonitionblock > table td.icon img {
888
+ max-width: none; }
889
+
890
+ .admonitionblock > table td.icon .title {
891
+ font-weight: bold;
892
+ font-family: "Helvetica Neue", "Helvetica", Helvetica, Arial, sans-serif;
893
+ text-transform: uppercase; }
894
+
895
+ .admonitionblock > table td.content {
896
+ padding-left: 1.125em;
897
+ padding-right: 1.25em;
898
+ border-left: 1px solid #dddddd;
899
+ color: #555555; }
900
+
901
+ .admonitionblock > table td.content > :last-child > :last-child {
902
+ margin-bottom: 0; }
903
+
904
+ .admonitionblock td.icon [class^="fa icon-"] {
905
+ font-size: 2.5em;
906
+ text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
907
+ cursor: default; }
908
+
909
+ .admonitionblock td.icon .icon-note:before {
910
+ content: "\f05a";
911
+ color: #207c98; }
912
+
913
+ .admonitionblock td.icon .icon-tip:before {
914
+ content: "\f0eb";
915
+ text-shadow: 1px 1px 2px rgba(155, 155, 0, 0.8);
916
+ color: #111; }
917
+
918
+ .admonitionblock td.icon .icon-warning:before {
919
+ content: "\f071";
920
+ color: #bf6900; }
921
+
922
+ .admonitionblock td.icon .icon-caution:before {
923
+ content: "\f06d";
924
+ color: #bf3400; }
925
+
926
+ .admonitionblock td.icon .icon-important:before {
927
+ content: "\f06a";
928
+ color: #bf0000; }
929
+
930
+ .admonitionblock td.icon .icon-todo:before {
931
+ content: "\f249";
932
+ color: #f4ee42; }
933
+
934
+ .admonitionblock td {
935
+ border: none; }
936
+
937
+ .admonitionblock table {
938
+ margin-bottom: 0;
939
+ }
940
+
941
+ .todo {
942
+ max-width: 1400px;
943
+ color: #dc143c;
944
+ border: #dc143c;
945
+ border-width: 2px;
946
+ border-style: dotted;
947
+ border-radius: 15px;
948
+ padding: .1em 0 0 0;
949
+ background-color: #fff8dc;
950
+ margin-bottom: 10px;
951
+ }
952
+
953
+ #toc {
954
+ margin-top: 0!important;
955
+ background-color: #f8f8f7;
956
+ position: fixed;
957
+ width: 320px;
958
+ left: 0;
959
+ top: 0;
960
+ border-right: 1px solid #efefed;
961
+ border-top-width: 0!important;
962
+ border-bottom-width: 0!important;
963
+ z-index: 1000;
964
+ height: 100%;
965
+ overflow: auto;
966
+ }
967
+
968
+ #toc ul {
969
+ list-style-type: none;
970
+ }
971
+
972
+ ul {
973
+ padding-left: 15px;
974
+ }
975
+
976
+ a:hover {
977
+ text-decoration: none
978
+ }
979
+
980
+ .nav {display: block}
981
+
982
+ #toc > ul.index {
983
+ padding-left: 15px;
984
+ padding-top: 15px;
985
+ position: relative;
986
+ }
@@ -0,0 +1,75 @@
1
+
2
+ /* Nav menu for bootstrap scrollspy */
3
+ nav[data-toggle=toc] .nav li>a{
4
+ display:inline;
5
+ font-size:13px;
6
+ font-weight:500;
7
+ color:#767676
8
+ }
9
+ nav[data-toggle=toc] .nav li>a:focus,nav[data-toggle=toc] .nav>li>a:hover{
10
+ color:#563d7c;
11
+ text-decoration:none;
12
+ background-color:transparent;
13
+ /*border-left:1px solid #563d7c*/
14
+ }
15
+ nav[data-toggle=toc] .nav .active:focus>a,nav[data-toggle=toc] .nav .active:hover>a,nav[data-toggle=toc] .nav .active>a{
16
+ color:#337ab7;
17
+ background-color:transparent;
18
+ }
19
+
20
+ nav[data-toggle=toc] .nav .nav{
21
+ display:none;
22
+ padding-bottom:10px
23
+ }
24
+ nav[data-toggle=toc] .nav .nav .active:focus>a,nav[data-toggle=toc] .nav .nav .active:hover>a,nav[data-toggle=toc] .nav .nav .active>a{
25
+ padding-left:28px;
26
+ font-weight:500
27
+ }
28
+ nav[data-toggle=toc] .nav .active>ul {
29
+ display: block
30
+ }
31
+
32
+ a:hover {
33
+ text-decoration: none
34
+ }
35
+
36
+ nav li ul {
37
+ padding-left: 10px;
38
+ }
39
+
40
+ .nav>li>a+a {
41
+ padding: 2px;
42
+ }
43
+
44
+ nav>li {
45
+ clear: both;
46
+ }
47
+
48
+ .nav>li>a {
49
+ padding: 10px 2px;
50
+ padding-left: 0px;
51
+ }
52
+
53
+ #treeview li > a {
54
+ padding-right: 2px;
55
+ padding-left: 0px;
56
+ }
57
+
58
+ #toc > ul.index.nav > li > a {
59
+ padding-left: 0px;
60
+ }
61
+
62
+ div.title {
63
+ font-weight: bold;
64
+ font-size: large;
65
+ }
66
+
67
+ td.hdlist1 {
68
+ padding-right:4px;
69
+ vertical-align: top;
70
+ font-weight: bold;
71
+ }
72
+
73
+ #treeview {
74
+ padding-left: 10px;
75
+ }
@@ -2,7 +2,10 @@
2
2
 
3
3
  # Use this to set global versioning for the RubyGem
4
4
  module AspecRb
5
- # After updating the version, publishing can be done by running
6
- # rake release in the project root
7
- VERSION = '0.0.6'
5
+ # Publish step is done automatically when a new version
6
+ # lands on master and Travis CI tests are green - https://travis-ci.org/tcob/aspec_rb
7
+ # For this deploy config, see https://github.com/tcob/aspec_rb/blob/master/.travis.yml
8
+ #
9
+ # Manual release can be performed by running 'bundle install && rake release'
10
+ VERSION = '0.0.7'
8
11
  end
data/lib/aspec_rb.rb CHANGED
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require_relative 'extensions/css_docinfo'
3
4
  require_relative 'extensions/autoxrefs'
4
5
  require_relative 'extensions/definition_block'
5
6
  require_relative 'extensions/inline_callout_macro'
@@ -3,6 +3,7 @@
3
3
  require 'asciidoctor/extensions'
4
4
  require_relative 'utils/utils'
5
5
 
6
+
6
7
  include ::Asciidoctor
7
8
 
8
9
  # Read from config file - do NOT hard code the srcdir
@@ -169,6 +170,8 @@ Extensions.register do
169
170
  next unless line[/\<\<#{original}(,.+?)?\>\>/]
170
171
  line = line.sub(/\<\<#{original}(,.+?)?\>\>/, "icon:angle-double-up[] <<#{fix}>>")
171
172
  end
173
+ elsif line[/^(\=+\s+?\S+.+)/]
174
+ line.delete!('`')
172
175
  end
173
176
  line
174
177
  }
@@ -0,0 +1,20 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'asciidoctor/extensions' unless RUBY_ENGINE == 'opal'
4
+
5
+ main = File.join( __dir__, '../../assets/stylesheets/main.css' )
6
+ mixin = File.join( __dir__, '../../assets/stylesheets/mix.css' )
7
+ main_css = IO.readlines( main ).join.to_s
8
+ mix_css = IO.readlines( mixin ).join.to_s
9
+
10
+ Asciidoctor::Extensions.register do
11
+ docinfo_processor do
12
+ at_location :head
13
+ process do |_doc|
14
+
15
+ %(
16
+ <style> #{main_css} </style>
17
+ <style> #{mix_css} </style>)
18
+ end
19
+ end
20
+ end
data/lib/html_chunker.rb CHANGED
@@ -24,7 +24,7 @@ class MultipageHtml5Converter
24
24
 
25
25
  def document(node)
26
26
  indexconfigs = {
27
- 'stylesheet' => 'styles/main.css',
27
+ 'stylesheet!' => true,
28
28
  'find' => '',
29
29
  'docinfodir' => 'headers',
30
30
  'docinfo1' => 'true'
@@ -47,6 +47,7 @@ class MultipageHtml5Converter
47
47
  configs['noheader'] = ''
48
48
  configs['doctitle'] = node.title
49
49
  configs['backend'] = 'html'
50
+ configs['stylesheet!'] = true
50
51
  page = Asciidoctor::Document.new [], header_footer: true, doctype: doc.doctype, safe: doc.safe, parse: true, attributes: configs
51
52
 
52
53
  page.set_attr 'docname', node.id
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aspec_rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - tcob
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-04-18 00:00:00.000000000 Z
11
+ date: 2018-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -85,11 +85,14 @@ files:
85
85
  - README.md
86
86
  - Rakefile
87
87
  - aspec_rb.gemspec
88
+ - assets/stylesheets/main.css
89
+ - assets/stylesheets/mix.css
88
90
  - bin/console
89
91
  - bin/setup
90
92
  - lib/aspec_rb.rb
91
93
  - lib/aspec_rb/version.rb
92
94
  - lib/extensions/autoxrefs.rb
95
+ - lib/extensions/css_docinfo.rb
93
96
  - lib/extensions/definition_block.rb
94
97
  - lib/extensions/inline_callout_macro.rb
95
98
  - lib/extensions/inline_cwiki_macro.rb
@@ -128,7 +131,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
128
131
  version: '0'
129
132
  requirements: []
130
133
  rubyforge_project:
131
- rubygems_version: 2.6.12
134
+ rubygems_version: 2.7.6
132
135
  signing_key:
133
136
  specification_version: 4
134
137
  summary: Asciidoctor extensions for large HTML documents