brick_ftp 2.0.1 → 2.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/.circleci/config.yml +7 -14
  3. data/CHANGELOG.md +14 -0
  4. data/README.md +2 -0
  5. data/brick_ftp.gemspec +1 -1
  6. data/lib/brick_ftp/restful_api/add_group_member.rb +1 -1
  7. data/lib/brick_ftp/restful_api/complete_upload.rb +1 -1
  8. data/lib/brick_ftp/restful_api/continue_upload.rb +1 -1
  9. data/lib/brick_ftp/restful_api/count_folder_contents.rb +1 -1
  10. data/lib/brick_ftp/restful_api/create_api_key.rb +1 -1
  11. data/lib/brick_ftp/restful_api/create_behavior.rb +1 -1
  12. data/lib/brick_ftp/restful_api/create_bundle.rb +1 -1
  13. data/lib/brick_ftp/restful_api/create_group.rb +1 -1
  14. data/lib/brick_ftp/restful_api/create_notification.rb +1 -1
  15. data/lib/brick_ftp/restful_api/create_permission.rb +1 -1
  16. data/lib/brick_ftp/restful_api/create_public_key.rb +1 -1
  17. data/lib/brick_ftp/restful_api/create_user.rb +1 -1
  18. data/lib/brick_ftp/restful_api/create_user_in_group.rb +1 -1
  19. data/lib/brick_ftp/restful_api/download_file.rb +1 -1
  20. data/lib/brick_ftp/restful_api/get_api_key.rb +1 -1
  21. data/lib/brick_ftp/restful_api/get_behavior.rb +1 -1
  22. data/lib/brick_ftp/restful_api/get_bundle.rb +1 -1
  23. data/lib/brick_ftp/restful_api/get_bundle_zip.rb +1 -1
  24. data/lib/brick_ftp/restful_api/get_file_in_bundle.rb +1 -1
  25. data/lib/brick_ftp/restful_api/get_group.rb +1 -1
  26. data/lib/brick_ftp/restful_api/get_public_key.rb +1 -1
  27. data/lib/brick_ftp/restful_api/get_site_usage.rb +1 -1
  28. data/lib/brick_ftp/restful_api/get_user.rb +1 -1
  29. data/lib/brick_ftp/restful_api/list_api_keys.rb +1 -1
  30. data/lib/brick_ftp/restful_api/list_behaviors.rb +1 -1
  31. data/lib/brick_ftp/restful_api/list_bundle_contents.rb +1 -1
  32. data/lib/brick_ftp/restful_api/list_bundles.rb +1 -1
  33. data/lib/brick_ftp/restful_api/list_folder_behaviors.rb +1 -1
  34. data/lib/brick_ftp/restful_api/list_folders.rb +1 -1
  35. data/lib/brick_ftp/restful_api/list_groups.rb +1 -1
  36. data/lib/brick_ftp/restful_api/list_notifications.rb +1 -1
  37. data/lib/brick_ftp/restful_api/list_permissions.rb +1 -1
  38. data/lib/brick_ftp/restful_api/list_public_keys.rb +1 -1
  39. data/lib/brick_ftp/restful_api/list_users.rb +1 -1
  40. data/lib/brick_ftp/restful_api/retrieve_history.rb +1 -1
  41. data/lib/brick_ftp/restful_api/search_user.rb +1 -1
  42. data/lib/brick_ftp/restful_api/start_upload.rb +1 -1
  43. data/lib/brick_ftp/restful_api/unlock_user.rb +1 -1
  44. data/lib/brick_ftp/restful_api/update_behavior.rb +1 -1
  45. data/lib/brick_ftp/restful_api/update_group.rb +1 -1
  46. data/lib/brick_ftp/restful_api/update_group_member.rb +1 -1
  47. data/lib/brick_ftp/restful_api/update_user.rb +1 -1
  48. data/lib/brick_ftp/version.rb +1 -1
  49. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 0a23f124c91290c1f277fda249752ccfb97a64bea8fdd3b8895c2446a70c7aa3
4
- data.tar.gz: 2b1c39092295c2d055ff0fa6fd31c0dae10f49dfe701d2b4827cba205af16b92
3
+ metadata.gz: 2493a4c45ab215a268d388cb4b90802b854dac43502ed0b354bcf63bbf4e1741
4
+ data.tar.gz: 634f7dde30378cf62549413e408531ed9a1a100bbc91513f7895567bea8955ec
5
5
  SHA512:
6
- metadata.gz: 9a44a10701e2de65e46220def5916beb949d3b5f4b2f9b793a61ecfcd82212736c2e1420ea29e5a9b70a0eccfb84ca6544e940545c019e8b4f3268bf90885eff
7
- data.tar.gz: 5e2a2ac40bea2bfcb0487ed439a3cde5c8353bef110a41b487a0cc780b280e17533ec6b7d45376c5720e88706c46b430cb41689e7cb26eea00168b3f8ba97011
6
+ metadata.gz: 333fa26348ec6154b7820cc2a75eb17a08de0b3d62625a028b9040401761e2545b317f34e64b8a5ed5b327ef5a918eedd32b2f23c7787a0e9f6c29f39efdb0d0
7
+ data.tar.gz: 39fec430bfab410417b928663bc9ebd226f981377b4680c2b5008c7b7c42660f3769d20563fc4b6abf5ce40869398da9ca78b2ae78f3a8c467ef5dce361be562
@@ -15,21 +15,9 @@ 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
24
18
  - run:
25
19
  name: RSpec
26
- command: |
27
- ./cc-test-reporter before-build
28
- rspec
29
- ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
30
- - store_artifacts:
31
- path: coverage
32
- destination: coverage
20
+ command: rspec
33
21
  ruby-2.3:
34
22
  <<: *build
35
23
  docker:
@@ -45,7 +33,11 @@ jobs:
45
33
  ruby-2.6:
46
34
  <<: *build
47
35
  docker:
48
- - image: circleci/ruby:2.5
36
+ - image: circleci/ruby:2.6
37
+ ruby-2.7:
38
+ <<: *build
39
+ docker:
40
+ - image: circleci/ruby:2.7
49
41
 
50
42
  workflows:
51
43
  version: 2
@@ -55,3 +47,4 @@ workflows:
55
47
  - ruby-2.4
56
48
  - ruby-2.5
57
49
  - ruby-2.6
50
+ - ruby-2.7
@@ -18,6 +18,20 @@ 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.0.2](https://github.com/koshigoe/brick_ftp/compare/v2.0.1...v2.0.2)
22
+ ----
23
+
24
+ [Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v2.0.1...v2.0.2)
25
+
26
+ ### Enhancements:
27
+
28
+ - [#132](https://github.com/koshigoe/brick_ftp/pull/132) Suppress warnings in Ruby 2.7
29
+
30
+ ### Fixed Bugs:
31
+
32
+ ### Breaking Changes:
33
+
34
+
21
35
  [v2.0.1](https://github.com/koshigoe/brick_ftp/compare/v2.0.0...v2.0.1)
22
36
  ----
23
37
 
data/README.md CHANGED
@@ -8,6 +8,8 @@ Files.com (BrickFTP)
8
8
 
9
9
  This is a [File.com (BrickFTP)](https://files.com/)'s _unofficial_ [RESTful API](https://developers.files.com/) Client.
10
10
 
11
+ **I recommend official SDK: [Files-com/files-sdk-ruby](https://github.com/Files-com/files-sdk-ruby)**
12
+
11
13
 
12
14
  Installation
13
15
  ----
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
 
23
23
  spec.required_ruby_version = '>= 2.3.0'
24
24
 
25
- spec.add_development_dependency 'bundler', '~> 1.16'
25
+ spec.add_development_dependency 'bundler', '>= 1.16'
26
26
  spec.add_development_dependency 'pry', '~> 0.11'
27
27
  spec.add_development_dependency 'rake', '~> 12.0'
28
28
  spec.add_development_dependency 'redcarpet', '~> 3.4'
@@ -37,7 +37,7 @@ module BrickFTP
37
37
  def call(group_id, user_id, params)
38
38
  res = client.put("/api/rest/v1/groups/#{group_id}/memberships/#{user_id}.json", membership: params.to_h.compact)
39
39
 
40
- BrickFTP::Types::GroupMembership.new(res.symbolize_keys)
40
+ BrickFTP::Types::GroupMembership.new(**res.symbolize_keys)
41
41
  end
42
42
  end
43
43
  end
@@ -39,7 +39,7 @@ module BrickFTP
39
39
  def call(path, params)
40
40
  res = client.post("/api/rest/v1/files/#{ERB::Util.url_encode(path)}", params.to_h.compact.merge(action: 'end'))
41
41
 
42
- BrickFTP::Types::File.new(res.symbolize_keys)
42
+ BrickFTP::Types::File.new(**res.symbolize_keys)
43
43
  end
44
44
  end
45
45
  end
@@ -43,7 +43,7 @@ module BrickFTP
43
43
  def call(path, params)
44
44
  res = client.post("/api/rest/v1/files/#{ERB::Util.url_encode(path)}", params.to_h.compact.merge(action: 'put'))
45
45
 
46
- BrickFTP::Types::Upload.new(res.symbolize_keys)
46
+ BrickFTP::Types::Upload.new(**res.symbolize_keys)
47
47
  end
48
48
  end
49
49
  end
@@ -29,7 +29,7 @@ module BrickFTP
29
29
  if recursive
30
30
  BrickFTP::Types::FolderContentsCount.new(total: res['data']['count'])
31
31
  else
32
- BrickFTP::Types::FolderContentsCount.new(res['data']['count'].symbolize_keys)
32
+ BrickFTP::Types::FolderContentsCount.new(**res['data']['count'].symbolize_keys)
33
33
  end
34
34
  end
35
35
  end
@@ -39,7 +39,7 @@ module BrickFTP
39
39
  def call(id, params)
40
40
  res = client.post("/api/rest/v1/users/#{id}/api_keys.json", params.to_h.compact)
41
41
 
42
- BrickFTP::Types::UserAPIKey.new(res.symbolize_keys)
42
+ BrickFTP::Types::UserAPIKey.new(**res.symbolize_keys)
43
43
  end
44
44
  end
45
45
  end
@@ -35,7 +35,7 @@ module BrickFTP
35
35
  def call(params)
36
36
  res = client.post('/api/rest/v1/behaviors.json', params.to_h.compact)
37
37
 
38
- BrickFTP::Types::Behavior.new(res.symbolize_keys)
38
+ BrickFTP::Types::Behavior.new(**res.symbolize_keys)
39
39
  end
40
40
  end
41
41
  end
@@ -33,7 +33,7 @@ module BrickFTP
33
33
  def call(params)
34
34
  res = client.post('/api/rest/v1/bundles.json', params.to_h.compact)
35
35
 
36
- BrickFTP::Types::Bundle.new(res.symbolize_keys)
36
+ BrickFTP::Types::Bundle.new(**res.symbolize_keys)
37
37
  end
38
38
  end
39
39
  end
@@ -35,7 +35,7 @@ module BrickFTP
35
35
  def call(params)
36
36
  res = client.post('/api/rest/v1/groups.json', params.to_h.compact)
37
37
 
38
- BrickFTP::Types::Group.new(res.symbolize_keys)
38
+ BrickFTP::Types::Group.new(**res.symbolize_keys)
39
39
  end
40
40
  end
41
41
  end
@@ -37,7 +37,7 @@ module BrickFTP
37
37
  def call(params)
38
38
  res = client.post('/api/rest/v1/notifications.json', params.to_h.compact)
39
39
 
40
- BrickFTP::Types::Notification.new(res.symbolize_keys)
40
+ BrickFTP::Types::Notification.new(**res.symbolize_keys)
41
41
  end
42
42
  end
43
43
  end
@@ -41,7 +41,7 @@ module BrickFTP
41
41
  def call(params)
42
42
  res = client.post('/api/rest/v1/permissions.json', params.to_h.compact)
43
43
 
44
- BrickFTP::Types::Permission.new(res.symbolize_keys)
44
+ BrickFTP::Types::Permission.new(**res.symbolize_keys)
45
45
  end
46
46
  end
47
47
  end
@@ -35,7 +35,7 @@ module BrickFTP
35
35
  def call(id, params)
36
36
  res = client.post("/api/rest/v1/users/#{id}/public_keys.json", params.to_h.compact)
37
37
 
38
- BrickFTP::Types::UserPublicKey.new(res.symbolize_keys)
38
+ BrickFTP::Types::UserPublicKey.new(**res.symbolize_keys)
39
39
  end
40
40
  end
41
41
  end
@@ -83,7 +83,7 @@ module BrickFTP
83
83
  def call(params)
84
84
  res = client.post('/api/rest/v1/users.json', params.to_h.compact)
85
85
 
86
- BrickFTP::Types::User.new(res.symbolize_keys)
86
+ BrickFTP::Types::User.new(**res.symbolize_keys)
87
87
  end
88
88
  end
89
89
  end
@@ -53,7 +53,7 @@ module BrickFTP
53
53
  def call(id, params)
54
54
  res = client.post("/api/rest/v1/groups/#{id}/users.json", user: params.to_h.compact)
55
55
 
56
- BrickFTP::Types::User.new(res.symbolize_keys)
56
+ BrickFTP::Types::User.new(**res.symbolize_keys)
57
57
  end
58
58
  end
59
59
  end
@@ -38,7 +38,7 @@ module BrickFTP
38
38
  res = client.get(endpoint)
39
39
  return nil if !res || res.empty?
40
40
 
41
- BrickFTP::Types::File.new(res.symbolize_keys)
41
+ BrickFTP::Types::File.new(**res.symbolize_keys)
42
42
  end
43
43
  end
44
44
  end
@@ -19,7 +19,7 @@ module BrickFTP
19
19
  def call(id)
20
20
  res = client.get("/api/rest/v1/api_keys/#{id}.json")
21
21
 
22
- BrickFTP::Types::UserAPIKey.new(res.symbolize_keys)
22
+ BrickFTP::Types::UserAPIKey.new(**res.symbolize_keys)
23
23
  end
24
24
  end
25
25
  end
@@ -19,7 +19,7 @@ module BrickFTP
19
19
  res = client.get("/api/rest/v1/behaviors/#{id}.json")
20
20
  return nil if !res || res.empty?
21
21
 
22
- BrickFTP::Types::Behavior.new(res.symbolize_keys)
22
+ BrickFTP::Types::Behavior.new(**res.symbolize_keys)
23
23
  end
24
24
  end
25
25
  end
@@ -19,7 +19,7 @@ module BrickFTP
19
19
  res = client.get("/api/rest/v1/bundles/#{id}.json")
20
20
  return nil if !res || res.empty?
21
21
 
22
- BrickFTP::Types::Bundle.new(res.symbolize_keys)
22
+ BrickFTP::Types::Bundle.new(**res.symbolize_keys)
23
23
  end
24
24
  end
25
25
  end
@@ -41,7 +41,7 @@ module BrickFTP
41
41
  def call(params)
42
42
  res = client.post('/api/rest/v1/bundles/zip.json', params.to_h.compact)
43
43
 
44
- BrickFTP::Types::BundleZip.new(res.symbolize_keys)
44
+ BrickFTP::Types::BundleZip.new(**res.symbolize_keys)
45
45
  end
46
46
  end
47
47
  end
@@ -42,7 +42,7 @@ module BrickFTP
42
42
  def call(params)
43
43
  res = client.post('/api/rest/v1/bundles/download.json', params.to_h.compact)
44
44
 
45
- BrickFTP::Types::FileInBundle.new(res.symbolize_keys)
45
+ BrickFTP::Types::FileInBundle.new(**res.symbolize_keys)
46
46
  end
47
47
  end
48
48
  end
@@ -20,7 +20,7 @@ module BrickFTP
20
20
  res = client.get("/api/rest/v1/groups/#{id}.json")
21
21
  return nil if !res || res.empty?
22
22
 
23
- BrickFTP::Types::Group.new(res.symbolize_keys)
23
+ BrickFTP::Types::Group.new(**res.symbolize_keys)
24
24
  end
25
25
  end
26
26
  end
@@ -19,7 +19,7 @@ module BrickFTP
19
19
  def call(id)
20
20
  res = client.get("/api/rest/v1/public_keys/#{id}.json")
21
21
 
22
- BrickFTP::Types::UserPublicKey.new(res.symbolize_keys)
22
+ BrickFTP::Types::UserPublicKey.new(**res.symbolize_keys)
23
23
  end
24
24
  end
25
25
  end
@@ -13,7 +13,7 @@ module BrickFTP
13
13
  def call
14
14
  res = client.get('/api/rest/v1/site/usage.json')
15
15
 
16
- BrickFTP::Types::SiteUsage.new(res.symbolize_keys)
16
+ BrickFTP::Types::SiteUsage.new(**res.symbolize_keys)
17
17
  end
18
18
  end
19
19
  end
@@ -20,7 +20,7 @@ module BrickFTP
20
20
  res = client.get("/api/rest/v1/users/#{id}.json")
21
21
  return nil if !res || res.empty?
22
22
 
23
- BrickFTP::Types::User.new(res.symbolize_keys)
23
+ BrickFTP::Types::User.new(**res.symbolize_keys)
24
24
  end
25
25
  end
26
26
  end
@@ -19,7 +19,7 @@ module BrickFTP
19
19
  def call(id)
20
20
  res = client.get("/api/rest/v1/users/#{id}/api_keys.json")
21
21
 
22
- res.map { |i| BrickFTP::Types::UserAPIKey.new(i.symbolize_keys) }
22
+ res.map { |i| BrickFTP::Types::UserAPIKey.new(**i.symbolize_keys) }
23
23
  end
24
24
  end
25
25
  end
@@ -17,7 +17,7 @@ module BrickFTP
17
17
  def call
18
18
  res = client.get('/api/rest/v1/behaviors.json')
19
19
 
20
- res.map { |i| BrickFTP::Types::Behavior.new(i.symbolize_keys) }
20
+ res.map { |i| BrickFTP::Types::Behavior.new(**i.symbolize_keys) }
21
21
  end
22
22
  end
23
23
  end
@@ -51,7 +51,7 @@ module BrickFTP
51
51
  end
52
52
  res = client.post(endpoint, params.to_h.compact)
53
53
 
54
- res.map { |i| BrickFTP::Types::BundleContent.new(i.symbolize_keys) }
54
+ res.map { |i| BrickFTP::Types::BundleContent.new(**i.symbolize_keys) }
55
55
  end
56
56
  end
57
57
  end
@@ -17,7 +17,7 @@ module BrickFTP
17
17
  def call
18
18
  res = client.get('/api/rest/v1/bundles.json')
19
19
 
20
- res.map { |i| BrickFTP::Types::Bundle.new(i.symbolize_keys) }
20
+ res.map { |i| BrickFTP::Types::Bundle.new(**i.symbolize_keys) }
21
21
  end
22
22
  end
23
23
  end
@@ -33,7 +33,7 @@ module BrickFTP
33
33
  endpoint = "#{endpoint}?recursive=1" if recursive
34
34
  res = client.get(endpoint)
35
35
 
36
- res.map { |i| BrickFTP::Types::Behavior.new(i.symbolize_keys) }
36
+ res.map { |i| BrickFTP::Types::Behavior.new(**i.symbolize_keys) }
37
37
  end
38
38
  end
39
39
  end
@@ -59,7 +59,7 @@ module BrickFTP
59
59
 
60
60
  res = client.get(endpoint)
61
61
 
62
- res.map { |i| BrickFTP::Types::File.new(i.symbolize_keys) }
62
+ res.map { |i| BrickFTP::Types::File.new(**i.symbolize_keys) }
63
63
  end
64
64
 
65
65
  private
@@ -17,7 +17,7 @@ module BrickFTP
17
17
  def call
18
18
  res = client.get('/api/rest/v1/groups.json')
19
19
 
20
- res.map { |i| BrickFTP::Types::Group.new(i.symbolize_keys) }
20
+ res.map { |i| BrickFTP::Types::Group.new(**i.symbolize_keys) }
21
21
  end
22
22
  end
23
23
  end
@@ -17,7 +17,7 @@ module BrickFTP
17
17
  def call
18
18
  res = client.get('/api/rest/v1/notifications.json')
19
19
 
20
- res.map { |i| BrickFTP::Types::Notification.new(i.symbolize_keys) }
20
+ res.map { |i| BrickFTP::Types::Notification.new(**i.symbolize_keys) }
21
21
  end
22
22
  end
23
23
  end
@@ -35,7 +35,7 @@ module BrickFTP
35
35
  endpoint = "#{endpoint}?path=#{ERB::Util.url_encode(path)}" unless path.nil?
36
36
  res = client.get(endpoint)
37
37
 
38
- res.map { |i| BrickFTP::Types::Permission.new(i.symbolize_keys) }
38
+ res.map { |i| BrickFTP::Types::Permission.new(**i.symbolize_keys) }
39
39
  end
40
40
  end
41
41
  end
@@ -19,7 +19,7 @@ module BrickFTP
19
19
  def call(id)
20
20
  res = client.get("/api/rest/v1/users/#{id}/public_keys.json")
21
21
 
22
- res.map { |i| BrickFTP::Types::UserPublicKey.new(i.symbolize_keys) }
22
+ res.map { |i| BrickFTP::Types::UserPublicKey.new(**i.symbolize_keys) }
23
23
  end
24
24
  end
25
25
  end
@@ -38,7 +38,7 @@ module BrickFTP
38
38
  endpoint = "#{endpoint}?#{query}" unless query.empty?
39
39
  res = client.get(endpoint)
40
40
 
41
- res.map { |i| BrickFTP::Types::User.new(i.symbolize_keys) }
41
+ res.map { |i| BrickFTP::Types::User.new(**i.symbolize_keys) }
42
42
  end
43
43
 
44
44
  private
@@ -17,7 +17,7 @@ module BrickFTP
17
17
  endpoint = "#{path}?#{query}" unless query.empty?
18
18
  res = client.get(endpoint)
19
19
 
20
- res.map { |i| BrickFTP::Types::History.new(i.symbolize_keys) }
20
+ res.map { |i| BrickFTP::Types::History.new(**i.symbolize_keys) }
21
21
  end
22
22
 
23
23
  def validate_page!(page)
@@ -22,7 +22,7 @@ module BrickFTP
22
22
  res = client.get("/api/rest/v1/users.json?q[username]=#{ERB::Util.url_encode(username)}")
23
23
  return nil if !res || res.empty?
24
24
 
25
- BrickFTP::Types::User.new(res.first.symbolize_keys)
25
+ BrickFTP::Types::User.new(**res.first.symbolize_keys)
26
26
  end
27
27
  end
28
28
  end
@@ -21,7 +21,7 @@ module BrickFTP
21
21
  def call(path)
22
22
  res = client.post("/api/rest/v1/files/#{ERB::Util.url_encode(path)}", action: 'put')
23
23
 
24
- BrickFTP::Types::Upload.new(res.symbolize_keys)
24
+ BrickFTP::Types::Upload.new(**res.symbolize_keys)
25
25
  end
26
26
  end
27
27
  end
@@ -19,7 +19,7 @@ module BrickFTP
19
19
  def call(id)
20
20
  res = client.post("/api/rest/v1/users/#{id}/unlock.json")
21
21
 
22
- BrickFTP::Types::User.new(res.symbolize_keys)
22
+ BrickFTP::Types::User.new(**res.symbolize_keys)
23
23
  end
24
24
  end
25
25
  end
@@ -32,7 +32,7 @@ module BrickFTP
32
32
  def call(id, params)
33
33
  res = client.patch("/api/rest/v1/behaviors/#{id}.json", params.to_h.compact)
34
34
 
35
- BrickFTP::Types::Behavior.new(res.symbolize_keys)
35
+ BrickFTP::Types::Behavior.new(**res.symbolize_keys)
36
36
  end
37
37
  end
38
38
  end
@@ -37,7 +37,7 @@ module BrickFTP
37
37
  def call(id, params)
38
38
  res = client.put("/api/rest/v1/groups/#{id}.json", params.to_h.compact)
39
39
 
40
- BrickFTP::Types::Group.new(res.symbolize_keys)
40
+ BrickFTP::Types::Group.new(**res.symbolize_keys)
41
41
  end
42
42
  end
43
43
  end
@@ -33,7 +33,7 @@ module BrickFTP
33
33
  def call(group_id, user_id, params)
34
34
  res = client.patch("/api/rest/v1/groups/#{group_id}/memberships/#{user_id}.json", membership: params.to_h.compact)
35
35
 
36
- BrickFTP::Types::GroupMembership.new(res.symbolize_keys)
36
+ BrickFTP::Types::GroupMembership.new(**res.symbolize_keys)
37
37
  end
38
38
  end
39
39
  end
@@ -94,7 +94,7 @@ module BrickFTP
94
94
  def call(id, params)
95
95
  res = client.put("/api/rest/v1/users/#{id}.json", params.to_h.compact)
96
96
 
97
- BrickFTP::Types::User.new(res.symbolize_keys)
97
+ BrickFTP::Types::User.new(**res.symbolize_keys)
98
98
  end
99
99
  end
100
100
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrickFTP
4
- VERSION = '2.0.1'
4
+ VERSION = '2.0.2'
5
5
  end
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brick_ftp
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.1
4
+ version: 2.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - koshigoe
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-12 00:00:00.000000000 Z
11
+ date: 2020-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.16'
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
26
  version: '1.16'
27
27
  - !ruby/object:Gem::Dependency
@@ -279,7 +279,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
279
279
  - !ruby/object:Gem::Version
280
280
  version: '0'
281
281
  requirements: []
282
- rubygems_version: 3.0.3
282
+ rubygems_version: 3.1.2
283
283
  signing_key:
284
284
  specification_version: 4
285
285
  summary: BrickFTP's REST API client.