decathlon-sports 0.1.0 → 0.1.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
  SHA256:
3
- metadata.gz: 97fafd13a28dc80d2b9df61b70385c02b6b616ff7c888ae7116870ec356fc278
4
- data.tar.gz: c7344ee103bbd38da3dd31cd16c2378fb3ba34e99ad0168f49454cade1356b15
3
+ metadata.gz: e2da52a296040722ffd545e6ec57747c594720e9c78ac1206796fa4adfb89951
4
+ data.tar.gz: bda6bdbb969b39c577eecc69ebf799d7a75331729b468540b080cbf8715c9827
5
5
  SHA512:
6
- metadata.gz: 045b896ebc10274525b09dd5d5eb202762248bbe32e5dc22b4d7d2a46a1ecc743ad8355862a659e3668b061a575b143efdfb82f883e3292e22f3f6fb472c618c
7
- data.tar.gz: 90e5dabf9490231599b0f2bb39945986857e1efcc36c8ec56e5ef1d13ba9e8cca669a8acadde8835cad7038e342049fbcac37e02e996994a5e0c0b3949aee896
6
+ metadata.gz: ab11beeee93e3c3edae374ae0c7a87056022b74f35980b4ce4f5ad88e9dedba5e7b4f6d3a1cfb8fa2f0f9fb54a0acbc8d91724b803c0bfdf87bc05a76f62128a
7
+ data.tar.gz: 8211858f947d7e613cd94db716a787df58592bbfb291b19351959ce20a8db8ffdd7e281922a3fcb5273b8576dc67e5f93c2bfb43b1955a8530a550aa71fb1491
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- decathlon-sports (0.1.0)
5
- faraday
6
- json
4
+ decathlon-sports (0.1.1)
5
+ faraday (~> 0.15.3)
6
+ json (~> 2.1.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,8 +1,6 @@
1
- # Decathlon::Sports
1
+ # Decathlon - Sports API wrapper
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/decathlon/sports`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
3
+ A Ruby interface to [Decathlon's Sports API](https://developers.decathlon.com/sports)
6
4
 
7
5
  ## Installation
8
6
 
@@ -22,7 +20,20 @@ Or install it yourself as:
22
20
 
23
21
  ## Usage
24
22
 
25
- TODO: Write usage instructions here
23
+ ### Decathlon::Sports.all
24
+ ```ruby
25
+ sports = Decathlon::Sports.all
26
+ ```
27
+
28
+ ### Decathlon::Sports.find
29
+ ```ruby
30
+ sport = Decathlon::Sports.find(175)
31
+ ```
32
+
33
+ ### Decathlon::Sports::Recommendations.get
34
+ ```ruby
35
+ recommendations = Decathlon::Sports::Recommendations.get(175)
36
+ ```
26
37
 
27
38
  ## Development
28
39
 
@@ -32,7 +43,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
43
 
33
44
  ## Contributing
34
45
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/decathlon-sports. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
46
+ Bug reports and pull requests are welcome on GitHub at https://github.com/decathlon/sports-api-wrapper. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
36
47
 
37
48
  ## License
38
49
 
@@ -40,4 +51,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
40
51
 
41
52
  ## Code of Conduct
42
53
 
43
- Everyone interacting in the Decathlon::Sports project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/decathlon-sports/blob/master/CODE_OF_CONDUCT.md).
54
+ Everyone interacting in the Decathlon::Sports project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/decathlon/sports-api-wrapper/blob/master/CODE_OF_CONDUCT.md).
@@ -39,6 +39,6 @@ Gem::Specification.new do |spec|
39
39
  spec.add_development_dependency 'rake', '~> 10.0'
40
40
  spec.add_development_dependency 'rspec', '~> 3.0'
41
41
 
42
- spec.add_dependency 'faraday'
43
- spec.add_dependency 'json'
42
+ spec.add_dependency 'faraday', '~> 0.15.3'
43
+ spec.add_dependency 'json', '~> 2.1.0'
44
44
  end
@@ -1,5 +1,5 @@
1
1
  module Decathlon
2
2
  module Sports
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
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.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caio Bianchi
@@ -56,30 +56,30 @@ dependencies:
56
56
  name: faraday
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '0'
61
+ version: 0.15.3
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '0'
68
+ version: 0.15.3
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: json
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - ">="
73
+ - - "~>"
74
74
  - !ruby/object:Gem::Version
75
- version: '0'
75
+ version: 2.1.0
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - ">="
80
+ - - "~>"
81
81
  - !ruby/object:Gem::Version
82
- version: '0'
82
+ version: 2.1.0
83
83
  description: Gem to wrap the Decathlon Sports API
84
84
  email:
85
85
  - caio.bianchi@decathlon.com