pinpress 1.4.1 → 1.4.2
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/lib/pinpress.rb +13 -27
- 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: 0e914899e1c35ca22202b9ec594bfaa096d10835
|
4
|
+
data.tar.gz: 8547f9bb8e6a29818f6fe24aaaf64c1aec487fa7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7cbf914686ec155cdf2bf989a912fbf307fcb43152f161f27100639884e5162dfb5bf7009c316ae50badb326c7df96ada8d21f0c9df988ca1b32a76340e40ca1
|
7
|
+
data.tar.gz: 8b8033020e7f7394c042441496b30381b96efeea00446f6197f8ad23ad5594d2c929153596d14251f80bdca90a914f270cbb0d2a65f03591d42b169f9c5bee90
|
data/HISTORY.md
CHANGED
data/README.md
CHANGED
data/lib/pinpress.rb
CHANGED
@@ -138,34 +138,20 @@ module PinPress
|
|
138
138
|
# Present a list of installed templates to the user
|
139
139
|
# @return [void]
|
140
140
|
def list_templates
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
else
|
155
|
-
messenger.warn('No templates defined...')
|
156
|
-
end
|
157
|
-
|
158
|
-
messenger.section('AVAILABLE TAG TEMPLATES:')
|
159
|
-
if tag_templates
|
160
|
-
tag_templates.each_with_index do |template, index|
|
161
|
-
template_name, template = template.first
|
162
|
-
puts "#{ index + 1 }.\tName: ".blue + "#{ template_name }"
|
163
|
-
puts "Opener:".blue.rjust(22) + "\t#{ template[:opener] }".truncate(80)
|
164
|
-
puts "Item:".blue.rjust(22) + "\t#{ template[:item] }".truncate(80)
|
165
|
-
puts "Closer:".blue.rjust(22) + "\t#{ template[:closer] }".truncate(80)
|
141
|
+
%w(pin tag).each do |type|
|
142
|
+
templates = configuration.send("#{ type }_templates")
|
143
|
+
messenger.section("AVAILABLE #{ type.upcase } TEMPLATES:")
|
144
|
+
if templates
|
145
|
+
templates.each_with_index do |template, index|
|
146
|
+
template_name, template = template.first
|
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)
|
151
|
+
end
|
152
|
+
else
|
153
|
+
messenger.warn('No templates defined...')
|
166
154
|
end
|
167
|
-
else
|
168
|
-
messenger.warn('No templates defined...')
|
169
155
|
end
|
170
156
|
end
|
171
157
|
|
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.4.
|
4
|
+
version: 1.4.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-
|
11
|
+
date: 2014-05-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aruba
|