brick_ftp 2.1.0 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +8 -8
- data/.rubocop.yml +1 -1
- data/CHANGELOG.md +51 -0
- data/brick_ftp.gemspec +4 -2
- data/lib/brick_ftp/client.rb +2 -0
- data/lib/brick_ftp/restful_api/client.rb +1 -1
- data/lib/brick_ftp/restful_api/update_user.rb +1 -1
- data/lib/brick_ftp/version.rb +1 -1
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4eb818a5b945f3862cfe4420ef282e3baf66ab5be31703b02a7f63986720ce31
|
4
|
+
data.tar.gz: 193f8f93d4357a98fd175c90808fe17b47e69410de92602d725d3b16d3fc9301
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8ff126f83d1795a8fabfdf5dbc88b282bed1404d82c737c1bebed2d4f37328925daa4a0233bd0e64ad0915f04742724ac1dd04477d90200590a5c58d9a0f69db
|
7
|
+
data.tar.gz: 6ce0fed621455fdfba00dba89a72c6bea67c57eb25ec1ecfb7a23526d35030f5c1e2fae2934d96e8891d6bccf2619332acb6c8ba10b6f319c4a102bbc7453661
|
data/.circleci/config.yml
CHANGED
@@ -2,7 +2,7 @@ version: 2
|
|
2
2
|
jobs:
|
3
3
|
build: &build
|
4
4
|
docker:
|
5
|
-
- image:
|
5
|
+
- image: cimg/ruby:latest
|
6
6
|
working_directory: /home/circleci/app
|
7
7
|
steps:
|
8
8
|
- checkout
|
@@ -18,23 +18,23 @@ jobs:
|
|
18
18
|
- run:
|
19
19
|
name: RSpec
|
20
20
|
command: rspec
|
21
|
-
ruby-2.5:
|
22
|
-
<<: *build
|
23
|
-
docker:
|
24
|
-
- image: circleci/ruby:2.5
|
25
21
|
ruby-2.6:
|
26
22
|
<<: *build
|
27
23
|
docker:
|
28
|
-
- image:
|
24
|
+
- image: cimg/ruby:2.6
|
29
25
|
ruby-2.7:
|
30
26
|
<<: *build
|
31
27
|
docker:
|
32
|
-
- image:
|
28
|
+
- image: cimg/ruby:2.7
|
29
|
+
ruby-3.0:
|
30
|
+
<<: *build
|
31
|
+
docker:
|
32
|
+
- image: cimg/ruby:3.0
|
33
33
|
|
34
34
|
workflows:
|
35
35
|
version: 2
|
36
36
|
build-using-multi-rubies:
|
37
37
|
jobs:
|
38
|
-
- ruby-2.5
|
39
38
|
- ruby-2.6
|
40
39
|
- ruby-2.7
|
40
|
+
- ruby-3.0
|
data/.rubocop.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -18,6 +18,57 @@ Files::User.new(params, api_key: 'YOUR_API_KEY')
|
|
18
18
|
I will archive this repository after found official SDK.
|
19
19
|
|
20
20
|
|
21
|
+
[v2.1.3](https://github.com/koshigoe/brick_ftp/compare/v2.1.2...v2.1.3)
|
22
|
+
----
|
23
|
+
|
24
|
+
[Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v2.1.2...v2.1.3)
|
25
|
+
|
26
|
+
### Enhancements:
|
27
|
+
|
28
|
+
### Fixed Bugs:
|
29
|
+
|
30
|
+
- [#138](https://github.com/koshigoe/brick_ftp/pull/138) Filter unsupported keys included in error response
|
31
|
+
|
32
|
+
### Deprecate
|
33
|
+
|
34
|
+
### Breaking Changes:
|
35
|
+
|
36
|
+
|
37
|
+
[v2.1.2](https://github.com/koshigoe/brick_ftp/compare/v2.1.1...v2.1.2)
|
38
|
+
----
|
39
|
+
|
40
|
+
[Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v2.1.1...v2.1.2)
|
41
|
+
|
42
|
+
### Enhancements:
|
43
|
+
|
44
|
+
- use `ruby2_keywords` to support Ruby 3.0.
|
45
|
+
|
46
|
+
### Fixed Bugs:
|
47
|
+
|
48
|
+
### Deprecate
|
49
|
+
|
50
|
+
### Breaking Changes:
|
51
|
+
|
52
|
+
- Dropping support for Ruby 2.5
|
53
|
+
|
54
|
+
|
55
|
+
[v2.1.1](https://github.com/koshigoe/brick_ftp/compare/v2.1.0...v2.1.1)
|
56
|
+
----
|
57
|
+
|
58
|
+
[Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v2.1.0...v2.1.1)
|
59
|
+
|
60
|
+
### Enhancements:
|
61
|
+
|
62
|
+
- [#136](https://github.com/koshigoe/brick_ftp/pull/136) Use `PATCH` instead of `PUT` to update User.
|
63
|
+
- see https://developers.files.com/#update-user
|
64
|
+
|
65
|
+
### Fixed Bugs:
|
66
|
+
|
67
|
+
### Deprecate
|
68
|
+
|
69
|
+
### Breaking Changes:
|
70
|
+
|
71
|
+
|
21
72
|
[v2.1.0](https://github.com/koshigoe/brick_ftp/compare/v2.0.3...v2.1.0)
|
22
73
|
----
|
23
74
|
|
data/brick_ftp.gemspec
CHANGED
@@ -20,14 +20,16 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
21
|
spec.require_paths = ['lib']
|
22
22
|
|
23
|
-
spec.required_ruby_version = '>= 2.
|
23
|
+
spec.required_ruby_version = '>= 2.6.0'
|
24
|
+
|
25
|
+
spec.add_runtime_dependency 'ruby2_keywords'
|
24
26
|
|
25
27
|
spec.add_development_dependency 'bundler', '>= 1.16'
|
26
28
|
spec.add_development_dependency 'pry', '~> 0.11'
|
27
29
|
spec.add_development_dependency 'rake', '~> 12.0'
|
28
30
|
spec.add_development_dependency 'redcarpet', '~> 3.4'
|
29
31
|
spec.add_development_dependency 'rspec', '~> 3.7'
|
30
|
-
spec.add_development_dependency 'rubocop', '~>
|
32
|
+
spec.add_development_dependency 'rubocop', '~> 1.23'
|
31
33
|
spec.add_development_dependency 'simplecov', '~> 0.15'
|
32
34
|
spec.add_development_dependency 'webmock', '~> 3.4'
|
33
35
|
spec.add_development_dependency 'yard', '~> 0.9'
|
data/lib/brick_ftp/client.rb
CHANGED
@@ -58,9 +58,11 @@ module BrickFTP
|
|
58
58
|
super
|
59
59
|
end
|
60
60
|
end
|
61
|
+
ruby2_keywords :method_missing if respond_to?(:ruby2_keywords, true)
|
61
62
|
|
62
63
|
def dispatch_command(klass, *args)
|
63
64
|
klass.new(api_client).call(*args)
|
64
65
|
end
|
66
|
+
ruby2_keywords :dispatch_command if respond_to?(:ruby2_keywords, true)
|
65
67
|
end
|
66
68
|
end
|
@@ -187,7 +187,7 @@ module BrickFTP
|
|
187
187
|
end
|
188
188
|
parsed = {} unless parsed.is_a?(Hash)
|
189
189
|
|
190
|
-
ErrorResponse.new(parsed.symbolize_keys).tap do |e|
|
190
|
+
ErrorResponse.new(parsed.symbolize_keys.slice(*ErrorResponse.members)).tap do |e|
|
191
191
|
e['http-code'] ||= response.code
|
192
192
|
e['error'] ||= response.body
|
193
193
|
end
|
@@ -92,7 +92,7 @@ module BrickFTP
|
|
92
92
|
# @return [BrickFTP::Types::User] updated User
|
93
93
|
#
|
94
94
|
def call(id, params)
|
95
|
-
res = client.
|
95
|
+
res = client.patch("/api/rest/v1/users/#{id}.json", params.to_h.compact)
|
96
96
|
|
97
97
|
BrickFTP::Types::User.new(**res.symbolize_keys)
|
98
98
|
end
|
data/lib/brick_ftp/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brick_ftp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- koshigoe
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-06-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: ruby2_keywords
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
13
27
|
- !ruby/object:Gem::Dependency
|
14
28
|
name: bundler
|
15
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -86,14 +100,14 @@ dependencies:
|
|
86
100
|
requirements:
|
87
101
|
- - "~>"
|
88
102
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
103
|
+
version: '1.23'
|
90
104
|
type: :development
|
91
105
|
prerelease: false
|
92
106
|
version_requirements: !ruby/object:Gem::Requirement
|
93
107
|
requirements:
|
94
108
|
- - "~>"
|
95
109
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
110
|
+
version: '1.23'
|
97
111
|
- !ruby/object:Gem::Dependency
|
98
112
|
name: simplecov
|
99
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -273,14 +287,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
273
287
|
requirements:
|
274
288
|
- - ">="
|
275
289
|
- !ruby/object:Gem::Version
|
276
|
-
version: 2.
|
290
|
+
version: 2.6.0
|
277
291
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
278
292
|
requirements:
|
279
293
|
- - ">="
|
280
294
|
- !ruby/object:Gem::Version
|
281
295
|
version: '0'
|
282
296
|
requirements: []
|
283
|
-
rubygems_version: 3.
|
297
|
+
rubygems_version: 3.2.32
|
284
298
|
signing_key:
|
285
299
|
specification_version: 4
|
286
300
|
summary: BrickFTP's REST API client.
|