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 +4 -4
- data/Gemfile.lock +3 -3
- data/README.md +18 -7
- data/decathlon-sports.gemspec +2 -2
- data/lib/decathlon/sports/version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e2da52a296040722ffd545e6ec57747c594720e9c78ac1206796fa4adfb89951
|
4
|
+
data.tar.gz: bda6bdbb969b39c577eecc69ebf799d7a75331729b468540b080cbf8715c9827
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab11beeee93e3c3edae374ae0c7a87056022b74f35980b4ce4f5ad88e9dedba5e7b4f6d3a1cfb8fa2f0f9fb54a0acbc8d91724b803c0bfdf87bc05a76f62128a
|
7
|
+
data.tar.gz: 8211858f947d7e613cd94db716a787df58592bbfb291b19351959ce20a8db8ffdd7e281922a3fcb5273b8576dc67e5f93c2bfb43b1955a8530a550aa71fb1491
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,6 @@
|
|
1
|
-
# Decathlon
|
1
|
+
# Decathlon - Sports API wrapper
|
2
2
|
|
3
|
-
|
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
|
-
|
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/
|
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/
|
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).
|
data/decathlon-sports.gemspec
CHANGED
@@ -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
|
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.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:
|
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:
|
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:
|
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:
|
82
|
+
version: 2.1.0
|
83
83
|
description: Gem to wrap the Decathlon Sports API
|
84
84
|
email:
|
85
85
|
- caio.bianchi@decathlon.com
|