pragmater 8.3.0 → 9.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1d774cddf775dd01454ae0c4e330a26fe1839dbc1425faf320fb48b47c2839e8
4
- data.tar.gz: c00d6e9b8697af0dbd01aa4431d73e67506b51a0cdffaa9c60162f2758ca17a9
3
+ metadata.gz: ff9759f4fd2b5feb08923a7469a39e0249e28d2c6b1a0129e2a6068ef7b70fd2
4
+ data.tar.gz: e12d2f4c02ff1c8189615b82d5dfd427e35f1f149906ab0ac3ca6055e49b46d2
5
5
  SHA512:
6
- metadata.gz: 97810ad84783a1bab7b7023af8a21778eb5e1a2fff5e956ecf6fa6dd5372df0afc4a6e649bc556a9808bc12ceabf6d68d9dc0d1297e60323c15a69ceabfdd8bf
7
- data.tar.gz: 7e1131fddee6223d489df2a8a6eeb02d05269fdf8a584bc74749065619e6b644b699d589895d9fdc7f63f71ef0fc20b944874740d537265a0e90263bc3ef7035
6
+ metadata.gz: 03c115822736a6aa7ff7407a8ba82b26424b0f2be5832b33aa7f4ead142d9b6d8fe33d2a990acf9a2c46ff55d063526023aaa58c10789a8bdcf2cda6daacdc78
7
+ data.tar.gz: 7c8d35d7631254d2b878644920412ec68cb21c38f66f371586c04a1402c75b76a789cdcbee7270e4970ecaf8c56ea8bb113950bc3cac0c1acce5de8d494ea85b
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -11,9 +11,9 @@ image::https://img.shields.io/badge/code_style-alchemists-brightgreen.svg[Alchem
11
11
  [link=https://circleci.com/gh/bkuhlmann/pragmater]
12
12
  image::https://circleci.com/gh/bkuhlmann/pragmater.svg?style=svg[Circle CI Status]
13
13
 
14
- A command line interface for managing/formatting source file
15
- https://en.wikipedia.org/wiki/Directive_(programming)[directive pragmas] (a.k.a. _magic comments_).
16
- Examples:
14
+ A command line interface that does one thing well by being entirely focused on managing/formatting
15
+ source file https://en.wikipedia.org/wiki/Directive_(programming)[directive pragmas] (a.k.a. _magic
16
+ comments_). Examples:
17
17
 
18
18
  [source,ruby]
19
19
  ----
data/bin/pragmater CHANGED
@@ -1,9 +1,6 @@
1
1
  #! /usr/bin/env ruby
2
2
  # frozen_string_literal: true
3
3
 
4
- # TODO: Remove once the Pattern Matching feature is fully supported.
5
- Warning[:experimental] = false
6
-
7
4
  require "pragmater"
8
5
 
9
6
  Process.setproctitle Pragmater::Identity::VERSION_LABEL
@@ -17,7 +17,6 @@ module Pragmater
17
17
  in config:, edit:, **remainder then edit_configuration
18
18
  in config:, info:, **remainder then print_configuration
19
19
  in version:, **remainder then print_version
20
- in help:, **remainder then print_usage
21
20
  else print_usage
22
21
  end
23
22
  end
@@ -13,7 +13,7 @@ module Pragmater
13
13
  \s? # Space - optional.
14
14
  [\w-]+ # Value - One or more word or dash characters.
15
15
  \Z # End of line.
16
- /x.freeze
16
+ /x
17
17
 
18
18
  def initialize string, pattern: PATTERN
19
19
  @string = string
@@ -4,7 +4,7 @@ module Pragmater
4
4
  module Formatters
5
5
  # Formats shebang pragmas in a consistent manner.
6
6
  class Shebang
7
- PATTERN = %r(\A\#!\s?/.*ruby\Z).freeze
7
+ PATTERN = %r(\A\#!\s?/.*ruby\Z)
8
8
 
9
9
  def initialize string, pattern: PATTERN
10
10
  @string = string
@@ -5,8 +5,8 @@ module Pragmater
5
5
  module Identity
6
6
  NAME = "pragmater"
7
7
  LABEL = "Pragmater"
8
- VERSION = "8.3.0"
9
- VERSION_LABEL = "#{LABEL} #{VERSION}"
8
+ VERSION = "9.1.2"
9
+ VERSION_LABEL = "#{LABEL} #{VERSION}".freeze
10
10
  SUMMARY = "A command line interface for managing/formatting source file pragma comments."
11
11
  end
12
12
  end
@@ -4,10 +4,7 @@ module Pragmater
4
4
  module Processors
5
5
  # Handles the insertion or removal of pragma comments.
6
6
  class Handler
7
- DEFAULTS = {
8
- insert: Inserter,
9
- remove: Remover
10
- }.freeze
7
+ DEFAULTS = {insert: Inserter, remove: Remover}.freeze
11
8
 
12
9
  def initialize processors: DEFAULTS
13
10
  @processors = processors
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pragmater
3
3
  version: !ruby/object:Gem::Version
4
- version: 8.3.0
4
+ version: 9.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -10,9 +10,9 @@ bindir: bin
10
10
  cert_chain:
11
11
  - |
12
12
  -----BEGIN CERTIFICATE-----
13
- MIIC/jCCAeagAwIBAgIBAzANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
- a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMDAzMTUxNDQ1MzJaFw0yMTAzMTUx
15
- NDQ1MzJaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
13
+ MIIC/jCCAeagAwIBAgIBBDANBgkqhkiG9w0BAQsFADAlMSMwIQYDVQQDDBpicm9v
14
+ a2UvREM9YWxjaGVtaXN0cy9EQz1pbzAeFw0yMTAzMTkxMjQ4MDZaFw0yMjAzMTkx
15
+ MjQ4MDZaMCUxIzAhBgNVBAMMGmJyb29rZS9EQz1hbGNoZW1pc3RzL0RDPWlvMIIB
16
16
  IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA6l1qpXTiomH1RfMRloyw7MiE
17
17
  xyVx/x8Yc3EupdH7uhNaTXQGyORN6aOY//1QXXMHIZ9tW74nZLhesWMSUMYy0XhB
18
18
  brs+KkurHnc9FnEJAbG7ebGvl/ncqZt72nQvaxpDxvuCBHgJAz+8i5wl6FhLw+oT
@@ -20,15 +20,15 @@ cert_chain:
20
20
  D5vkU0YlAm1r98BymuJlcQ1qdkVEI1d48ph4kcS0S0nv1RiuyVb6TCAR3Nu3VaVq
21
21
  3fPzZKJLZBx67UvXdbdicWPiUR75elI4PXpLIic3xytaF52ZJYyKZCNZJhNwfQID
22
22
  AQABozkwNzAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNVHQ4EFgQU0nzow9vc
23
- 2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAIHhAlD3po4sTYqacXaQ
24
- XI9jIhrfMy//2PgbHWcETtlJPBeNUbbSNBABcllUHKqYsVDlSvSmss034KSWNR8F
25
- bF1GcloicyvcCC4y6IoW4it0COAcdeaaxkxiBSgKdQFpff9REnDlIKK4uQ9lLxIo
26
- Y2G5xubiziKZkyfWFuSr67PIjW3Bu673D1JVBArhA1qbgQmYQcy1CkGOjo+iO8Nf
27
- 7u/QSfBHb+r/bXhKscDgPpnKwbUmvgO2+94zJG9KsrmIydlzYfsD09aXKx0t6Xy4
28
- 2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
29
- QWc=
23
+ 2CdikiiE3fJhP/gY4ggwDQYJKoZIhvcNAQELBQADggEBAEjpaOXHHp8s/7GL2qCb
24
+ YAs7urOLv9VHSPfQWAwaTMVnSsIf3Sw4xzISOP/mmfEPBPXtz61K5esrE/uTFtgb
25
+ FyjxQk2H0sEWgrRXGGNHBWQRhhEs7LP/TByoC15A0br++xLxRz4r7HBLGAWQQDpg
26
+ 66BJ2TBVjxS6K64tKbq7+ACyrOZGgTfNHACh4M076y0x0oRf/rwBrU39/KRfuhbb
27
+ cm+nNCEtO35gTmZ2bVDHLGvWazi3gJt6+huQjfXTCUUG2YYBxwhu+GPdAGQPxpf9
28
+ lkHilIrX69jq8wMPpBhlaw2mRmeSL50Wv5u6xVBvOHhXFSP1crXM95vfLhLyRYod
29
+ W2A=
30
30
  -----END CERTIFICATE-----
31
- date: 2020-12-14 00:00:00.000000000 Z
31
+ date: 2021-09-06 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: refinements
@@ -36,28 +36,28 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '7.16'
39
+ version: '8.0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '7.16'
46
+ version: '8.0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: runcom
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '6.4'
53
+ version: '7.0'
54
54
  type: :runtime
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: '6.4'
60
+ version: '7.0'
61
61
  description:
62
62
  email:
63
63
  - brooke@alchemists.io
@@ -107,14 +107,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - "~>"
109
109
  - !ruby/object:Gem::Version
110
- version: '2.7'
110
+ version: '3.0'
111
111
  required_rubygems_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
113
  - - ">="
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  requirements: []
117
- rubygems_version: 3.2.0
117
+ rubygems_version: 3.2.27
118
118
  signing_key:
119
119
  specification_version: 4
120
120
  summary: A command line interface for managing/formatting source file pragma comments.
metadata.gz.sig CHANGED
Binary file