zm-ruby-client 2.1.0 → 2.1.2

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: b7e939168149edeb472b2e33930cfbbe97a45d8bd7012a1200df9dfe7c635f47
4
- data.tar.gz: 7508c98743481ad485843e3a611efe75d6d5328107e546fbbcabc7ab8fab29ce
3
+ metadata.gz: b3e67566909db33a750b630f846b0e95f049b843a1a57e66c6ca41ab0efbb031
4
+ data.tar.gz: 731cba08c585da51cdf0063c5bf2ade82352bd0a124bb293948947fa31dd9e94
5
5
  SHA512:
6
- metadata.gz: 03ab31a3733a6add8cb01b88297536dcf6203cc29ec875e27cc0914b00357d993d0195597d0fa188c2bddc6e78835358d453538e8e5535e192d69d9d61fb929c
7
- data.tar.gz: 22f3dbc7e82d70c4fc8311f36d181e0056d8c2c748a68c730c771053381b792e36802e878612a68d4b03150a50998f639b9c4027890a5453c06169809c2f0099
6
+ metadata.gz: 043c4dec94ddcc2cdd23aaeb7a8b30ba27fce1e21646274cb5692c444ca8c7d84429c2d1ff725dc4b69eca87d54b0eb7134978bbf4107ea1055df491874480e8
7
+ data.tar.gz: 8c51bfdb5dacf7a4acd1b95ea8aff795b3ff2ff8bfb1621c3c31108ce7034a471673fa3b3b34f336634d57d76a7d7ebf7a51061e0dc32b08e0132e060430c31f
data/Gemfile CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
2
2
 
3
3
  ruby ">= 2.7"
4
4
 
5
- gem 'addressable', '~> 2.8'
6
- gem 'faraday'
7
- gem 'faraday-multipart'
5
+ gem 'addressable', '>= 2.8.6'
6
+ gem 'faraday', '~> 2.9'
7
+ gem 'faraday-multipart', '>= 1.0.4'
8
8
  gem 'version_sorter', '~> 2.3'
@@ -19,10 +19,18 @@ module Zm
19
19
  valorise(item, k, v)
20
20
  end
21
21
 
22
- item.members.all = json[:dlm].map { |a| a[:_content] }.compact if json[:dlm].is_a?(Array)
23
- item.owners.all = json[:owners].first[:owner].map { |a| a[:name] }.compact if json[:owners].is_a?(Array)
22
+ unless item.zimbraMailForwardingAddress.is_a?(Array)
23
+ item.zimbraMailForwardingAddress = [item.zimbraMailForwardingAddress]
24
+ item.zimbraMailForwardingAddress.compact!
25
+ end
24
26
 
25
- # todo: ajouter dans les members les valeurs de zimbraMailForwardingAddress si members.all.empty?
27
+ if json[:dlm].is_a?(Array)
28
+ item.members.all = json[:dlm].map { |a| a[:_content] }.compact
29
+ elsif !item.zimbraMailForwardingAddress.empty?
30
+ item.members.all = item.zimbraMailForwardingAddress
31
+ end
32
+
33
+ item.owners.all = json[:owners].first[:owner].map { |a| a[:name] }.compact if json[:owners].is_a?(Array)
26
34
 
27
35
  item
28
36
  end
@@ -10,7 +10,7 @@ module Zm
10
10
  module VERSION
11
11
  MAJOR = 2
12
12
  MINOR = 1
13
- TINY = 0
13
+ TINY = 2
14
14
 
15
15
  STRING = [MAJOR, MINOR, TINY].compact.join('.')
16
16
  end
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.required_ruby_version = ">= 2.7"
16
16
  s.required_rubygems_version = ">= 1.8.11"
17
17
 
18
- s.license = 'GPL-3.0'
18
+ s.license = 'GPL-3.0-only'
19
19
 
20
20
  s.authors = ['Maxime Désécot']
21
21
  s.email = 'maxime.desecot@gmail.com'
@@ -24,13 +24,9 @@ Gem::Specification.new do |s|
24
24
  s.files = `git ls-files`.split("\n").reject { |path| path.start_with?('test/', 'examples/') }
25
25
  s.require_paths = ['lib']
26
26
 
27
- s.add_dependency('addressable', ['~> 2.8'])
28
- s.add_dependency('version_sorter', ['~> 2.3'])
29
-
30
- # s.add_dependency('faraday', ['>= 2.8.1'])
31
- s.add_runtime_dependency 'faraday', '~> 2.8', '>= 2.8.1'
32
- # s.add_dependency('faraday-multipart', ['1.0.4'])
33
- s.add_runtime_dependency 'faraday-multipart', '~> 1.0', '>= 1.0.4'
34
-
35
- s.add_runtime_dependency 'bundler', '~> 1.15', '>= 1.15.0'
27
+ s.add_dependency 'addressable', '>= 2.8.6'
28
+ s.add_dependency 'version_sorter', '~> 2.3'
29
+ s.add_dependency 'faraday', '~> 2.9'
30
+ s.add_dependency 'faraday-multipart', '>= 1.0.4'
31
+ s.add_dependency "bundler", ">= 1.15.0"
36
32
  end
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zm-ruby-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maxime Désécot
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-07 00:00:00.000000000 Z
11
+ date: 2024-02-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.8'
19
+ version: 2.8.6
20
20
  type: :runtime
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: '2.8'
26
+ version: 2.8.6
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: version_sorter
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -44,27 +44,18 @@ dependencies:
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '2.8'
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- version: 2.8.1
47
+ version: '2.9'
51
48
  type: :runtime
52
49
  prerelease: false
53
50
  version_requirements: !ruby/object:Gem::Requirement
54
51
  requirements:
55
52
  - - "~>"
56
53
  - !ruby/object:Gem::Version
57
- version: '2.8'
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- version: 2.8.1
54
+ version: '2.9'
61
55
  - !ruby/object:Gem::Dependency
62
56
  name: faraday-multipart
63
57
  requirement: !ruby/object:Gem::Requirement
64
58
  requirements:
65
- - - "~>"
66
- - !ruby/object:Gem::Version
67
- version: '1.0'
68
59
  - - ">="
69
60
  - !ruby/object:Gem::Version
70
61
  version: 1.0.4
@@ -72,9 +63,6 @@ dependencies:
72
63
  prerelease: false
73
64
  version_requirements: !ruby/object:Gem::Requirement
74
65
  requirements:
75
- - - "~>"
76
- - !ruby/object:Gem::Version
77
- version: '1.0'
78
66
  - - ">="
79
67
  - !ruby/object:Gem::Version
80
68
  version: 1.0.4
@@ -82,9 +70,6 @@ dependencies:
82
70
  name: bundler
83
71
  requirement: !ruby/object:Gem::Requirement
84
72
  requirements:
85
- - - "~>"
86
- - !ruby/object:Gem::Version
87
- version: '1.15'
88
73
  - - ">="
89
74
  - !ruby/object:Gem::Version
90
75
  version: 1.15.0
@@ -92,9 +77,6 @@ dependencies:
92
77
  prerelease: false
93
78
  version_requirements: !ruby/object:Gem::Requirement
94
79
  requirements:
95
- - - "~>"
96
- - !ruby/object:Gem::Version
97
- version: '1.15'
98
80
  - - ">="
99
81
  - !ruby/object:Gem::Version
100
82
  version: 1.15.0
@@ -338,7 +320,7 @@ files:
338
320
  - zm-ruby-client.gemspec
339
321
  homepage: https://github.com/RaoH37/zm-ruby-client
340
322
  licenses:
341
- - GPL-3.0
323
+ - GPL-3.0-only
342
324
  metadata: {}
343
325
  post_install_message:
344
326
  rdoc_options: []
@@ -355,7 +337,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
337
  - !ruby/object:Gem::Version
356
338
  version: 1.8.11
357
339
  requirements: []
358
- rubygems_version: 3.1.6
340
+ rubygems_version: 3.5.6
359
341
  signing_key:
360
342
  specification_version: 4
361
343
  summary: zm-ruby-client