pinpress 1.5.0 → 1.5.1
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/HISTORY.md +4 -0
- data/README.md +39 -37
- data/lib/pinpress.rb +1 -3
- data/lib/pinpress/constants.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 747c296601a7ffc6e2c5b4ebb858a9738439c2ff
|
4
|
+
data.tar.gz: 65d54a1bbd198a7eea7c6df10812cd011fe1ada3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0847e761d1a6dc78bac0ec70aa4645d5be0545866ed0921218e7f73b30293f1fa38fa5424410ac88a40f6f0efe60cfc10db77b0b31a319add47f4bae954c00d8
|
7
|
+
data.tar.gz: d225c75a3ced9b23a0c3c77a9914cdd29d58db385e84b88d5ebcc53f0d56b735de682ac203afef66345188c807136b21c53fbaea021e83bd7d54854fb2f53aeb
|
data/HISTORY.md
CHANGED
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.
|
45
|
+
1.5.1
|
46
46
|
|
47
47
|
GLOBAL OPTIONS
|
48
48
|
--help - Show this message
|
@@ -378,6 +378,8 @@ link-mash (15),app (2),ios (3),productivity (1),launch-center-pro (1),drafts (2)
|
|
378
378
|
|
379
379
|
# Other Configuration Options
|
380
380
|
|
381
|
+
## Global Keys
|
382
|
+
|
381
383
|
You can place special keys in the `pinpress` section of `~/.pinpress` to
|
382
384
|
automate some actions:
|
383
385
|
|
@@ -385,22 +387,34 @@ automate some actions:
|
|
385
387
|
pinpress:
|
386
388
|
# ...other keys...
|
387
389
|
|
388
|
-
# The default
|
390
|
+
# The default pins template to use
|
389
391
|
default_pin_template
|
390
392
|
|
391
|
-
# The default
|
393
|
+
# The default tags template to use
|
392
394
|
default_tag_template
|
393
395
|
|
394
|
-
#
|
395
|
-
|
396
|
+
# ...other keys...
|
397
|
+
```
|
396
398
|
|
397
|
-
|
398
|
-
ignored_tags: ['bad-tag', 'bad-tag2']
|
399
|
+
## Template Keys
|
399
400
|
|
400
|
-
|
401
|
-
default_num_results: 5
|
401
|
+
Individual templates can carry some special keys, too:
|
402
402
|
|
403
|
-
|
403
|
+
```yaml
|
404
|
+
pin_templates:
|
405
|
+
- template_name:
|
406
|
+
# ...other keys...
|
407
|
+
|
408
|
+
# The default tags to be used when running `pinpress pins`
|
409
|
+
default_tags: ['tag1', 'tag2']
|
410
|
+
|
411
|
+
# The tags to that are removed from the results when running `pinpress tags`
|
412
|
+
ignored_tags: ['bad-tag', 'bad-tag2']
|
413
|
+
|
414
|
+
# The default number of results to return
|
415
|
+
default_num_results: 5
|
416
|
+
|
417
|
+
# ...other keys...
|
404
418
|
```
|
405
419
|
|
406
420
|
Do note:
|
@@ -419,38 +433,26 @@ pinpress:
|
|
419
433
|
config_location: "/Users/abach/.pinpress"
|
420
434
|
default_pin_template: pinpress_default
|
421
435
|
default_tag_template: pinpress_default
|
422
|
-
default_tags: ['link-mash']
|
423
|
-
ignored_tags: ['buffer']
|
424
436
|
log_level: WARN
|
425
|
-
version: 1.
|
437
|
+
version: 1.5.0
|
426
438
|
api_token: bachya:1234567890987654321
|
427
439
|
pin_templates:
|
428
|
-
|
429
|
-
opener:
|
430
|
-
<em>The weekly Link Mash is a curated selection of tools, stories, and
|
431
|
-
|
432
|
-
|
433
|
-
|
434
|
-
|
435
|
-
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
|
440
|
-
<b><a title="<%= description %>" href="<%= href %>" target="_blank">
|
441
|
-
<%= description %></a>.</b>
|
442
|
-
<%= extended %>
|
443
|
-
</li>
|
444
|
-
closer: >
|
445
|
-
</ul>
|
446
|
-
<hr/>
|
447
|
-
<em>This Link Mash was generated by <a title="PinPress"
|
448
|
-
href="https://github.com/bachya/pinpress" target="_blank">PinPress</a>,
|
449
|
-
a simple tool to generate text templates from <a title="Pinboard"
|
450
|
-
href="https://pinboard.in" target="_blank">Pinboard</a> data.</em>"
|
440
|
+
- pinpress_default:
|
441
|
+
opener: |
|
442
|
+
<em>The weekly Link Mash is a curated selection of tools, stories, and other links that I found during my travels on the web. All of my links can be found on <a title="Bachya's Pinboard: Link Mash" href="https://pinboard.in/u:bachya/t:link-mash/" target="_blank">my Pinboard</a>; you can also find the Link Mash archives <a href="http://www.bachyaproductions.com/tag/link-mash/">here</a>.</em><ul>
|
443
|
+
item: |
|
444
|
+
<li><b><a title="<%= description %>" href="<%= href %>" target="_blank"><%= description %></a>.</b> <%= extended %></li>
|
445
|
+
closer: |
|
446
|
+
</ul><hr/><em>This Link Mash was generated by <a title="PinPress" href="https://github.com/bachya/pinpress" target="_blank">PinPress</a>, a simple tool to generate text templates from <a title="Pinboard" href="https://pinboard.in" target="_blank">Pinboard</a> data.</em>
|
447
|
+
last_run: '2014-05-20T15:22:10Z'
|
448
|
+
default_tags:
|
449
|
+
- link-mash
|
450
|
+
ignored_tags:
|
451
|
+
- buffer
|
451
452
|
tag_templates:
|
452
|
-
|
453
|
+
- pinpress_default:
|
453
454
|
item: "<%= tag %>,"
|
455
|
+
last_run: '2014-05-20T15:22:10Z'
|
454
456
|
```
|
455
457
|
|
456
458
|
# Known Issues & Future Releases
|
data/lib/pinpress.rb
CHANGED
@@ -216,10 +216,8 @@ module PinPress
|
|
216
216
|
output = ''
|
217
217
|
PinPress.execute_template(opts) do |data|
|
218
218
|
tags = []
|
219
|
-
ignored_tags = configuration.pinpress.ignored_tags
|
220
|
-
|
221
219
|
data.each { |i| tags += i[:tag] }
|
222
|
-
tags = (tags -= ignored_tags if ignored_tags).uniq.map do |t|
|
220
|
+
tags = (tags -= template.ignored_tags if template.ignored_tags).uniq.map do |t|
|
223
221
|
{ tag: t, count: tags.count(t) }
|
224
222
|
end
|
225
223
|
|
data/lib/pinpress/constants.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Bach
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-05-
|
11
|
+
date: 2014-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|