pragmater 13.2.1 → 14.1.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: 451b7a6ce9b8c9a4c12666a9625474c530fdc79da1faa466d6c63e47ab6e64ec
4
- data.tar.gz: ae608e147da28809f1cc781c7e8a8b64ca410d9f58017e4a08d680e9ebb3be8d
3
+ metadata.gz: a143dedec98eb38617c155857e403c1035d1e00c35c32951282b3f88663b9a4f
4
+ data.tar.gz: 1e056c1512472a1a8c96ff1a899dc0dadf8ed1e0c72c7969a9ac673de5d29b8b
5
5
  SHA512:
6
- metadata.gz: ba496dca9f7de344f63d56d899cb0474686dc9f9daf32361120a53d241343fdccd26c92fe9f0111e033dcea1506e731d5c657a069a44cb736e918847ff3fcd7f
7
- data.tar.gz: fbf84845a84bd0e300eb5fa92aa45d7817b5198874318a3f1552a7795144734a5268879692621c78dccf939e3268afc50618286dc233ab2d6fb26736c537207b
6
+ metadata.gz: fd5f28d4ed7459f5e7e0f4da438d8e325750bc2902cf57ea6637c38a0550529925efee7ec4371bc6ebe52c41ba960cfa334c24caab5fcc38a3e4dda8497e899e
7
+ data.tar.gz: 9a44a8830bd6e789813061737ec88ecc091a7a44e184be6ed5e04cc53c5de447bdf2820df3ca76c96d4e36c7204f78bd59c9534cb44e596b0eeeb6fc745757aa
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -212,8 +212,8 @@ mutable.capitalize! # "Test"
212
212
  mutable = "test"
213
213
  immutable = -mutable
214
214
 
215
- immutable.frozen? # true
216
- immutable.capitalize! # FrozenError
215
+ immutable.frozen? # true
216
+ immutable.capitalize! # FrozenError
217
217
  ----
218
218
 
219
219
  You can also use the methods, shown above, for variable initialization. Example:
@@ -227,11 +227,13 @@ immutable.frozen? # true
227
227
  mutable.frozen? # false
228
228
  ----
229
229
 
230
- 💡 The use of `+String#-@+`, specifically, was http://bit.ly/2DGAjgG[enhanced in Ruby 2.5.0] to
230
+ 💡 Use of `+String#-@+` was link:https://bugs.ruby-lang.org/issues/13077[enhanced in Ruby 2.5.0] to
231
231
  _deduplicate_ all instances of the same string thus reducing your memory footprint. This can be
232
232
  valuable in situations where you are not using the frozen string comment and need to selectively
233
233
  freeze strings.
234
234
 
235
+ 💡 Use of `+String#dup+` was link:https://github.com/ruby/ruby/pull/8952[significantly enhanced in Ruby 3.3.0] to be as performant as `pass:[String#+@]` so you can use `+String#dup+` instead of `pass:[String#+@]` since `+String#dup+` is easier to read.
236
+
235
237
  === Consistency
236
238
 
237
239
  As an added bonus, this gem ensures pragmas for all analyzed files are formatted in a consistent
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "refinements/pathnames"
3
+ require "refinements/pathname"
4
4
 
5
5
  module Pragmater
6
6
  # Inserts pragma comments.
7
7
  class Inserter
8
- using Refinements::Pathnames
8
+ using Refinements::Pathname
9
9
 
10
10
  def initialize parser: Parsers::File.new
11
11
  @parser = parser
@@ -1,11 +1,11 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "refinements/pathnames"
3
+ require "refinements/pathname"
4
4
 
5
5
  module Pragmater
6
6
  # Removes pragma comments.
7
7
  class Remover
8
- using Refinements::Pathnames
8
+ using Refinements::Pathname
9
9
 
10
10
  def initialize parser: Parsers::File.new
11
11
  @parser = parser
data/pragmater.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "pragmater"
5
- spec.version = "13.2.1"
5
+ spec.version = "14.1.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/pragmater"
@@ -22,16 +22,16 @@ Gem::Specification.new do |spec|
22
22
  spec.signing_key = Gem.default_key_path
23
23
  spec.cert_chain = [Gem.default_cert_path]
24
24
 
25
- spec.required_ruby_version = [">= 3.2", "<= 3.3"]
26
- spec.add_dependency "cogger", "~> 0.12"
25
+ spec.required_ruby_version = "~> 3.3"
26
+ spec.add_dependency "cogger", "~> 0.15"
27
27
  spec.add_dependency "dry-container", "~> 0.11"
28
28
  spec.add_dependency "dry-schema", "~> 1.13"
29
- spec.add_dependency "etcher", "~> 0.2"
30
- spec.add_dependency "infusible", "~> 2.2"
31
- spec.add_dependency "refinements", "~> 11.0"
32
- spec.add_dependency "runcom", "~> 10.0"
33
- spec.add_dependency "sod", "~> 0.0"
34
- spec.add_dependency "spek", "~> 2.0"
29
+ spec.add_dependency "etcher", "~> 1.0"
30
+ spec.add_dependency "infusible", "~> 3.0"
31
+ spec.add_dependency "refinements", "~> 12.0"
32
+ spec.add_dependency "runcom", "~> 11.0"
33
+ spec.add_dependency "sod", "~> 0.4"
34
+ spec.add_dependency "spek", "~> 3.0"
35
35
  spec.add_dependency "zeitwerk", "~> 2.6"
36
36
 
37
37
  spec.bindir = "exe"
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: 13.2.1
4
+ version: 14.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2023-11-16 00:00:00.000000000 Z
38
+ date: 2024-01-28 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -43,14 +43,14 @@ dependencies:
43
43
  requirements:
44
44
  - - "~>"
45
45
  - !ruby/object:Gem::Version
46
- version: '0.12'
46
+ version: '0.15'
47
47
  type: :runtime
48
48
  prerelease: false
49
49
  version_requirements: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: '0.12'
53
+ version: '0.15'
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: dry-container
56
56
  requirement: !ruby/object:Gem::Requirement
@@ -85,84 +85,84 @@ dependencies:
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0.2'
88
+ version: '1.0'
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0.2'
95
+ version: '1.0'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: infusible
98
98
  requirement: !ruby/object:Gem::Requirement
99
99
  requirements:
100
100
  - - "~>"
101
101
  - !ruby/object:Gem::Version
102
- version: '2.2'
102
+ version: '3.0'
103
103
  type: :runtime
104
104
  prerelease: false
105
105
  version_requirements: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - "~>"
108
108
  - !ruby/object:Gem::Version
109
- version: '2.2'
109
+ version: '3.0'
110
110
  - !ruby/object:Gem::Dependency
111
111
  name: refinements
112
112
  requirement: !ruby/object:Gem::Requirement
113
113
  requirements:
114
114
  - - "~>"
115
115
  - !ruby/object:Gem::Version
116
- version: '11.0'
116
+ version: '12.0'
117
117
  type: :runtime
118
118
  prerelease: false
119
119
  version_requirements: !ruby/object:Gem::Requirement
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '11.0'
123
+ version: '12.0'
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: runcom
126
126
  requirement: !ruby/object:Gem::Requirement
127
127
  requirements:
128
128
  - - "~>"
129
129
  - !ruby/object:Gem::Version
130
- version: '10.0'
130
+ version: '11.0'
131
131
  type: :runtime
132
132
  prerelease: false
133
133
  version_requirements: !ruby/object:Gem::Requirement
134
134
  requirements:
135
135
  - - "~>"
136
136
  - !ruby/object:Gem::Version
137
- version: '10.0'
137
+ version: '11.0'
138
138
  - !ruby/object:Gem::Dependency
139
139
  name: sod
140
140
  requirement: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '0.0'
144
+ version: '0.4'
145
145
  type: :runtime
146
146
  prerelease: false
147
147
  version_requirements: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '0.0'
151
+ version: '0.4'
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: spek
154
154
  requirement: !ruby/object:Gem::Requirement
155
155
  requirements:
156
156
  - - "~>"
157
157
  - !ruby/object:Gem::Version
158
- version: '2.0'
158
+ version: '3.0'
159
159
  type: :runtime
160
160
  prerelease: false
161
161
  version_requirements: !ruby/object:Gem::Requirement
162
162
  requirements:
163
163
  - - "~>"
164
164
  - !ruby/object:Gem::Version
165
- version: '2.0'
165
+ version: '3.0'
166
166
  - !ruby/object:Gem::Dependency
167
167
  name: zeitwerk
168
168
  requirement: !ruby/object:Gem::Requirement
@@ -230,10 +230,7 @@ require_paths:
230
230
  - lib
231
231
  required_ruby_version: !ruby/object:Gem::Requirement
232
232
  requirements:
233
- - - ">="
234
- - !ruby/object:Gem::Version
235
- version: '3.2'
236
- - - "<="
233
+ - - "~>"
237
234
  - !ruby/object:Gem::Version
238
235
  version: '3.3'
239
236
  required_rubygems_version: !ruby/object:Gem::Requirement
@@ -242,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
242
239
  - !ruby/object:Gem::Version
243
240
  version: '0'
244
241
  requirements: []
245
- rubygems_version: 3.4.22
242
+ rubygems_version: 3.5.5
246
243
  signing_key:
247
244
  specification_version: 4
248
245
  summary: A command line interface for managing pragma comments.
metadata.gz.sig CHANGED
Binary file