pragmater 14.0.0 → 14.1.1

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: 0d9245d7762dcd2336efadb729f94e57fc7a9aeb1d84a6e8d6361148a07af7d7
4
- data.tar.gz: 8eaa0b9fd4c886a68e459a38afe84c16316bc3e03ffa9170cebe70977cadaa65
3
+ metadata.gz: 8e913154cff3fe94f20265828c27aa085f59120e6b475f00b72ec684280c007c
4
+ data.tar.gz: fe9d7341ebfbf051c0e4a69be4817bc6127b4067abff89ca6540d1418de514db
5
5
  SHA512:
6
- metadata.gz: 7b3624322cfe11770c1488f2ebb0633c7ee29eb8f59207d9b8f7e2a8133f4f76ffe672339fc52e4c4a946a047fea499721aa4cf18300deec0ea26f5f4a54f0f4
7
- data.tar.gz: 447d187689a9b137e6411ac6dd0ab2767adb74b19fd1df9967747dd4999e00a5ed8b92439e555a2d28f16c17ee9ed5e462055453f20b5d881aa04c7e61e69cfc
6
+ metadata.gz: a16758ff215575d29ef59fe89f0279778847bf9971c40fb65940273ea77448b249633d584ce8cd0208bf2acd08d020d67400e760a21b63217518d98d2ea90d5e
7
+ data.tar.gz: 1958afe15a3bd0a8be9a7dd321daf542e1d7d4a4fe0572e3396fc1d8576a9b370bf31e1ad62b10df46cb73ac62da1dde6d2e3fd0b8ba6fabf89774b3aa537306
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
@@ -13,7 +13,7 @@ module Pragmater
13
13
 
14
14
  on %w[-c --comments], argument: "[a,b,c]"
15
15
 
16
- default { Container[:configuration].patterns }
16
+ default { Container[:configuration].comments }
17
17
 
18
18
  def call(comments = nil) = input.comments = Array(comments || default)
19
19
  end
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 = "14.0.0"
5
+ spec.version = "14.1.1"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/pragmater"
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: 14.0.0
4
+ version: 14.1.1
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: 2024-01-01 00:00:00.000000000 Z
38
+ date: 2024-02-16 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -239,7 +239,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
239
239
  - !ruby/object:Gem::Version
240
240
  version: '0'
241
241
  requirements: []
242
- rubygems_version: 3.5.3
242
+ rubygems_version: 3.5.6
243
243
  signing_key:
244
244
  specification_version: 4
245
245
  summary: A command line interface for managing pragma comments.
metadata.gz.sig CHANGED
Binary file