brick_ftp 2.0.0 → 2.0.1

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
  SHA256:
3
- metadata.gz: 742d808ea0faafa27e7447766e96f3ed29accafeb125802b9760c289d2b08252
4
- data.tar.gz: c723a9c56a9e19ef1bf1d1781afd1a41d26ebe0aa97c168fe7e51f0613ebd02c
3
+ metadata.gz: 0a23f124c91290c1f277fda249752ccfb97a64bea8fdd3b8895c2446a70c7aa3
4
+ data.tar.gz: 2b1c39092295c2d055ff0fa6fd31c0dae10f49dfe701d2b4827cba205af16b92
5
5
  SHA512:
6
- metadata.gz: 38c32e3356d422b54ca22d39d73145c766830fc4aec4ee22bc1cbb2da8af63f6a8fa009ed312a9651dfceac77e2aea1abd64d54e427f21a380968c4b80b9c26c
7
- data.tar.gz: 4d4c8b7dbe080f6e097f759e0698bc67826abd106d3812ff3cde8af9dab1db039333251385e70532bdd28993611b4640818f615d5c300e2f8264c11f5096ef9c
6
+ metadata.gz: 9a44a10701e2de65e46220def5916beb949d3b5f4b2f9b793a61ecfcd82212736c2e1420ea29e5a9b70a0eccfb84ca6544e940545c019e8b4f3268bf90885eff
7
+ data.tar.gz: 5e2a2ac40bea2bfcb0487ed439a3cde5c8353bef110a41b487a0cc780b280e17533ec6b7d45376c5720e88706c46b430cb41689e7cb26eea00168b3f8ba97011
data/.circleci/config.yml CHANGED
@@ -15,9 +15,18 @@ jobs:
15
15
  - run:
16
16
  name: YARDoc
17
17
  command: yardoc --fail-on-warning lib
18
+ # see https://docs.codeclimate.com/docs/circle-ci-test-coverage-example
19
+ - run:
20
+ name: Setup Code Climate test-reporter
21
+ command: |
22
+ curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
23
+ chmod +x ./cc-test-reporter
18
24
  - run:
19
25
  name: RSpec
20
- command: rspec
26
+ command: |
27
+ ./cc-test-reporter before-build
28
+ rspec
29
+ ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
21
30
  - store_artifacts:
22
31
  path: coverage
23
32
  destination: coverage
@@ -33,6 +42,10 @@ jobs:
33
42
  <<: *build
34
43
  docker:
35
44
  - image: circleci/ruby:2.5
45
+ ruby-2.6:
46
+ <<: *build
47
+ docker:
48
+ - image: circleci/ruby:2.5
36
49
 
37
50
  workflows:
38
51
  version: 2
@@ -41,3 +54,4 @@ workflows:
41
54
  - ruby-2.3
42
55
  - ruby-2.4
43
56
  - ruby-2.5
57
+ - ruby-2.6
data/CHANGELOG.md CHANGED
@@ -1,16 +1,34 @@
1
1
  Changelog
2
2
  ====
3
3
 
4
+ The official Ruby SDK released by Files.com
4
5
 
5
- [unreleased](https://github.com/koshigoe/brick_ftp/compare/v2.0.0...master)
6
+ > SDKs in Ruby and PHP are available for download using the typical package manager for each language.
7
+ > https://developers.files.com/?ruby#introduction
8
+
9
+ Its usage like:
10
+
11
+ ```ruby
12
+ Files.api_key = 'YOUR_API_KEY'
13
+
14
+ # Alternatively, you can specify the API key on a per-request basis in the final parameter to any method or initializer.
15
+ Files::User.new(params, api_key: 'YOUR_API_KEY')
16
+ ```
17
+
18
+ I will archive this repository after found official SDK.
19
+
20
+
21
+ [v2.0.1](https://github.com/koshigoe/brick_ftp/compare/v2.0.0...v2.0.1)
6
22
  ----
7
23
 
8
- [Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v2.0.0...master)
24
+ [Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v2.0.0...v2.0.1)
9
25
 
10
26
  ### Enhancements:
11
27
 
12
28
  ### Fixed Bugs:
13
29
 
30
+ - [#124](https://github.com/koshigoe/brick_ftp/pull/124) Handle response 204 No Content avoid to parse error.
31
+
14
32
  ### Breaking Changes:
15
33
 
16
34
 
data/README.md CHANGED
@@ -1,5 +1,6 @@
1
1
  [![CircleCI](https://circleci.com/gh/koshigoe/brick_ftp/tree/master.svg?style=svg)](https://circleci.com/gh/koshigoe/brick_ftp/tree/master)
2
- [![codecov](https://codecov.io/gh/koshigoe/brick_ftp/branch/master/graph/badge.svg)](https://codecov.io/gh/koshigoe/brick_ftp)
2
+ [![Maintainability](https://api.codeclimate.com/v1/badges/b996c388d3d32b7ec953/maintainability)](https://codeclimate.com/github/koshigoe/brick_ftp/maintainability)
3
+ [![Test Coverage](https://api.codeclimate.com/v1/badges/b996c388d3d32b7ec953/test_coverage)](https://codeclimate.com/github/koshigoe/brick_ftp/test_coverage)
3
4
 
4
5
 
5
6
  Files.com (BrickFTP)
data/brick_ftp.gemspec CHANGED
@@ -23,7 +23,6 @@ Gem::Specification.new do |spec|
23
23
  spec.required_ruby_version = '>= 2.3.0'
24
24
 
25
25
  spec.add_development_dependency 'bundler', '~> 1.16'
26
- spec.add_development_dependency 'codecov', '~> 0.1.10'
27
26
  spec.add_development_dependency 'pry', '~> 0.11'
28
27
  spec.add_development_dependency 'rake', '~> 12.0'
29
28
  spec.add_development_dependency 'redcarpet', '~> 3.4'
@@ -153,6 +153,8 @@ module BrickFTP
153
153
 
154
154
  def handle_response(response)
155
155
  case response
156
+ when Net::HTTPNoContent
157
+ nil
156
158
  when Net::HTTPSuccess
157
159
  parse_success_response(response)
158
160
  else
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrickFTP
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.1'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick_ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - koshigoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-06-03 00:00:00.000000000 Z
11
+ date: 2019-09-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.16'
27
- - !ruby/object:Gem::Dependency
28
- name: codecov
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: 0.1.10
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: 0.1.10
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: pry
43
29
  requirement: !ruby/object:Gem::Requirement