tocer 6.1.0 → 6.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/lib/tocer/cli.rb +10 -4
- data/lib/tocer/identity.rb +1 -1
- metadata +35 -13
- metadata.gz.sig +3 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f311399be839a5bae6d2f917d2ba5e2c224d6c01
|
4
|
+
data.tar.gz: 6bdfeef3efdb6f06779021dd8cecb6c3d6341d38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1aa972ddc987370440c2caa855afecb7ef6b39917760405584583f5a9e7d7af7a3cbb160368a217892d9e5705a8da9a4664a405a526f5056121c3bcec7c6045
|
7
|
+
data.tar.gz: f6639d4927f8634a311f7a0fe65644266bc26640ebf36b06f2197601e0d1df49a04c6c34388a73a5c0a868406294bcedf7fc190e7cdca18281d3315cd39f0ec4
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
Binary file
|
data/lib/tocer/cli.rb
CHANGED
@@ -20,6 +20,9 @@ module Tocer
|
|
20
20
|
|
21
21
|
def initialize args = [], options = {}, config = {}
|
22
22
|
super args, options, config
|
23
|
+
@configuration = self.class.configuration
|
24
|
+
rescue Runcom::Errors::Base => error
|
25
|
+
abort error.message
|
23
26
|
end
|
24
27
|
|
25
28
|
desc "-g, [--generate=PATH]", "Generate table of contents."
|
@@ -36,9 +39,8 @@ module Tocer
|
|
36
39
|
default: configuration.to_h.fetch(:whitelist)
|
37
40
|
# :reek:TooManyStatements
|
38
41
|
def generate path = "."
|
39
|
-
|
40
|
-
|
41
|
-
runner = Runner.new path, configuration: configuration
|
42
|
+
updated_configuration = configuration.merge label: options.label, whitelist: options.whitelist
|
43
|
+
runner = Runner.new path, configuration: updated_configuration
|
42
44
|
files = runner.files
|
43
45
|
|
44
46
|
return if files.empty?
|
@@ -59,7 +61,7 @@ module Tocer
|
|
59
61
|
desc: "Print gem configuration.",
|
60
62
|
type: :boolean, default: false
|
61
63
|
def config
|
62
|
-
path =
|
64
|
+
path = configuration.path
|
63
65
|
|
64
66
|
if options.edit? then `#{ENV["EDITOR"]} #{path}`
|
65
67
|
elsif options.info?
|
@@ -79,5 +81,9 @@ module Tocer
|
|
79
81
|
def help task = nil
|
80
82
|
say and super
|
81
83
|
end
|
84
|
+
|
85
|
+
private
|
86
|
+
|
87
|
+
attr_reader :configuration
|
82
88
|
end
|
83
89
|
end
|
data/lib/tocer/identity.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,36 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tocer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 6.
|
4
|
+
version: 6.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
+
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
+
aW8wHhcNMTYxMDE5MTY0NDEzWhcNMTcxMDE5MTY0NDEzWjBBMQ8wDQYDVQQDDAZi
|
16
|
+
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
+
GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCgryPL4/IbWDcL
|
18
|
+
fnqpnoJALqj+ega7hSsvvD8sac57HPNLeKcOmSafFiQLAnTmmE132ZlFc8kyZRVn
|
19
|
+
zmqSESowO5jd+ggFuy1ySqQJXhwgik04KedKRUjpIDZePrjw+M5UJT1qzKCKL2xI
|
20
|
+
nx5cOKP1fSWJ1RRu8JhaDeSloGtYMdw2c28wnKPNIsWDood4xhbLcY9IqeISft2e
|
21
|
+
oTAHTHandHbvt24X3/n67ceNjLBbsVZPXCC1C8C8ccjHjA4Tm2uiFoDwThMcPggg
|
22
|
+
90H6fh0vLFcNAobdPEchbge8tWtfmMPz2+C4yklANn81GA+ANsBS1uwx6mxJoMQU
|
23
|
+
BNVp0aLvAgMBAAGjezB5MAkGA1UdEwQCMAAwCwYDVR0PBAQDAgSwMB0GA1UdDgQW
|
24
|
+
BBRS85Rn1BaqeIONByw4t46DMDMzHDAfBgNVHREEGDAWgRRicm9va2VAYWxjaGVt
|
25
|
+
aXN0cy5pbzAfBgNVHRIEGDAWgRRicm9va2VAYWxjaGVtaXN0cy5pbzANBgkqhkiG
|
26
|
+
9w0BAQUFAAOCAQEAZMb57Y4wdpbX8XxTukEO7VC1pndccUsxdbziGsAOiuHET3Aq
|
27
|
+
ygLvrfdYrN88/w+qxncW5bxbO3a6UGkuhIFUPM8zRSE/rh6bCcJljTJrExVt42eV
|
28
|
+
aYCb7WJNsx3eNXHn3uQodq3tD+lmNJzz2bFeT3smGSKEnALBjqorO/2mpDh4FJ3S
|
29
|
+
4CcDYsJ1ywep8LDJDBBGdKz9moL+axryzpeTpgTT/fFYFzRzWrURPyDvPOikh9TX
|
30
|
+
n/LUZ1dKhIHzfKx1B4+TEIefArObGfkLIDM8+Dq1RX7TF1k81Men7iu4MgE9bYBn
|
31
|
+
3dE+xI3FdB5gWcdWxdtgRCmWjtXeYYyb4z6NQQ==
|
32
|
+
-----END CERTIFICATE-----
|
33
|
+
date: 2017-08-20 00:00:00.000000000 Z
|
12
34
|
dependencies:
|
13
35
|
- !ruby/object:Gem::Dependency
|
14
36
|
name: thor
|
@@ -16,42 +38,42 @@ dependencies:
|
|
16
38
|
requirements:
|
17
39
|
- - "~>"
|
18
40
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0.
|
41
|
+
version: '0.20'
|
20
42
|
type: :runtime
|
21
43
|
prerelease: false
|
22
44
|
version_requirements: !ruby/object:Gem::Requirement
|
23
45
|
requirements:
|
24
46
|
- - "~>"
|
25
47
|
- !ruby/object:Gem::Version
|
26
|
-
version: '0.
|
48
|
+
version: '0.20'
|
27
49
|
- !ruby/object:Gem::Dependency
|
28
50
|
name: refinements
|
29
51
|
requirement: !ruby/object:Gem::Requirement
|
30
52
|
requirements:
|
31
53
|
- - "~>"
|
32
54
|
- !ruby/object:Gem::Version
|
33
|
-
version: '4.
|
55
|
+
version: '4.2'
|
34
56
|
type: :runtime
|
35
57
|
prerelease: false
|
36
58
|
version_requirements: !ruby/object:Gem::Requirement
|
37
59
|
requirements:
|
38
60
|
- - "~>"
|
39
61
|
- !ruby/object:Gem::Version
|
40
|
-
version: '4.
|
62
|
+
version: '4.2'
|
41
63
|
- !ruby/object:Gem::Dependency
|
42
64
|
name: runcom
|
43
65
|
requirement: !ruby/object:Gem::Requirement
|
44
66
|
requirements:
|
45
67
|
- - "~>"
|
46
68
|
- !ruby/object:Gem::Version
|
47
|
-
version: '1.
|
69
|
+
version: '1.3'
|
48
70
|
type: :runtime
|
49
71
|
prerelease: false
|
50
72
|
version_requirements: !ruby/object:Gem::Requirement
|
51
73
|
requirements:
|
52
74
|
- - "~>"
|
53
75
|
- !ruby/object:Gem::Version
|
54
|
-
version: '1.
|
76
|
+
version: '1.3'
|
55
77
|
- !ruby/object:Gem::Dependency
|
56
78
|
name: rake
|
57
79
|
requirement: !ruby/object:Gem::Requirement
|
@@ -72,14 +94,14 @@ dependencies:
|
|
72
94
|
requirements:
|
73
95
|
- - "~>"
|
74
96
|
- !ruby/object:Gem::Version
|
75
|
-
version: '10.
|
97
|
+
version: '10.2'
|
76
98
|
type: :development
|
77
99
|
prerelease: false
|
78
100
|
version_requirements: !ruby/object:Gem::Requirement
|
79
101
|
requirements:
|
80
102
|
- - "~>"
|
81
103
|
- !ruby/object:Gem::Version
|
82
|
-
version: '10.
|
104
|
+
version: '10.2'
|
83
105
|
- !ruby/object:Gem::Dependency
|
84
106
|
name: pry
|
85
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -226,14 +248,14 @@ dependencies:
|
|
226
248
|
requirements:
|
227
249
|
- - "~>"
|
228
250
|
- !ruby/object:Gem::Version
|
229
|
-
version: '1.
|
251
|
+
version: '1.5'
|
230
252
|
type: :development
|
231
253
|
prerelease: false
|
232
254
|
version_requirements: !ruby/object:Gem::Requirement
|
233
255
|
requirements:
|
234
256
|
- - "~>"
|
235
257
|
- !ruby/object:Gem::Version
|
236
|
-
version: '1.
|
258
|
+
version: '1.5'
|
237
259
|
- !ruby/object:Gem::Dependency
|
238
260
|
name: reek
|
239
261
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
ADDED