pragmater 8.1.0 → 8.2.0

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: d09a7c2eff13a802e8faf5b48f7f6e3a4325c3a065dcd05522cbddeffda88111
4
- data.tar.gz: ef70a555ebcce0db9bf3826a2312995f57ee56760648d094b70a7c06862b5b8b
3
+ metadata.gz: 947acbf35bcb93aa541f0e2a0f8534e4218f2803347075e036bbf445d14e3af8
4
+ data.tar.gz: f8ca6c8d0d12afddcc32fac26e22402a143c6242d2d1bbab31b0c9fc34c91a2b
5
5
  SHA512:
6
- metadata.gz: 0112f5097ef02cf51c3f24b5e04be96dbbbe18165f72c1733618880f7675cd4d5c495fd635883a8e80981b828e139115b2127b82c61cff4cf1ef7a91e98ec847
7
- data.tar.gz: 6e6b2382eb480b6ec1a52d370b66b011ef471eb0066f9ba2dad3ad9365d028f7ece0fd67585f65aeb5dfac3e863937c282b572b79b45914254dca764717cfbd2
6
+ metadata.gz: 51131bf848bc75542eb31e52bec8f4eef72bcfe2b01792bfd1841b8792e41828737ae1b4d5059faa355c001f8fe92bb4563410c1bd1727506b22e10c2f8d4db7
7
+ data.tar.gz: 789438dced0f719bfd515221a180e145a0b88de0b3af7ae1bba6e7bb15f8443025a12f69a683ab42a1509b6ae142752161f5c005d5152c76e48db8f2cd5c7e34
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -12,7 +12,7 @@ module Pragmater
12
12
 
13
13
  def call
14
14
  parser.separator "\nConfiguration:\n"
15
- private_methods.grep(/add_/).each(&method(:__send__))
15
+ private_methods.grep(/add_/).each { |method| __send__ method }
16
16
  parser
17
17
  end
18
18
 
@@ -13,7 +13,7 @@ module Pragmater
13
13
  def call
14
14
  parser.banner = "#{Identity::LABEL} - #{Identity::SUMMARY}"
15
15
  parser.separator "\nUSAGE:\n"
16
- private_methods.grep(/add_/).each(&method(:__send__))
16
+ private_methods.grep(/add_/).each { |method| __send__ method }
17
17
  parser
18
18
  end
19
19
 
@@ -13,7 +13,7 @@ module Pragmater
13
13
  def call
14
14
  parser.separator "\nOPTIONS:\n"
15
15
  parser.separator "\nInsert/Remove:\n"
16
- private_methods.grep(/add_/).each(&method(:__send__))
16
+ private_methods.grep(/add_/).each { |method| __send__ method }
17
17
  parser
18
18
  end
19
19
 
@@ -5,7 +5,7 @@ module Pragmater
5
5
  module Identity
6
6
  NAME = "pragmater"
7
7
  LABEL = "Pragmater"
8
- VERSION = "8.1.0"
8
+ VERSION = "8.2.0"
9
9
  VERSION_LABEL = "#{LABEL} #{VERSION}"
10
10
  SUMMARY = "A command line interface for managing/formatting source file pragma comments."
11
11
  end
@@ -17,17 +17,13 @@ module Pragmater
17
17
  end
18
18
 
19
19
  def call
20
- Pathname(context.root_dir).files("{#{context.includes.join ","}}").map(&method(:write))
20
+ Pathname(context.root_dir).files("{#{context.includes.join ","}}").map do |path|
21
+ path.write parser.call(path, context.comments, action: context.action).join
22
+ end
21
23
  end
22
24
 
23
25
  private
24
26
 
25
27
  attr_reader :context, :parser
26
-
27
- def write path
28
- path.tap do |a_path|
29
- a_path.write parser.call(a_path, context.comments, action: context.action).join
30
- end
31
- end
32
28
  end
33
29
  end
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.1.0
4
+ version: 8.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
29
29
  QWc=
30
30
  -----END CERTIFICATE-----
31
- date: 2020-11-14 00:00:00.000000000 Z
31
+ date: 2020-11-28 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: refinements
@@ -36,14 +36,14 @@ dependencies:
36
36
  requirements:
37
37
  - - "~>"
38
38
  - !ruby/object:Gem::Version
39
- version: '7.14'
39
+ version: '7.16'
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.14'
46
+ version: '7.16'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: runcom
49
49
  requirement: !ruby/object:Gem::Requirement
@@ -86,6 +86,34 @@ dependencies:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0.2'
89
+ - !ruby/object:Gem::Dependency
90
+ name: gemsmith
91
+ requirement: !ruby/object:Gem::Requirement
92
+ requirements:
93
+ - - "~>"
94
+ - !ruby/object:Gem::Version
95
+ version: '14.8'
96
+ type: :development
97
+ prerelease: false
98
+ version_requirements: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - "~>"
101
+ - !ruby/object:Gem::Version
102
+ version: '14.8'
103
+ - !ruby/object:Gem::Dependency
104
+ name: git-lint
105
+ requirement: !ruby/object:Gem::Requirement
106
+ requirements:
107
+ - - "~>"
108
+ - !ruby/object:Gem::Version
109
+ version: '1.3'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ requirements:
114
+ - - "~>"
115
+ - !ruby/object:Gem::Version
116
+ version: '1.3'
89
117
  - !ruby/object:Gem::Dependency
90
118
  name: guard-rspec
91
119
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file