net-ftp-list 3.2.4 → 3.2.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
- ---
2
- :build:
1
+ ---
3
2
  :major: 3
4
3
  :minor: 2
5
- :patch: 4
4
+ :patch: 5
5
+ :build:
@@ -8,10 +8,10 @@ class Net::FTP::List::Entry
8
8
  # that can be used on the object. By default just takes and set the raw list entry.
9
9
  # Net::FTP::List.parse(raw_list_string) # => Net::FTP::List::Parser instance.
10
10
  def initialize(raw_ls_line, optional_attributes = {}) #:nodoc:
11
- @raw = raw_ls_line
11
+ @raw = raw_ls_line.force_encoding('utf-8')
12
12
  optional_attributes.each_pair do |key, value|
13
13
  raise ArgumentError, "#{key} is not supported" unless ALLOWED_ATTRIBUTES.include?(key)
14
- instance_variable_set("@#{key}", value)
14
+ instance_variable_set("@#{key}", value.respond_to?(:force_encoding) ? value.force_encoding('utf-8') : value)
15
15
  end
16
16
  end
17
17
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "net-ftp-list"
8
- s.version = "3.2.4"
8
+ s.version = "3.2.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Stateless Systems"]
12
- s.date = "2012-09-14"
12
+ s.date = "2012-09-15"
13
13
  s.email = "enquiries@statelesssystems.com"
14
14
  s.extra_rdoc_files = [
15
15
  "README.txt"
@@ -36,7 +36,7 @@ Gem::Specification.new do |s|
36
36
  ]
37
37
  s.homepage = "http://github.com/stateless-systems/net-ftp-list"
38
38
  s.require_paths = ["lib"]
39
- s.rubygems_version = "1.8.15"
39
+ s.rubygems_version = "1.8.23"
40
40
  s.summary = "Parse FTP LIST command output."
41
41
 
42
42
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,32 +1,23 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: net-ftp-list
3
- version: !ruby/object:Gem::Version
4
- hash: 7
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.2.5
5
5
  prerelease:
6
- segments:
7
- - 3
8
- - 2
9
- - 4
10
- version: 3.2.4
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Stateless Systems
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-09-14 00:00:00 Z
12
+ date: 2012-09-15 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
14
  description:
22
15
  email: enquiries@statelesssystems.com
23
16
  executables: []
24
-
25
17
  extensions: []
26
-
27
- extra_rdoc_files:
18
+ extra_rdoc_files:
28
19
  - README.txt
29
- files:
20
+ files:
30
21
  - README.txt
31
22
  - Rakefile
32
23
  - VERSION.yml
@@ -47,36 +38,26 @@ files:
47
38
  - test/test_net_ftp_list_unix.rb
48
39
  homepage: http://github.com/stateless-systems/net-ftp-list
49
40
  licenses: []
50
-
51
41
  post_install_message:
52
42
  rdoc_options: []
53
-
54
- require_paths:
43
+ require_paths:
55
44
  - lib
56
- required_ruby_version: !ruby/object:Gem::Requirement
45
+ required_ruby_version: !ruby/object:Gem::Requirement
57
46
  none: false
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- hash: 3
62
- segments:
63
- - 0
64
- version: "0"
65
- required_rubygems_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ! '>='
49
+ - !ruby/object:Gem::Version
50
+ version: '0'
51
+ required_rubygems_version: !ruby/object:Gem::Requirement
66
52
  none: false
67
- requirements:
68
- - - ">="
69
- - !ruby/object:Gem::Version
70
- hash: 3
71
- segments:
72
- - 0
73
- version: "0"
53
+ requirements:
54
+ - - ! '>='
55
+ - !ruby/object:Gem::Version
56
+ version: '0'
74
57
  requirements: []
75
-
76
58
  rubyforge_project:
77
- rubygems_version: 1.8.15
59
+ rubygems_version: 1.8.23
78
60
  signing_key:
79
61
  specification_version: 3
80
62
  summary: Parse FTP LIST command output.
81
63
  test_files: []
82
-