zm-ruby-client 2.2.2 → 2.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile +4 -4
- data/VERSION +1 -0
- data/bin/console +11 -0
- data/lib/zm/client/base/mailbox_object.rb +2 -3
- data/lib/zm/client/cluster/cluster.rb +5 -3
- data/lib/zm/client/version.rb +5 -10
- data/lib/zm/modules/common/zimbra-attrs.csv +1 -1
- data/lib/zm-ruby-client.rb +3 -0
- data/zm-ruby-client.gemspec +9 -9
- metadata +19 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3f0176570eea5284fb4ce8a121e404869861b0f82cd06138c7cfb8df80d0dfc9
|
4
|
+
data.tar.gz: '084eda0865dbec186aa919ce66cfff5cf99277b60c15946f5847ba45173f7fc5'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47887d91fc4d748e246f5fbe5e53ed64db3d51b61b3f56bcad44c6aaf38237dcaa82badeb0ff9f0d9035b32c25c83ddd88a450409024eacc225a6f7563e5cfa2
|
7
|
+
data.tar.gz: a2d322c41a879db813e8e523714c0d593db290b6082e42c926140d8676bc989335dfcb146dabe513e1b7e43901b81c8461932380399f99beec7aab61ec176a7b
|
data/Gemfile
CHANGED
@@ -2,7 +2,7 @@ source 'https://rubygems.org'
|
|
2
2
|
|
3
3
|
ruby ">= 2.7"
|
4
4
|
|
5
|
-
gem 'addressable', '
|
6
|
-
gem 'faraday', '
|
7
|
-
gem 'faraday-multipart', '
|
8
|
-
gem 'version_sorter', '
|
5
|
+
gem 'addressable', '2.8.7'
|
6
|
+
gem 'faraday', '>= 2.8.1'
|
7
|
+
gem 'faraday-multipart', '1.0.4'
|
8
|
+
gem 'version_sorter', '2.3.0'
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.2.5
|
data/bin/console
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# frozen_string_literal: true
|
3
|
+
|
4
|
+
lib = File.expand_path('../lib/', __dir__)
|
5
|
+
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
6
|
+
|
7
|
+
require 'zm-ruby-client'
|
8
|
+
puts "Zm::Client.version=#{Zm::Client.version}"
|
9
|
+
|
10
|
+
require 'irb'
|
11
|
+
IRB.start(__FILE__)
|
@@ -83,10 +83,9 @@ module Zm
|
|
83
83
|
end
|
84
84
|
|
85
85
|
def domain_key
|
86
|
-
return @domain_key if @domain_key
|
87
|
-
return @parent.domain_key(domain_name) if @parent.logged?
|
86
|
+
return @domain_key if defined?(@domain_key)
|
88
87
|
|
89
|
-
|
88
|
+
@parent.domain_key(domain_name)
|
90
89
|
end
|
91
90
|
|
92
91
|
def login
|
@@ -106,9 +106,11 @@ module Zm
|
|
106
106
|
alias distribution_lists distributionlists
|
107
107
|
|
108
108
|
def domain_key(domain_name)
|
109
|
-
|
110
|
-
|
111
|
-
|
109
|
+
if logged?
|
110
|
+
find_domain_key(domain_name)
|
111
|
+
else
|
112
|
+
@config.domain_key(domain_name)
|
113
|
+
end
|
112
114
|
end
|
113
115
|
|
114
116
|
def count_object(type)
|
data/lib/zm/client/version.rb
CHANGED
@@ -3,16 +3,11 @@
|
|
3
3
|
module Zm
|
4
4
|
# module client Zm::Client
|
5
5
|
module Client
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
MAJOR = 2
|
12
|
-
MINOR = 2
|
13
|
-
TINY = 2
|
14
|
-
|
15
|
-
STRING = [MAJOR, MINOR, TINY].compact.join('.')
|
6
|
+
class << self
|
7
|
+
def version
|
8
|
+
File.read(File.expand_path('../../../VERSION', __dir__)).strip
|
9
|
+
end
|
10
|
+
alias gem_version version
|
16
11
|
end
|
17
12
|
end
|
18
13
|
end
|
@@ -124,7 +124,7 @@ zimbraPrefTimeZoneId,"account,cos,domain","accountCosDomainInherited,domainAdmin
|
|
124
124
|
zimbraPrefUseTimeZoneListInCalendar,"account,cos","accountInherited,domainAdminModifiable",,single,,,boolean,,,,
|
125
125
|
zimbraPrefCalendarInitialView,"account,cos","accountInherited,domainAdminModifiable",,single,,,enum,"day,week,workWeek,month,list,year",,,
|
126
126
|
zimbraPrefImapSearchFoldersEnabled,"account,cos","accountInherited,domainAdminModifiable",,single,,,boolean,,,,
|
127
|
-
zimbraMailTransport,mailRecipient,,,single,,,astring,,320,,
|
127
|
+
zimbraMailTransport,"mailRecipient,domain",,,single,,,astring,,320,,
|
128
128
|
zimbraAuthLdapExternalDn,account,domainAdminModifiable,,single,,,,,256,,
|
129
129
|
zimbraPrefHtmlEditorDefaultFontFamily,"account,cos","accountInherited,domainAdminModifiable",,single,,,,,64,,
|
130
130
|
zimbraPrefHtmlEditorDefaultFontSize,"account,cos","accountInherited,domainAdminModifiable",,single,,,astring,,32,,
|
data/lib/zm-ruby-client.rb
CHANGED
@@ -1,3 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require 'zm/client'
|
4
|
+
|
5
|
+
Kernel.warn "⚠️ [DEPRECATION] memorization will not be supported in zm-ruby-client 3.0. Please do not use .all method as memorized items."
|
6
|
+
Kernel.warn "⚠️ [DEPRECATION] zm-ruby-client 3.0 will not support Ruby < 3.1"
|
data/zm-ruby-client.gemspec
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
lib = File.expand_path('
|
3
|
-
|
2
|
+
lib = File.expand_path('./lib/', __dir__)
|
3
|
+
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
|
4
4
|
|
5
|
-
require '
|
5
|
+
require 'zm-ruby-client'
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.name = 'zm-ruby-client'
|
10
|
-
s.version = Zm::Client
|
10
|
+
s.version = Zm::Client.version
|
11
11
|
s.date = `date '+%Y-%m-%d'`
|
12
12
|
s.summary = 'zm-ruby-client'
|
13
13
|
s.description = 'Zimbra Soap Librairy using SOAP Json interface'
|
@@ -24,9 +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', '
|
28
|
-
s.add_dependency 'version_sorter', '
|
29
|
-
s.add_dependency 'faraday', '
|
30
|
-
s.add_dependency 'faraday-multipart', '
|
27
|
+
s.add_dependency 'addressable', '2.8.7'
|
28
|
+
s.add_dependency 'version_sorter', '2.3.0'
|
29
|
+
s.add_dependency 'faraday', '>= 2.8.1'
|
30
|
+
s.add_dependency 'faraday-multipart', '1.0.4'
|
31
31
|
s.add_dependency "bundler", ">= 1.15.0"
|
32
|
-
end
|
32
|
+
end
|
metadata
CHANGED
@@ -1,69 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zm-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.5
|
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:
|
11
|
+
date: 2025-02-20 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.7
|
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.7
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: version_sorter
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - '='
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
33
|
+
version: 2.3.0
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - '='
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version:
|
40
|
+
version: 2.3.0
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: faraday
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 2.8.1
|
48
48
|
type: :runtime
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 2.8.1
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: faraday-multipart
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- -
|
59
|
+
- - '='
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: 1.0.4
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- -
|
66
|
+
- - '='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: 1.0.4
|
69
69
|
- !ruby/object:Gem::Dependency
|
@@ -91,6 +91,8 @@ files:
|
|
91
91
|
- LICENSE
|
92
92
|
- README.md
|
93
93
|
- SECURITY.md
|
94
|
+
- VERSION
|
95
|
+
- bin/console
|
94
96
|
- lib/zm-ruby-client.rb
|
95
97
|
- lib/zm/client.rb
|
96
98
|
- lib/zm/client/account.rb
|
@@ -338,7 +340,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
338
340
|
- !ruby/object:Gem::Version
|
339
341
|
version: 1.8.11
|
340
342
|
requirements: []
|
341
|
-
rubygems_version: 3.
|
343
|
+
rubygems_version: 3.3.7
|
342
344
|
signing_key:
|
343
345
|
specification_version: 4
|
344
346
|
summary: zm-ruby-client
|