pathname2 1.8.2 → 1.8.3
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.tar.gz.sig +4 -5
- data/CHANGES +5 -0
- data/lib/pathname2.rb +4 -4
- data/pathname2.gemspec +1 -1
- data/test/test_version.rb +1 -1
- metadata +6 -6
- 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: d5ceebdb160d9cff955f151ea0dfc7d4bcdb9712aaa704a8da7c9313049cea9b
|
4
|
+
data.tar.gz: 9395e28af5ba15511e1438e3aa03de96a1cf60aa85c0444b5d602fd6f73546b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3d6f7a5782967efe3352ed26af74e48b73a321bc13cd01855d413577e9f97d1146e54a2c4562e6928c3dd6f4d6a066118e7f12af1a82f97e15f3cddd9048f5ff
|
7
|
+
data.tar.gz: 137597451e32bb50a4d13ed9a8e3d5e1fe497968e2bf1c917aa0ba20145c560a211ed64f1b230ea2a552ee79688d86431a02cdcbf933aeb9c051813b6d7b9527
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
@@ -1,5 +1,4 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
�
|
4
|
-
|
5
|
-
.�6���Q�� *��IIV���o�
|
1
|
+
~����$;��&�ڄ1�����D���z�A�]�*���g�Ir�ܡ���d�L��'��V ��h��rk��#n!Zc@�٠�%�+��c�q�j���{🁋���ʝAM���y�h�� ���>��W-L8�n�F�w�Ba�
|
2
|
+
8
|
3
|
+
Y�ӄ�q}��m�Wwo���>�mM�mG>S�@..s�X�i�e�v�5���q7��ڡ-.�).�2�������n�1�hlɢ���
|
4
|
+
�CoS����2f���G8L|��)�`�aD��K�u����9���nq<sA�&7���4��,�{_Ϊcg�cᏂf��~3x�A4�T8�.�֡��"Q�B� ~
|
data/CHANGES
CHANGED
@@ -1,3 +1,8 @@
|
|
1
|
+
== 1.8.3 - 30-Aug-2020
|
2
|
+
* Updated the tests to match the version. Thanks go to Cédric Boutillier for the spot.
|
3
|
+
* Fixed a redefinition warning for the :children method.
|
4
|
+
* Fixed a Fixnum deprecation warning.
|
5
|
+
|
1
6
|
== 1.8.2 - 21-Jul-2020
|
2
7
|
* Added a LICENSE file as required by the Apache-2.0 license.
|
3
8
|
|
data/lib/pathname2.rb
CHANGED
@@ -61,7 +61,7 @@ class Pathname < String
|
|
61
61
|
]
|
62
62
|
|
63
63
|
facade Dir, Dir.methods(false).map{ |m| m.to_sym } - [
|
64
|
-
:chdir, :entries, :glob, :foreach, :mkdir, :open
|
64
|
+
:chdir, :entries, :glob, :foreach, :mkdir, :open, :children
|
65
65
|
]
|
66
66
|
|
67
67
|
private
|
@@ -93,7 +93,7 @@ class Pathname < String
|
|
93
93
|
public
|
94
94
|
|
95
95
|
# The version of the pathname2 library
|
96
|
-
VERSION = '1.8.
|
96
|
+
VERSION = '1.8.3'.freeze
|
97
97
|
|
98
98
|
# The maximum length of a path
|
99
99
|
MAXPATH = 1024 unless defined? MAXPATH # Yes, I willfully violate POSIX
|
@@ -373,7 +373,7 @@ class Pathname < String
|
|
373
373
|
# path[0..1] # => 'C:\Documents and Settings'
|
374
374
|
#
|
375
375
|
def [](index, length=nil)
|
376
|
-
if index.is_a?(
|
376
|
+
if index.is_a?(Numeric)
|
377
377
|
if length
|
378
378
|
path = File.join(to_a[index, length])
|
379
379
|
else
|
@@ -385,7 +385,7 @@ class Pathname < String
|
|
385
385
|
end
|
386
386
|
path = File.join(to_a[index])
|
387
387
|
else
|
388
|
-
raise TypeError, "Only
|
388
|
+
raise TypeError, "Only Numerics and Ranges allowed as first argument"
|
389
389
|
end
|
390
390
|
|
391
391
|
if path && @win
|
data/pathname2.gemspec
CHANGED
data/test/test_version.rb
CHANGED
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pathname2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.8.
|
4
|
+
version: 1.8.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel J. Berger
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain:
|
11
11
|
- |
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
ORVCZpRuCPpmC8qmqxUnARDArzucjaclkxjLWvCVHeFa9UP7K3Nl9oTjJNv+7/jM
|
36
36
|
WZs4eecIcUc4tKdHxcAJ0MO/Dkqq7hGaiHpwKY76wQ1+8xAh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date:
|
38
|
+
date:
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: facade
|
@@ -152,7 +152,7 @@ metadata:
|
|
152
152
|
documentation_uri: https://github.com/djberg96/pathname2/wiki
|
153
153
|
source_code_uri: https://github.com/djberg96/pathname2
|
154
154
|
wiki_uri: https://github.com/djberg96/pathname2/wiki
|
155
|
-
post_install_message:
|
155
|
+
post_install_message:
|
156
156
|
rdoc_options: []
|
157
157
|
require_paths:
|
158
158
|
- lib
|
@@ -167,8 +167,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
167
167
|
- !ruby/object:Gem::Version
|
168
168
|
version: '0'
|
169
169
|
requirements: []
|
170
|
-
rubygems_version: 3.
|
171
|
-
signing_key:
|
170
|
+
rubygems_version: 3.1.4
|
171
|
+
signing_key:
|
172
172
|
specification_version: 4
|
173
173
|
summary: An alternate implementation of the Pathname class
|
174
174
|
test_files:
|
metadata.gz.sig
CHANGED
Binary file
|