emapic_consul 0.1.5.3 → 0.1.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/emapic_consul/api.rb +2 -2
- data/lib/emapic_consul/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a335563539e21af4f8170ea1be9828ec39307752
|
4
|
+
data.tar.gz: 4164a2be411a7c5b3d57b039cd0d2fed1b9032b5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 148fc8e46a965e6a0a95739639a2677a074c135395072ec04e802afdbf95fd46070e8572dab215d09f28b534e520b62e6bfe3f8bd3651555c881802ffb7937a0
|
7
|
+
data.tar.gz: c852fbcaba33c6520e5ab36ff089ce298e960e51a818d19f55465f765b68396dd3e25613b594f1bef5a11008323a97fd8387cb21c32320a46243c272ffedfd21
|
data/lib/emapic_consul/api.rb
CHANGED
@@ -19,7 +19,7 @@ module EmapicConsul
|
|
19
19
|
print_debug_start("to notify proposal creation")
|
20
20
|
|
21
21
|
request = build_generic_request("/api/locationgroup/#{emapic_login}")
|
22
|
-
request.params = { id: group.id, title: group.title }
|
22
|
+
request.params = { id: "proposal_#{group.id}", title: group.title }
|
23
23
|
response = request.send
|
24
24
|
|
25
25
|
puts "Response body: #{response.body}"
|
@@ -30,7 +30,7 @@ module EmapicConsul
|
|
30
30
|
def self.vote_location_group(voter, group)
|
31
31
|
print_debug_start("to notify vote creation")
|
32
32
|
|
33
|
-
request = build_generic_request("/api/locationgroup/#{emapic_login}
|
33
|
+
request = build_generic_request("/api/locationgroup/#{emapic_login}/proposal_#{group.id}")
|
34
34
|
request.params = { user_id: voter.id, address: get_random_address }
|
35
35
|
response = request.send
|
36
36
|
|