infostrada 0.1.21 → 0.1.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NDJlMjVlM2VmNjdmMTA5ZmYyZmQ1YjkwMjA4OGVmMmNhNTM0OTM5ZA==
4
+ ZTYzMjAxZTJmOWQ2ODYzYTZhZjUwZmZmYTlkYjdhNWQxOTQ0ZTQ3NA==
5
5
  data.tar.gz: !binary |-
6
- OTZiOGU1MzJlNzg2NjhmNjU3YTU4YjVhMDY4MGY5Y2NkYmM0YTVjYw==
6
+ MzBjYzY2ZGMzYzg2ZGE2NzJjZmU4YWYwNzhlNGEzOTFlNGM4MzhlZQ==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- ZTI3NjU0YjVkODRhOTUwZDJjNGMxNWQ2MDRiMzEwZDU5MDY2NmJkMzFhZTg0
10
- OTNlYTM2YjZiYTU0YTk0NzMzN2ExZDAzYTk3NDgwNTcxNzUwNzFlZWNiNDJk
11
- N2Q1MTBmOThhZDE4YzFmN2EzYjg0Y2YxZGQ2NzNiYjY1MDBmMDg=
9
+ YWViMTNmNTMwOTcyNmEwMzNkMTY2NjIzNjNmNmY5NWQ5NzMyZDAyYzNjYjg4
10
+ N2ExNWRkNjgzZGNiMzRiMGRmNTUwM2ZjNmU4NmUxNzU4ZTEyNTE0MWVlOWVk
11
+ OWU5ZDE0Zjk1MjNiYTczNTRiMDJhYzkyZTQzZGRjMDA2ZDllMzQ=
12
12
  data.tar.gz: !binary |-
13
- MmU5MWYzMjY0ODM4YTY1Njg2ZTEyYzYyNGY1YzMxYWE0YjFiNDU3Zjg4OGNi
14
- M2QwNzhkZjRiZTZhNGNhYmI4NmY4ZWQ2NzFkMjgyOTdjZjcyNDRmNTVjOGRj
15
- Njk0YjZiZjRkMzIxZDBiYjFjYWFjMzQwOTJlZTBlYTZjNGI1NzU=
13
+ YWY4NWNkODQ5ZTU1NjhjMGI2MzMyNThlZDE2YzFjMzI1YmVjODgzYjY4ODkw
14
+ ZDg1NzIzOTlkZDQ1NjE0YWQ2ZTgxMDhhN2QxNDU2MDZmYzdiNTE2ZGU2Yjg4
15
+ ZmEyNmE4Y2FjMDJmODEwNjk0NzBkMWU4ZDE2OTg3NzAxZWI5YTc=
@@ -4,17 +4,18 @@ module Infostrada
4
4
  class TeamInfo < Infostrada::BaseRequest
5
5
  attr_accessor :official_name, :official_short_name, :public_name, :public_short_name, :nickname
6
6
  attr_accessor :foundation_date, :official_stadium_name, :stadium_name, :stadium_capacity
7
- attr_accessor :url, :city, :country, :country_short_name
7
+ attr_accessor :url, :city, :country, :country_short_name, :id
8
8
 
9
9
  URL = '/GetTeamInfo'
10
10
 
11
11
  def self.fetch(team_id)
12
12
  info_hash = get!(URL, query: { teamid: team_id.to_i })
13
13
 
14
- info_hash.first ? self.new(info_hash.first) : nil
14
+ info_hash.first ? self.new(info_hash.first.merge({ 'teamid' => team_id.to_i })) : nil
15
15
  end
16
16
 
17
17
  def initialize(hash)
18
+ @id = hash['teamid']
18
19
  @official_name = hash['c_OfficialName']
19
20
  @official_short_name = hash['c_OfficialNameSort']
20
21
  @public_name = hash['c_PublicName']
@@ -17,4 +17,4 @@ module Infostrada
17
17
  teams
18
18
  end
19
19
  end
20
- end
20
+ end
@@ -1,3 +1,3 @@
1
1
  module Infostrada
2
- VERSION = '0.1.21'
2
+ VERSION = '0.1.22'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infostrada
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.21
4
+ version: 0.1.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ricardo Otero
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-16 00:00:00.000000000 Z
11
+ date: 2014-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -257,7 +257,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
257
257
  version: '0'
258
258
  requirements: []
259
259
  rubyforge_project:
260
- rubygems_version: 2.2.2
260
+ rubygems_version: 2.4.2
261
261
  signing_key:
262
262
  specification_version: 4
263
263
  summary: Infostrada Football API wrapper.