pinpress 1.6.0 → 1.6.1
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 +12 -2
- data/bin/pinpress +5 -5
- data/lib/pinpress/constants.rb +1 -1
- data/pinpress.gemspec +1 -1
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b3873e148118f5892862bb69d534ec92221db17
|
4
|
+
data.tar.gz: e4e7693a7a7d7861ccf376449388a5156fe8cd7c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 02d6d41dee1df721f52ded9b205ba5e80a0f1663e746feb93aa5f1aea0bc85dc354c141251776934469ff60b01799d507820b731eaa96bb4444a1c522ca90ccc
|
7
|
+
data.tar.gz: 9bd81623821f3f19bd35ae3fa0bf64438314ddaa1e237f73c37ef86105daccc9ceb293872b93c735c69fff7d8f8d06e7f5b4673da602f32c4f7a99fc021cce33
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
@@ -109,8 +109,13 @@ grab:
|
|
109
109
|
* `-n`: the number of pins to return (e.g., 20)
|
110
110
|
* `-t`: a CSV list of tags (e.g., "tag1,tag2") that must exist for the returned pins
|
111
111
|
|
112
|
+
## Output
|
113
|
+
|
112
114
|
By default, pin template text will be output to the terminal; you can use the
|
113
|
-
`-c` switch to output it to the system clipboard instead.
|
115
|
+
`-c` switch to output it to the system clipboard instead. This flag makes use
|
116
|
+
of the [clippy](https://github.com/envygeeks/clippy) gem, which
|
117
|
+
allows for cross-platform system clipboard access. Make sure you read its
|
118
|
+
[README](https://github.com/envygeeks/clippy/blob/master/Readme.md).
|
114
119
|
|
115
120
|
## Getting Pins From a Date Forward
|
116
121
|
|
@@ -172,8 +177,13 @@ grab:
|
|
172
177
|
* `-s`: the start date to use (uses [Chronic](https://github.com/mojombo/chronic "Chronic"), which allows dates like "last Tuesday")
|
173
178
|
* `-e`: the end date to use (also uses [Chronic](https://github.com/mojombo/chronic "Chronic"))
|
174
179
|
|
180
|
+
## Output
|
181
|
+
|
175
182
|
By default, pin template text will be output to the terminal; you can use the
|
176
|
-
`-c` switch to output it to the system clipboard instead.
|
183
|
+
`-c` switch to output it to the system clipboard instead. This flag makes use
|
184
|
+
of the [clippy](https://github.com/envygeeks/clippy) gem, which
|
185
|
+
allows for cross-platform system clipboard access. Make sure you read its
|
186
|
+
[README](https://github.com/envygeeks/clippy/blob/master/Readme.md).
|
177
187
|
|
178
188
|
## Getting Tags From a Date Forward
|
179
189
|
|
data/bin/pinpress
CHANGED
@@ -31,11 +31,11 @@
|
|
31
31
|
# OTHER DEALINGS IN THE SOFTWARE.
|
32
32
|
#--------------------------------------------------------------------
|
33
33
|
require 'chronic'
|
34
|
+
require 'clippy'
|
34
35
|
require 'cliutils'
|
35
36
|
require 'digest/md5'
|
36
37
|
require 'gli'
|
37
38
|
require 'htmlentities'
|
38
|
-
require 'pbcopy'
|
39
39
|
require 'pinboard'
|
40
40
|
require 'pinpress'
|
41
41
|
require 'uri'
|
@@ -165,7 +165,7 @@ command :pins do |c|
|
|
165
165
|
# puts output if output
|
166
166
|
if output
|
167
167
|
if options[:c]
|
168
|
-
output
|
168
|
+
Clippy.copy(output)
|
169
169
|
else
|
170
170
|
puts output
|
171
171
|
end
|
@@ -204,7 +204,7 @@ command :pins do |c|
|
|
204
204
|
# puts output if output
|
205
205
|
if output
|
206
206
|
if options[:c]
|
207
|
-
output
|
207
|
+
Clippy.copy(output)
|
208
208
|
else
|
209
209
|
puts output
|
210
210
|
end
|
@@ -252,7 +252,7 @@ command :tags do |c|
|
|
252
252
|
# puts output if output
|
253
253
|
if output
|
254
254
|
if options[:c]
|
255
|
-
output
|
255
|
+
Clippy.copy(output)
|
256
256
|
else
|
257
257
|
puts output
|
258
258
|
end
|
@@ -292,7 +292,7 @@ command :tags do |c|
|
|
292
292
|
# puts output if output
|
293
293
|
if output
|
294
294
|
if options[:c]
|
295
|
-
output
|
295
|
+
Clippy.copy(output)
|
296
296
|
else
|
297
297
|
puts output
|
298
298
|
end
|
data/lib/pinpress/constants.rb
CHANGED
data/pinpress.gemspec
CHANGED
@@ -19,9 +19,9 @@ Gem::Specification.new do |spec|
|
|
19
19
|
spec.add_development_dependency('rspec', '2.14.1')
|
20
20
|
spec.add_development_dependency('yard', '0.8.7.4')
|
21
21
|
spec.add_runtime_dependency('chronic', '0.10.2')
|
22
|
+
spec.add_runtime_dependency('clippy', '2.1.0')
|
22
23
|
spec.add_runtime_dependency('cliutils', '~> 2')
|
23
24
|
spec.add_runtime_dependency('gli', '2.9.0')
|
24
25
|
spec.add_runtime_dependency('htmlentities', '4.3.1')
|
25
|
-
spec.add_runtime_dependency('pbcopy', '1.0.1')
|
26
26
|
spec.add_runtime_dependency('pinboard', '0.1.1')
|
27
27
|
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.6.
|
4
|
+
version: 1.6.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-09-
|
11
|
+
date: 2014-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|
@@ -80,6 +80,20 @@ dependencies:
|
|
80
80
|
- - '='
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: 0.10.2
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: clippy
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - '='
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: 2.1.0
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - '='
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: 2.1.0
|
83
97
|
- !ruby/object:Gem::Dependency
|
84
98
|
name: cliutils
|
85
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -122,20 +136,6 @@ dependencies:
|
|
122
136
|
- - '='
|
123
137
|
- !ruby/object:Gem::Version
|
124
138
|
version: 4.3.1
|
125
|
-
- !ruby/object:Gem::Dependency
|
126
|
-
name: pbcopy
|
127
|
-
requirement: !ruby/object:Gem::Requirement
|
128
|
-
requirements:
|
129
|
-
- - '='
|
130
|
-
- !ruby/object:Gem::Version
|
131
|
-
version: 1.0.1
|
132
|
-
type: :runtime
|
133
|
-
prerelease: false
|
134
|
-
version_requirements: !ruby/object:Gem::Requirement
|
135
|
-
requirements:
|
136
|
-
- - '='
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: 1.0.1
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: pinboard
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|