pinpress 1.3.0 → 1.3.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c5ad4abe5c4ffac712cbc94f5ab57629d55c7392
4
- data.tar.gz: 13b08c63e46a7045d8a2568c133074831da84243
3
+ metadata.gz: bfe947ad09fb8eeb8f5fadbaa49c76655dc435dc
4
+ data.tar.gz: af23be52bb1e1e7ca49a3170c7016a1e92805650
5
5
  SHA512:
6
- metadata.gz: 14951a1894355244746786152988d68e94f0a3c124ef73ba25e23f7eb2324853613fa9d965293cf1852e12339056e91f9c3d4163d06fcbfdffcbbf53e6f678fd
7
- data.tar.gz: 08617ed674306742f5778696a0584cd3deef296f27cb3903404694789a60b02682050e340655506944558e2e38ad32c621bab046a43ea989936e7def6230eb15
6
+ metadata.gz: 3052d9f73da751df0cd2f37fd117e22790c0767923b23ffa8bbd96ff304501d8658281abeb8dad30451e20a42fcece938fa4eb9e8127a1a394c14131c7a83cc4
7
+ data.tar.gz: 33d65f16f60c27637aebce97cba005cadb8e0792fae3055052aac1ffd8108035bafbc38e5ff357c25122ff7918eeef01a61b0cc4a169e046f8e3bec5150c8dc9
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 1.3.2 (2014-05-08)
2
+
3
+ * Added ability to list template contents, along with name
4
+
1
5
  # 1.3.1 (2014-05-06)
2
6
 
3
7
  * Modified last-run to store DateTime, rather than just a Date
@@ -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.3.0'
31
+ VERSION = '1.3.2'
32
32
  end
data/lib/pinpress.rb CHANGED
@@ -144,7 +144,10 @@ module PinPress
144
144
  messenger.section('AVAILABLE PIN TEMPLATES:')
145
145
  if pin_templates
146
146
  pin_templates.each_with_index do |template, index|
147
- messenger.info("#{ index + 1 }. #{ template[:name] }")
147
+ puts "#{ index + 1 }.\tName: ".blue + "#{ template[:name] }"
148
+ puts "Opener:".blue.rjust(22) + "\t#{ template[:opener] }".truncate(80)
149
+ puts "Item:".blue.rjust(22) + "\t#{ template[:item] }".truncate(80)
150
+ puts "Closer:".blue.rjust(22) + "\t#{ template[:closer] }".truncate(80)
148
151
  end
149
152
  else
150
153
  messenger.warn('No templates defined...')
@@ -153,7 +156,10 @@ module PinPress
153
156
  messenger.section('AVAILABLE TAG TEMPLATES:')
154
157
  if tag_templates
155
158
  tag_templates.each_with_index do |template, index|
156
- messenger.info("#{ index + 1 }. #{ template[:name] }")
159
+ puts "#{ index + 1 }.\tName: ".blue + "#{ template[:name] }"
160
+ puts "Opener:".blue.rjust(22) + "\t#{ template[:opener] }".truncate(80)
161
+ puts "Item:".blue.rjust(22) + "\t#{ template[:item] }".truncate(80)
162
+ puts "Closer:".blue.rjust(22) + "\t#{ template[:closer] }".truncate(80)
157
163
  end
158
164
  else
159
165
  messenger.warn('No templates defined...')
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.0
4
+ version: 1.3.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-05-07 00:00:00.000000000 Z
11
+ date: 2014-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aruba