remetric 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/remetric.rb +4 -4
- data/lib/remetric/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: 8716a0009895906cfca99f833e1c084e392c9317
|
4
|
+
data.tar.gz: 440a7e94f61909efabdd510f4e38d41ac1734e28
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04b242bb4421f6f3bbb6c39c88f032d3e2a57dbe6424d02c001bbcbe3839672add8f8e506526cd1b060e7d85647f041a2056db2a6bd3139f96238dcab8cf324a
|
7
|
+
data.tar.gz: 6fcd8150dab6a8878e79f3b2fc4edcbe9ac25f8b28cf7fbfedaaf48ae70ec20fe9f31b0c5f04963693b071fa962e2602e4efe876fc7b259fef87c3c2bf7f91c6
|
data/lib/remetric.rb
CHANGED
@@ -15,20 +15,20 @@ class Remetric
|
|
15
15
|
|
16
16
|
def track data = {}
|
17
17
|
begin
|
18
|
-
RestClient.get "#{endpoint}/track/img/#{to_base64 data}"
|
18
|
+
RestClient.get "#{endpoint}/track/img/#{to_base64 data}"
|
19
19
|
rescue
|
20
20
|
{ errors: "You are unauthorized." }
|
21
21
|
end
|
22
22
|
end
|
23
23
|
|
24
24
|
def img data = {}
|
25
|
-
src = "#{endpoint}/track/img/#{to_base64 data}"
|
26
|
-
img = "<img src=\"#{src}\" style=\"display: none; \">"
|
25
|
+
src = "#{endpoint}/track/img/#{to_base64 data}"
|
26
|
+
img = "<img src=\"#{src}\" style=\"display: none; \">"
|
27
27
|
img
|
28
28
|
end
|
29
29
|
|
30
30
|
def redirect data = {}
|
31
|
-
"#{endpoint}/track/redirect/#{to_base64 data}"
|
31
|
+
"#{endpoint}/track/redirect/#{to_base64 data}"
|
32
32
|
end
|
33
33
|
|
34
34
|
def to_base64 data = {}
|
data/lib/remetric/version.rb
CHANGED