mxhero-api 0.1.14 → 0.1.15

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.14
1
+ 0.1.15
data/lib/mxhero-api.rb CHANGED
@@ -308,8 +308,8 @@ module MxHero::API
308
308
  message = []
309
309
  accounts.each do |account|
310
310
  properties = remap_properties(account[:properties])
311
- #message << { account: account[:account], properties: properties, group: account[:group], domain: domain }
312
- message << { account: account[:account], properties: properties, group: account[:group] }
311
+ message << { account: account[:account], properties: properties, group: account[:group], domain: domain }
312
+ #message << { account: account[:account], properties: properties, group: account[:group] }
313
313
  end
314
314
  response = call(:put, url, message.to_json) # accounts to json
315
315
  parse_response(response)
data/mxhero-api.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "mxhero-api"
5
- s.version = "0.1.14"
5
+ s.version = "0.1.15"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Maximiliano Dello Russo", "Juan Pablo Royo", "mxHero"]
9
- s.date = "2013-09-30"
9
+ s.date = "2013-10-01"
10
10
  s.description = "A gem to provide easy access to the API of MxHero platform (http://www.mxhero.com/)"
11
11
  s.email = ["maxidr@mxhero.com", "juanpablo.royo@gmail.com", "mxhero@mxhero.com"]
12
12
  s.files = [".gitignore", ".rvmrc", "Gemfile", "LICENSE.txt", "README.md", "Rakefile", "VERSION", "lib/communication.rb", "lib/dto.rb", "lib/groups.rb", "lib/mxhero-api.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/all_groups.yml", "test/fixtures/api/create_rule_for_domain.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/remove_account_from_group_twice.yml", "test/fixtures/api/remove_inexistente_account_from_group.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/update_account_properties.yml", "test/fixtures/api/update_accounts_group_scope.yml", "test/fixtures/api/update_accounts_properties_scope.yml", "test/fixtures/api/update_rule.yml", "test/helper.rb", "test/test_dto.rb", "test/test_groups.rb", "test/test_mxhero_api.rb", "test/test_mxhero_api_response.rb"]
@@ -5,7 +5,7 @@ http_interactions:
5
5
  uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/accounts/upload?scope=groups
6
6
  body:
7
7
  encoding: UTF-8
8
- string: ! '[{"account":"john.doe","properties":null,"group":"development"}]'
8
+ string: ! '[{"account":"john.doe","properties":null,"group":"development","domain":"tesla.com"}]'
9
9
  headers:
10
10
  Accept:
11
11
  - application/json
@@ -21,7 +21,7 @@ http_interactions:
21
21
  headers:
22
22
  !binary "RGF0ZQ==":
23
23
  - !binary |-
24
- TW9uLCAzMCBTZXAgMjAxMyAxNDoxMDoyMyBHTVQ=
24
+ VHVlLCAwMSBPY3QgMjAxMyAxOTo0MzoyMSBHTVQ=
25
25
  !binary "U2VydmVy":
26
26
  - !binary |-
27
27
  QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
@@ -33,9 +33,9 @@ http_interactions:
33
33
  YXBwbGljYXRpb24vanNvbg==
34
34
  body:
35
35
  encoding: US-ASCII
36
- string: ! '[{"account":"john.doe","domain":null,"createdDate":null,"updatedDate":null,"group":"development","aliases":null,"dataSource":null,"properties":null}]'
36
+ string: ! '[]'
37
37
  http_version:
38
- recorded_at: Mon, 30 Sep 2013 14:10:23 GMT
38
+ recorded_at: Tue, 01 Oct 2013 19:43:21 GMT
39
39
  - request:
40
40
  method: get
41
41
  uri: http://admin:password@test.mxhero.com/webapi/api/v1/domains/tesla.com/accounts?account=john.doe&limit=&offset=
@@ -57,7 +57,7 @@ http_interactions:
57
57
  headers:
58
58
  !binary "RGF0ZQ==":
59
59
  - !binary |-
60
- TW9uLCAzMCBTZXAgMjAxMyAxNDoxMDoyMyBHTVQ=
60
+ VHVlLCAwMSBPY3QgMjAxMyAxOTo0MzoyMyBHTVQ=
61
61
  !binary "U2VydmVy":
62
62
  - !binary |-
63
63
  QXBhY2hlLzIuMi4xNCAoVWJ1bnR1KQ==
@@ -69,7 +69,7 @@ http_interactions:
69
69
  YXBwbGljYXRpb24vanNvbg==
70
70
  body:
71
71
  encoding: US-ASCII
72
- string: ! '{"elements":[{"account":"john.doe","domain":"tesla.com","createdDate":1378759081000,"updatedDate":1380550173000,"group":"development","aliases":[{"name":"john.doe","domain":"tesla.com","dataSource":"manual"}],"dataSource":"manual","properties":null}],"totalElements":1,"totalPages":1,"actualPage":1}'
72
+ string: ! '{"elements":[{"account":"john.doe","domain":"tesla.com","createdDate":1378759081000,"updatedDate":1380656601000,"group":"development","aliases":[{"name":"john.doe","domain":"tesla.com","dataSource":"manual"}],"dataSource":"manual","properties":null}],"totalElements":1,"totalPages":1,"actualPage":1}'
73
73
  http_version:
74
- recorded_at: Mon, 30 Sep 2013 14:10:23 GMT
74
+ recorded_at: Tue, 01 Oct 2013 19:43:22 GMT
75
75
  recorded_with: VCR 2.5.0
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.14
4
+ version: 0.1.15
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2013-09-30 00:00:00.000000000 Z
14
+ date: 2013-10-01 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: vcr
@@ -129,7 +129,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
129
129
  version: '0'
130
130
  segments:
131
131
  - 0
132
- hash: -22379060016314683
132
+ hash: -4512878157478229079
133
133
  required_rubygems_version: !ruby/object:Gem::Requirement
134
134
  none: false
135
135
  requirements: