net-ftp-list 3.2.9 → 3.2.10

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: 709569890a8331b5437e9abc5c91b4563a9f6864
4
- data.tar.gz: 91b8855bc8a58f62ff54635173627e74e23398b4
3
+ metadata.gz: b24149ea69be425bf7c8d12f66e9d7ec5ab76e4c
4
+ data.tar.gz: c7d387d546e42718bb5745bc37881be8a8720244
5
5
  SHA512:
6
- metadata.gz: e61ba807309751680a449cec6cd5c66a3488d24284fcc87480efb66471bff2364a1845947d2ff723f853d9f44d9ebca52ebcc4902a0338b1d81d1228e672019a
7
- data.tar.gz: 8d49b7d06fd7b921cbe5122c23f755f1869ebb46ceb791dbcc9672778349496c7ce4591a77f49385ee0679b8c43e99f35f1ed7107b0269338f8fe0d58ed978e7
6
+ metadata.gz: 4f6587dd3ce3fce4449e1f6cf1cfcd025e9af575160ec35c72a90b50a4aed5f7ecabebe5fdcd7df30394dabcf937448faa989936dd6ac633b58ab6ce83f70b1a
7
+ data.tar.gz: 8e33d354000458813874b6ef6453e749ac5b0e1afba59061712df90bbf53de18298be58112ea4b9a9e09dacb4caa126dff8a9af267e3f59e4d5af57c13a5edac
data/Gemfile CHANGED
@@ -2,6 +2,5 @@ source 'https://rubygems.org'
2
2
 
3
3
  group :development do
4
4
  gem 'jeweler'
5
- gem 'bundler'
6
5
  gem 'test-unit'
7
6
  end
@@ -1,14 +1,14 @@
1
1
  GEM
2
2
  remote: https://rubygems.org/
3
3
  specs:
4
- addressable (2.3.6)
5
- atomic (1.1.16)
6
- builder (3.2.2)
4
+ addressable (2.5.1)
5
+ public_suffix (~> 2.0, >= 2.0.2)
6
+ builder (3.2.3)
7
7
  descendants_tracker (0.0.4)
8
8
  thread_safe (~> 0.3, >= 0.3.1)
9
- faraday (0.9.0)
9
+ faraday (0.9.2)
10
10
  multipart-post (>= 1.2, < 3)
11
- git (1.2.6)
11
+ git (1.3.0)
12
12
  github_api (0.11.3)
13
13
  addressable (~> 2.3)
14
14
  descendants_tracker (~> 0.0.1)
@@ -17,49 +17,47 @@ GEM
17
17
  multi_json (>= 1.7.5, < 2.0)
18
18
  nokogiri (~> 1.6.0)
19
19
  oauth2
20
- hashie (2.0.5)
21
- highline (1.6.21)
22
- jeweler (2.0.1)
20
+ hashie (3.5.5)
21
+ highline (1.7.8)
22
+ jeweler (2.1.2)
23
23
  builder
24
24
  bundler (>= 1.0)
25
25
  git (>= 1.2.5)
26
- github_api
26
+ github_api (~> 0.11.0)
27
27
  highline (>= 1.6.15)
28
28
  nokogiri (>= 1.5.10)
29
29
  rake
30
30
  rdoc
31
- json (1.8.1)
32
- jwt (0.1.11)
33
- multi_json (>= 1.5)
34
- mini_portile (0.5.3)
35
- multi_json (1.9.2)
36
- multi_xml (0.5.5)
31
+ semver
32
+ jwt (1.5.6)
33
+ mini_portile2 (2.1.0)
34
+ multi_json (1.12.1)
35
+ multi_xml (0.6.0)
37
36
  multipart-post (2.0.0)
38
- nokogiri (1.6.1)
39
- mini_portile (~> 0.5.0)
40
- oauth2 (0.9.3)
41
- faraday (>= 0.8, < 0.10)
42
- jwt (~> 0.1.8)
37
+ nokogiri (1.6.8.1)
38
+ mini_portile2 (~> 2.1.0)
39
+ oauth2 (1.3.1)
40
+ faraday (>= 0.8, < 0.12)
41
+ jwt (~> 1.0)
43
42
  multi_json (~> 1.3)
44
43
  multi_xml (~> 0.5)
45
- rack (~> 1.2)
46
- power_assert (0.2.6)
47
- rack (1.5.2)
48
- rake (10.2.2)
49
- rdoc (4.1.1)
50
- json (~> 1.4)
51
- test-unit (3.1.5)
44
+ rack (>= 1.2, < 3)
45
+ power_assert (1.0.1)
46
+ public_suffix (2.0.5)
47
+ rack (1.6.5)
48
+ rake (12.0.0)
49
+ rdoc (4.3.0)
50
+ semver (1.0.1)
51
+ test-unit (3.2.3)
52
52
  power_assert
53
- thread_safe (0.3.1)
54
- atomic (>= 1.1.7, < 2)
53
+ thread_safe (0.3.6)
55
54
 
56
55
  PLATFORMS
57
56
  ruby
58
57
 
59
58
  DEPENDENCIES
60
- bundler
61
59
  jeweler
62
60
  test-unit
63
61
 
64
62
  BUNDLED WITH
65
- 1.10.6
63
+ 1.14.6
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :major: 3
3
3
  :minor: 2
4
- :patch: 9
4
+ :patch: 10
5
5
  :build:
@@ -2,7 +2,7 @@
2
2
  class Net::FTP::List::Entry
3
3
  include Comparable
4
4
 
5
- ALLOWED_ATTRIBUTES = [:raw, :basename, :dir, :file, :symlink, :mtime, :filesize, :device, :server_type] #:nodoc:
5
+ ALLOWED_ATTRIBUTES = [:raw, :basename, :dir, :file, :symlink, :mtime, :filesize, :device, :server_type, :symlink_destination] #:nodoc:
6
6
 
7
7
  # Create a new entry object. The additional argument is the list of metadata keys
8
8
  # that can be used on the object. By default just takes and set the raw list entry.
@@ -56,6 +56,11 @@ class Net::FTP::List::Entry
56
56
  end
57
57
  alias name basename
58
58
 
59
+ # Symlink destination, the "/etc" in "bar -> /etc". May be nil.
60
+ def symlink_destination
61
+ @symlink_destination
62
+ end
63
+
59
64
  # Looks like a directory, try CWD.
60
65
  def dir?
61
66
  !!(@dir ||= false)
@@ -70,7 +70,10 @@ class Net::FTP::List::Unix < Net::FTP::List::Parser
70
70
  basename += match[22] unless match[22].nil?
71
71
 
72
72
  # strip the symlink stuff we don't care about
73
- basename.sub!(/\s+\->.+$/, '') if symlink
73
+ if symlink
74
+ basename.sub!(/\s+\->(.+)$/, '')
75
+ symlink_destination = $1.strip
76
+ end
74
77
 
75
78
  emit_entry(
76
79
  raw,
@@ -80,6 +83,7 @@ class Net::FTP::List::Unix < Net::FTP::List::Parser
80
83
  :symlink => symlink,
81
84
  :filesize => filesize,
82
85
  :basename => basename,
86
+ :symlink_destination => symlink_destination,
83
87
  :mtime => mtime
84
88
  )
85
89
  end
@@ -2,16 +2,14 @@
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
6
5
 
7
6
  Gem::Specification.new do |s|
8
7
  s.name = "net-ftp-list"
9
- s.version = "3.2.9"
8
+ s.version = "3.2.10"
10
9
 
11
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
12
- s.require_paths = ["lib"]
13
11
  s.authors = ["Stateless Systems"]
14
- s.date = "2015-12-26"
12
+ s.date = "2017-04-10"
15
13
  s.email = "enquiries@statelesssystems.com"
16
14
  s.extra_rdoc_files = [
17
15
  "README.txt"
@@ -40,7 +38,8 @@ Gem::Specification.new do |s|
40
38
  "test/test_net_ftp_list_unix.rb"
41
39
  ]
42
40
  s.homepage = "http://github.com/stateless-systems/net-ftp-list"
43
- s.rubygems_version = "2.4.5.1"
41
+ s.require_paths = ["lib"]
42
+ s.rubygems_version = "2.0.14"
44
43
  s.summary = "Parse FTP LIST command output."
45
44
 
46
45
  if s.respond_to? :specification_version then
@@ -48,16 +47,13 @@ Gem::Specification.new do |s|
48
47
 
49
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
50
49
  s.add_development_dependency(%q<jeweler>, [">= 0"])
51
- s.add_development_dependency(%q<bundler>, [">= 0"])
52
50
  s.add_development_dependency(%q<test-unit>, [">= 0"])
53
51
  else
54
52
  s.add_dependency(%q<jeweler>, [">= 0"])
55
- s.add_dependency(%q<bundler>, [">= 0"])
56
53
  s.add_dependency(%q<test-unit>, [">= 0"])
57
54
  end
58
55
  else
59
56
  s.add_dependency(%q<jeweler>, [">= 0"])
60
- s.add_dependency(%q<bundler>, [">= 0"])
61
57
  s.add_dependency(%q<test-unit>, [">= 0"])
62
58
  end
63
59
  end
@@ -102,6 +102,7 @@ class TestNetFTPListUnix < Test::Unit::TestCase
102
102
 
103
103
  def test_ruby_unix_like_symlink
104
104
  assert_equal 'bar', @symlink.basename
105
+ assert_equal "/etc", @symlink.symlink_destination
105
106
  assert @symlink.symlink?
106
107
  assert !@symlink.dir?
107
108
  assert !@symlink.file?
metadata CHANGED
@@ -1,55 +1,41 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ftp-list
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.9
4
+ version: 3.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stateless Systems
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-26 00:00:00.000000000 Z
11
+ date: 2017-04-10 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
- - - ">="
25
- - !ruby/object:Gem::Version
26
- version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
24
+ - - '>='
39
25
  - !ruby/object:Gem::Version
40
26
  version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: test-unit
43
29
  requirement: !ruby/object:Gem::Requirement
44
30
  requirements:
45
- - - ">="
31
+ - - '>='
46
32
  - !ruby/object:Gem::Version
47
33
  version: '0'
48
34
  type: :development
49
35
  prerelease: false
50
36
  version_requirements: !ruby/object:Gem::Requirement
51
37
  requirements:
52
- - - ">="
38
+ - - '>='
53
39
  - !ruby/object:Gem::Version
54
40
  version: '0'
55
41
  description:
@@ -59,7 +45,7 @@ extensions: []
59
45
  extra_rdoc_files:
60
46
  - README.txt
61
47
  files:
62
- - ".ruby-version"
48
+ - .ruby-version
63
49
  - Gemfile
64
50
  - Gemfile.lock
65
51
  - README.txt
@@ -89,17 +75,17 @@ require_paths:
89
75
  - lib
90
76
  required_ruby_version: !ruby/object:Gem::Requirement
91
77
  requirements:
92
- - - ">="
78
+ - - '>='
93
79
  - !ruby/object:Gem::Version
94
80
  version: '0'
95
81
  required_rubygems_version: !ruby/object:Gem::Requirement
96
82
  requirements:
97
- - - ">="
83
+ - - '>='
98
84
  - !ruby/object:Gem::Version
99
85
  version: '0'
100
86
  requirements: []
101
87
  rubyforge_project:
102
- rubygems_version: 2.4.5.1
88
+ rubygems_version: 2.0.14
103
89
  signing_key:
104
90
  specification_version: 4
105
91
  summary: Parse FTP LIST command output.