pinpress 1.6.2 → 1.6.3

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: 78088a469d77c4aea764f616f5fd813e75a00185
4
- data.tar.gz: f03d98b68cad4c2a3d0b081f3df629353bb8df9b
3
+ metadata.gz: 0fd67c7734f2f32ca7028aa5703247447fbc8b60
4
+ data.tar.gz: af12532fa90004d810d637b396f6222a6eda207a
5
5
  SHA512:
6
- metadata.gz: 68b5074d902903a7d5bbfd7f84f1b90df47bd2e39e2b6689a9f6efd412bea96b3c78b75a6f558eedbc6f9a85d3dc7d2603f322ac356e390fe80d7feddcc3eeb5
7
- data.tar.gz: dfdc5aef5458e2c9e61567901bd49bac5d7a6416c946edac26989963092f1124d30c34bf8cbc75b01639facdbdc423973b6c7d52e17f026cb6afcc5612eec8f4
6
+ metadata.gz: d01761477636bffe14ea18c82eb8ba1c01dcedc5aed35e4c7b0cbda47a9fca2a5c7dd12dc387392fc172074e7ccdbca33cb79a73b8c9e7baeeba68afa0dd5b37
7
+ data.tar.gz: c36c1d07a39caf04c1bbd9a07942fcb94b767bc6dbe071eb7dc7c12f9e49fe8ee56add40619ce97739dbf1d9fe23e0c749c1e829241fa310a505ffd4f5c6bd0c
data/README.md CHANGED
@@ -42,7 +42,7 @@ SYNOPSIS
42
42
  pinpress [global options] command [command options] [arguments...]
43
43
 
44
44
  VERSION
45
- 1.6.0
45
+ 1.6.3
46
46
 
47
47
  GLOBAL OPTIONS
48
48
  --help - Show this message
@@ -236,7 +236,7 @@ config file -- as an example:
236
236
 
237
237
  ```yaml
238
238
  pin_templates:
239
- pinpress_default
239
+ - pinpress_default:
240
240
  opener: "<ul>\n"
241
241
  item: >
242
242
  <li>
@@ -245,7 +245,7 @@ pin_templates:
245
245
  <%= extended %>
246
246
  </li>
247
247
  closer: "</ul>"
248
- # ... other templates ...
248
+ # ... other templates ...
249
249
  ```
250
250
 
251
251
  A Pin Template can have several different sub-keys:
@@ -285,7 +285,7 @@ pinpress:
285
285
  default_pin_template: pinpress_default
286
286
  # ... other keys ...
287
287
  pin_templates:
288
- pinpress_default
288
+ - pinpress_default:
289
289
  opener: "<ul>\n"
290
290
  item: >
291
291
  <li>
@@ -294,7 +294,7 @@ pin_templates:
294
294
  <%= extended %>
295
295
  </li>
296
296
  closer: "</ul>"
297
- # ... other templates ...
297
+ # ... other templates ...
298
298
  ```
299
299
 
300
300
  So, knowing the above, both:
@@ -339,7 +339,7 @@ They, too, are defined in `~/.pinpress`:
339
339
 
340
340
  ```yaml
341
341
  tag_templates:
342
- pinpress_default
342
+ - pinpress_default:
343
343
  item: "<%= tag %> (<%= count %>),"
344
344
  ```
345
345
 
@@ -376,9 +376,8 @@ pinpress:
376
376
  pin_templates:
377
377
  # ... other keys ...
378
378
  tag_templates:
379
- pinpress_default
380
- item: "<%= tag %> (<%= count %>),"
381
- # ... other templates ...
379
+ # ... other keys ...
380
+ # ... other templates ...
382
381
  ```
383
382
 
384
383
  So, knowing the above, both:
@@ -534,19 +533,19 @@ Individual templates can carry some special keys, too:
534
533
 
535
534
  ```yaml
536
535
  pin_templates:
537
- - template_name:
538
- # ...other keys...
536
+ - template_name:
537
+ # ...other keys...
539
538
 
540
- # The default tags to be used when running `pinpress pins`
541
- default_tags: ['tag1', 'tag2']
539
+ # The default tags to be used when running `pinpress pins`
540
+ default_tags: ['tag1', 'tag2']
542
541
 
543
- # The tags to that are removed from the results when running `pinpress tags`
544
- ignored_tags: ['bad-tag', 'bad-tag2']
542
+ # The tags to that are removed from the results when running `pinpress tags`
543
+ ignored_tags: ['bad-tag', 'bad-tag2']
545
544
 
546
- # The default number of results to return
547
- default_num_results: 5
545
+ # The default number of results to return
546
+ default_num_results: 5
548
547
 
549
- # ...other keys...
548
+ # ...other keys...
550
549
  ```
551
550
 
552
551
  Do note:
@@ -130,14 +130,16 @@ module PinPress
130
130
 
131
131
  # Add a single default pin and tag template
132
132
  default_pin_template = {
133
- name: 'pinpress_default',
134
- opener: '<ul>',
135
- item: '<li><%= href %></li>',
136
- closer: '</ul>'
133
+ pinpress_default: {
134
+ opener: '<ul>',
135
+ item: '<li><%= href %></li>',
136
+ closer: '</ul>'
137
+ }
137
138
  }
138
139
  default_tag_template = {
139
- name: 'pinpress_default',
140
- item: '<%= tag %> (<%= count %>),'
140
+ pinpress_default: {
141
+ item: '<%= tag %> (<%= count %>),'
142
+ }
141
143
  }
142
144
  configuration.pin_templates = [default_pin_template]
143
145
  configuration.tag_templates = [default_tag_template]
@@ -28,5 +28,5 @@ module PinPress
28
28
  SUMMARY = 'A simple CLI to create HTML templates of Pinboard data.'
29
29
 
30
30
  # The Gem's version
31
- VERSION = '1.6.2'
31
+ VERSION = '1.6.3'
32
32
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pinpress
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.2
4
+ version: 1.6.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Bach