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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 657637a782220d1879e2afe644578c8dd731e994ac80ec66824782880baec049
4
- data.tar.gz: 074c9b9c6784fc6c6130f702533e43397ae50492794ad9165f89efcfa8fe1d4d
3
+ metadata.gz: d5ceebdb160d9cff955f151ea0dfc7d4bcdb9712aaa704a8da7c9313049cea9b
4
+ data.tar.gz: 9395e28af5ba15511e1438e3aa03de96a1cf60aa85c0444b5d602fd6f73546b8
5
5
  SHA512:
6
- metadata.gz: 9cb825cc9518667e377cef5a1b22929b8fb833074e885e6a43e5e2e7ee97fdc905404ab218c1cf907fae11a8c4e34ca49d89f1281eec71eb917d6576c367e52c
7
- data.tar.gz: 4079e1f5e0d571a1080837fd54277f76eaa3928bcf6159df64901d00a0dff0abf8d2ab96e034fb857ad7cd1dddb0db0c88f7c02f370aefb6f097779b4ae6adf0
6
+ metadata.gz: 3d6f7a5782967efe3352ed26af74e48b73a321bc13cd01855d413577e9f97d1146e54a2c4562e6928c3dd6f4d6a066118e7f12af1a82f97e15f3cddd9048f5ff
7
+ data.tar.gz: 137597451e32bb50a4d13ed9a8e3d5e1fe497968e2bf1c917aa0ba20145c560a211ed64f1b230ea2a552ee79688d86431a02cdcbf933aeb9c051813b6d7b9527
Binary file
data.tar.gz.sig CHANGED
@@ -1,5 +1,4 @@
1
- �g�"�?�m�^B��z�� �A����24���f1��r*�O����x'ps<�
2
- ����#}Q��<e^�)�(��<��
3
- 9ff��$7����h/�U
4
- �e�'Rkhn���FLG�"�5�aO|��Q�~3��A TV��nS7X��:+t��M��|��I������G���y]g��BG|\��pO�<��F8i�C'��S�xP"H
5
- .�6���Q�� *��IIV���o�
1
+ ~����$;��&�ڄ1�����D���z�A�]�*���g�Ir�ܡ���d�L��'��V ��h��rk��#n!Zc@�٠�%�+��c�qj���{🁋���ʝAM���yh�� ���>��W-L8�n�F �w�Ba�
2
+ 8
3
+ Y�ӄ�q}��mWwo���>�mMmG>S�@..sX�i�e�v�5���q7� �ڡ-.�).�2�������n�1�hlɢ���
4
+ �CoS����2f���G8L|��)�`�aD��Ku����9���nq<sA�&7���4��,�{_ΪcgcᏂf��~3xA4�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
 
@@ -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.2'.freeze
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?(Fixnum)
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 Fixnums and Ranges allowed as first argument"
388
+ raise TypeError, "Only Numerics and Ranges allowed as first argument"
389
389
  end
390
390
 
391
391
  if path && @win
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = 'pathname2'
5
- spec.version = '1.8.2'
5
+ spec.version = '1.8.3'
6
6
  spec.author = 'Daniel J. Berger'
7
7
  spec.license = 'Apache-2.0'
8
8
  spec.email = 'djberg96@gmail.com'
@@ -8,7 +8,7 @@ require 'test-unit'
8
8
 
9
9
  class TC_Pathname_Version < Test::Unit::TestCase
10
10
  test "version is set to expected value" do
11
- assert_equal('1.8.1', Pathname::VERSION)
11
+ assert_equal('1.8.3', Pathname::VERSION)
12
12
  end
13
13
 
14
14
  test "version is frozen" do
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.2
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.0.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