riot_games_api 0.0.6 → 0.0.7

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: 6bd79f2584158600d93413bddee20bca726ddd4f
4
- data.tar.gz: 0d433cff82077eaa3c6a3d9cc0acf7463a59cf09
3
+ metadata.gz: 01d02d159983ab483883a6ed0f2f802b8e2c72bf
4
+ data.tar.gz: 63ccd522eac4eaf2f645bcf033409d457723b8f2
5
5
  SHA512:
6
- metadata.gz: ccee512299a46378cc2712bcb3b0eed8201ba6c2e30966a861a91c8ce986397f0f32d20d5936b20f7cb464c142e12bd28b5951b80e444a7499f322a1270cf421
7
- data.tar.gz: 6f22faa14021fc8d61c29de5e9de78963ba3613f81782e12210c3a8b916a2dd63310811bf8f1977703b56cd4a3370d0525635832738549e8b44860f49fb84fea
6
+ metadata.gz: ed4fb4dfa6cf2d7d111df54bfc69b65c99138c9d5fe4ebe29a1f80275412eff2834dcb4ecef92525db17283e2bc8351af00360b19090a98b0594bfc69870e3d7
7
+ data.tar.gz: 802996fbb8afeda1ccecb0d4a01d635be0370ce61461911f0276b552ed84d6000285041285db1c6b9ecc6abdd7353e49d770c3582821072b06f9a182a7c89400
data/README.md CHANGED
@@ -46,11 +46,11 @@ summoner = client.summoner.by_name 'shishisn'
46
46
  teams = client.team.by_summoner_id summoner.id
47
47
 
48
48
  # English
49
- # You can use champions and items id list (created 4/20/2014)
49
+ # You can use champions and items id list (created 2014/11/23)
50
50
  # You can see and edit lists in lib/riot_games_api/lol/constant/
51
51
 
52
52
  # Japnese
53
- # チャンピオンとアイテムのIDのリストを作ってあります (2014/4/20 時点)
53
+ # チャンピオンとアイテムのIDのリストを作ってあります (2014/11/23 作成)
54
54
  # lib/riot_games_api/lol/constant/ にファイルがあるので編集もできます
55
55
 
56
56
  # from static_data resource
@@ -1,10 +1,16 @@
1
1
  module RiotGamesApi
2
2
  module LOL
3
3
  # how to generate list
4
- # add :wukong by me
5
- # client.static_data.champion_all.data.each do |key, value|
6
- # p "#{key}: #{value[:id]}"
4
+ # client.static_data.champion_all.data.each do |champion|
5
+ # p "#{champion[1].name}: #{champion[1].id}"
7
6
  # end
7
+ #
8
+ # remove all double quotes
9
+ # remove all single quotes
10
+ # remove all dots
11
+ # replace all letters to lower case
12
+ # replace space with underscore in champion names
13
+ # sort lines
8
14
  CHAMPIONS = {
9
15
  aatrox: 266,
10
16
  ahri: 103,
@@ -14,6 +20,7 @@ module RiotGamesApi
14
20
  anivia: 34,
15
21
  annie: 1,
16
22
  ashe: 22,
23
+ azir: 268,
17
24
  blitzcrank: 53,
18
25
  brand: 63,
19
26
  braum: 201,
@@ -28,12 +35,13 @@ module RiotGamesApi
28
35
  elise: 60,
29
36
  evelynn: 28,
30
37
  ezreal: 81,
31
- fiddle_sticks: 9,
38
+ fiddlesticks: 9,
32
39
  fiora: 114,
33
40
  fizz: 105,
34
41
  galio: 3,
35
42
  gangplank: 41,
36
43
  garen: 86,
44
+ gnar: 150,
37
45
  gragas: 79,
38
46
  graves: 104,
39
47
  hecarim: 120,
@@ -44,6 +52,7 @@ module RiotGamesApi
44
52
  jax: 24,
45
53
  jayce: 126,
46
54
  jinx: 222,
55
+ kalista: 429,
47
56
  karma: 43,
48
57
  karthus: 30,
49
58
  kassadin: 38,
@@ -51,7 +60,7 @@ module RiotGamesApi
51
60
  kayle: 10,
52
61
  kennen: 85,
53
62
  khazix: 121,
54
- kog_maw: 96,
63
+ kogmaw: 96,
55
64
  leblanc: 7,
56
65
  lee_sin: 64,
57
66
  leona: 89,
@@ -64,7 +73,6 @@ module RiotGamesApi
64
73
  maokai: 57,
65
74
  master_yi: 11,
66
75
  miss_fortune: 21,
67
- monkey_king: 62, # wukong, riot use this name for wukong
68
76
  mordekaiser: 82,
69
77
  morgana: 25,
70
78
  nami: 267,
@@ -116,7 +124,7 @@ module RiotGamesApi
116
124
  vladimir: 8,
117
125
  volibear: 106,
118
126
  warwick: 19,
119
- wukong: 62, # alias for monkey_king
127
+ wukong: 62,
120
128
  xerath: 101,
121
129
  xin_zhao: 5,
122
130
  yasuo: 157,
@@ -1,10 +1,21 @@
1
1
  module RiotGamesApi
2
2
  module LOL
3
3
  # how to generate list
4
- # client.static_data.item_all.data.each do |key, value|
5
- # p "#{key}: #{value[:id]}"
4
+ # client.static_data.item_all.data.each do |item|
5
+ # p "#{item[1].name}: #{item[1].id}"
6
6
  # end
7
+ #
8
+ # remove all double quotes
9
+ # remove all single quotes
10
+ # remove all dots
11
+ # remove all "()"
12
+ # replace all letters to lower case
13
+ # replace 'Enchantment: ' with 'Enchantment_'
14
+ # replace space with underscore in item names
15
+ # replace all "-" with "_"
16
+ # sort lines
7
17
  ITEMS = {
18
+ abyssal_scepter: 3001,
8
19
  aegis_of_the_legion: 3105,
9
20
  aether_wisp: 3113,
10
21
  amplifying_tome: 1052,
@@ -14,9 +25,6 @@ module RiotGamesApi
14
25
  ardent_censer: 3504,
15
26
  athenes_unholy_grail: 3174,
16
27
  atmas_impaler: 3005,
17
- augment_death: 3198,
18
- augment_gravity: 3197,
19
- augment_power: 3196,
20
28
  avarice_blade: 3093,
21
29
  b_f_sword: 1038,
22
30
  banner_of_command: 3060,
@@ -26,31 +34,31 @@ module RiotGamesApi
26
34
  blackfire_torch: 3188,
27
35
  blade_of_the_ruined_king: 3153,
28
36
  blasting_wand: 1026,
29
- bonetooth_necklace_1: 3166,
30
- bonetooth_necklace_2: 3167,
31
- bonetooth_necklace_3: 3168,
32
- bonetooth_necklace_4: 3169,
33
- bonetooth_necklace_5: 3171,
34
- bonetooth_necklace_6: 3405,
35
- bonetooth_necklace_7: 3406,
36
- bonetooth_necklace_8: 3407,
37
- bonetooth_necklace_9: 3408,
38
- bonetooth_necklace_10: 3409,
39
- bonetooth_necklace_11: 3411,
40
- bonetooth_necklace_12: 3412,
41
- bonetooth_necklace_13: 3413,
42
- bonetooth_necklace_14: 3414,
43
- bonetooth_necklace_15: 3415,
44
- bonetooth_necklace_16: 3417,
45
- bonetooth_necklace_17: 3418,
46
- bonetooth_necklace_18: 3419,
47
- bonetooth_necklace_19: 3420,
48
- bonetooth_necklace_20: 3421,
49
- bonetooth_necklace_21: 3450,
50
- bonetooth_necklace_22: 3451,
51
- bonetooth_necklace_23: 3452,
52
- bonetooth_necklace_24: 3453,
53
- bonetooth_necklace_25: 3454,
37
+ bonetooth_necklace: 3166,
38
+ bonetooth_necklace: 3167,
39
+ bonetooth_necklace: 3168,
40
+ bonetooth_necklace: 3169,
41
+ bonetooth_necklace: 3171,
42
+ bonetooth_necklace: 3405,
43
+ bonetooth_necklace: 3406,
44
+ bonetooth_necklace: 3407,
45
+ bonetooth_necklace: 3408,
46
+ bonetooth_necklace: 3409,
47
+ bonetooth_necklace: 3411,
48
+ bonetooth_necklace: 3412,
49
+ bonetooth_necklace: 3413,
50
+ bonetooth_necklace: 3414,
51
+ bonetooth_necklace: 3415,
52
+ bonetooth_necklace: 3417,
53
+ bonetooth_necklace: 3418,
54
+ bonetooth_necklace: 3419,
55
+ bonetooth_necklace: 3420,
56
+ bonetooth_necklace: 3421,
57
+ bonetooth_necklace: 3450,
58
+ bonetooth_necklace: 3451,
59
+ bonetooth_necklace: 3452,
60
+ bonetooth_necklace: 3453,
61
+ bonetooth_necklace: 3454,
54
62
  boots_of_mobility: 3117,
55
63
  boots_of_speed: 1001,
56
64
  boots_of_swiftness: 3009,
@@ -60,6 +68,7 @@ module RiotGamesApi
60
68
  chalice_of_harmony: 3028,
61
69
  cloak_of_agility: 1018,
62
70
  cloth_armor: 1029,
71
+ crystalline_bracer: 3801,
63
72
  crystalline_flask: 2041,
64
73
  dagger: 1042,
65
74
  deathfire_grasp: 3128,
@@ -72,41 +81,61 @@ module RiotGamesApi
72
81
  dorans_shield_showdown: 1074,
73
82
  elixir_of_brilliance: 2039,
74
83
  elixir_of_fortitude: 2037,
75
- enchantment_abyssal_scepter: 3001,
76
- enchantment_alacrity_1: 3254,
77
- enchantment_alacrity_2: 3259,
78
- enchantment_alacrity_3: 3264,
79
- enchantment_alacrity_4: 3269,
80
- enchantment_alacrity_5: 3274,
81
- enchantment_alacrity_6: 3279,
82
- enchantment_alacrity_7: 3284,
83
- enchantment_captain_1: 3251,
84
- enchantment_captain_2: 3256,
85
- enchantment_captain_3: 3261,
86
- enchantment_captain_4: 3266,
87
- enchantment_captain_5: 3271,
88
- enchantment_captain_6: 3276,
89
- enchantment_captain_7: 3281,
90
- enchantment_distortion_1: 3253,
91
- enchantment_distortion_2: 3258,
92
- enchantment_distortion_3: 3263,
93
- enchantment_distortion_4: 3268,
94
- enchantment_distortion_5: 3273,
95
- enchantment_distortion_6: 3278,
96
- enchantment_distortion_7: 3283,
97
- enchantment_furor_1: 3252,
98
- enchantment_furor_2: 3257,
99
- enchantment_furor_3: 3262,
100
- enchantment_furor_4: 3267,
101
- enchantment_furor_5: 3272,
102
- enchantment_furor_6: 3277,
103
- enchantment_furor_7: 3282,
104
- enchantment_homeguard_1: 3250,
105
- enchantment_homeguard_2: 3255,
106
- enchantment_homeguard_3: 3260,
107
- enchantment_homeguard_4: 3270,
108
- enchantment_homeguard_5: 3275,
109
- enchantment_homeguard_6: 3280,
84
+ elixir_of_iron: 2138,
85
+ elixir_of_ruin: 2137,
86
+ elixir_of_sorcery: 2139,
87
+ elixir_of_wrath: 2140,
88
+ enchantment_alacrity: 3254,
89
+ enchantment_alacrity: 3259,
90
+ enchantment_alacrity: 3264,
91
+ enchantment_alacrity: 3269,
92
+ enchantment_alacrity: 3274,
93
+ enchantment_alacrity: 3279,
94
+ enchantment_alacrity: 3284,
95
+ enchantment_captain: 3251,
96
+ enchantment_captain: 3256,
97
+ enchantment_captain: 3261,
98
+ enchantment_captain: 3266,
99
+ enchantment_captain: 3271,
100
+ enchantment_captain: 3276,
101
+ enchantment_captain: 3281,
102
+ enchantment_devourer: 3710,
103
+ enchantment_devourer: 3718,
104
+ enchantment_devourer: 3722,
105
+ enchantment_devourer: 3726,
106
+ enchantment_distortion: 3253,
107
+ enchantment_distortion: 3258,
108
+ enchantment_distortion: 3263,
109
+ enchantment_distortion: 3268,
110
+ enchantment_distortion: 3273,
111
+ enchantment_distortion: 3278,
112
+ enchantment_distortion: 3283,
113
+ enchantment_furor: 3252,
114
+ enchantment_furor: 3257,
115
+ enchantment_furor: 3262,
116
+ enchantment_furor: 3267,
117
+ enchantment_furor: 3272,
118
+ enchantment_furor: 3277,
119
+ enchantment_furor: 3282,
120
+ enchantment_homeguard: 3250,
121
+ enchantment_homeguard: 3255,
122
+ enchantment_homeguard: 3260,
123
+ enchantment_homeguard: 3265,
124
+ enchantment_homeguard: 3270,
125
+ enchantment_homeguard: 3275,
126
+ enchantment_homeguard: 3280,
127
+ enchantment_juggernaut: 3709,
128
+ enchantment_juggernaut: 3717,
129
+ enchantment_juggernaut: 3721,
130
+ enchantment_juggernaut: 3725,
131
+ enchantment_magus: 3708,
132
+ enchantment_magus: 3716,
133
+ enchantment_magus: 3720,
134
+ enchantment_magus: 3724,
135
+ enchantment_warrior: 3707,
136
+ enchantment_warrior: 3714,
137
+ enchantment_warrior: 3719,
138
+ enchantment_warrior: 3723,
110
139
  entropy: 3184,
111
140
  essence_reaver: 3508,
112
141
  executioners_calling: 3123,
@@ -123,6 +152,7 @@ module RiotGamesApi
123
152
  frozen_mallet: 3022,
124
153
  giants_belt: 1011,
125
154
  glacial_shroud: 3024,
155
+ golden_transcendence: 3460,
126
156
  greater_stealth_totem_trinket: 3361,
127
157
  greater_vision_totem_trinket: 3362,
128
158
  grezs_spectral_lantern: 3159,
@@ -130,17 +160,16 @@ module RiotGamesApi
130
160
  guardians_horn: 2051,
131
161
  guinsoos_rageblade: 3124,
132
162
  haunting_guise: 3136,
133
- head_of_khazix_1: 3175,
134
- head_of_khazix_2: 3410,
135
- head_of_khazix_3: 3416,
136
- head_of_khazix_4: 3422,
137
- head_of_khazix_5: 3455,
163
+ head_of_khazix: 3175,
164
+ head_of_khazix: 3410,
165
+ head_of_khazix: 3416,
166
+ head_of_khazix: 3422,
167
+ head_of_khazix: 3455,
138
168
  health_potion: 2003,
139
169
  hexdrinker: 3155,
140
170
  hextech_gunblade: 3146,
141
171
  hextech_revolver: 3145,
142
172
  hextech_sweeper: 3187,
143
- homeguard: 3265,
144
173
  hunters_machete: 1039,
145
174
  iceborn_gauntlet: 3025,
146
175
  ichor_of_illumination: 2048,
@@ -165,11 +194,10 @@ module RiotGamesApi
165
194
  mikaels_crucible: 3222,
166
195
  moonflair_spellblade: 3170,
167
196
  morellonomicon: 3165,
168
- muramana_1: 3042,
169
- muramana_2: 3043,
197
+ muramana: 3042,
198
+ muramana: 3043,
170
199
  nashors_tooth: 3115,
171
200
  needlessly_large_rod: 1058,
172
- negatron_cloak: 1057,
173
201
  ninja_tabi: 3047,
174
202
  nomads_medallion: 3096,
175
203
  null_magic_mantle: 1033,
@@ -179,20 +207,27 @@ module RiotGamesApi
179
207
  oracles_lens_trinket: 3364,
180
208
  orb_of_winter: 3112,
181
209
  overlords_bloodmail: 3084,
210
+ perfect_hex_core: 3198,
182
211
  phage: 3044,
183
212
  phantom_dancer: 3046,
184
213
  pickaxe: 1037,
214
+ poachers_knife: 3711,
185
215
  poro_snax: 2052,
186
216
  prospectors_blade: 1062,
187
217
  prospectors_ring: 1063,
218
+ prototype_hex_core: 3200,
188
219
  quicksilver_sash: 3140,
220
+ quill_coat: 3204,
189
221
  quill_coat: 3205,
190
222
  rabadons_deathcap: 3089,
191
223
  randuins_omen: 3143,
224
+ rangers_trailblazer: 3713,
225
+ raptor_cloak: 2053,
192
226
  ravenous_hydra_melee_only: 3074,
193
227
  recurve_bow: 1043,
194
228
  rejuvenation_bead: 1006,
195
229
  relic_shield: 3302,
230
+ righteous_glory: 3800,
196
231
  rod_of_ages: 3027,
197
232
  rod_of_ages_crystal_scar: 3029,
198
233
  ruby_crystal: 1028,
@@ -203,19 +238,22 @@ module RiotGamesApi
203
238
  sapphire_crystal: 1027,
204
239
  scrying_orb_trinket: 3342,
205
240
  seekers_armguard: 3191,
206
- seraphs_embrace_1: 3040,
207
- seraphs_embrace_2: 3048,
241
+ seraphs_embrace: 3040,
242
+ seraphs_embrace: 3048,
208
243
  sheen: 3057,
209
244
  sightstone: 2049,
245
+ skirmishers_sabre: 3715,
210
246
  sorcerers_shoes: 3020,
211
247
  soul_anchor_trinket: 3345,
212
248
  spectres_cowl: 3211,
213
249
  spellthiefs_edge: 3303,
214
250
  spirit_of_the_ancient_golem: 3207,
251
+ spirit_of_the_ancient_golem: 3208,
215
252
  spirit_of_the_elder_lizard: 3209,
216
253
  spirit_of_the_spectral_wraith: 3206,
217
254
  spirit_stone: 1080,
218
255
  spirit_visage: 3065,
256
+ stalkers_blade: 3706,
219
257
  statikk_shiv: 3087,
220
258
  stealth_ward: 2044,
221
259
  stinger: 3101,
@@ -228,17 +266,19 @@ module RiotGamesApi
228
266
  tear_of_the_goddess: 3070,
229
267
  tear_of_the_goddess_crystal_scar: 3073,
230
268
  the_black_cleaver: 3071,
269
+ the_black_spear: 3599,
231
270
  the_bloodthirster: 3072,
232
271
  the_brutalizer: 3134,
233
- the_hex_core: 3200,
272
+ the_hex_core_mk_1: 3196,
273
+ the_hex_core_mk_2: 3197,
234
274
  the_lightbringer: 3185,
235
275
  thornmail: 3075,
236
276
  tiamat_melee_only: 3077,
237
- total_biscuit_of_rejuvenation_1: 2009,
238
- total_biscuit_of_rejuvenation_2: 2010,
277
+ total_biscuit_of_rejuvenation: 2009,
278
+ total_biscuit_of_rejuvenation: 2010,
239
279
  trinity_force: 3078,
240
- twin_shadows_1: 3023,
241
- twin_shadows_2: 3290,
280
+ twin_shadows: 3023,
281
+ twin_shadows: 3290,
242
282
  vampiric_scepter: 1053,
243
283
  vision_ward: 2043,
244
284
  void_staff: 3135,
@@ -1,3 +1,3 @@
1
1
  module RiotGamesApi
2
- VERSION = '0.0.6'
2
+ VERSION = '0.0.7'
3
3
  end
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
22
22
  spec.add_runtime_dependency 'faraday', ['>= 0.7.4', '< 0.10']
23
23
  spec.add_runtime_dependency 'faraday_middleware', '~> 0.9.1'
24
24
  spec.add_runtime_dependency 'rash', '~> 0.4.0'
25
- spec.add_runtime_dependency 'virtus', '~> 1.0.2'
25
+ spec.add_runtime_dependency 'virtus'
26
26
 
27
27
  spec.add_development_dependency 'bundler'
28
28
  spec.add_development_dependency 'rake'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: riot_games_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shigenobu Nishikawa
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-18 00:00:00.000000000 Z
11
+ date: 2014-11-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -76,16 +76,16 @@ dependencies:
76
76
  name: virtus
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - "~>"
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
- version: 1.0.2
81
+ version: '0'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - "~>"
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
- version: 1.0.2
88
+ version: '0'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: bundler
91
91
  requirement: !ruby/object:Gem::Requirement