decathlon-sports 0.1.5 → 0.1.6
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 +2 -2
- data/lib/decathlon/sports/sport.rb +5 -0
- data/lib/decathlon/sports/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 41ca18ce970a10546b8033af4b186c47d479a00e91fe7725ce814acb4827ee47
|
4
|
+
data.tar.gz: 1d175742ba6fd76e15f2fc152800b6c2b1d855f93be8488b7ec3a8179d7a02fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 449a444cc4d4b6b71a0e8e1165aaa655329cb98b63bc65dab45b64eb3a4a0472de01f3dd7c60c2a10959250e615aa8cd983578c6bd44022c972ee3a35e593fc3
|
7
|
+
data.tar.gz: 55d8d8e338dfd2e69531ceaf4024b6bd21ebb5f5de225c21e71c45211e34fc8b8f38ce726b10ee7f4e574a960f440d49df5d0ac0bdf7dfcba1fb0b57a7b07619
|
data/Gemfile.lock
CHANGED
@@ -9,8 +9,8 @@ module Decathlon
|
|
9
9
|
JSON.parse(response.body)
|
10
10
|
end
|
11
11
|
|
12
|
-
def self.location(
|
13
|
-
response = Faraday.get("#{API_URL}/sports
|
12
|
+
def self.location(coordinates, source = 'popular', limit = 10)
|
13
|
+
response = Faraday.get("#{API_URL}/sports/recommendations?coordinates=#{coordinates[:lon]},#{coordinates[:lat]}&source=#{source}&count=#{limit}")
|
14
14
|
JSON.parse(response.body)
|
15
15
|
end
|
16
16
|
end
|
@@ -18,6 +18,11 @@ module Decathlon
|
|
18
18
|
JSON.parse(response.body)
|
19
19
|
end
|
20
20
|
|
21
|
+
def self.isearch(name)
|
22
|
+
response = Faraday.get("#{API_URL}/sports/search/#{name}")
|
23
|
+
JSON.parse(response.body)
|
24
|
+
end
|
25
|
+
|
21
26
|
def self.call(url)
|
22
27
|
response = Faraday.get(url)
|
23
28
|
JSON.parse(response.body)
|
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.6
|
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-07-12 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|