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 +4 -4
- data/README.md +17 -18
- data/lib/pinpress.rb +8 -6
- data/lib/pinpress/constants.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0fd67c7734f2f32ca7028aa5703247447fbc8b60
|
4
|
+
data.tar.gz: af12532fa90004d810d637b396f6222a6eda207a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
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
|
-
|
380
|
-
|
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
|
-
|
538
|
-
|
536
|
+
- template_name:
|
537
|
+
# ...other keys...
|
539
538
|
|
540
|
-
|
541
|
-
|
539
|
+
# The default tags to be used when running `pinpress pins`
|
540
|
+
default_tags: ['tag1', 'tag2']
|
542
541
|
|
543
|
-
|
544
|
-
|
542
|
+
# The tags to that are removed from the results when running `pinpress tags`
|
543
|
+
ignored_tags: ['bad-tag', 'bad-tag2']
|
545
544
|
|
546
|
-
|
547
|
-
|
545
|
+
# The default number of results to return
|
546
|
+
default_num_results: 5
|
548
547
|
|
549
|
-
|
548
|
+
# ...other keys...
|
550
549
|
```
|
551
550
|
|
552
551
|
Do note:
|
data/lib/pinpress.rb
CHANGED
@@ -130,14 +130,16 @@ module PinPress
|
|
130
130
|
|
131
131
|
# Add a single default pin and tag template
|
132
132
|
default_pin_template = {
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
133
|
+
pinpress_default: {
|
134
|
+
opener: '<ul>',
|
135
|
+
item: '<li><%= href %></li>',
|
136
|
+
closer: '</ul>'
|
137
|
+
}
|
137
138
|
}
|
138
139
|
default_tag_template = {
|
139
|
-
|
140
|
-
|
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]
|
data/lib/pinpress/constants.rb
CHANGED