mxhero-api 1.1.2 → 1.1.3

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
  SHA1:
3
- metadata.gz: 42101d6ead08f5bf94216d97e70f91a1a673c2bc
4
- data.tar.gz: fe1d5b51c2c95cc3896e717c384d4bcfaee4ba87
3
+ metadata.gz: bd9797bb2cc13eac686ff6ce3c752396de59706b
4
+ data.tar.gz: 9bc4cbf33c069f94bc9bf3e1fb762a9b27e0962d
5
5
  SHA512:
6
- metadata.gz: e96b8b42ae8304bea0fab174c6fc54243221082cf491005b853a3503c6b841947fac11d6c0798f7cdb4d3b616b419669669945846e84abcd8f24c514ee803c11
7
- data.tar.gz: be1741093de3f0dfa6c0e844fcd71321962965a27849da2278a3200d4d077584d5632048676ababe5631e22743f7e90585d0ded9699c224c022345c69a5d1b04
6
+ metadata.gz: 1dde47f1599375cad99c0fd481f37ec44e25ba548a5c09393c007efff1662efe53c4e68f0110b6d5435b865639b62fc5dfdd82f4518b5c2ac0da50ee048982b8
7
+ data.tar.gz: 90e1f1bb6c9c12b9e6f76ebec3afc78fd79d005ff658c3387ad1be66e8c313e1167ffcbfe74012b5eab750963a5a9383edafa4c9f8d185451a593e95a5a85036
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.2
1
+ 1.1.3
@@ -504,6 +504,40 @@ module MxHero::API
504
504
  response.status == 200
505
505
  end
506
506
 
507
+ # test_msg example:
508
+ # {
509
+ # "matching":{
510
+ # "matcher": [
511
+ # {
512
+ # "default":false,
513
+ # "type":"regex",
514
+ # "regex":"(.*)@(.*)",
515
+ # "toValue":"${2}/${1}/${0}"
516
+ # }
517
+ # ],
518
+ # "placeholder":"email"
519
+ # },
520
+ # "value":"smith@example.org",
521
+ # "key":"email"
522
+ # }
523
+ #
524
+ # Response
525
+ # HTTP: 200 OK
526
+ # {"result":"example.org/smith/smith@example.org"}
527
+ #
528
+ # On error, response:
529
+ # HTTP Status 500
530
+ # {
531
+ # "status": 500,
532
+ # "code": 500,
533
+ # "developerMessage": "Dangling meta character '*' near index 0\n*.(.*)@(.*)\n^",
534
+ # "moreInfoUrl": "mailto:support@mxhero.com"
535
+ # }
536
+ def regex_tester(test_msg)
537
+ response = call(:put, service_url + '/regex/check/pattern', test_msg.to_json, throw_exception: false)
538
+ parse_response(response)
539
+ end
540
+
507
541
  # --------------------------------------------------------------------------------------------------------------------------------
508
542
  private
509
543
 
@@ -1,14 +1,14 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: mxhero-api 1.1.2 ruby lib
2
+ # stub: mxhero-api 1.1.3 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "mxhero-api"
6
- s.version = "1.1.2"
6
+ s.version = "1.1.3"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
9
9
  s.require_paths = ["lib"]
10
10
  s.authors = ["Maximiliano Dello Russo", "Juan Pablo Royo", "mxHero"]
11
- s.date = "2016-05-24"
11
+ s.date = "2016-06-09"
12
12
  s.description = "A gem to provide easy access to the API of MxHero platform (http://www.mxhero.com/)"
13
13
  s.email = ["maxidr@mxhero.com", "juanpablo.royo@gmail.com", "mxhero@mxhero.com"]
14
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/pst-converter.rb", "lib/resource.rb", "lib/resources/account.rb", "lib/resources/domain.rb", "lib/resources/group.rb", "lib/response.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/pst_inactive_tasks.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_pst-converter.rb", "test/test_resource.rb"]
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: 1.1.2
4
+ version: 1.1.3
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-05-24 00:00:00.000000000 Z
13
+ date: 2016-06-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: vcr