ftpd 0.17.0 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -19,8 +19,8 @@ module Ftpd
19
19
 
20
20
  it 'should approximate ls -l format' do
21
21
  Timecop.freeze(2013, 3, 3, 8, 38, 0) do
22
- formatter.to_s.should ==
23
- '-rw-r--r-- 1 user group 1234 Mar 3 08:38 foo'
22
+ expect(formatter.to_s).to eq \
23
+ '-rw-r--r-- 1 user group 1234 Mar 3 08:38 foo'
24
24
  end
25
25
  end
26
26
 
@@ -40,7 +40,7 @@ module Ftpd
40
40
  ].each do |ftype, letter|
41
41
  context "(#{ftype})" do
42
42
  specify do
43
- Ls::FileType.letter(ftype).should == letter
43
+ expect(Ls::FileType.letter(ftype)).to eq letter
44
44
  end
45
45
  end
46
46
  end
@@ -8,7 +8,7 @@ module Ftpd
8
8
  def self.should_stub(method)
9
9
  describe "#{method}" do
10
10
  specify do
11
- subject.should respond_to method
11
+ expect(subject).to respond_to method
12
12
  end
13
13
  end
14
14
  end
@@ -43,11 +43,11 @@ module Ftpd
43
43
  subject(:protocols) {Protocols.new(connected_socket)}
44
44
 
45
45
  it 'should support IPV4' do
46
- expect(protocols.supports_protocol?(Protocols::IPV4)).to be_true
46
+ expect(protocols.supports_protocol?(Protocols::IPV4)).to be_truthy
47
47
  end
48
48
 
49
49
  it 'should not support IPV6' do
50
- expect(protocols.supports_protocol?(Protocols::IPV6)).to be_false
50
+ expect(protocols.supports_protocol?(Protocols::IPV6)).to be_falsey
51
51
  end
52
52
 
53
53
  it 'should list the supported protocols' do
@@ -68,11 +68,11 @@ module Ftpd
68
68
  subject(:protocols) {Protocols.new(connected_socket)}
69
69
 
70
70
  it 'should not support IPV4' do
71
- expect(protocols.supports_protocol?(Protocols::IPV4)).to be_false
71
+ expect(protocols.supports_protocol?(Protocols::IPV4)).to be_falsey
72
72
  end
73
73
 
74
74
  it 'should support IPV6' do
75
- expect(protocols.supports_protocol?(Protocols::IPV6)).to be_true
75
+ expect(protocols.supports_protocol?(Protocols::IPV6)).to be_truthy
76
76
  end
77
77
 
78
78
  it 'should list the supported protocols' do
@@ -93,11 +93,11 @@ module Ftpd
93
93
  subject(:protocols) {Protocols.new(connected_socket)}
94
94
 
95
95
  it 'should support IPV4' do
96
- expect(protocols.supports_protocol?(Protocols::IPV4)).to be_true
96
+ expect(protocols.supports_protocol?(Protocols::IPV4)).to be_truthy
97
97
  end
98
98
 
99
99
  it 'should support IPV6' do
100
- expect(protocols.supports_protocol?(Protocols::IPV6)).to be_true
100
+ expect(protocols.supports_protocol?(Protocols::IPV6)).to be_truthy
101
101
  end
102
102
 
103
103
  it 'should list the supported protocols' do
@@ -119,11 +119,11 @@ module Ftpd
119
119
  subject(:protocols) {Protocols.new(connected_socket)}
120
120
 
121
121
  it 'should support IPV4' do
122
- expect(protocols.supports_protocol?(Protocols::IPV4)).to be_true
122
+ expect(protocols.supports_protocol?(Protocols::IPV4)).to be_truthy
123
123
  end
124
124
 
125
125
  it 'should support IPV6' do
126
- expect(protocols.supports_protocol?(Protocols::IPV6)).to be_true
126
+ expect(protocols.supports_protocol?(Protocols::IPV6)).to be_truthy
127
127
  end
128
128
 
129
129
  it 'should list the supported protocols' do
@@ -3,6 +3,7 @@ unless $:.include?(File.dirname(__FILE__) + '/../lib')
3
3
  end
4
4
 
5
5
  require 'ftpd'
6
+ require 'rspec/its'
6
7
  require 'stringio'
7
8
  require 'thread'
8
9
  require 'timecop'
metadata CHANGED
@@ -1,141 +1,155 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ftpd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.17.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wayne Conrad
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-29 00:00:00.000000000 Z
11
+ date: 2014-09-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: memoizer
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
20
  type: :runtime
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: '1.0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: cucumber
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 1.3.16
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.3.16
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: double-bag-ftps
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: 0.1.2
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: 0.1.2
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: jeweler
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 2.0.1
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 2.0.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rake
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 10.3.2
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 10.3.2
83
83
  - !ruby/object:Gem::Dependency
84
84
  name: redcarpet
85
85
  requirement: !ruby/object:Gem::Requirement
86
86
  requirements:
87
- - - ">="
87
+ - - ~>
88
88
  - !ruby/object:Gem::Version
89
- version: '0'
89
+ version: 3.1.2
90
90
  type: :development
91
91
  prerelease: false
92
92
  version_requirements: !ruby/object:Gem::Requirement
93
93
  requirements:
94
- - - ">="
94
+ - - ~>
95
95
  - !ruby/object:Gem::Version
96
- version: '0'
96
+ version: 3.1.2
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec
99
99
  requirement: !ruby/object:Gem::Requirement
100
100
  requirements:
101
- - - ">="
101
+ - - ~>
102
102
  - !ruby/object:Gem::Version
103
- version: '0'
103
+ version: 3.1.0
104
104
  type: :development
105
105
  prerelease: false
106
106
  version_requirements: !ruby/object:Gem::Requirement
107
107
  requirements:
108
- - - ">="
108
+ - - ~>
109
109
  - !ruby/object:Gem::Version
110
- version: '0'
110
+ version: 3.1.0
111
+ - !ruby/object:Gem::Dependency
112
+ name: rspec-its
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ~>
116
+ - !ruby/object:Gem::Version
117
+ version: 1.0.1
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ~>
123
+ - !ruby/object:Gem::Version
124
+ version: 1.0.1
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: timecop
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
- - - ">="
129
+ - - ~>
116
130
  - !ruby/object:Gem::Version
117
- version: '0'
131
+ version: 0.7.1
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
- - - ">="
136
+ - - ~>
123
137
  - !ruby/object:Gem::Version
124
- version: '0'
138
+ version: 0.7.1
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: yard
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
- - - ">="
143
+ - - ~>
130
144
  - !ruby/object:Gem::Version
131
- version: '0'
145
+ version: 0.8.7.4
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
- - - ">="
150
+ - - ~>
137
151
  - !ruby/object:Gem::Version
138
- version: '0'
152
+ version: 0.8.7.4
139
153
  description: ftpd is a pure Ruby FTP server library. It supports implicit and explicit
140
154
  TLS, IPV6, passive and active mode, and is unconditionally compliant per RFC-1123. It
141
155
  can be used as part of a test fixture or embedded in a program.
@@ -146,8 +160,8 @@ extra_rdoc_files:
146
160
  - LICENSE.md
147
161
  - README.md
148
162
  files:
149
- - ".travis.yml"
150
- - ".yardopts"
163
+ - .travis.yml
164
+ - .yardopts
151
165
  - Changelog.md
152
166
  - Gemfile
153
167
  - Gemfile.lock
@@ -371,12 +385,12 @@ require_paths:
371
385
  - lib
372
386
  required_ruby_version: !ruby/object:Gem::Requirement
373
387
  requirements:
374
- - - ">="
388
+ - - ! '>='
375
389
  - !ruby/object:Gem::Version
376
390
  version: '0'
377
391
  required_rubygems_version: !ruby/object:Gem::Requirement
378
392
  requirements:
379
- - - ">="
393
+ - - ! '>='
380
394
  - !ruby/object:Gem::Version
381
395
  version: '0'
382
396
  requirements: []