net-ftp-port_command 0.0.2 → 0.1.0

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: 54a6089ae3425d0cd581a8a679fc6f924f39b3b2
4
- data.tar.gz: 1e37eae012d97091b0c0eadb5e7b32aeb2389461
3
+ metadata.gz: 9d43868b0288869b8cf2b76fb075c867a70d7915
4
+ data.tar.gz: fb00daac7bd96393b71ebacd9275d649653d5bd2
5
5
  SHA512:
6
- metadata.gz: 1a989e7e7dca04751f85db126991dcfbc114c8cfb42780310367398ad81b6089509d15440b78b5e91d50b5547b3524925b63dd0bdc22f921e6e56cde6b515fc2
7
- data.tar.gz: 9450d549bfef62d6324e863b178ed80029a87fdd7b5740770c406f023d3eac894818b461ada439f0d748a6fad8c1eae3db0a159506c0313126f90e31e698f9cd
6
+ metadata.gz: 6dcb1b608567984c1ae9d69beb0c0b0f7985fdae27ef2d57f7af8a3aabf8e600d38ee631ebb31cabd43f4467c9464f5428675ae18842d88feb165bb4232daa43
7
+ data.tar.gz: 061279dbb447f1e70f2ad061dafc779f39f863373f12ff3d7c4f251e03c9641f5cb0435a4707285c456451ee747f651aad9fb600416ab5d9071677f81ac9310c
data/.gitignore CHANGED
@@ -12,3 +12,4 @@
12
12
  *.o
13
13
  *.a
14
14
  mkmf.log
15
+ .rspec
data/.travis.yml ADDED
@@ -0,0 +1,6 @@
1
+ language: ruby
2
+ rvm:
3
+ - 2.2.0
4
+ - 2.1.0
5
+ - 2.0.0
6
+ script: bundle exec rspec --require ./spec/spec_helper.rb
data/README.md CHANGED
@@ -1,5 +1,8 @@
1
1
  # Net::FTP::PortCommand
2
2
 
3
+ [![Gem Version](https://badge.fury.io/rb/net-ftp-port_command.svg)](http://badge.fury.io/rb/net-ftp-port_command)
4
+ [![Build Status](https://travis-ci.org/s-osa/net-ftp-port_command.svg?branch=master)](https://travis-ci.org/s-osa/net-ftp-port_command)
5
+
3
6
  This gem enables Net::FTP to send FTP `PORT` command.
4
7
 
5
8
  If your FTP client have to use active mode and over NAT, this gem may be helpful.
@@ -1,7 +1,7 @@
1
1
  module Net
2
2
  class FTP
3
3
  module PortCommand
4
- VERSION = "0.0.2"
4
+ VERSION = "0.1.0"
5
5
  end
6
6
  end
7
7
  end
@@ -20,6 +20,7 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.required_ruby_version = '>= 2.0.0'
22
22
 
23
- spec.add_development_dependency "bundler", "~> 1.7"
23
+ spec.add_development_dependency "bundler", "~> 1.6"
24
24
  spec.add_development_dependency "rake", "~> 10.0"
25
+ spec.add_development_dependency "rspec", "~> 3.0"
25
26
  end
@@ -0,0 +1,7 @@
1
+ describe Net::FTP do
2
+ describe "methods" do
3
+ subject{ described_class.new }
4
+ it{ is_expected.to respond_to(:port) }
5
+ it{ is_expected.not_to respond_to(:makeport) }
6
+ end
7
+ end
@@ -0,0 +1,19 @@
1
+ require 'net/ftp'
2
+ require File.expand_path("../../lib/net/ftp/port_command", __FILE__)
3
+
4
+ RSpec.configure do |config|
5
+ config.expect_with :rspec do |expectations|
6
+ expectations.include_chain_clauses_in_custom_matcher_descriptions = true
7
+ end
8
+
9
+ config.mock_with :rspec do |mocks|
10
+ mocks.verify_partial_doubles = true
11
+ end
12
+
13
+ if config.files_to_run.one?
14
+ config.default_formatter = 'doc'
15
+ end
16
+
17
+ config.warnings = true
18
+ config.order = :random
19
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: net-ftp-port_command
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - OSA Shunsuke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-24 00:00:00.000000000 Z
11
+ date: 2015-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.7'
19
+ version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.7'
26
+ version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -38,6 +38,20 @@ dependencies:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
41
55
  description: Enable Net::FTP to send PORT command.
42
56
  email:
43
57
  - hhelibebcnofnenamg@gmail.com
@@ -46,6 +60,7 @@ extensions: []
46
60
  extra_rdoc_files: []
47
61
  files:
48
62
  - ".gitignore"
63
+ - ".travis.yml"
49
64
  - Gemfile
50
65
  - LICENSE.txt
51
66
  - README.md
@@ -53,6 +68,8 @@ files:
53
68
  - lib/net/ftp/port_command.rb
54
69
  - lib/net/ftp/port_command/version.rb
55
70
  - net-ftp-port_command.gemspec
71
+ - spec/net/ftp/port_command_spec.rb
72
+ - spec/spec_helper.rb
56
73
  homepage: https://github.com/s-osa/net-ftp-port_command
57
74
  licenses:
58
75
  - MIT
@@ -77,4 +94,6 @@ rubygems_version: 2.2.2
77
94
  signing_key:
78
95
  specification_version: 4
79
96
  summary: Enable Net::FTP to send PORT command.
80
- test_files: []
97
+ test_files:
98
+ - spec/net/ftp/port_command_spec.rb
99
+ - spec/spec_helper.rb