net-ftp-list 3.2.8 → 3.2.9

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
  SHA1:
3
- metadata.gz: cc3d80cc1b88f491a9e6e39cdfe89b9fa50e8462
4
- data.tar.gz: e0612d957e7bd9543a58ef4501dbb90c8eb80011
3
+ metadata.gz: 709569890a8331b5437e9abc5c91b4563a9f6864
4
+ data.tar.gz: 91b8855bc8a58f62ff54635173627e74e23398b4
5
5
  SHA512:
6
- metadata.gz: 59c15f56963f43817a3d1f6c5720fc6dcb325a88e56f30d8660c76e595c90f0be47684add837b710ea501f6bec8458643ed00f0f41b7a3240d99a86cfc8fe326
7
- data.tar.gz: 435b89b0f1e8d0378193a3b5e6b2ed041a4e37aca0b5402e5bb17884cc22d771e9478a9c05fd5489593e9c1ece78f1628f9ca13cbfb0f0a4bcfce5c92805b685
6
+ metadata.gz: e61ba807309751680a449cec6cd5c66a3488d24284fcc87480efb66471bff2364a1845947d2ff723f853d9f44d9ebca52ebcc4902a0338b1d81d1228e672019a
7
+ data.tar.gz: 8d49b7d06fd7b921cbe5122c23f755f1869ebb46ceb791dbcc9672778349496c7ce4591a77f49385ee0679b8c43e99f35f1ed7107b0269338f8fe0d58ed978e7
data/Gemfile CHANGED
@@ -3,4 +3,5 @@ source 'https://rubygems.org'
3
3
  group :development do
4
4
  gem 'jeweler'
5
5
  gem 'bundler'
6
+ gem 'test-unit'
6
7
  end
@@ -43,10 +43,13 @@ GEM
43
43
  multi_json (~> 1.3)
44
44
  multi_xml (~> 0.5)
45
45
  rack (~> 1.2)
46
+ power_assert (0.2.6)
46
47
  rack (1.5.2)
47
48
  rake (10.2.2)
48
49
  rdoc (4.1.1)
49
50
  json (~> 1.4)
51
+ test-unit (3.1.5)
52
+ power_assert
50
53
  thread_safe (0.3.1)
51
54
  atomic (>= 1.1.7, < 2)
52
55
 
@@ -56,3 +59,7 @@ PLATFORMS
56
59
  DEPENDENCIES
57
60
  bundler
58
61
  jeweler
62
+ test-unit
63
+
64
+ BUNDLED WITH
65
+ 1.10.6
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 2
4
- :patch: 8
4
+ :patch: 9
5
5
  :build:
@@ -15,7 +15,7 @@ class Net::FTP::List::Unix < Net::FTP::List::Parser
15
15
  ([pbcdlfmpSs-])
16
16
  (((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-]))((r|-)(w|-)([xsStTL-])))\+?\s+
17
17
  (?:(\d+)\s+)?
18
- (\S+)\s+
18
+ (\S+)?\s+
19
19
  (?:(\S+(?:\s\S+)*)\s+)?
20
20
  (?:\d+,\s+)?
21
21
  (\d+)\s+
@@ -2,14 +2,16 @@
2
2
  # DO NOT EDIT THIS FILE DIRECTLY
3
3
  # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
4
  # -*- encoding: utf-8 -*-
5
+ # stub: net-ftp-list 3.2.9 ruby lib
5
6
 
6
7
  Gem::Specification.new do |s|
7
8
  s.name = "net-ftp-list"
8
- s.version = "3.2.8"
9
+ s.version = "3.2.9"
9
10
 
10
11
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
+ s.require_paths = ["lib"]
11
13
  s.authors = ["Stateless Systems"]
12
- s.date = "2014-04-30"
14
+ s.date = "2015-12-26"
13
15
  s.email = "enquiries@statelesssystems.com"
14
16
  s.extra_rdoc_files = [
15
17
  "README.txt"
@@ -38,8 +40,7 @@ Gem::Specification.new do |s|
38
40
  "test/test_net_ftp_list_unix.rb"
39
41
  ]
40
42
  s.homepage = "http://github.com/stateless-systems/net-ftp-list"
41
- s.require_paths = ["lib"]
42
- s.rubygems_version = "2.0.14"
43
+ s.rubygems_version = "2.4.5.1"
43
44
  s.summary = "Parse FTP LIST command output."
44
45
 
45
46
  if s.respond_to? :specification_version then
@@ -48,13 +49,16 @@ Gem::Specification.new do |s|
48
49
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
50
  s.add_development_dependency(%q<jeweler>, [">= 0"])
50
51
  s.add_development_dependency(%q<bundler>, [">= 0"])
52
+ s.add_development_dependency(%q<test-unit>, [">= 0"])
51
53
  else
52
54
  s.add_dependency(%q<jeweler>, [">= 0"])
53
55
  s.add_dependency(%q<bundler>, [">= 0"])
56
+ s.add_dependency(%q<test-unit>, [">= 0"])
54
57
  end
55
58
  else
56
59
  s.add_dependency(%q<jeweler>, [">= 0"])
57
60
  s.add_dependency(%q<bundler>, [">= 0"])
61
+ s.add_dependency(%q<test-unit>, [">= 0"])
58
62
  end
59
63
  end
60
64
 
@@ -15,6 +15,7 @@ class TestNetFTPListUnix < Test::Unit::TestCase
15
15
  @pipe_dev = Net::FTP::List.parse 'prw-r----- 1 root adm 0 Nov 22 10:30 xconsole' rescue nil
16
16
  @file_no_inodes = Net::FTP::List.parse '-rw-r--r-- foo@localhost foo@localhost 6034 May 14 23:13 index.html' rescue nil
17
17
  @file_today = Net::FTP::List.parse 'crw-rw-rw- 1 root root 1, 3 Aug 16 14:28 today.txt' rescue nil
18
+ @no_user = Net::FTP::List.parse '-rw-rw---- 2786 Jul 7 01:57 README' rescue nil
18
19
  end
19
20
 
20
21
  def test_parse_new
@@ -28,6 +29,7 @@ class TestNetFTPListUnix < Test::Unit::TestCase
28
29
  assert_equal "Unix", @socket_dev.server_type, 'LIST unix socket device'
29
30
  assert_equal "Unix", @pipe_dev.server_type, 'LIST unix socket device'
30
31
  assert_equal "Unix", @file_no_inodes.server_type, 'LIST unixish file with no inodes'
32
+ assert_equal "Unix", @no_user.server_type, 'LIST unixish file with no user/group'
31
33
  end
32
34
 
33
35
  class ::Time
@@ -147,11 +149,11 @@ class TestNetFTPListUnix < Test::Unit::TestCase
147
149
  end
148
150
 
149
151
  def test_single_digit_hour
150
- assert_nothing_raised do
151
- @single_digit_hour = Net::FTP::List.parse('-rw-r--r-- 1 root other 531 Dec 31 3:59 README')
152
- end
152
+ Time.time_travel(Time.local(2014, 8, 16)) do
153
+ assert_nothing_raised do
154
+ @single_digit_hour = Net::FTP::List.parse('-rw-r--r-- 1 root other 531 Dec 31 3:59 README')
155
+ end
153
156
 
154
- Time.time_travel(Time.local(2013, 8, 16)) do
155
157
  assert_equal Time.local(2013, 12, 31, 3, 59), @single_digit_hour.mtime
156
158
  end
157
159
  end
metadata CHANGED
@@ -1,41 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ftp-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.8
4
+ version: 3.2.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stateless Systems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-30 00:00:00.000000000 Z
11
+ date: 2015-12-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jeweler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: test-unit
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
39
53
  - !ruby/object:Gem::Version
40
54
  version: '0'
41
55
  description:
@@ -45,7 +59,7 @@ extensions: []
45
59
  extra_rdoc_files:
46
60
  - README.txt
47
61
  files:
48
- - .ruby-version
62
+ - ".ruby-version"
49
63
  - Gemfile
50
64
  - Gemfile.lock
51
65
  - README.txt
@@ -75,17 +89,17 @@ require_paths:
75
89
  - lib
76
90
  required_ruby_version: !ruby/object:Gem::Requirement
77
91
  requirements:
78
- - - '>='
92
+ - - ">="
79
93
  - !ruby/object:Gem::Version
80
94
  version: '0'
81
95
  required_rubygems_version: !ruby/object:Gem::Requirement
82
96
  requirements:
83
- - - '>='
97
+ - - ">="
84
98
  - !ruby/object:Gem::Version
85
99
  version: '0'
86
100
  requirements: []
87
101
  rubyforge_project:
88
- rubygems_version: 2.0.14
102
+ rubygems_version: 2.4.5.1
89
103
  signing_key:
90
104
  specification_version: 4
91
105
  summary: Parse FTP LIST command output.