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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/decathlon/sports/recommendation.rb +5 -0
- data/lib/decathlon/sports/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6ad6366e41d7ee4826884903a51b45c05fac8eab34fee35b5b69299ecb5da703
|
4
|
+
data.tar.gz: f1ce8dd2718e73c96c810a7f16bc798b7462d93c9fffe3b7f6742b3fd3feb084
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c6624c45bf9ea344c2dbebaaca09fa4eed21b6a68c844e8d8446d723ef0879cc12c26aaabd1190cce182d1d3325578e42ed22a679f1b5db652c9bbf6b948a677
|
7
|
+
data.tar.gz: b2c6ac080706d4e4da4f5b56e08277d4f2146e04bcd1eda9bfd2de69bdd3fff3057a40e99bd33dfb0ba7116ab462934013d49d97a8e159312418e96bc0887604
|
data/Gemfile.lock
CHANGED
@@ -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
|
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
|
+
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-
|
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.
|
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
|