pragmater 5.0.1 → 5.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -5
- data/lib/pragmater/cli.rb +9 -12
- data/lib/pragmater/identity.rb +1 -1
- metadata +3 -25
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d207f1d3b63fba912f2f781c3e2f7b9175b05761940d692b3234dea30c06a9e
|
4
|
+
data.tar.gz: db2f6c630023f76b4163679cccf8c447b5ea341f41e534f79505389103377aca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37b22ae14a11750281782cf0c540364f0a149326885ca93e24b4110b2a0f8b4436db53871c8784758361daefb67975ce6cdf496d4b9c8183f9c70d9636edf36e
|
7
|
+
data.tar.gz: e929ba3fce0169fa21716d1791744b49b4c4c42deca2b0c049376746dc33ff4c3b59a5600ef94b2e6ea4a700e9105fe60f07da522e26e5853517300a371ffecc
|
data/README.md
CHANGED
@@ -5,7 +5,6 @@
|
|
5
5
|
[![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/f0971ab6985309ce4db4/test_coverage)](https://codeclimate.com/github/bkuhlmann/pragmater/test_coverage)
|
6
6
|
[![Gemnasium Status](https://gemnasium.com/bkuhlmann/pragmater.svg)](https://gemnasium.com/bkuhlmann/pragmater)
|
7
7
|
[![Circle CI Status](https://circleci.com/gh/bkuhlmann/pragmater.svg?style=svg)](https://circleci.com/gh/bkuhlmann/pragmater)
|
8
|
-
[![Patreon](https://img.shields.io/badge/patreon-donate-brightgreen.svg)](https://www.patreon.com/bkuhlmann)
|
9
8
|
|
10
9
|
A command line interface for managing/formatting source file
|
11
10
|
[directive pragma](https://en.wikipedia.org/wiki/Directive_(programming)) comments
|
@@ -52,7 +51,7 @@ or multiple Ruby source files in order to benefit from improved memory and concu
|
|
52
51
|
|
53
52
|
## Screencasts
|
54
53
|
|
55
|
-
[![asciicast](https://asciinema.org/a/
|
54
|
+
[![asciicast](https://asciinema.org/a/155880.png)](https://asciinema.org/a/155880)
|
56
55
|
|
57
56
|
## Requirements
|
58
57
|
|
@@ -79,8 +78,8 @@ From the command line, type: `pragmater help`
|
|
79
78
|
Both the `--add` and `--remove` commands support options for specifying pragma comments and/or
|
80
79
|
included files (viewable by running `pragmater --help --add` or `pragmater --help --remove`):
|
81
80
|
|
82
|
-
-c, [--comments=one two three]
|
83
|
-
-
|
81
|
+
-c, [--comments=one two three] # Pragma comments
|
82
|
+
-i, [--includes=one two three] # File include list
|
84
83
|
|
85
84
|
### Customization
|
86
85
|
|
@@ -170,7 +169,7 @@ Read [CONTRIBUTING](CONTRIBUTING.md) for details.
|
|
170
169
|
|
171
170
|
## License
|
172
171
|
|
173
|
-
Copyright
|
172
|
+
Copyright 2015 [Alchemists](https://www.alchemists.io).
|
174
173
|
Read [LICENSE](LICENSE.md) for details.
|
175
174
|
|
176
175
|
## History
|
data/lib/pragmater/cli.rb
CHANGED
@@ -38,17 +38,14 @@ module Pragmater
|
|
38
38
|
aliases: "-c",
|
39
39
|
desc: "Pragma comments",
|
40
40
|
type: :array,
|
41
|
-
default:
|
41
|
+
default: configuration.to_h.dig(:add, :comments)
|
42
42
|
method_option :includes,
|
43
|
-
aliases: "-
|
43
|
+
aliases: "-i",
|
44
44
|
desc: "File include list",
|
45
45
|
type: :array,
|
46
|
-
default:
|
46
|
+
default: configuration.to_h.dig(:add, :includes)
|
47
47
|
def add path = "."
|
48
|
-
settings = configuration.merge add: {
|
49
|
-
comments: options[:comments],
|
50
|
-
includes: options[:includes]
|
51
|
-
}
|
48
|
+
settings = configuration.merge add: {comments: options.comments, includes: options.includes}
|
52
49
|
|
53
50
|
runner = Runner.new path,
|
54
51
|
comments: settings.dig(:add, :comments),
|
@@ -63,16 +60,16 @@ module Pragmater
|
|
63
60
|
aliases: "-c",
|
64
61
|
desc: "Pragma comments",
|
65
62
|
type: :array,
|
66
|
-
default:
|
63
|
+
default: configuration.to_h.dig(:remove, :comments)
|
67
64
|
method_option :includes,
|
68
|
-
aliases: "-
|
65
|
+
aliases: "-i",
|
69
66
|
desc: "File include list",
|
70
67
|
type: :array,
|
71
|
-
default:
|
68
|
+
default: configuration.to_h.dig(:remove, :includes)
|
72
69
|
def remove path = "."
|
73
70
|
settings = configuration.merge remove: {
|
74
|
-
comments: options
|
75
|
-
includes: options
|
71
|
+
comments: options.comments,
|
72
|
+
includes: options.includes
|
76
73
|
}
|
77
74
|
|
78
75
|
runner = Runner.new path,
|
data/lib/pragmater/identity.rb
CHANGED
metadata
CHANGED
@@ -1,36 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pragmater
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
-
|
12
|
-
-----BEGIN CERTIFICATE-----
|
13
|
-
MIIDeDCCAmCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBBMQ8wDQYDVQQDDAZicm9v
|
14
|
-
a2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQBGRYC
|
15
|
-
aW8wHhcNMTcxMDI5MjExMDE0WhcNMTgxMDI5MjExMDE0WjBBMQ8wDQYDVQQDDAZi
|
16
|
-
cm9va2UxGjAYBgoJkiaJk/IsZAEZFgphbGNoZW1pc3RzMRIwEAYKCZImiZPyLGQB
|
17
|
-
GRYCaW8wggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCw5ljqJRwCHI+L
|
18
|
-
DHJM8mLBNg/PMlK/pVl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:00:00.000000000 Z
|
34
12
|
dependencies:
|
35
13
|
- !ruby/object:Gem::Dependency
|
36
14
|
name: runcom
|
checksums.yaml.gz.sig
DELETED
Binary file
|
data.tar.gz.sig
DELETED
Binary file
|
metadata.gz.sig
DELETED
Binary file
|