decathlon-sports 0.1.4 → 0.1.5

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
  SHA256:
3
- metadata.gz: 83c5b9fb9c30ab0bcbccff92d750ce7458069d027a0e3894a203aa78447bc9d6
4
- data.tar.gz: 5170bde54322c0f88ba255a75a6bb8f7d52525660578e18d51d5f46bc1bb2118
3
+ metadata.gz: 6ad6366e41d7ee4826884903a51b45c05fac8eab34fee35b5b69299ecb5da703
4
+ data.tar.gz: f1ce8dd2718e73c96c810a7f16bc798b7462d93c9fffe3b7f6742b3fd3feb084
5
5
  SHA512:
6
- metadata.gz: 8157a40cd03453f294644949d5ac6c1c2340d2b0e2e39dfde9c55bd2120303bab3bbca7dbab46afbe1f1128c481b1eafe91e2805046f675d1a70eb38d5ad30ad
7
- data.tar.gz: ba7600138b3b105d6b2861a62878d4fcbc72498df5c3e6ff1f6ba25fc7c45b7f9b09c4e6640148638d37638247517d2540328d9178c2ab0ca0527046b146e154
6
+ metadata.gz: c6624c45bf9ea344c2dbebaaca09fa4eed21b6a68c844e8d8446d723ef0879cc12c26aaabd1190cce182d1d3325578e42ed22a679f1b5db652c9bbf6b948a677
7
+ data.tar.gz: b2c6ac080706d4e4da4f5b56e08277d4f2146e04bcd1eda9bfd2de69bdd3fff3057a40e99bd33dfb0ba7116ab462934013d49d97a8e159312418e96bc0887604
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decathlon-sports (0.1.4)
4
+ decathlon-sports (0.1.5)
5
5
  faraday (~> 0.15.3)
6
6
  json (~> 2.1.0)
7
7
 
@@ -8,6 +8,11 @@ module Decathlon
8
8
  response = Faraday.get("#{API_URL}/sports/#{id}/recommendations")
9
9
  JSON.parse(response.body)
10
10
  end
11
+
12
+ def self.location(id, city, country)
13
+ response = Faraday.get("#{API_URL}/sports/#{id}/recommendations/#{city.downcase}_#{country.downcase}")
14
+ JSON.parse(response.body)
15
+ end
11
16
  end
12
17
  end
13
18
  end
@@ -1,5 +1,5 @@
1
1
  module Decathlon
2
2
  module Sports
3
- VERSION = "0.1.4".freeze
3
+ VERSION = '0.1.5'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: decathlon-sports
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Decathlon Canada
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2019-03-28 00:00:00.000000000 Z
12
+ date: 2019-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -127,7 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
127
127
  - !ruby/object:Gem::Version
128
128
  version: '0'
129
129
  requirements: []
130
- rubygems_version: 3.0.1
130
+ rubygems_version: 3.0.3
131
131
  signing_key:
132
132
  specification_version: 4
133
133
  summary: Gem to wrap the Decathlon Sports API