mxhero-api 0.1.55 → 0.1.56
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -13
- data/.ruby-version +1 -1
- data/README.md +6 -0
- data/Rakefile +4 -3
- data/VERSION +1 -1
- data/lib/resources/group.rb +2 -2
- data/mxhero-api.gemspec +15 -14
- 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 +9 -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,15 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
ZWViZjkzZDZhYTkzZmUxZDUyMjVhZWU0NDg1Y2ZkYWMxY2Q4NWYzYg==
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: c0924d7f874b2a4f49b8d93c434e7517316fc6f5
|
4
|
+
data.tar.gz: 584781346abf7f021dd93a6f7d6fc0e5ec969ddf
|
7
5
|
SHA512:
|
8
|
-
metadata.gz:
|
9
|
-
|
10
|
-
YThiNjNhODJjYTc5ZTJmZjIzYzY4N2Y5NTMxMTliNDI3NjY1NDQwNWJlMDRh
|
11
|
-
MzVlZjEzNDMyZWM3ZTBmODlhMjI1ZTNjYThjYTk0OWEwOTNkMDM=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
MTAwNjVmODY5ZDRmOTYxNjA0NDkxYzAzZDZiODc3Njg0NmNmMjEwYmM5MDk5
|
14
|
-
M2QxNzIxOWI1ZTA5ZTI2Y2I0MTE2MjE5ZTgwM2MzNjkxMDE0OWZlN2Y4ZmM4
|
15
|
-
NTgzMmMzMGExMTdjNTJmZmJlM2I5NjRjOTQ3Y2QwMWMwMzNlOGU=
|
6
|
+
metadata.gz: 97fe711c5811627767b2b105a79c2b521092d9d42ce2bc326fc07893ca7685fcd9f5d1539484fb1559e475e4b700af5f52f629b638481096ed973301eca6c00c
|
7
|
+
data.tar.gz: 6b9f3957e2e2883fd12b08bfccbd68ce308222844bdbe92dafb5d02f6ef2b5b758f261acb75b7cda214ce48f5a4c829f78465a1b4b797788ca649547eeb0026c
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.3.0
|
data/README.md
CHANGED
@@ -81,3 +81,9 @@ Some examples, **complete documentation in the [API client documentation](http:/
|
|
81
81
|
## Complete documentation
|
82
82
|
|
83
83
|
Complete documentation in the [API client documentation](http://www.rubydoc.info/gems/mxhero-api/MxHero/API/Client.html)
|
84
|
+
|
85
|
+
## Build a new version
|
86
|
+
|
87
|
+
rake version:bump
|
88
|
+
gem build mxhero-api.gemspec
|
89
|
+
gem push mxhero-api-{{ version }}.gem
|
data/Rakefile
CHANGED
@@ -21,15 +21,16 @@ 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'
|
24
25
|
|
25
26
|
gem.files = `git ls-files`.split($\)
|
26
27
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
27
28
|
gem.require_paths = ["lib"]
|
28
29
|
|
29
|
-
gem.add_development_dependency('vcr', '
|
30
|
-
gem.add_development_dependency('webmock', '1.
|
30
|
+
gem.add_development_dependency('vcr', '3.0.1')
|
31
|
+
gem.add_development_dependency('webmock', '1.22.6')
|
31
32
|
|
32
|
-
gem.add_dependency('httpclient', '2.
|
33
|
+
gem.add_dependency('httpclient', '2.7.1')
|
33
34
|
|
34
35
|
end
|
35
36
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.56
|
data/lib/resources/group.rb
CHANGED
@@ -7,8 +7,8 @@ module MxHero::API
|
|
7
7
|
elements.each { |prop, value| send("#{prop}=", value) if respond_to?("#{prop}") }
|
8
8
|
end
|
9
9
|
|
10
|
-
def to_json
|
11
|
-
{ name: name, domain: domain, description: description }.to_json
|
10
|
+
def to_json(*args)
|
11
|
+
{ name: name, domain: domain, description: description }.to_json(*args)
|
12
12
|
end
|
13
13
|
end
|
14
14
|
|
data/mxhero-api.gemspec
CHANGED
@@ -1,20 +1,21 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
# stub: mxhero-api 0.1.
|
2
|
+
# stub: mxhero-api 0.1.56 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.56"
|
7
7
|
|
8
8
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
9
|
+
s.require_paths = ["lib"]
|
9
10
|
s.authors = ["Maximiliano Dello Russo", "Juan Pablo Royo", "mxHero"]
|
10
|
-
s.date = "2016-
|
11
|
+
s.date = "2016-04-01"
|
11
12
|
s.description = "A gem to provide easy access to the API of MxHero platform (http://www.mxhero.com/)"
|
12
13
|
s.email = ["maxidr@mxhero.com", "juanpablo.royo@gmail.com", "mxhero@mxhero.com"]
|
13
14
|
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"]
|
14
15
|
s.homepage = "http://github.com/mxhero/mxhero-api"
|
15
16
|
s.licenses = ["GPL-3"]
|
16
|
-
s.
|
17
|
-
s.rubygems_version = "2.1
|
17
|
+
s.required_ruby_version = Gem::Requirement.new(">= 2.3.0")
|
18
|
+
s.rubygems_version = "2.5.1"
|
18
19
|
s.summary = "A MxHero API client for ruby"
|
19
20
|
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"]
|
20
21
|
|
@@ -22,17 +23,17 @@ Gem::Specification.new do |s|
|
|
22
23
|
s.specification_version = 4
|
23
24
|
|
24
25
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
25
|
-
s.add_development_dependency(%q<vcr>, ["=
|
26
|
-
s.add_development_dependency(%q<webmock>, ["= 1.
|
27
|
-
s.add_runtime_dependency(%q<httpclient>, ["= 2.
|
26
|
+
s.add_development_dependency(%q<vcr>, ["= 3.0.1"])
|
27
|
+
s.add_development_dependency(%q<webmock>, ["= 1.22.6"])
|
28
|
+
s.add_runtime_dependency(%q<httpclient>, ["= 2.7.1"])
|
28
29
|
else
|
29
|
-
s.add_dependency(%q<vcr>, ["=
|
30
|
-
s.add_dependency(%q<webmock>, ["= 1.
|
31
|
-
s.add_dependency(%q<httpclient>, ["= 2.
|
30
|
+
s.add_dependency(%q<vcr>, ["= 3.0.1"])
|
31
|
+
s.add_dependency(%q<webmock>, ["= 1.22.6"])
|
32
|
+
s.add_dependency(%q<httpclient>, ["= 2.7.1"])
|
32
33
|
end
|
33
34
|
else
|
34
|
-
s.add_dependency(%q<vcr>, ["=
|
35
|
-
s.add_dependency(%q<webmock>, ["= 1.
|
36
|
-
s.add_dependency(%q<httpclient>, ["= 2.
|
35
|
+
s.add_dependency(%q<vcr>, ["= 3.0.1"])
|
36
|
+
s.add_dependency(%q<webmock>, ["= 1.22.6"])
|
37
|
+
s.add_dependency(%q<httpclient>, ["= 2.7.1"])
|
37
38
|
end
|
38
39
|
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
@@ -1,6 +1,6 @@
|
|
1
1
|
require_relative 'helper'
|
2
2
|
|
3
|
-
class GroupsTest <
|
3
|
+
class GroupsTest < Minitest::Test
|
4
4
|
def setup
|
5
5
|
@groups = MxHero::API::Groups.new(domain,
|
6
6
|
username: TEST_API_USER,
|
@@ -23,6 +23,14 @@ class GroupsTest < MiniTest::Unit::TestCase
|
|
23
23
|
end
|
24
24
|
end
|
25
25
|
|
26
|
+
def test_all_to_json
|
27
|
+
VCR.use_cassette('all_groups') do
|
28
|
+
groups = @groups.all
|
29
|
+
json = groups.to_json
|
30
|
+
assert json.is_a? String
|
31
|
+
end
|
32
|
+
end
|
33
|
+
|
26
34
|
def test_save
|
27
35
|
VCR.use_cassette('save_group') do
|
28
36
|
delete_all_groups
|
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.56
|
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-04-01 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: 3.0.1
|
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: 3.0.1
|
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.22.6
|
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.22.6
|
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.7.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.7.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
|
-
- .gitignore
|
67
|
-
- .ruby-gemset
|
68
|
-
- .ruby-version
|
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: 2.3.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.1
|
162
|
+
rubygems_version: 2.5.1
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: A MxHero API client for ruby
|