refinements 12.4.0 → 12.5.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 +4 -2
- data/README.adoc +13 -0
- data/lib/refinements/pathname.rb +2 -0
- data/refinements.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: 4820c08dee6ea3a2f4a521ebe6ee9cfd778879b35f997c1cb9a82c4c4f56eb67
|
4
|
+
data.tar.gz: 15b35014f7462130864f3b35c7aab5908bd2bef21b75d25be70ec456b5065e38
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53b1fda6b7ca55389d305c8e99d5a095405d50490cefe246ea77a56ea0daee8f46237afa3bafced988ef65e3b6f4f095dbf9e038e9aaafe55fdc6e67288ed89c
|
7
|
+
data.tar.gz: 882417652e5925b6c9c8d1a24ed8f756dae15f6b5a65692e159ccc147fb686cf530ada3c5b93f33a98afc5a3ef852c7e9ef34db6d07680910ac7bfd93ca30ea8
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1,4 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
AϺ�������%����T7-{#}�;���d�Y\b��������{)$�$@h4h��;O>�kGY��%���R��
|
2
|
+
�٬���ou!�"7ͪ�)��6<�T�?ߠ=T��1JF%�W|�+9z�d(y6��e
|
3
|
+
c덺������,��Qg���|�23 )6l�dH�gE'^p�q&D����PUNז�˰h������N�m9vE���6P�B�izc^��1�s���V�P���j? ��5�4�R{�C�r����f�V>��C��L���Pm���1��%��7 JҤ3A� <d�;G���mw�]g�
|
4
|
+
ɕ���$��$���;K�SP>�>�pF�'�!����_�΅�V�J��8bD`��z�d��4Y
|
data/README.adoc
CHANGED
@@ -1128,6 +1128,19 @@ Answers file name without extension.
|
|
1128
1128
|
Pathname("example.txt").name # Pathname("example")
|
1129
1129
|
----
|
1130
1130
|
|
1131
|
+
===== #puts
|
1132
|
+
|
1133
|
+
Wraps `#write` by writing content to file with new line and answering itself. Allows you to more easily swap out a `Pathname` object with similar IO objects who support `#puts`: `IO`, `StringIO`, `File`, `Kernel`, and so forth.
|
1134
|
+
|
1135
|
+
[source,ruby]
|
1136
|
+
----
|
1137
|
+
path = Pathname("test.txt").touch
|
1138
|
+
path.puts "Test."
|
1139
|
+
path.read # "Test.\n"
|
1140
|
+
|
1141
|
+
Pathname("text.txt").touch.puts("Test.").read # "Test.\n"
|
1142
|
+
----
|
1143
|
+
|
1131
1144
|
===== #relative_parent
|
1132
1145
|
|
1133
1146
|
Answers relative path from parent directory. This complements: `#relative_path_from`.
|
data/lib/refinements/pathname.rb
CHANGED
data/refinements.gemspec
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refinements
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 12.
|
4
|
+
version: 12.5.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-06-
|
38
|
+
date: 2024-06-22 00:00:00.000000000 Z
|
39
39
|
dependencies: []
|
40
40
|
description:
|
41
41
|
email:
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
- !ruby/object:Gem::Version
|
92
92
|
version: '0'
|
93
93
|
requirements: []
|
94
|
-
rubygems_version: 3.5.
|
94
|
+
rubygems_version: 3.5.14
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: A collection of core object refinements.
|
metadata.gz.sig
CHANGED
Binary file
|