mxhero-api 0.1.42 → 0.1.52
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 +13 -5
- data/.gitignore +2 -0
- data/.ruby-version +1 -1
- data/Rakefile +3 -4
- data/VERSION +1 -1
- data/lib/mxhero-api.rb +50 -37
- data/mxhero-api.gemspec +14 -15
- data/test/test_directories.rb +1 -1
- data/test/test_domain.rb +1 -1
- data/test/test_dto.rb +1 -1
- data/test/test_feature.rb +1 -1
- data/test/test_groups.rb +1 -1
- data/test/test_mxhero_api.rb +1 -1
- data/test/test_mxhero_api_response.rb +1 -1
- data/test/test_resource.rb +1 -1
- metadata +15 -15
checksums.yaml
CHANGED
@@ -1,7 +1,15 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
NWUzODk1ZmJlYTBhOTdiMTE3NDFhNjQ0YjIwY2VmMzU4ODQyNzYzOA==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
YzkzM2RmNjViMWU3ZTc5MWRjNGRiZGRiNDFjYjAyNDc3ZjhiODNlYg==
|
5
7
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
MjZkNjZjYmI3NmNkMzQ2ZDk2OTQ0YzlhNDUzOGEwODYzOTAxYTU0N2MwOGE1
|
10
|
+
NmYxN2Y0OTY0NzMyMGUzODllZDYyNmQyZTkwZTk4ZDY2ZmZkMmRlMzg1NWUx
|
11
|
+
NzM0MDYyYjg5ZDg0NjBlNmUwYjYxMzRhMTI2Y2I3NjU3ZWViODk=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
M2U2YzRmMDJkNDk2M2YzNzRmMTBjYjNiOGQ1OWM1ZGIzYjdjOTUzMjFjZWJi
|
14
|
+
MzJjZTljOGVhMmViZDA4OWM5ZTQ3OGE5ZTA4MzViY2EzZTg1YzNhMTZhNzZm
|
15
|
+
MzZlODJiNzI1MTQwZTczMWQ4YWQ0YTY5ZDRjOGJhNWVkZmU1OWU=
|
data/.gitignore
CHANGED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
1.9.3-p448
|
data/Rakefile
CHANGED
@@ -21,16 +21,15 @@ spec = Gem::Specification.new do |gem|
|
|
21
21
|
gem.description = %q{A gem to provide easy access to the API of MxHero platform (http://www.mxhero.com/)}
|
22
22
|
gem.homepage = 'http://github.com/mxhero/mxhero-api'
|
23
23
|
gem.license = 'GPL-3'
|
24
|
-
gem.required_ruby_version = '>= 2.3.0'
|
25
24
|
|
26
25
|
gem.files = `git ls-files`.split($\)
|
27
26
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
28
27
|
gem.require_paths = ["lib"]
|
29
28
|
|
30
|
-
gem.add_development_dependency('vcr', '
|
31
|
-
gem.add_development_dependency('webmock', '1.
|
29
|
+
gem.add_development_dependency('vcr', '2.5.0')
|
30
|
+
gem.add_development_dependency('webmock', '1.11.0')
|
32
31
|
|
33
|
-
gem.add_dependency('httpclient', '2.
|
32
|
+
gem.add_dependency('httpclient', '2.6.0.1')
|
34
33
|
|
35
34
|
end
|
36
35
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.52
|
data/lib/mxhero-api.rb
CHANGED
@@ -61,7 +61,7 @@ module MxHero::API
|
|
61
61
|
#
|
62
62
|
# @return MxHero::API::Directories
|
63
63
|
def directories(domain)
|
64
|
-
@directories ||= Directories.new(domain, api_url: @service_url,
|
64
|
+
@directories ||= Directories.new(domain, api_url: @service_url,
|
65
65
|
username: @username, password: @password, verbose: @verbose)
|
66
66
|
end
|
67
67
|
|
@@ -106,7 +106,7 @@ module MxHero::API
|
|
106
106
|
# * :server [String]
|
107
107
|
# * :creationDate [Fixnum]
|
108
108
|
# * :updateDate [Fixnum]
|
109
|
-
# * :aliases
|
109
|
+
# * :aliases
|
110
110
|
# * :ldap
|
111
111
|
# * :totalElements
|
112
112
|
# * :totalPages
|
@@ -117,7 +117,7 @@ module MxHero::API
|
|
117
117
|
response = call(:get, domains_url)
|
118
118
|
raise 'an error ocurred when try to communicate with the API' if response.status != 200
|
119
119
|
response_as_a_hash = json_parse(response.content)
|
120
|
-
response_as_a_hash
|
120
|
+
response_as_a_hash
|
121
121
|
end
|
122
122
|
|
123
123
|
|
@@ -129,17 +129,17 @@ module MxHero::API
|
|
129
129
|
response.status == 200
|
130
130
|
end
|
131
131
|
|
132
|
-
|
132
|
+
|
133
133
|
# Create a new domain base on domain_obj hash
|
134
|
-
#
|
135
|
-
# @param domain_obj The domain to be created. For example:
|
134
|
+
#
|
135
|
+
# @param domain_obj The domain to be created. For example:
|
136
136
|
# [Hash] with detailed domain
|
137
137
|
# * :domain [String]
|
138
138
|
# * :server [String]
|
139
139
|
# * :inbound [Boolean]
|
140
140
|
# * :outbound [Boolean]
|
141
141
|
# * :features [Array<Hash>]
|
142
|
-
# * :cos [Hash]
|
142
|
+
# * :cos [Hash]
|
143
143
|
# * :source [String] (gapps|on_premise|ms_agent|office365)
|
144
144
|
# * :aliases [Array<String>]
|
145
145
|
# * :ldap [Hash]
|
@@ -152,15 +152,15 @@ module MxHero::API
|
|
152
152
|
end
|
153
153
|
|
154
154
|
# Create a new domain base on domain_obj hash
|
155
|
-
#
|
156
|
-
# @param domain_obj The domain to be created. For example:
|
155
|
+
#
|
156
|
+
# @param domain_obj The domain to be created. For example:
|
157
157
|
# [Hash] with detailed domain
|
158
158
|
# * :domain [String]
|
159
159
|
# * :server [String]
|
160
160
|
# * :inbound [Boolean]
|
161
161
|
# * :outbound [Boolean]
|
162
162
|
# * :features [Array<Hash>]
|
163
|
-
# * :cos [Hash]
|
163
|
+
# * :cos [Hash]
|
164
164
|
# * :source [String] (gapps|on_premise|ms_agent|office365)
|
165
165
|
# * :aliases [Array<String>]
|
166
166
|
# * :ldap [Hash]
|
@@ -176,8 +176,8 @@ module MxHero::API
|
|
176
176
|
response.status == 200
|
177
177
|
end
|
178
178
|
|
179
|
-
# Retrive the domain information
|
180
|
-
#
|
179
|
+
# Retrive the domain information
|
180
|
+
#
|
181
181
|
# @param name The domain name or id. For example: 'mydomain.com'
|
182
182
|
# @return [Domain] or nil if not found
|
183
183
|
#
|
@@ -203,7 +203,7 @@ module MxHero::API
|
|
203
203
|
# * :addres
|
204
204
|
# * :port
|
205
205
|
# * :sslFlag [Boolean]
|
206
|
-
# * :user
|
206
|
+
# * :user
|
207
207
|
# * :password
|
208
208
|
# * :filter
|
209
209
|
# * :base
|
@@ -225,8 +225,8 @@ module MxHero::API
|
|
225
225
|
# Retrive all the account from one domain
|
226
226
|
#
|
227
227
|
# @params [String] domain
|
228
|
-
# @params [String] filter_account the account to filter in the list. This can be a part of an account.
|
229
|
-
# @param [Hash] refinement
|
228
|
+
# @params [String] filter_account the account to filter in the list. This can be a part of an account.
|
229
|
+
# @param [Hash] refinement
|
230
230
|
# @option refinement [Fixnum] :limit of elements per page
|
231
231
|
# @option refinement [Fixnum] :offset number of page (start in 1)
|
232
232
|
# @option refinement [String] :account filter accounts that start with this value
|
@@ -257,7 +257,7 @@ module MxHero::API
|
|
257
257
|
without_group = params.delete(:without_group) || false
|
258
258
|
limit, offset = params.values_at(:limit, :offset)
|
259
259
|
|
260
|
-
if without_group
|
260
|
+
if without_group
|
261
261
|
url = accounts_without_group_url(domain, filter_account)
|
262
262
|
else
|
263
263
|
url = paginate accounts_by_domain_url(domain, filter_account), { limit: limit, offset: offset }
|
@@ -267,7 +267,7 @@ module MxHero::API
|
|
267
267
|
end
|
268
268
|
|
269
269
|
def accounts_without_group_url(domain, filter_account)
|
270
|
-
domain_by_id_url(domain) + "/groups/accounts/available?account=#{filter_account}"
|
270
|
+
domain_by_id_url(domain) + "/groups/accounts/available?account=#{filter_account}"
|
271
271
|
end
|
272
272
|
|
273
273
|
def verbose?
|
@@ -279,7 +279,7 @@ module MxHero::API
|
|
279
279
|
end
|
280
280
|
|
281
281
|
# @param domain [String]
|
282
|
-
# @param [Hash] msg
|
282
|
+
# @param [Hash] msg
|
283
283
|
# @option msg [String] :domain
|
284
284
|
# @option msg [Boolean] :twoWays
|
285
285
|
# @option msg [Boolean] :enabled
|
@@ -296,10 +296,10 @@ module MxHero::API
|
|
296
296
|
response = call(:post, url, msg.to_json, throw_exception: false)
|
297
297
|
parse_response(response)
|
298
298
|
end
|
299
|
-
|
299
|
+
|
300
300
|
## Create a rule
|
301
301
|
##
|
302
|
-
## @param [Hash] msg
|
302
|
+
## @param [Hash] msg
|
303
303
|
## @option msg [String] :domain
|
304
304
|
## @option msg [Boolean] :twoWays
|
305
305
|
## @option msg [Boolean] :enabled
|
@@ -343,7 +343,7 @@ module MxHero::API
|
|
343
343
|
# @return [MxHero::API::Response] reponse
|
344
344
|
# the key :msg contains a Hash with the key, value of any property.
|
345
345
|
# Example:
|
346
|
-
#
|
346
|
+
#
|
347
347
|
# { 'email': 'test@mxhero.com', 'name': 'John', 'lastname': 'Doe', ... }
|
348
348
|
#
|
349
349
|
def account_properties(domain, account)
|
@@ -385,13 +385,13 @@ module MxHero::API
|
|
385
385
|
message << { account: account[:account], properties: properties, group: account[:group], domain: domain }
|
386
386
|
#message << { account: account[:account], properties: properties, group: account[:group] }
|
387
387
|
end
|
388
|
-
response = call(:put, url, message.to_json) # accounts to json
|
388
|
+
response = call(:put, url, message.to_json) # accounts to json
|
389
389
|
parse_response(response)
|
390
390
|
end
|
391
391
|
|
392
392
|
# @return [Hash|String|nil] can return a hash with the key and value of any
|
393
393
|
# system property. If use a parameter (key) return the string of this value.
|
394
|
-
# In the two cases return nil when not found values
|
394
|
+
# In the two cases return nil when not found values
|
395
395
|
#
|
396
396
|
def system_properties(key = nil)
|
397
397
|
response = call(:get, system_properties_url(key))
|
@@ -405,7 +405,7 @@ module MxHero::API
|
|
405
405
|
return parsed[:value]
|
406
406
|
end
|
407
407
|
end
|
408
|
-
|
408
|
+
|
409
409
|
nil
|
410
410
|
end
|
411
411
|
|
@@ -417,7 +417,7 @@ module MxHero::API
|
|
417
417
|
else
|
418
418
|
call(:put, system_properties_url(key), property)
|
419
419
|
end
|
420
|
-
|
420
|
+
|
421
421
|
parse_response(response).success?
|
422
422
|
end
|
423
423
|
|
@@ -446,7 +446,7 @@ module MxHero::API
|
|
446
446
|
domains
|
447
447
|
end
|
448
448
|
|
449
|
-
# Fetch the user
|
449
|
+
# Fetch the user
|
450
450
|
# @return [MxHero::API::Response | nil]
|
451
451
|
def fetch_user(user)
|
452
452
|
response = call(:get, user_url(user))
|
@@ -458,7 +458,7 @@ module MxHero::API
|
|
458
458
|
|
459
459
|
|
460
460
|
# Create a new user
|
461
|
-
# @param [Hash] user_info
|
461
|
+
# @param [Hash] user_info
|
462
462
|
# @option user_info [String] :name
|
463
463
|
# @option user_info [String] :lastName
|
464
464
|
# @option user_info [String] :notifyEmail
|
@@ -472,7 +472,7 @@ module MxHero::API
|
|
472
472
|
user = {
|
473
473
|
name: "", lastName: "", notifyEmail: "",
|
474
474
|
userName: "", locale: "en_US", password: "1234",
|
475
|
-
authorities: ["ROLE_DOMAIN_ADMIN"],
|
475
|
+
authorities: ["ROLE_DOMAIN_ADMIN"],
|
476
476
|
created: DateTime.now.strftime('%Q'),
|
477
477
|
domains: domains.map { |domain| { domain: domain } }
|
478
478
|
}
|
@@ -491,9 +491,18 @@ module MxHero::API
|
|
491
491
|
response.status == 200
|
492
492
|
end
|
493
493
|
|
494
|
+
# Unassociate specific domain from an user admin
|
495
|
+
# @param [String] user
|
496
|
+
# @param [String] domain
|
497
|
+
#
|
498
|
+
def unassociate_user_domain(user, domain)
|
499
|
+
response = call(:delete, user_with_domain_url(user,domain), throw_exception: false)
|
500
|
+
response.status == 200
|
501
|
+
end
|
502
|
+
|
494
503
|
|
495
504
|
# Update user
|
496
|
-
# @param [Hash] user retrieve to update
|
505
|
+
# @param [Hash] user retrieve to update
|
497
506
|
#
|
498
507
|
# @param user_name [String]
|
499
508
|
#
|
@@ -501,7 +510,7 @@ module MxHero::API
|
|
501
510
|
response = call(:put, user_url(user_name), user.to_json, throw_exception: false)
|
502
511
|
parse_response(response)
|
503
512
|
end
|
504
|
-
|
513
|
+
|
505
514
|
# Validate if the an user and password match
|
506
515
|
#
|
507
516
|
def valid_user_credentials?(user, password)
|
@@ -509,7 +518,7 @@ module MxHero::API
|
|
509
518
|
response = call(:get, validate_user_credential_url)
|
510
519
|
response.status == 204
|
511
520
|
end
|
512
|
-
|
521
|
+
|
513
522
|
# --------------------------------------------------------------------------------------------------------------------------------
|
514
523
|
private
|
515
524
|
|
@@ -520,7 +529,7 @@ module MxHero::API
|
|
520
529
|
def user_url(user)
|
521
530
|
users_url + "/#{user}/"
|
522
531
|
end
|
523
|
-
|
532
|
+
|
524
533
|
def user_domains_url(user)
|
525
534
|
user_url(user) + "domains"
|
526
535
|
end
|
@@ -529,6 +538,10 @@ module MxHero::API
|
|
529
538
|
users_url + "/domain/#{domain}/"
|
530
539
|
end
|
531
540
|
|
541
|
+
def user_with_domain_url(user,domain)
|
542
|
+
user_url(user) + "domains/#{domain}/"
|
543
|
+
end
|
544
|
+
|
532
545
|
# Fetch an element from an URL. That element maybe not found
|
533
546
|
# @return a Hash when the element exist. Or return nil when not found.
|
534
547
|
#
|
@@ -537,16 +550,16 @@ module MxHero::API
|
|
537
550
|
response = call(:get, url)
|
538
551
|
return json_parse(response.content) if response.ok?
|
539
552
|
return nil if response.code == 404
|
540
|
-
|
553
|
+
|
541
554
|
error = msg[:on_error] + " HTTP code: #{response.code}"
|
542
555
|
if response.content.include?('message')
|
543
556
|
hash = json_parse(response.content)
|
544
557
|
error << " Response message: #{hash[:message]}"
|
545
558
|
end
|
546
|
-
|
559
|
+
|
547
560
|
raise error
|
548
561
|
end
|
549
|
-
|
562
|
+
|
550
563
|
def remap_properties(properties)
|
551
564
|
return nil if properties.nil?
|
552
565
|
properties.keys.map { |name| { name: name, value: properties[name] } }
|
@@ -554,7 +567,7 @@ module MxHero::API
|
|
554
567
|
|
555
568
|
# Complete the URL with the pagination info (:limit and :offset)
|
556
569
|
# @param [String] original URL. Ex.: http://www.example.com/api/accounts
|
557
|
-
# @param [Hash] pagination
|
570
|
+
# @param [Hash] pagination
|
558
571
|
# @option pagination [Fixnum] :limit of elements per page
|
559
572
|
# @option pagination [Fixnum] :offset number of page (start in 1)
|
560
573
|
#
|
@@ -588,7 +601,7 @@ module MxHero::API
|
|
588
601
|
hash = json.nil? || json.empty? ? opts[:on_empty] : json_parse(json)
|
589
602
|
Response.new(response.code, hash)
|
590
603
|
end
|
591
|
-
|
604
|
+
|
592
605
|
def rules_for_domain_url(domain)
|
593
606
|
service_url + "/domains/#{domain}/rules"
|
594
607
|
end
|
data/mxhero-api.gemspec
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: mxhero-api 0.1.
|
2
|
+
# stub: mxhero-api 0.1.52 ruby lib
|
3
3
|
|
4
4
|
Gem::Specification.new do |s|
|
5
5
|
s.name = "mxhero-api"
|
6
|
-
s.version = "0.1.
|
6
|
+
s.version = "0.1.52"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
-
s.require_paths = ["lib"]
|
10
9
|
s.authors = ["Maximiliano Dello Russo", "Juan Pablo Royo", "mxHero"]
|
11
|
-
s.date = "2016-
|
10
|
+
s.date = "2016-03-23"
|
12
11
|
s.description = "A gem to provide easy access to the API of MxHero platform (http://www.mxhero.com/)"
|
13
12
|
s.email = ["maxidr@mxhero.com", "juanpablo.royo@gmail.com", "mxhero@mxhero.com"]
|
14
13
|
s.files = [".gitignore", ".ruby-gemset", ".ruby-version", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "VERSION", "lib/communication.rb", "lib/directories.rb", "lib/dto.rb", "lib/groups.rb", "lib/mxhero-api.rb", "lib/resource.rb", "lib/resources/account.rb", "lib/resources/domain.rb", "lib/resources/group.rb", "lib/urls.rb", "mxhero-api.gemspec", "test/fixtures/api/account_properties.yml", "test/fixtures/api/account_properties_not_found.yml", "test/fixtures/api/accounts.yml", "test/fixtures/api/accounts_filtered.yml", "test/fixtures/api/accounts_from_domain.yml", "test/fixtures/api/accounts_from_domain_paginated.yml", "test/fixtures/api/accounts_without_group.yml", "test/fixtures/api/add_an_inexistent_account_to_group.yml", "test/fixtures/api/add_and_remove_account.yml", "test/fixtures/api/add_feature.yml", "test/fixtures/api/all_groups.yml", "test/fixtures/api/associate_user_domain.yml", "test/fixtures/api/create_directory.yml", "test/fixtures/api/create_domain.yml", "test/fixtures/api/create_rule_for_domain.yml", "test/fixtures/api/create_user.yml", "test/fixtures/api/delete_directory.yml", "test/fixtures/api/delete_group.yml", "test/fixtures/api/delete_rule.yml", "test/fixtures/api/domain_by_id.yml", "test/fixtures/api/domain_by_id_not_found.yml", "test/fixtures/api/domain_rule.yml", "test/fixtures/api/domains.yml", "test/fixtures/api/fetch_directory.yml", "test/fixtures/api/fetch_user.yml", "test/fixtures/api/ldap_info.yml", "test/fixtures/api/move_to_trial.yml", "test/fixtures/api/refresh_directory.yml", "test/fixtures/api/remove_account_from_group_twice.yml", "test/fixtures/api/remove_inexistente_account_from_group.yml", "test/fixtures/api/rule_status.yml", "test/fixtures/api/rules_for_domain.yml", "test/fixtures/api/rules_for_domain_by_component.yml", "test/fixtures/api/save_group.yml", "test/fixtures/api/system_properties.yml", "test/fixtures/api/system_properties_create.yml", "test/fixtures/api/system_properties_element.yml", "test/fixtures/api/test_domain.yml", "test/fixtures/api/update_account_properties.yml", "test/fixtures/api/update_accounts_group_scope.yml", "test/fixtures/api/update_accounts_properties_scope.yml", "test/fixtures/api/update_directory.yml", "test/fixtures/api/update_rule.yml", "test/fixtures/api/update_user.yml", "test/fixtures/api/user_domains.yml", "test/fixtures/api/users_for_domain.yml", "test/fixtures/api/validate_user_credential.yml", "test/fixtures/domain.rb", "test/helper.rb", "test/test_directories.rb", "test/test_domain.rb", "test/test_dto.rb", "test/test_feature.rb", "test/test_groups.rb", "test/test_mxhero_api.rb", "test/test_mxhero_api_response.rb", "test/test_resource.rb"]
|
15
14
|
s.homepage = "http://github.com/mxhero/mxhero-api"
|
16
15
|
s.licenses = ["GPL-3"]
|
17
|
-
s.
|
18
|
-
s.rubygems_version = "2.
|
16
|
+
s.require_paths = ["lib"]
|
17
|
+
s.rubygems_version = "2.1.9"
|
19
18
|
s.summary = "A MxHero API client for ruby"
|
20
19
|
s.test_files = ["test/fixtures/api/account_properties.yml", "test/fixtures/api/account_properties_not_found.yml", "test/fixtures/api/accounts.yml", "test/fixtures/api/accounts_filtered.yml", "test/fixtures/api/accounts_from_domain.yml", "test/fixtures/api/accounts_from_domain_paginated.yml", "test/fixtures/api/accounts_without_group.yml", "test/fixtures/api/add_an_inexistent_account_to_group.yml", "test/fixtures/api/add_and_remove_account.yml", "test/fixtures/api/add_feature.yml", "test/fixtures/api/all_groups.yml", "test/fixtures/api/associate_user_domain.yml", "test/fixtures/api/create_directory.yml", "test/fixtures/api/create_domain.yml", "test/fixtures/api/create_rule_for_domain.yml", "test/fixtures/api/create_user.yml", "test/fixtures/api/delete_directory.yml", "test/fixtures/api/delete_group.yml", "test/fixtures/api/delete_rule.yml", "test/fixtures/api/domain_by_id.yml", "test/fixtures/api/domain_by_id_not_found.yml", "test/fixtures/api/domain_rule.yml", "test/fixtures/api/domains.yml", "test/fixtures/api/fetch_directory.yml", "test/fixtures/api/fetch_user.yml", "test/fixtures/api/ldap_info.yml", "test/fixtures/api/move_to_trial.yml", "test/fixtures/api/refresh_directory.yml", "test/fixtures/api/remove_account_from_group_twice.yml", "test/fixtures/api/remove_inexistente_account_from_group.yml", "test/fixtures/api/rule_status.yml", "test/fixtures/api/rules_for_domain.yml", "test/fixtures/api/rules_for_domain_by_component.yml", "test/fixtures/api/save_group.yml", "test/fixtures/api/system_properties.yml", "test/fixtures/api/system_properties_create.yml", "test/fixtures/api/system_properties_element.yml", "test/fixtures/api/test_domain.yml", "test/fixtures/api/update_account_properties.yml", "test/fixtures/api/update_accounts_group_scope.yml", "test/fixtures/api/update_accounts_properties_scope.yml", "test/fixtures/api/update_directory.yml", "test/fixtures/api/update_rule.yml", "test/fixtures/api/update_user.yml", "test/fixtures/api/user_domains.yml", "test/fixtures/api/users_for_domain.yml", "test/fixtures/api/validate_user_credential.yml", "test/fixtures/domain.rb", "test/helper.rb", "test/test_directories.rb", "test/test_domain.rb", "test/test_dto.rb", "test/test_feature.rb", "test/test_groups.rb", "test/test_mxhero_api.rb", "test/test_mxhero_api_response.rb", "test/test_resource.rb"]
|
21
20
|
|
@@ -23,17 +22,17 @@ Gem::Specification.new do |s|
|
|
23
22
|
s.specification_version = 4
|
24
23
|
|
25
24
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
26
|
-
s.add_development_dependency(%q<vcr>, ["=
|
27
|
-
s.add_development_dependency(%q<webmock>, ["= 1.
|
28
|
-
s.add_runtime_dependency(%q<httpclient>, ["= 2.
|
25
|
+
s.add_development_dependency(%q<vcr>, ["= 2.5.0"])
|
26
|
+
s.add_development_dependency(%q<webmock>, ["= 1.11.0"])
|
27
|
+
s.add_runtime_dependency(%q<httpclient>, ["= 2.6.0.1"])
|
29
28
|
else
|
30
|
-
s.add_dependency(%q<vcr>, ["=
|
31
|
-
s.add_dependency(%q<webmock>, ["= 1.
|
32
|
-
s.add_dependency(%q<httpclient>, ["= 2.
|
29
|
+
s.add_dependency(%q<vcr>, ["= 2.5.0"])
|
30
|
+
s.add_dependency(%q<webmock>, ["= 1.11.0"])
|
31
|
+
s.add_dependency(%q<httpclient>, ["= 2.6.0.1"])
|
33
32
|
end
|
34
33
|
else
|
35
|
-
s.add_dependency(%q<vcr>, ["=
|
36
|
-
s.add_dependency(%q<webmock>, ["= 1.
|
37
|
-
s.add_dependency(%q<httpclient>, ["= 2.
|
34
|
+
s.add_dependency(%q<vcr>, ["= 2.5.0"])
|
35
|
+
s.add_dependency(%q<webmock>, ["= 1.11.0"])
|
36
|
+
s.add_dependency(%q<httpclient>, ["= 2.6.0.1"])
|
38
37
|
end
|
39
38
|
end
|
data/test/test_directories.rb
CHANGED
data/test/test_domain.rb
CHANGED
data/test/test_dto.rb
CHANGED
data/test/test_feature.rb
CHANGED
data/test/test_groups.rb
CHANGED
data/test/test_mxhero_api.rb
CHANGED
data/test/test_resource.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mxhero-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.52
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Maximiliano Dello Russo
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-03-23 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: vcr
|
@@ -18,42 +18,42 @@ dependencies:
|
|
18
18
|
requirements:
|
19
19
|
- - '='
|
20
20
|
- !ruby/object:Gem::Version
|
21
|
-
version:
|
21
|
+
version: 2.5.0
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
25
|
requirements:
|
26
26
|
- - '='
|
27
27
|
- !ruby/object:Gem::Version
|
28
|
-
version:
|
28
|
+
version: 2.5.0
|
29
29
|
- !ruby/object:Gem::Dependency
|
30
30
|
name: webmock
|
31
31
|
requirement: !ruby/object:Gem::Requirement
|
32
32
|
requirements:
|
33
33
|
- - '='
|
34
34
|
- !ruby/object:Gem::Version
|
35
|
-
version: 1.
|
35
|
+
version: 1.11.0
|
36
36
|
type: :development
|
37
37
|
prerelease: false
|
38
38
|
version_requirements: !ruby/object:Gem::Requirement
|
39
39
|
requirements:
|
40
40
|
- - '='
|
41
41
|
- !ruby/object:Gem::Version
|
42
|
-
version: 1.
|
42
|
+
version: 1.11.0
|
43
43
|
- !ruby/object:Gem::Dependency
|
44
44
|
name: httpclient
|
45
45
|
requirement: !ruby/object:Gem::Requirement
|
46
46
|
requirements:
|
47
47
|
- - '='
|
48
48
|
- !ruby/object:Gem::Version
|
49
|
-
version: 2.
|
49
|
+
version: 2.6.0.1
|
50
50
|
type: :runtime
|
51
51
|
prerelease: false
|
52
52
|
version_requirements: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - '='
|
55
55
|
- !ruby/object:Gem::Version
|
56
|
-
version: 2.
|
56
|
+
version: 2.6.0.1
|
57
57
|
description: A gem to provide easy access to the API of MxHero platform (http://www.mxhero.com/)
|
58
58
|
email:
|
59
59
|
- maxidr@mxhero.com
|
@@ -63,9 +63,9 @@ executables: []
|
|
63
63
|
extensions: []
|
64
64
|
extra_rdoc_files: []
|
65
65
|
files:
|
66
|
-
-
|
67
|
-
-
|
68
|
-
-
|
66
|
+
- .gitignore
|
67
|
+
- .ruby-gemset
|
68
|
+
- .ruby-version
|
69
69
|
- Gemfile
|
70
70
|
- LICENSE.txt
|
71
71
|
- README.md
|
@@ -149,17 +149,17 @@ require_paths:
|
|
149
149
|
- lib
|
150
150
|
required_ruby_version: !ruby/object:Gem::Requirement
|
151
151
|
requirements:
|
152
|
-
- -
|
152
|
+
- - ! '>='
|
153
153
|
- !ruby/object:Gem::Version
|
154
|
-
version:
|
154
|
+
version: '0'
|
155
155
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
156
156
|
requirements:
|
157
|
-
- -
|
157
|
+
- - ! '>='
|
158
158
|
- !ruby/object:Gem::Version
|
159
159
|
version: '0'
|
160
160
|
requirements: []
|
161
161
|
rubyforge_project:
|
162
|
-
rubygems_version: 2.
|
162
|
+
rubygems_version: 2.1.9
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: A MxHero API client for ruby
|