Skip to content

Commit

Permalink
Merge pull request jruby#8305 from headius/update_net_ftp
Browse files Browse the repository at this point in the history
Update net-ftp to JRuby-compatible 0.3.7
  • Loading branch information
headius committed Jun 27, 2024
2 parents e9d1b1d + 2fe4801 commit e221a12
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 7 deletions.
2 changes: 1 addition & 1 deletion lib/pom.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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'],
Expand Down
8 changes: 4 additions & 4 deletions lib/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -931,7 +931,7 @@ DO NOT MODIFY - GENERATED CODE
<dependency>
<groupId>rubygems</groupId>
<artifactId>net-ftp</artifactId>
<version>0.1.3</version>
<version>0.3.7</version>
<type>gem</type>
<scope>provided</scope>
<exclusions>
Expand Down Expand Up @@ -1148,7 +1148,7 @@ DO NOT MODIFY - GENERATED CODE
<include>specifications/yaml-0.2.0*</include>
<include>specifications/matrix-0.4.2*</include>
<include>specifications/minitest-5.15.0*</include>
<include>specifications/net-ftp-0.1.3*</include>
<include>specifications/net-ftp-0.3.7*</include>
<include>specifications/net-imap-0.2.3*</include>
<include>specifications/net-pop-0.1.1*</include>
<include>specifications/net-smtp-0.3.1*</include>
Expand Down Expand Up @@ -1227,7 +1227,7 @@ DO NOT MODIFY - GENERATED CODE
<include>gems/yaml-0.2.0*/**/*</include>
<include>gems/matrix-0.4.2*/**/*</include>
<include>gems/minitest-5.15.0*/**/*</include>
<include>gems/net-ftp-0.1.3*/**/*</include>
<include>gems/net-ftp-0.3.7*/**/*</include>
<include>gems/net-imap-0.2.3*/**/*</include>
<include>gems/net-pop-0.1.1*/**/*</include>
<include>gems/net-smtp-0.3.1*/**/*</include>
Expand Down Expand Up @@ -1306,7 +1306,7 @@ DO NOT MODIFY - GENERATED CODE
<include>cache/yaml-0.2.0*</include>
<include>cache/matrix-0.4.2*</include>
<include>cache/minitest-5.15.0*</include>
<include>cache/net-ftp-0.1.3*</include>
<include>cache/net-ftp-0.3.7*</include>
<include>cache/net-imap-0.2.3*</include>
<include>cache/net-pop-0.1.1*</include>
<include>cache/net-smtp-0.3.1*</include>
Expand Down
12 changes: 10 additions & 2 deletions spec/ruby/library/net-ftp/shared/puttextfile.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit e221a12

Please sign in to comment.