tocer 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/README.md +3 -3
- data/lib/tocer/cli.rb +7 -7
- data/lib/tocer/identity.rb +1 -1
- metadata +61 -5
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6d6f4de19e4a6403124960e9d375e198fa9daf06
|
4
|
+
data.tar.gz: e3464b89eea4e39e59dcdd0ade592a4b844360e3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e7f9f7a37e026ead4ae41befac1fdf90bc816b8de15c54bdad195c731ca61331f8619ed2a19cf318b8b0a170ce79e7b767792434be7c51733df65258b92afc51
|
7
|
+
data.tar.gz: 0fb4dd79a0a936951e58be3fa261f881223bb0770e89d26531539ec2a8136bd6b5294672b3989d6981a6970ca7ea7cb99348c7968fa6edb54dc3bdfd23084bcb
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -46,7 +46,7 @@ Tocer (a.k.a. Table of Contenter) is command line interface for generating table
|
|
46
46
|
|
47
47
|
For a secure install, type the following (recommended):
|
48
48
|
|
49
|
-
gem cert --add <(curl
|
49
|
+
gem cert --add <(curl --location --silent https://www.alchemists.io/gem-public.pem)
|
50
50
|
gem install tocer --trust-policy MediumSecurity
|
51
51
|
|
52
52
|
NOTE: A HighSecurity trust policy would be best but MediumSecurity enables signed gem verification while
|
@@ -62,10 +62,10 @@ For an insecure install, type the following (not recommended):
|
|
62
62
|
|
63
63
|
From the command line, type: `tocer help`
|
64
64
|
|
65
|
-
tocer -e, [--edit] # Edit
|
65
|
+
tocer -e, [--edit] # Edit gem settings in default editor.
|
66
66
|
tocer -g, [--generate=GENERATE] # Generate table of contents.
|
67
67
|
tocer -h, [--help=HELP] # Show this message or get help for a command.
|
68
|
-
tocer -v, [--version] # Show
|
68
|
+
tocer -v, [--version] # Show gem version.
|
69
69
|
|
70
70
|
To add Tocer support, add the following at the correct position within your Markdown files:
|
71
71
|
|
data/lib/tocer/cli.rb
CHANGED
@@ -19,7 +19,7 @@ module Tocer
|
|
19
19
|
end
|
20
20
|
|
21
21
|
desc "-g, [--generate=GENERATE]", "Generate table of contents."
|
22
|
-
map %w
|
22
|
+
map %w[-g --generate] => :generate
|
23
23
|
method_option :label, aliases: "-l", desc: "Custom label", type: :string, default: "# Table of Contents"
|
24
24
|
def generate file_path
|
25
25
|
update_configuration! options
|
@@ -27,24 +27,24 @@ module Tocer
|
|
27
27
|
say "Generated table of contents: #{file_path}."
|
28
28
|
end
|
29
29
|
|
30
|
-
desc "-e, [--edit]", "Edit
|
31
|
-
map %w
|
30
|
+
desc "-e, [--edit]", "Edit gem settings in default editor."
|
31
|
+
map %w[-e --edit] => :edit
|
32
32
|
def edit
|
33
33
|
resource_file = File.join ENV["HOME"], Tocer::Identity.file_name
|
34
34
|
info "Editing: #{resource_file}..."
|
35
35
|
`#{editor} #{resource_file}`
|
36
36
|
end
|
37
37
|
|
38
|
-
desc "-v, [--version]", "Show
|
39
|
-
map %w
|
38
|
+
desc "-v, [--version]", "Show gem version."
|
39
|
+
map %w[-v --version] => :version
|
40
40
|
def version
|
41
41
|
say Tocer::Identity.version_label
|
42
42
|
end
|
43
43
|
|
44
44
|
desc "-h, [--help=HELP]", "Show this message or get help for a command."
|
45
|
-
map %w
|
45
|
+
map %w[-h --help] => :help
|
46
46
|
def help task = nil
|
47
|
-
say
|
47
|
+
say and super
|
48
48
|
end
|
49
49
|
|
50
50
|
private
|
data/lib/tocer/identity.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tocer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
aSif+qBc6oHD7EQWPF5cZkzkIURuwNwPBngZGxIKaMAgRhjGFXzUMAaq++r59cS9
|
31
31
|
xTfQ4k6fglKEgpnLAXiKdo2c8Ym+X4rIKFfedQ==
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2016-
|
33
|
+
date: 2016-04-24 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: thor
|
@@ -66,14 +66,14 @@ dependencies:
|
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '2.
|
69
|
+
version: '2.2'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '2.
|
76
|
+
version: '2.2'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: rake
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -186,6 +186,62 @@ dependencies:
|
|
186
186
|
- - ">="
|
187
187
|
- !ruby/object:Gem::Version
|
188
188
|
version: '0'
|
189
|
+
- !ruby/object:Gem::Dependency
|
190
|
+
name: bond
|
191
|
+
requirement: !ruby/object:Gem::Requirement
|
192
|
+
requirements:
|
193
|
+
- - ">="
|
194
|
+
- !ruby/object:Gem::Version
|
195
|
+
version: '0'
|
196
|
+
type: :development
|
197
|
+
prerelease: false
|
198
|
+
version_requirements: !ruby/object:Gem::Requirement
|
199
|
+
requirements:
|
200
|
+
- - ">="
|
201
|
+
- !ruby/object:Gem::Version
|
202
|
+
version: '0'
|
203
|
+
- !ruby/object:Gem::Dependency
|
204
|
+
name: wirb
|
205
|
+
requirement: !ruby/object:Gem::Requirement
|
206
|
+
requirements:
|
207
|
+
- - ">="
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
version: '0'
|
210
|
+
type: :development
|
211
|
+
prerelease: false
|
212
|
+
version_requirements: !ruby/object:Gem::Requirement
|
213
|
+
requirements:
|
214
|
+
- - ">="
|
215
|
+
- !ruby/object:Gem::Version
|
216
|
+
version: '0'
|
217
|
+
- !ruby/object:Gem::Dependency
|
218
|
+
name: hirb
|
219
|
+
requirement: !ruby/object:Gem::Requirement
|
220
|
+
requirements:
|
221
|
+
- - ">="
|
222
|
+
- !ruby/object:Gem::Version
|
223
|
+
version: '0'
|
224
|
+
type: :development
|
225
|
+
prerelease: false
|
226
|
+
version_requirements: !ruby/object:Gem::Requirement
|
227
|
+
requirements:
|
228
|
+
- - ">="
|
229
|
+
- !ruby/object:Gem::Version
|
230
|
+
version: '0'
|
231
|
+
- !ruby/object:Gem::Dependency
|
232
|
+
name: awesome_print
|
233
|
+
requirement: !ruby/object:Gem::Requirement
|
234
|
+
requirements:
|
235
|
+
- - ">="
|
236
|
+
- !ruby/object:Gem::Version
|
237
|
+
version: '0'
|
238
|
+
type: :development
|
239
|
+
prerelease: false
|
240
|
+
version_requirements: !ruby/object:Gem::Requirement
|
241
|
+
requirements:
|
242
|
+
- - ">="
|
243
|
+
- !ruby/object:Gem::Version
|
244
|
+
version: '0'
|
189
245
|
- !ruby/object:Gem::Dependency
|
190
246
|
name: rspec
|
191
247
|
requirement: !ruby/object:Gem::Requirement
|
@@ -345,7 +401,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
345
401
|
version: '0'
|
346
402
|
requirements: []
|
347
403
|
rubyforge_project:
|
348
|
-
rubygems_version: 2.
|
404
|
+
rubygems_version: 2.6.3
|
349
405
|
signing_key:
|
350
406
|
specification_version: 4
|
351
407
|
summary: A command line interface for generating table of contents for Markdown files.
|
metadata.gz.sig
CHANGED
Binary file
|