diff --git a/lib/pom.rb b/lib/pom.rb index d5b4dc5a7d9..c1ecaa0f731 100644 --- a/lib/pom.rb +++ b/lib/pom.rb @@ -126,7 +126,7 @@ def log(message=nil) # ['debug', '1.4.0'], ['matrix', '0.4.2'], ['minitest', '5.15.0'], - ['net-ftp', '0.1.3'], + ['net-ftp', '0.3.7'], ['net-imap', '0.2.3'], ['net-pop', '0.1.1'], ['net-smtp', '0.3.1'], diff --git a/lib/pom.xml b/lib/pom.xml index 019211b55f6..0125db6408a 100644 --- a/lib/pom.xml +++ b/lib/pom.xml @@ -931,7 +931,7 @@ DO NOT MODIFY - GENERATED CODE rubygems net-ftp - 0.1.3 + 0.3.7 gem provided @@ -1148,7 +1148,7 @@ DO NOT MODIFY - GENERATED CODE specifications/yaml-0.2.0* specifications/matrix-0.4.2* specifications/minitest-5.15.0* - specifications/net-ftp-0.1.3* + specifications/net-ftp-0.3.7* specifications/net-imap-0.2.3* specifications/net-pop-0.1.1* specifications/net-smtp-0.3.1* @@ -1227,7 +1227,7 @@ DO NOT MODIFY - GENERATED CODE gems/yaml-0.2.0*/**/* gems/matrix-0.4.2*/**/* gems/minitest-5.15.0*/**/* - gems/net-ftp-0.1.3*/**/* + gems/net-ftp-0.3.7*/**/* gems/net-imap-0.2.3*/**/* gems/net-pop-0.1.1*/**/* gems/net-smtp-0.3.1*/**/* @@ -1306,7 +1306,7 @@ DO NOT MODIFY - GENERATED CODE cache/yaml-0.2.0* cache/matrix-0.4.2* cache/minitest-5.15.0* - cache/net-ftp-0.1.3* + cache/net-ftp-0.3.7* cache/net-imap-0.2.3* cache/net-pop-0.1.1* cache/net-smtp-0.3.1* diff --git a/spec/ruby/library/net-ftp/shared/puttextfile.rb b/spec/ruby/library/net-ftp/shared/puttextfile.rb index 4722439674a..e2c04533524 100644 --- a/spec/ruby/library/net-ftp/shared/puttextfile.rb +++ b/spec/ruby/library/net-ftp/shared/puttextfile.rb @@ -34,8 +34,16 @@ remote_lines.should == local_lines.gsub("\n", "\r\n") end - it "returns nil" do - @ftp.send(@method, @local_fixture_file, "text").should be_nil + guard -> { Net::FTP::VERSION < '0.3.6' } do + it "returns nil" do + @ftp.send(@method, @local_fixture_file, "text").should be_nil + end + end + + guard -> { Net::FTP::VERSION >= '0.3.6' } do + it "returns the response" do + @ftp.send(@method, @local_fixture_file, "text").should == @ftp.last_response + end end describe "when passed a block" do