league_api 0.4.1 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d73196997dbd86e4179ac56fdc7dbe58ef53c1fd
4
- data.tar.gz: b9a57433e0b8e035168ab46d95f2b8351ef44ad0
3
+ metadata.gz: c6b2585dd3e9b8e33eb6d041d06e07bfc29b90d3
4
+ data.tar.gz: 0c44250b1661b9479972ad22eb2151fb509d3d6a
5
5
  SHA512:
6
- metadata.gz: c752cb65fe1d42637543acf3b33d07ceecc5f2c6669d204a91feb3fb9ad8686a1587ed29fded07c1ee2bda295159d9bd8fc048f21065bc8c5eff5ebf25ab4828
7
- data.tar.gz: f65eebd2a9efb7ebdc74ec3f1f7a94ae878a6d50e624dea53924fc77ebbe5cbcf29ede905780a3f157412a5680fb82c598e14c7b947bc228908533b23597fc71
6
+ metadata.gz: 352526938d9777831a4face45d1cf1ef0ef96a73cb6d846d38f7fb0da239f1f47ea655703e0db51263244dc6026371a8e2ee8c92f1518bf3a1896a3c411eaacf
7
+ data.tar.gz: f33bd8c547d5c7e635134bfda445686f7f7d1323c7dc52b0f864bff12f8a04aadeeea374b4a530636b22cb5c81b6ebb833d01905fd18dddf0b1652ea4622880b
@@ -75,15 +75,15 @@ module LeagueApi
75
75
  #TODO: Implement http://ddragon.leagueoflegends.com/cdn/4.7.8/img/sprite/rune0.png
76
76
 
77
77
  def self.get_item_image(id)
78
- "http://ddragon.leagueoflegends.com/cdn/"+get_versions.first+"/img/item/"+id.to_s+".png"
78
+ "http://ddragon.leagueoflegends.com/cdn/"+$version+"/img/item/"+id.to_s+".png"
79
79
  end
80
80
 
81
81
  def self.get_champion_image(str)
82
- "http://ddragon.leagueoflegends.com/cdn/"+get_versions.first+"/img/champion/"+str+".png"
82
+ "http://ddragon.leagueoflegends.com/cdn/"+$version+"/img/champion/"+str+".png"
83
83
  end
84
84
 
85
85
  def self.get_summoner_image(id)
86
- "http://ddragon.leagueoflegends.com/cdn/"+get_versions.first+"/img/sprite/spell"+id.to_s+".png"
86
+ "http://ddragon.leagueoflegends.com/cdn/"+$version+"/img/sprite/spell"+id.to_s+".png"
87
87
  end
88
88
 
89
89
  def self.requests
data/lib/league_api.rb CHANGED
@@ -14,6 +14,8 @@ module LeagueApi
14
14
 
15
15
  @api_key = ENV["LOL_KEY"]
16
16
  @region = "na"
17
+ #XXX: Would rather have this generated by Static.get_versions
18
+ $version = "4.9.1"
17
19
 
18
20
  def make_request(base, modifier=nil, params=nil)
19
21
  url = base + modifier
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: league_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - DanBradbury
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-06-09 00:00:00.000000000 Z
11
+ date: 2014-06-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -52,8 +52,8 @@ dependencies:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0.9'
55
- description: 1-1 Mapping of the Riot Developer APIs. Mapping is returned in a <Hash>
56
- for convenience. Additional methods have been / will be continuously added in order
55
+ description: Gem to access Riot Developer APIs. Mapping is returned as a <Hash> for
56
+ convenience. Additional methods have been / will be continuously added in order
57
57
  to support ease of use across a variety of use cases. The restriction is only to
58
58
  properly use the rate limit and submit a PR with tests.
59
59
  email:
@@ -91,9 +91,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.2.2
94
+ rubygems_version: 2.2.0
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Requests to Riot Developer API with Additional Utilities
98
98
  test_files: []
99
- has_rdoc: