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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3e826f62809406bc30070f6f9419724caf6e4741
4
- data.tar.gz: 40f59f007e5e725b862214079cd892a520438ddd
3
+ metadata.gz: ffa449157b0fdfd8d84ca7ada8d0d4a0d4a08fe1
4
+ data.tar.gz: cb02cf8efa4b49d91af1b5fe6c63ae205f57c95b
5
5
  SHA512:
6
- metadata.gz: 95dc8341de126a4553908b08f2a99f20be6be49980f278053f646e1e18548d89968b50751625066ea30c787ba0a4b9b0df481d76fe9e392f649a3238aed80554
7
- data.tar.gz: 5381e7853d8fd3fdb6b425c6af946ee1272572c357bfeffe69dff2acabfc7064b4c71db0bce942296bf1fd3b3dc2044d2ea0ea46021dfcb628b77a800590d248
6
+ metadata.gz: d9c4997b0996b74fb6f282f9232a0091676070878eb16e9d864493091a026722b6b91a9754e1b9b68bc075ecfc97f01baa1a9b2242ceffcc88509e0143d9661a
7
+ data.tar.gz: dcbfbadf8e5594167fb446ec4edbfab2d4fb6be35716c474268286baf94da0dbebc7697ecdb4e4c7a9e9811dcd1ccb016f5e77d17af0c54b9422d33bd1eaff82
@@ -1,3 +1,3 @@
1
1
  module WotApi
2
- VERSION = "1.2.0"
2
+ VERSION = "1.2.1"
3
3
  end
@@ -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.0
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-13 00:00:00.000000000 Z
11
+ date: 2015-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler