pinpress 1.5.1 → 1.5.2
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 +5 -1
- data/README.md +1 -1
- data/bin/pinpress +2 -2
- data/lib/pinpress.rb +2 -2
- 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: 16c3a1261457d78a7a116bca2aa115a42f75f279
|
|
4
|
+
data.tar.gz: b3ccd701978f3b4bfdc7c85d76db03d0a423fa38
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 77281608528aea4c3945c48a2eea792228b0d2769730226316c04845a7031e7a666c9fb6b707bad172cfd16a62487164b61a99832fb0140becb026239e33a175
|
|
7
|
+
data.tar.gz: 9112abaf1f90bf2b5b8da67ea995152a5c37b29d62644e6bdb0ee4a64bfdffdeb4cfb1d74064f1c2468fbc8128a329ec0a2c1c925e0065ed33ae1184c02c913a
|
data/HISTORY.md
CHANGED
|
@@ -1,6 +1,10 @@
|
|
|
1
|
+
# 1.5.2 (2014-06-07)
|
|
2
|
+
|
|
3
|
+
* Fixed a small bug with running `tags last`
|
|
4
|
+
|
|
1
5
|
# 1.5.1 (2014-05-27)
|
|
2
6
|
|
|
3
|
-
* Fixed a bug with grabbing ignored tags from individual tag templates
|
|
7
|
+
* Fixed a bug with grabbing ignored tags from individual tag templates
|
|
4
8
|
|
|
5
9
|
# 1.5.0 (2014-05-21)
|
|
6
10
|
|
data/README.md
CHANGED
data/bin/pinpress
CHANGED
|
@@ -243,10 +243,10 @@ command :tags do |c|
|
|
|
243
243
|
# Set one option: the start date. Set it to the last-run date + 1.
|
|
244
244
|
opts.merge!(fromdt: DateTime.parse(last_run_date) + 1)
|
|
245
245
|
end
|
|
246
|
-
|
|
246
|
+
|
|
247
247
|
# Set our common options.
|
|
248
248
|
opts.merge!(PinPress.merge_common_options(options, template_name, PinPress::Template::TYPE_PIN))
|
|
249
|
-
|
|
249
|
+
|
|
250
250
|
# Request tag data from Pinboard and output the return data.
|
|
251
251
|
output = PinPress.tag_yield(template, opts)
|
|
252
252
|
puts output if output
|
data/lib/pinpress.rb
CHANGED
|
@@ -64,7 +64,7 @@ module PinPress
|
|
|
64
64
|
tag_t_sym = :default_tag_template
|
|
65
65
|
s = (template_type == PinPress::Template::TYPE_PIN ? pin_t_sym : tag_t_sym)
|
|
66
66
|
default_template = configuration.pinpress[s]
|
|
67
|
-
|
|
67
|
+
|
|
68
68
|
if explicit_template && PinPress.is_template?(explicit_template, template_type)
|
|
69
69
|
messenger.debug("Using explicit template: #{ explicit_template }")
|
|
70
70
|
return explicit_template, PinPress.get_template(explicit_template, template_type)
|
|
@@ -217,7 +217,7 @@ module PinPress
|
|
|
217
217
|
PinPress.execute_template(opts) do |data|
|
|
218
218
|
tags = []
|
|
219
219
|
data.each { |i| tags += i[:tag] }
|
|
220
|
-
tags =
|
|
220
|
+
tags = tags.uniq.map do |t|
|
|
221
221
|
{ tag: t, count: tags.count(t) }
|
|
222
222
|
end
|
|
223
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.2
|
|
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-
|
|
11
|
+
date: 2014-06-07 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: aruba
|