quanto-ruby 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/quanto/metrics.rb +8 -0
- data/lib/quanto/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 064e451574e1a43f8a2fed809f3bdbaf39fbc00d
|
4
|
+
data.tar.gz: 032e141fb24a45f1c6019528be54721e2103c5f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 173cb32c46a889bdd8e47ce5c7bc7b6e8fd3812ae5050e2c115201dbd7591a0ef4437322a3518f295c64a4dcdbc933abc58de508ee0ee7d4cacfb7d23c45896a
|
7
|
+
data.tar.gz: eb10aad6f1b8365fe8ff975fbc633cbc35a19a16f47b0336115ff1c8686005058be06842947edfa6ae8966702590469192a0b2ac5041c85f400f1cef05307eb7
|
data/lib/quanto/metrics.rb
CHANGED
@@ -11,6 +11,14 @@ module Quanto
|
|
11
11
|
post('/metrics', metric: metric)
|
12
12
|
end
|
13
13
|
|
14
|
+
# Make a GET request for the URL for the authenticated plugin.
|
15
|
+
# Returns the plugin URL as a string.
|
16
|
+
def plugin_url
|
17
|
+
response = get('/plugin').body
|
18
|
+
attributes = JSON.parse(response)
|
19
|
+
attributes["url"]
|
20
|
+
end
|
21
|
+
|
14
22
|
end
|
15
23
|
|
16
24
|
end
|
data/lib/quanto/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: quanto-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Rasmus Rygaard
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-01-
|
11
|
+
date: 2014-01-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: oauth2
|