decathlon-sports 0.1.2 → 0.1.3

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: 1b49a6a45b3a25fc910cebd74e56108c1e97efefd4b071d14b58f2b68bab99bf
4
- data.tar.gz: 5467f5cfeb9878a0a48deac1be173e94b2fea85550cc9a6fd177dd8fde127245
3
+ metadata.gz: 31d87e6957a05ec46402c840bb20eab365d3831716f4c82564ad016da8a29631
4
+ data.tar.gz: bbaca6b03011fa40b1e92daa34186fab67d7f79cacf0813f1e69d220df587358
5
5
  SHA512:
6
- metadata.gz: 48b311473bcbd5587fadb46b4364a6339366e1bd911cc741ebca6087f5a47561784f12d1d7976d0e0a5c5583997cc2bb145399f7793621275f851c67b9822742
7
- data.tar.gz: 6014e86cdbc4bb6a7329d7eadf25a648241123e70f9a0849f475d7d56c95e1084645903dfabf5396d2ea6ccf48630bc07077b55d5604d45516991c3b4b92a501
6
+ metadata.gz: 46ce0453c61e9e17fb7e55faefa31167ae6df3962357b11a87cb91f30a4a3107a6e13b265799b0a4402d1a69d89ad4867ef3d54ab80f09da0ecb1c9444929843
7
+ data.tar.gz: 91f0aa81e0bb5055ade13a72091b143768a79bfeec0762073f2b9bc972b363efff5397f5442d2eb45913b68db6534451d1f5a2143b792eb47e6412bc0ae535c7
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decathlon-sports (0.1.2)
4
+ decathlon-sports (0.1.3)
5
5
  faraday (~> 0.15.3)
6
6
  json (~> 2.1.0)
7
7
 
@@ -9,7 +9,7 @@ GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
11
  diff-lcs (1.3)
12
- faraday (0.15.3)
12
+ faraday (0.15.4)
13
13
  multipart-post (>= 1.2, < 3)
14
14
  json (2.1.0)
15
15
  multipart-post (2.0.0)
@@ -14,5 +14,10 @@ module Decathlon
14
14
  response = Faraday.get("#{API_URL}/sports/#{id}")
15
15
  JSON.parse(response.body)
16
16
  end
17
+
18
+ def self.search(name)
19
+ response = Faraday.get("#{API_URL}/sports?q=#{name}")
20
+ JSON.parse(response.body)
21
+ end
17
22
  end
18
23
  end
@@ -1,5 +1,5 @@
1
1
  module Decathlon
2
2
  module Sports
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
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.2
4
+ version: 0.1.3
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: 2018-11-01 00:00:00.000000000 Z
12
+ date: 2019-01-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler