footstats 0.0.5 → 0.0.6

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: 8524d05dbca598751b234d480ee04ff36befc290
4
- data.tar.gz: 2804c13734eafc96797217e231ce97168899cdc4
3
+ metadata.gz: 5aa1270d14239de6f0af51265b8f41d33e913d23
4
+ data.tar.gz: 3041542e8b8b89f14547a62bbad6898213fe1beb
5
5
  SHA512:
6
- metadata.gz: f6c60cc4a08fd72fc8d464e2def585c4f1f49cdc4e0884b980899d6efde60a2b579587baa79a45f1047628a3c82dc524a38a7e0c1eeafa50313d0d8f7aafe7ed
7
- data.tar.gz: 84129defa9c47497e05bf3539c0a8ecf791f29853c87b5861ef4ed6ac7ba581a5b171fe90ff5fa792f5ec9fd70cf2bca5cc546bfd434da170ad92b63eac5f241
6
+ metadata.gz: 5e703a0fb283843fe84d2c34b4e31858373a4d42828a7192c8634e5d2d8d37279fa9ca45baa4157ef9d516a9660d1afc3f51fa96d4df27ccd91637c1ca9df7f4
7
+ data.tar.gz: 7b42d19f98bf1a80f8a04cffb852f9f726e20fba4c99e04181d5b564e4d6af12ddec27ed24b9e5ede12dcc74ba2a8427fc6ab85ccb6b53f5f793e5514647abb6
@@ -71,6 +71,15 @@ module Footstats
71
71
  end
72
72
  end
73
73
 
74
+ def self.championship_ranking(gp_id)
75
+ request("Campeonato/Classificacao").map do |championship|
76
+ championship[1].collect do |ranking_item|
77
+ ranking_item.merge!("Tipo" => fase[0])
78
+
79
+ Footstats::Api::Racing::Ranking.new(ranking_item)
80
+ end
81
+ end
82
+ end
74
83
  protected
75
84
  def self.request(method, params = {})
76
85
  super(method, API, params)
@@ -1,3 +1,3 @@
1
1
  module Footstats
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: footstats
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Paulo Patto
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json