pinpress 1.3.2 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +4 -0
- data/README.md +1 -1
- data/bin/pinpress +7 -7
- data/features/3.templates.feature +17 -5
- 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: fa24927875f4c63b7ff399e51e7077cc3f54b959
|
4
|
+
data.tar.gz: 8095783fe3adeedd8abfb09c73961cec1121549f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fe7ae484f60118e98172d0ce4e48460dddfb6e9a05f9629304ea0ee74ea0d4e50a4355115f3c0287f03c1d58ef78fd7906f7b1b8dc595f09fdbaac9eb5acd06
|
7
|
+
data.tar.gz: e30951147d3927fb627979ca0140b1603fda9a13885b23967470adc30b4aa90e7370662f754d76fa9750aeb3c5d0739b2a8e12fed7236f5647cd6ddf10567052
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
data/bin/pinpress
CHANGED
@@ -92,11 +92,11 @@ end
|
|
92
92
|
# ======================================================
|
93
93
|
# Error (runs when an exception is raised)
|
94
94
|
# ======================================================
|
95
|
-
on_error do |exception|
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
end
|
95
|
+
# on_error do |exception|
|
96
|
+
# messenger.error(exception.to_s)
|
97
|
+
# exit!(1)
|
98
|
+
# true
|
99
|
+
# end
|
100
100
|
|
101
101
|
# ======================================================
|
102
102
|
# Commands
|
@@ -171,7 +171,7 @@ command :pins do |c|
|
|
171
171
|
|
172
172
|
# Set one option: the start date. Set it to the last-run date + 1.
|
173
173
|
opts = {}
|
174
|
-
opts.merge!(fromdt: last_run_date + 1)
|
174
|
+
opts.merge!(fromdt: DateTime.parse(last_run_date) + 1)
|
175
175
|
opts.merge!(PinPress.merge_common_options(options))
|
176
176
|
|
177
177
|
# Request pin data from Pinboard and output the return data.
|
@@ -212,7 +212,7 @@ command :tags do |c|
|
|
212
212
|
|
213
213
|
# Set one option: the start date. Set it to the last-run date + 1.
|
214
214
|
opts = {}
|
215
|
-
opts.merge!(fromdt: last_run_date + 1)
|
215
|
+
opts.merge!(fromdt: DateTime.parse(last_run_date) + 1)
|
216
216
|
opts.merge!(PinPress.merge_common_options(options))
|
217
217
|
|
218
218
|
# Request tag data from Pinboard and output the return data.
|
@@ -1,4 +1,4 @@
|
|
1
|
-
@active
|
1
|
+
# @active
|
2
2
|
Feature: Templates
|
3
3
|
As a user, I should be able to list available
|
4
4
|
templates and choose one.
|
@@ -10,9 +10,15 @@ Feature: Templates
|
|
10
10
|
And the output should contain:
|
11
11
|
"""
|
12
12
|
---> AVAILABLE PIN TEMPLATES:
|
13
|
-
|
13
|
+
1. Name: pinpress_default
|
14
|
+
Opener: <ul>
|
15
|
+
Item: <li><%= href %></li>
|
16
|
+
Closer: </ul>
|
14
17
|
---> AVAILABLE TAG TEMPLATES:
|
15
|
-
|
18
|
+
1. Name: pinpress_default
|
19
|
+
Opener:
|
20
|
+
Item: <%= tag %> (<%= count %>),
|
21
|
+
Closer:
|
16
22
|
"""
|
17
23
|
|
18
24
|
Scenario: List Templates (explicit)
|
@@ -22,7 +28,13 @@ Feature: Templates
|
|
22
28
|
And the output should contain:
|
23
29
|
"""
|
24
30
|
---> AVAILABLE PIN TEMPLATES:
|
25
|
-
|
31
|
+
1.\tName: pinpress_default
|
32
|
+
Opener: <ul>
|
33
|
+
Item: <li><%= href %></li>
|
34
|
+
Closer: </ul>
|
26
35
|
---> AVAILABLE TAG TEMPLATES:
|
27
|
-
|
36
|
+
1. Name: pinpress_default
|
37
|
+
Opener:
|
38
|
+
Item: <%= tag %> (<%= count %>),
|
39
|
+
Closer:
|
28
40
|
"""
|
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.3.
|
4
|
+
version: 1.3.3
|
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-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|