pragmater 14.0.0 → 14.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/README.adoc +5 -3
- 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: a143dedec98eb38617c155857e403c1035d1e00c35c32951282b3f88663b9a4f
|
4
|
+
data.tar.gz: 1e056c1512472a1a8c96ff1a899dc0dadf8ed1e0c72c7969a9ac673de5d29b8b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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?
|
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.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: 2024-01-
|
38
|
+
date: 2024-01-28 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.5
|
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
|