mvaayoo 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mvaayoo.rb +8 -9
- data/lib/mvaayoo/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: 617635f554bf9470cbc2923e3b6a50320c0d4066
|
4
|
+
data.tar.gz: 2dd5f8e9257986dd9d9f0615801e9ec606b82af5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34ffc810cbc835d497147bb544481baf674f44bc5a81419cca5450e3c023d706f246f02e47db19172f2a06f7b90b8b2eeb0bf1fd7249cdf5e5650b5677b042ed
|
7
|
+
data.tar.gz: 10186a5f589f7ad618da048dcc3d101a31fe7969c592b3921f8203bd8eb6ecb1c1c2be48e285eba2846409ba35dd2bf2b4494ec09db3f27457d5eea2e5fcc7c3
|
data/lib/mvaayoo.rb
CHANGED
@@ -12,14 +12,13 @@ module Mvaayoo
|
|
12
12
|
http_conn '/mvaayooapi/APIUtil', ["user=#{MVAAYOO_USER}:#{MVAAYOO_PASSWORD}", "type=0"]
|
13
13
|
end
|
14
14
|
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
faraday.adapter Faraday.default_adapter
|
22
|
-
end
|
23
|
-
conn.get "#{url}?#{params.join('&')}"
|
15
|
+
# http api handler
|
16
|
+
def http_conn url, params
|
17
|
+
conn = Faraday.new(url: 'http://api.mVaayoo.com') do |faraday|
|
18
|
+
faraday.request :url_encoded
|
19
|
+
faraday.response :logger
|
20
|
+
faraday.adapter Faraday.default_adapter
|
24
21
|
end
|
22
|
+
conn.get "#{url}?#{params.join('&')}"
|
23
|
+
end
|
25
24
|
end
|
data/lib/mvaayoo/version.rb
CHANGED