pinpress 1.5.0 → 1.5.1

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: cb9834c1b4b146171b5dd3775335edc642590a30
4
- data.tar.gz: 43363332876a9e29eec3a8fee3ca921a0bad00c1
3
+ metadata.gz: 747c296601a7ffc6e2c5b4ebb858a9738439c2ff
4
+ data.tar.gz: 65d54a1bbd198a7eea7c6df10812cd011fe1ada3
5
5
  SHA512:
6
- metadata.gz: dad5319aac8cef3d99bb986beb9eb3dac341acb97ab019ae5a812cd36a935135a6a6a10eb1b648bf0148213059416fd783ed3055de1788b2c23d961de3ad3a9c
7
- data.tar.gz: 37711b8fc8f9db2968133dff075424eb0ddf6c1a1398692e9d5a041c739e41425ebda9f070645e9d29d309296815910f0e90989f41acf369d29631e2436ae64f
6
+ metadata.gz: 0847e761d1a6dc78bac0ec70aa4645d5be0545866ed0921218e7f73b30293f1fa38fa5424410ac88a40f6f0efe60cfc10db77b0b31a319add47f4bae954c00d8
7
+ data.tar.gz: d225c75a3ced9b23a0c3c77a9914cdd29d58db385e84b88d5ebcc53f0d56b735de682ac203afef66345188c807136b21c53fbaea021e83bd7d54854fb2f53aeb
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.5.1 (2014-05-27)
2
+
3
+ * Fixed a bug with grabbing ignored tags from individual tag templates
4
+
1
5
  # 1.5.0 (2014-05-21)
2
6
 
3
7
  * Applied default tags and ignored tags to templates, rather than globally
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.4.2
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 `pins` template to use
390
+ # The default pins template to use
389
391
  default_pin_template
390
392
 
391
- # The default `tags` template to use
393
+ # The default tags template to use
392
394
  default_tag_template
393
395
 
394
- # The default tags to be used when running `pinpress pins`
395
- default_tags: ['tag1', 'tag2']
396
+ # ...other keys...
397
+ ```
396
398
 
397
- # The tags to that are removed from the results when running `pinpress tags`
398
- ignored_tags: ['bad-tag', 'bad-tag2']
399
+ ## Template Keys
399
400
 
400
- # The default number of results to return
401
- default_num_results: 5
401
+ Individual templates can carry some special keys, too:
402
402
 
403
- # ...other keys...
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.4.0
437
+ version: 1.5.0
426
438
  api_token: bachya:1234567890987654321
427
439
  pin_templates:
428
- pinpress_default
429
- opener: >
430
- <em>The weekly Link Mash is a curated selection of tools, stories, and
431
- other links that I found during my travels on the web. All of my curated
432
- links can be found on <a title="Bachya's Pinboard: Link Mash"
433
- href="https://pinboard.in/u:bachya/t:link-mash/" target="_blank">
434
- my Pinboard</a>; you can also find the Link Mash archives <a
435
- href="http://www.bachyaproductions.com/tag/link-mash/">here</a>.
436
- </em>
437
- <ul>
438
- item: >
439
- <li>
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
- pinpress_default
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
 
@@ -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.5.0'
31
+ VERSION = '1.5.1'
32
32
  end
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.0
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-21 00:00:00.000000000 Z
11
+ date: 2014-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba