pragmater 14.0.0 → 14.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +5 -3
- data/lib/pragmater/cli/actions/comment.rb +1 -1
- data/pragmater.gemspec +1 -1
- data.tar.gz.sig +0 -0
- metadata +3 -3
- 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: 8e913154cff3fe94f20265828c27aa085f59120e6b475f00b72ec684280c007c
|
4
|
+
data.tar.gz: fe9d7341ebfbf051c0e4a69be4817bc6127b4067abff89ca6540d1418de514db
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?
|
216
|
-
immutable.capitalize!
|
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
|
-
💡
|
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
|
data/pragmater.gemspec
CHANGED
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.
|
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-
|
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.
|
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
|