footballdata 0.3 → 0.4

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
  SHA1:
3
- metadata.gz: cee2ff276684851524daba751370189e186547ee
4
- data.tar.gz: f12ee272a685ab22cb6789979dd5ae9c83129e19
3
+ metadata.gz: a92d782249154fb9467c1a4a98580357aeeea49a
4
+ data.tar.gz: 5471fc4c974d2a18ee817aff1cb2339e338b83a6
5
5
  SHA512:
6
- metadata.gz: 6acc26ccdaf3ffb7f4fb1a10d2226f906c4154ba487e94b238cf2aab1130d6704a9f4c0a338a62d5ca880c6268f76b07063ce6955ff346eae4ab3439003ac39f
7
- data.tar.gz: 60f6b3572e57034bf49b6de1fec87cb441587b835586ec6e09056fa6c24118348e34e7f0ecd5ff51fbc40c53bd037615389ef870a98dc88efdc76bb219e526f6
6
+ metadata.gz: 4400be8f79241231527a99382d3ec765b711f28f2c3b595bf2af26bb4e4a166c074c70c1355f9aad673233cc763170b943044550be8e00ee375d03fb918f694f
7
+ data.tar.gz: c0c6f2855c79d9c78ad0d0e906ad9ff4c4ef2fe6d28c7f9e75d04a5927aee39f09137f69c409d8b52820d73b3ddf08244e6e4aa5d4aa6e673b3b816f8c6eda4a
@@ -2,8 +2,8 @@
2
2
 
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'footballdata'
5
- gem.version = '0.3'
6
- gem.date = '2016-01-27'
5
+ gem.version = '0.4'
6
+ gem.date = Date.today
7
7
  gem.authors = ["Joshua Jansen"]
8
8
  gem.email = ["joshuajansen88@gmail.com"]
9
9
  gem.description = %q{Wrapper for the football-data.org API}
@@ -51,7 +51,8 @@ module Footballdata
51
51
  id = team["_links"]["fixtures"]["href"].split("/")[-2]
52
52
  Team.new(
53
53
  id: id,
54
- name: team["name"]
54
+ name: team["name"],
55
+ logo_url: team["crestUrl"],
55
56
  )
56
57
  end
57
58
 
@@ -14,7 +14,8 @@ module Footballdata
14
14
  id = team["_links"]["fixtures"]["href"].split("/")[-2]
15
15
  Footballdata::Team.new(
16
16
  id: id,
17
- name: team["name"]
17
+ name: team["name"],
18
+ logo_url: team["crestUrl"],
18
19
  )
19
20
  end
20
21
  end
@@ -1,10 +1,11 @@
1
1
  module Footballdata
2
2
  class Team
3
- attr_reader :id, :name
3
+ attr_reader :id, :name, :logo_url
4
4
 
5
- def initialize(id:, name:)
5
+ def initialize(id:, name:, logo_url:)
6
6
  @id = id
7
7
  @name = name
8
+ @logo_url = logo_url
8
9
  end
9
10
 
10
11
  def fixtures
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footballdata
3
3
  version: !ruby/object:Gem::Version
4
- version: '0.3'
4
+ version: '0.4'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua Jansen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-27 00:00:00.000000000 Z
11
+ date: 2016-02-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sanitize