pragmater 4.1.0 → 4.2.0
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 +4 -4
- checksums.yaml.gz.sig +2 -0
- data.tar.gz.sig +0 -0
- data/lib/pragmater/cli.rb +10 -3
- data/lib/pragmater/identity.rb +1 -1
- metadata +33 -11
- 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: 6ccef1b1f938b107871b0dd68d3ce99ecf48266a
|
|
4
|
+
data.tar.gz: 0a1eff6d84f712d16206d2f650d2122489091cd2
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b131ebd3b50c60c6a6266b2d745e899ee9622f06c852a404b7ff410e370ef676399a2882c480ed91f78ba167f902faf7b61612b493df4ab68d2042a5afa6c589
|
|
7
|
+
data.tar.gz: 857bb66b10f83b1dbef381be7f7ff089388bcb26710328f0811a9733dcd3dcfa4ebc453310ebc5adfa6485c7ad234accb373368ba3daaa87fc2211202e37795d
|
checksums.yaml.gz.sig
ADDED
data.tar.gz.sig
ADDED
|
Binary file
|
data/lib/pragmater/cli.rb
CHANGED
|
@@ -27,6 +27,9 @@ module Pragmater
|
|
|
27
27
|
|
|
28
28
|
def initialize args = [], options = {}, config = {}
|
|
29
29
|
super args, options, config
|
|
30
|
+
@configuration = self.class.configuration
|
|
31
|
+
rescue Runcom::Errors::Base => error
|
|
32
|
+
abort error.message
|
|
30
33
|
end
|
|
31
34
|
|
|
32
35
|
desc "-a, [--add=PATH]", "Add pragma comments to source file(s)."
|
|
@@ -42,7 +45,7 @@ module Pragmater
|
|
|
42
45
|
type: :array,
|
|
43
46
|
default: []
|
|
44
47
|
def add path = "."
|
|
45
|
-
settings =
|
|
48
|
+
settings = configuration.merge add: {
|
|
46
49
|
comments: options[:comments],
|
|
47
50
|
whitelist: options[:whitelist]
|
|
48
51
|
}
|
|
@@ -67,7 +70,7 @@ module Pragmater
|
|
|
67
70
|
type: :array,
|
|
68
71
|
default: []
|
|
69
72
|
def remove path = "."
|
|
70
|
-
settings =
|
|
73
|
+
settings = configuration.merge remove: {
|
|
71
74
|
comments: options[:comments],
|
|
72
75
|
whitelist: options[:whitelist]
|
|
73
76
|
}
|
|
@@ -90,7 +93,7 @@ module Pragmater
|
|
|
90
93
|
desc: "Print gem configuration.",
|
|
91
94
|
type: :boolean, default: false
|
|
92
95
|
def config
|
|
93
|
-
path =
|
|
96
|
+
path = configuration.path
|
|
94
97
|
|
|
95
98
|
if options.edit? then `#{ENV["EDITOR"]} #{path}`
|
|
96
99
|
elsif options.info?
|
|
@@ -110,5 +113,9 @@ module Pragmater
|
|
|
110
113
|
def help task = nil
|
|
111
114
|
say and super
|
|
112
115
|
end
|
|
116
|
+
|
|
117
|
+
private
|
|
118
|
+
|
|
119
|
+
attr_reader :configuration
|
|
113
120
|
end
|
|
114
121
|
end
|
data/lib/pragmater/identity.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,36 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: pragmater
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.
|
|
4
|
+
version: 4.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/IsZAEZFgphbGNo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S
|
|
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,28 +38,28 @@ 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: runcom
|
|
29
51
|
requirement: !ruby/object:Gem::Requirement
|
|
30
52
|
requirements:
|
|
31
53
|
- - "~>"
|
|
32
54
|
- !ruby/object:Gem::Version
|
|
33
|
-
version: '1.
|
|
55
|
+
version: '1.3'
|
|
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: '1.
|
|
62
|
+
version: '1.3'
|
|
41
63
|
- !ruby/object:Gem::Dependency
|
|
42
64
|
name: rake
|
|
43
65
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -58,14 +80,14 @@ dependencies:
|
|
|
58
80
|
requirements:
|
|
59
81
|
- - "~>"
|
|
60
82
|
- !ruby/object:Gem::Version
|
|
61
|
-
version: '10.
|
|
83
|
+
version: '10.2'
|
|
62
84
|
type: :development
|
|
63
85
|
prerelease: false
|
|
64
86
|
version_requirements: !ruby/object:Gem::Requirement
|
|
65
87
|
requirements:
|
|
66
88
|
- - "~>"
|
|
67
89
|
- !ruby/object:Gem::Version
|
|
68
|
-
version: '10.
|
|
90
|
+
version: '10.2'
|
|
69
91
|
- !ruby/object:Gem::Dependency
|
|
70
92
|
name: pry
|
|
71
93
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -198,14 +220,14 @@ dependencies:
|
|
|
198
220
|
requirements:
|
|
199
221
|
- - "~>"
|
|
200
222
|
- !ruby/object:Gem::Version
|
|
201
|
-
version: '1.
|
|
223
|
+
version: '1.5'
|
|
202
224
|
type: :development
|
|
203
225
|
prerelease: false
|
|
204
226
|
version_requirements: !ruby/object:Gem::Requirement
|
|
205
227
|
requirements:
|
|
206
228
|
- - "~>"
|
|
207
229
|
- !ruby/object:Gem::Version
|
|
208
|
-
version: '1.
|
|
230
|
+
version: '1.5'
|
|
209
231
|
- !ruby/object:Gem::Dependency
|
|
210
232
|
name: reek
|
|
211
233
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
ADDED
|
Binary file
|