google_instance_id 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google_instance_id.rb +1 -1
- data/lib/google_instance_id/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: 9d53d98321a970a07c129fe1f24ee92a6c34ffe2
|
4
|
+
data.tar.gz: 3be44e0c84e3b3616de989a5bde2eaed641ca4bb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ad87a5f3e63842e8204a48ace6ea7d357bdcbbe1f01f691978a3a14d4844c08c258398338b8020eed793194742bcafb6d34bcfbc3caf3c53d173e349cbeee93a
|
7
|
+
data.tar.gz: 226ae8d1890b1c5d448dc5785da226ec46f18e5082ae4040759665e032431b230d8228b7143aa52333f0bca9b905b4cb463eaf40a4028fa0133c5da214fd6bc3
|
data/lib/google_instance_id.rb
CHANGED
@@ -37,7 +37,7 @@ attr_accessor :timeout, :api_key
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def manage_relationship_maps(registration_tokens, topic, action = :add)
|
40
|
-
body = { registration_tokens: registration_tokens, to: topic }
|
40
|
+
body = { registration_tokens: registration_tokens, to: "/topics/#{topic}" }
|
41
41
|
path = action == :add ? '/v1:batchAdd' : '/v1:batchRemove'
|
42
42
|
response = self.class.post(path, build_params(body))
|
43
43
|
Hashie::Mash.new(build_manage_relationship_response(response, registration_tokens))
|