wot_api 1.2.0 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/wot_api/version.rb +1 -1
- data/lib/wot_api/wrapper.rb +3 -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: ffa449157b0fdfd8d84ca7ada8d0d4a0d4a08fe1
|
4
|
+
data.tar.gz: cb02cf8efa4b49d91af1b5fe6c63ae205f57c95b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d9c4997b0996b74fb6f282f9232a0091676070878eb16e9d864493091a026722b6b91a9754e1b9b68bc075ecfc97f01baa1a9b2242ceffcc88509e0143d9661a
|
7
|
+
data.tar.gz: dcbfbadf8e5594167fb446ec4edbfab2d4fb6be35716c474268286baf94da0dbebc7697ecdb4e4c7a9e9811dcd1ccb016f5e77d17af0c54b9422d33bd1eaff82
|
data/lib/wot_api/version.rb
CHANGED
data/lib/wot_api/wrapper.rb
CHANGED
@@ -26,6 +26,7 @@ module WotApi
|
|
26
26
|
attr_accessor :configuration, :default_region
|
27
27
|
|
28
28
|
def wot_api_post(method_sym, params)
|
29
|
+
params ||= {}
|
29
30
|
endpoint = method_to_endpoint(method_sym)
|
30
31
|
region = params.delete(:region).to_sym rescue get_default_region
|
31
32
|
set_base_uri(region)
|
@@ -37,7 +38,8 @@ module WotApi
|
|
37
38
|
return format_response(response)
|
38
39
|
end
|
39
40
|
|
40
|
-
def wot_web_get(endpoint, params
|
41
|
+
def wot_web_get(endpoint, params)
|
42
|
+
params ||= {}
|
41
43
|
region = params.delete(:region).to_sym rescue get_default_region
|
42
44
|
set_base_uri(region, true)
|
43
45
|
begin
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wot_api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jesse Cantara
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|