pinpress 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -2
- data/Gemfile.lock +55 -0
- data/HISTORY.md +7 -1
- data/README.md +32 -12
- data/features/step_definitions/{PinPress_steps.rb → pinpress_steps.rb} +0 -0
- data/lib/{PinPress.rb → pinpress.rb} +0 -0
- data/lib/{PinPress → pinpress}/constants.rb +1 -1
- data/lib/{PinPress → pinpress}/templates/pin_template.rb +0 -0
- data/lib/{PinPress → pinpress}/templates/tag_template.rb +0 -0
- data/lib/{PinPress → pinpress}/templates/template.rb +0 -0
- data/pinpress.gemspec +1 -1
- metadata +9 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 470b3cfe5ce7dcb5b42e75d3b25bc28e7e4ee1fb
|
4
|
+
data.tar.gz: db44436726bde6f1764066ad00cbe573af7bc49d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 064bebde43fe8a7f6f3f6ce06a27c5edcc044cf43d7656e7c9d3146e6520e45cd985d5767a23133d432aaa67673417c6ef146a64ead7c29c819633b927a59821
|
7
|
+
data.tar.gz: 1565d6c2de0d61e60229f466b42446e15fad10b5743151ba8417f827bfb56eec17db83bf01c04a79615725265df924f238e57253856b7047821dc5f21e3d3d20
|
data/.gitignore
CHANGED
data/Gemfile.lock
ADDED
@@ -0,0 +1,55 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
pinpress (1.1.1)
|
5
|
+
chronic (= 0.10.2)
|
6
|
+
cliutils (~> 2.0)
|
7
|
+
gli (= 2.9.0)
|
8
|
+
pinboard (= 0.1.1)
|
9
|
+
|
10
|
+
GEM
|
11
|
+
remote: https://rubygems.org/
|
12
|
+
specs:
|
13
|
+
aruba (0.5.4)
|
14
|
+
childprocess (>= 0.3.6)
|
15
|
+
cucumber (>= 1.1.1)
|
16
|
+
rspec-expectations (>= 2.7.0)
|
17
|
+
builder (3.2.2)
|
18
|
+
childprocess (0.5.2)
|
19
|
+
ffi (~> 1.0, >= 1.0.11)
|
20
|
+
chronic (0.10.2)
|
21
|
+
cliutils (2.0.2)
|
22
|
+
cucumber (1.3.14)
|
23
|
+
builder (>= 2.1.2)
|
24
|
+
diff-lcs (>= 1.1.3)
|
25
|
+
gherkin (~> 2.12)
|
26
|
+
multi_json (>= 1.7.5, < 2.0)
|
27
|
+
multi_test (>= 0.1.1)
|
28
|
+
diff-lcs (1.2.5)
|
29
|
+
ffi (1.9.3)
|
30
|
+
gherkin (2.12.2)
|
31
|
+
multi_json (~> 1.3)
|
32
|
+
gli (2.9.0)
|
33
|
+
httparty (0.11.0)
|
34
|
+
multi_json (~> 1.0)
|
35
|
+
multi_xml (>= 0.5.2)
|
36
|
+
json (1.8.1)
|
37
|
+
multi_json (1.9.2)
|
38
|
+
multi_test (0.1.1)
|
39
|
+
multi_xml (0.5.5)
|
40
|
+
pinboard (0.1.1)
|
41
|
+
httparty (= 0.11.0)
|
42
|
+
rake (10.1.1)
|
43
|
+
rdoc (4.1.1)
|
44
|
+
json (~> 1.4)
|
45
|
+
rspec-expectations (2.14.5)
|
46
|
+
diff-lcs (>= 1.1.3, < 2.0)
|
47
|
+
|
48
|
+
PLATFORMS
|
49
|
+
ruby
|
50
|
+
|
51
|
+
DEPENDENCIES
|
52
|
+
aruba (= 0.5.4)
|
53
|
+
pinpress!
|
54
|
+
rake (= 10.1.1)
|
55
|
+
rdoc (= 4.1.1)
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -28,13 +28,14 @@ Syntax and usage can be accessed by running `pinpress help`:
|
|
28
28
|
```
|
29
29
|
$ pinpress help
|
30
30
|
NAME
|
31
|
-
pinpress - A Pinboard application that allows for the creation of
|
31
|
+
pinpress - A Pinboard application that allows for the creation of
|
32
|
+
"pin templates" in almost any conceivable format.
|
32
33
|
|
33
34
|
SYNOPSIS
|
34
35
|
pinpress [global options] command [command options] [arguments...]
|
35
36
|
|
36
37
|
VERSION
|
37
|
-
1.1.
|
38
|
+
1.1.1
|
38
39
|
|
39
40
|
GLOBAL OPTIONS
|
40
41
|
--help - Show this message
|
@@ -88,18 +89,17 @@ Pin Templates are placed under the `pin_templates` section of the `~/.pinpress`
|
|
88
89
|
```YAML
|
89
90
|
pin_templates:
|
90
91
|
- name: pinpress_default
|
91
|
-
opener: "<ul
|
92
|
+
opener: "<ul\n"
|
92
93
|
closer: "</ul>"
|
93
94
|
item: "<li><b><a title=\"<%= description %>\" href=\"<%= href %>\" target=\"_blank\"><%=
|
94
|
-
description %></a>.</b> <%= extended %></li
|
95
|
-
/Users/abach/.pinpress: "\n"
|
95
|
+
description %></a>.</b> <%= extended %></li>\n"
|
96
96
|
```
|
97
97
|
|
98
98
|
A Pin Template can have several different sub-keys:
|
99
99
|
|
100
100
|
* `name` (**required**): the name of the template
|
101
101
|
* `opener` (*optional*): the text that should exist above the pins
|
102
|
-
* `closer` (*optional*): the text that should exist
|
102
|
+
* `closer` (*optional*): the text that should exist below the pins
|
103
103
|
* `item` (**required**): the formatted text that should be output for every pin
|
104
104
|
|
105
105
|
### Available Tokens
|
@@ -139,6 +139,12 @@ pin_templates:
|
|
139
139
|
description %></a>.</b> <%= extended %></li>\N"
|
140
140
|
```
|
141
141
|
|
142
|
+
The default template will be used when the `pins` command is run without any arguments:
|
143
|
+
|
144
|
+
```
|
145
|
+
$ pinpress pins
|
146
|
+
```
|
147
|
+
|
142
148
|
## Tag Templates
|
143
149
|
|
144
150
|
Tag Templates are exactly like Pin Templates, but are used for tags.
|
@@ -150,15 +156,14 @@ They, too, are defined in `~/.pinpress`:
|
|
150
156
|
```YAML
|
151
157
|
tag_templates:
|
152
158
|
- name: pinpress_default
|
153
|
-
item: "<%= tag %> (<%= count %>)"
|
154
|
-
/Users/abach/.pinpress: ","
|
159
|
+
item: "<%= tag %> (<%= count %>),"
|
155
160
|
```
|
156
161
|
|
157
162
|
A Pin Template can have several different sub-keys:
|
158
163
|
|
159
164
|
* `name` (**required**): the name of the template
|
160
|
-
* `opener` (*optional*): the text that should exist above the
|
161
|
-
* `closer` (*optional*): the text that should exist
|
165
|
+
* `opener` (*optional*): the text that should exist above the tags
|
166
|
+
* `closer` (*optional*): the text that should exist below the tags
|
162
167
|
* `item` (**required**): the formatted text that should be output for every pin
|
163
168
|
|
164
169
|
### Available Tokens
|
@@ -191,11 +196,24 @@ tag_templates:
|
|
191
196
|
item: "<%= tag %> (<%= count %>),"
|
192
197
|
```
|
193
198
|
|
199
|
+
Again, the default template will be used when the `tags` command is run without any arguments:
|
200
|
+
|
201
|
+
```
|
202
|
+
$ pinpress tags
|
203
|
+
```
|
204
|
+
|
194
205
|
# Getting Pins
|
195
206
|
|
196
207
|
```
|
197
208
|
$ pinpress pins
|
198
|
-
#
|
209
|
+
# <ul>
|
210
|
+
# <li>
|
211
|
+
# <b><a title="Technical Debt, a case study : tags" href="http://marcgravell.blogspot.com/2014/04/technical-debt-case-study-tags.html?m=1" target="_blank">Technical Debt, a case study : tags</a>.</b> A look at how programmers solve complex problems iteratively.
|
212
|
+
# </li>
|
213
|
+
# <li>
|
214
|
+
# <b><a title="Using Drafts for Remote CLI" href="https://gist.github.com/hiilppp/10993803" target="_blank">Using Drafts for Remote CLI</a>.</b> As a text file is added to a directory to which this AppleScript is associated as Folder Action, the content of the received file is executed as shell script and the generated output sent to an iOS device.
|
215
|
+
# </li>
|
216
|
+
# </ul>
|
199
217
|
```
|
200
218
|
|
201
219
|
This simple command will return all pins from the user's account and output them based on the [Pin Template](https://github.com/bachya/PinPress#pin-templates "Pin Templates") provided.
|
@@ -207,6 +225,8 @@ Pinpress also provides some flags that allow a user to define specific pins to g
|
|
207
225
|
* `-n`: the number of pins to return (e.g., 20)
|
208
226
|
* `-t`: a CSV list of tags to grab (e.g., "tag1,tag2")
|
209
227
|
|
228
|
+
Naturally, these switches can be combined in any number of ways.
|
229
|
+
|
210
230
|
## Getting Pins From a Date Forward
|
211
231
|
|
212
232
|
```
|
@@ -243,7 +263,7 @@ Pinpress can also work with tags in a Pinboard account:
|
|
243
263
|
|
244
264
|
```
|
245
265
|
$ pinpress tags
|
246
|
-
# => cli (1),github (1),applescript (1),osx (1),link-mash (1)
|
266
|
+
# => cli (1),github (1),applescript (1),osx (1),link-mash (1),
|
247
267
|
```
|
248
268
|
|
249
269
|
This simple command will return all tags from the user's account and output them based on the [Tag Template](https://github.com/bachya/PinPress#tag-templates "Tag Templates") provided.
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
data/pinpress.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pinpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aaron Bach
|
@@ -121,6 +121,7 @@ files:
|
|
121
121
|
- ".gitignore"
|
122
122
|
- ".travis.yml"
|
123
123
|
- Gemfile
|
124
|
+
- Gemfile.lock
|
124
125
|
- HISTORY.md
|
125
126
|
- LICENSE
|
126
127
|
- README.md
|
@@ -130,13 +131,13 @@ files:
|
|
130
131
|
- features/2.initialization.feature
|
131
132
|
- features/3.templates.feature
|
132
133
|
- features/4.pins.feature
|
133
|
-
- features/step_definitions/
|
134
|
+
- features/step_definitions/pinpress_steps.rb
|
134
135
|
- features/support/env.rb
|
135
|
-
- lib/
|
136
|
-
- lib/
|
137
|
-
- lib/
|
138
|
-
- lib/
|
139
|
-
- lib/
|
136
|
+
- lib/pinpress.rb
|
137
|
+
- lib/pinpress/constants.rb
|
138
|
+
- lib/pinpress/templates/pin_template.rb
|
139
|
+
- lib/pinpress/templates/tag_template.rb
|
140
|
+
- lib/pinpress/templates/template.rb
|
140
141
|
- pinpress.gemspec
|
141
142
|
- res/preference_prompts.yaml
|
142
143
|
- res/sample_config.yaml
|
@@ -171,7 +172,7 @@ test_files:
|
|
171
172
|
- features/2.initialization.feature
|
172
173
|
- features/3.templates.feature
|
173
174
|
- features/4.pins.feature
|
174
|
-
- features/step_definitions/
|
175
|
+
- features/step_definitions/pinpress_steps.rb
|
175
176
|
- features/support/env.rb
|
176
177
|
- test/default_test.rb
|
177
178
|
- test/test_helper.rb
|