brick_ftp 1.0.0 → 1.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: 776279ef2f09b842d7a59865c84df4f22ea890eda837d16d4aae614fe8e5e247
4
- data.tar.gz: 39033de2755ac6b275ef08c2803c223af2d226b2366645c1964e4e49d5289d6e
3
+ metadata.gz: a2af4ecd34af05635eded73b60b31e50f5be2bae550a35645d2ba6f907f922b8
4
+ data.tar.gz: b5e74f1754ed1ae26b2cf8dfb281c9c6ced3b3552237e5f486218663e22876fc
5
5
  SHA512:
6
- metadata.gz: 3e404fb4fde9f08d3f7cd1f1ee52b15337d53c8026d15116fb011dad26f63455edfc58aa6e1d89eb9e1b844cc179f042985200bc47e884d0b8c575f108350773
7
- data.tar.gz: d60af19f6f3ac2c547ba09248a89fa63ba70bdc1af017808fcf510e8da5c6d5e9a58a1b328ed1b605cb76dc23296425e05ff67bc78716e2c06281b7968ed32d3
6
+ metadata.gz: 669f99de8bb45d74bc228590668eb01f62483345702cd4829212da5159d27c783ab37ae7c92186346b8a2643f06911bf40776a17b1a99f3faba86e890999b642
7
+ data.tar.gz: 5dbeb251810e1b162345bd083f3ce8f39f124d3db43a26ce792f6cbb641a142e87725b726b7b3e24f97ba1f254452580332ac760c0b9787ce9fcd5827ba9bbcc
@@ -2,10 +2,10 @@ Changelog
2
2
  ====
3
3
 
4
4
 
5
- [unreleased](https://github.com/koshigoe/brick_ftp/compare/v1.0.0...master)
5
+ [unreleased](https://github.com/koshigoe/brick_ftp/compare/v1.0.1...master)
6
6
  ----
7
7
 
8
- [Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v1.0.0...master)
8
+ [Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v1.0.1...master)
9
9
 
10
10
  ### Enhancements:
11
11
 
@@ -14,6 +14,20 @@ Changelog
14
14
  ### Breaking Changes:
15
15
 
16
16
 
17
+ [v1.0.1](https://github.com/koshigoe/brick_ftp/compare/v1.0.0...v1.0.1)
18
+ ----
19
+
20
+ [Full Changelog](https://github.com/koshigoe/brick_ftp/compare/v1.0.0...v1.0.1)
21
+
22
+ ### Enhancements:
23
+
24
+ ### Fixed Bugs:
25
+
26
+ - [#117](https://github.com/koshigoe/brick_ftp/pull/117) Ignore undefined attributes.
27
+
28
+ ### Breaking Changes:
29
+
30
+
17
31
  [v1.0.0](https://github.com/koshigoe/brick_ftp/compare/v0.8.2...v1.0.0)
18
32
  ----
19
33
 
@@ -6,6 +6,7 @@ require 'brick_ftp/core_ext'
6
6
  require 'brick_ftp/utils'
7
7
  require 'brick_ftp/utils/chunk_io'
8
8
  require 'brick_ftp/types'
9
+ require 'brick_ftp/types/ignore_undefined_attributes'
9
10
  require 'brick_ftp/restful_api'
10
11
 
11
12
  module BrickFTP
@@ -22,6 +22,8 @@ module BrickFTP
22
22
  :behavior,
23
23
  :value,
24
24
  keyword_init: true
25
- )
25
+ ) do
26
+ prepend IgnoreUndefinedAttributes
27
+ end
26
28
  end
27
29
  end
@@ -29,6 +29,8 @@ module BrickFTP
29
29
  :expires_at,
30
30
  :username,
31
31
  keyword_init: true
32
- )
32
+ ) do
33
+ prepend IgnoreUndefinedAttributes
34
+ end
33
35
  end
34
36
  end
@@ -20,6 +20,8 @@ module BrickFTP
20
20
  :type,
21
21
  :size,
22
22
  keyword_init: true
23
- )
23
+ ) do
24
+ prepend IgnoreUndefinedAttributes
25
+ end
24
26
  end
25
27
  end
@@ -14,6 +14,8 @@ module BrickFTP
14
14
  'BundleZip',
15
15
  :download_uri,
16
16
  keyword_init: true
17
- )
17
+ ) do
18
+ prepend IgnoreUndefinedAttributes
19
+ end
18
20
  end
19
21
  end
@@ -40,6 +40,8 @@ module BrickFTP
40
40
  :download_uri,
41
41
  :subfolders_locked?,
42
42
  keyword_init: true
43
- )
43
+ ) do
44
+ prepend IgnoreUndefinedAttributes
45
+ end
44
46
  end
45
47
  end
@@ -20,6 +20,8 @@ module BrickFTP
20
20
  :size,
21
21
  :download_uri,
22
22
  keyword_init: true
23
- )
23
+ ) do
24
+ prepend IgnoreUndefinedAttributes
25
+ end
24
26
  end
25
27
  end
@@ -19,6 +19,8 @@ module BrickFTP
19
19
  :files,
20
20
  :folders,
21
21
  keyword_init: true
22
- )
22
+ ) do
23
+ prepend IgnoreUndefinedAttributes
24
+ end
23
25
  end
24
26
  end
@@ -26,6 +26,8 @@ module BrickFTP
26
26
  :usernames,
27
27
  :admin_ids,
28
28
  keyword_init: true
29
- )
29
+ ) do
30
+ prepend IgnoreUndefinedAttributes
31
+ end
30
32
  end
31
33
  end
@@ -22,6 +22,8 @@ module BrickFTP
22
22
  :user_id,
23
23
  :admin,
24
24
  keyword_init: true
25
- )
25
+ ) do
26
+ prepend IgnoreUndefinedAttributes
27
+ end
26
28
  end
27
29
  end
@@ -38,6 +38,8 @@ module BrickFTP
38
38
  :ip,
39
39
  :interface,
40
40
  keyword_init: true
41
- )
41
+ ) do
42
+ prepend IgnoreUndefinedAttributes
43
+ end
42
44
  end
43
45
  end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module BrickFTP
4
+ module Types
5
+ module IgnoreUndefinedAttributes
6
+ def initialize(**kwargs)
7
+ super(**members.each_with_object({}) { |k, m| m[k] = kwargs[k] })
8
+ end
9
+ end
10
+ end
11
+ end
@@ -26,6 +26,8 @@ module BrickFTP
26
26
  :send_interval,
27
27
  :unsubscribed,
28
28
  keyword_init: true
29
- )
29
+ ) do
30
+ prepend IgnoreUndefinedAttributes
31
+ end
30
32
  end
31
33
  end
@@ -30,6 +30,8 @@ module BrickFTP
30
30
  :permission,
31
31
  :recursive,
32
32
  keyword_init: true
33
- )
33
+ ) do
34
+ prepend IgnoreUndefinedAttributes
35
+ end
34
36
  end
35
37
  end
@@ -18,6 +18,8 @@ module BrickFTP
18
18
  :total_uploads,
19
19
  :total_downloads,
20
20
  keyword_init: true
21
- )
21
+ ) do
22
+ prepend IgnoreUndefinedAttributes
23
+ end
22
24
  end
23
25
  end
@@ -40,6 +40,8 @@ module BrickFTP
40
40
  :expires,
41
41
  :next_partsize,
42
42
  keyword_init: true
43
- )
43
+ ) do
44
+ prepend IgnoreUndefinedAttributes
45
+ end
44
46
  end
45
47
  end
@@ -74,6 +74,8 @@ module BrickFTP
74
74
  :lockout_expires,
75
75
  :admin_group_ids,
76
76
  keyword_init: true
77
- )
77
+ ) do
78
+ prepend IgnoreUndefinedAttributes
79
+ end
78
80
  end
79
81
  end
@@ -28,6 +28,8 @@ module BrickFTP
28
28
  :expires_at,
29
29
  :created_at,
30
30
  keyword_init: true
31
- )
31
+ ) do
32
+ prepend IgnoreUndefinedAttributes
33
+ end
32
34
  end
33
35
  end
@@ -23,6 +23,8 @@ module BrickFTP
23
23
  :fingerprint,
24
24
  :created_at,
25
25
  keyword_init: true
26
- )
26
+ ) do
27
+ prepend IgnoreUndefinedAttributes
28
+ end
27
29
  end
28
30
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BrickFTP
4
- VERSION = '1.0.0'
4
+ VERSION = '1.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: 1.0.0
4
+ version: 1.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: 2018-10-03 00:00:00.000000000 Z
11
+ date: 2018-11-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -258,6 +258,7 @@ files:
258
258
  - lib/brick_ftp/types/group.rb
259
259
  - lib/brick_ftp/types/group_membership.rb
260
260
  - lib/brick_ftp/types/history.rb
261
+ - lib/brick_ftp/types/ignore_undefined_attributes.rb
261
262
  - lib/brick_ftp/types/notification.rb
262
263
  - lib/brick_ftp/types/permission.rb
263
264
  - lib/brick_ftp/types/site_usage.rb