esi-sdk 1.2.0 → 2.0.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 +4 -4
- data/.github/workflows/cicd.yml +17 -2
- data/.gitignore +2 -0
- data/CHANGELOG.md +17 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +21 -46
- data/README.md +0 -13
- data/Rakefile +31 -15
- data/bin/console +1 -1
- data/esi-sdk.gemspec +2 -4
- data/lib/esi/client/alliance.rb +4 -4
- data/lib/esi/client/assets.rb +8 -6
- data/lib/esi/client/bookmarks.rb +8 -4
- data/lib/esi/client/calendar.rb +4 -4
- data/lib/esi/client/character.rb +16 -15
- data/lib/esi/client/clones.rb +2 -2
- data/lib/esi/client/contacts.rb +12 -9
- data/lib/esi/client/contracts.rb +15 -9
- data/lib/esi/client/corporation.rb +31 -22
- data/lib/esi/client/dogma.rb +5 -5
- data/lib/esi/client/faction_warfare.rb +8 -8
- data/lib/esi/client/fittings.rb +3 -3
- data/lib/esi/client/fleets.rb +14 -14
- data/lib/esi/client/incursions.rb +1 -1
- data/lib/esi/client/industry.rb +13 -8
- data/lib/esi/client/insurance.rb +1 -1
- data/lib/esi/client/killmails.rb +5 -3
- data/lib/esi/client/location.rb +3 -3
- data/lib/esi/client/loyalty.rb +2 -2
- data/lib/esi/client/mail.rb +8 -8
- data/lib/esi/client/market.rb +17 -11
- data/lib/esi/client/opportunities.rb +5 -5
- data/lib/esi/client/planetary_interaction.rb +5 -4
- data/lib/esi/client/routes.rb +1 -1
- data/lib/esi/client/search.rb +2 -2
- data/lib/esi/client/skills.rb +3 -3
- data/lib/esi/client/sovereignty.rb +3 -3
- data/lib/esi/client/status.rb +1 -1
- data/lib/esi/client/universe.rb +32 -30
- data/lib/esi/client/user_interface.rb +5 -5
- data/lib/esi/client/wallet.rb +8 -6
- data/lib/esi/client/wars.rb +4 -3
- data/lib/esi/client.rb +65 -95
- data/lib/esi/errors.rb +3 -3
- data/lib/esi/version.rb +1 -1
- data/package.json +19 -0
- data/yarn.lock +3695 -0
- metadata +10 -36
data/lib/esi/client/clones.rb
CHANGED
@@ -30,7 +30,7 @@ module ESI
|
|
30
30
|
#
|
31
31
|
# @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_clones
|
32
32
|
def get_character_clones(character_id:, headers: {}, params: {})
|
33
|
-
get("/characters/#{character_id}/clones/", headers: headers, params: params)
|
33
|
+
get("/characters/#{character_id}/clones/", headers: headers, params: params).json
|
34
34
|
end
|
35
35
|
alias get_characters_character_id_clones get_character_clones
|
36
36
|
|
@@ -61,7 +61,7 @@ module ESI
|
|
61
61
|
#
|
62
62
|
# @see https://esi.evetech.net/ui/#/Clones/get_characters_character_id_implants
|
63
63
|
def get_character_implants(character_id:, headers: {}, params: {})
|
64
|
-
get("/characters/#{character_id}/implants/", headers: headers, params: params)
|
64
|
+
get("/characters/#{character_id}/implants/", headers: headers, params: params).json
|
65
65
|
end
|
66
66
|
alias get_characters_character_id_implants get_character_implants
|
67
67
|
end
|
data/lib/esi/client/contacts.rb
CHANGED
@@ -29,7 +29,7 @@ module ESI
|
|
29
29
|
# @see https://esi.evetech.net/ui/#/Contacts/delete_characters_character_id_contacts
|
30
30
|
def delete_character_contacts(character_id:, contact_ids:, headers: {}, params: {})
|
31
31
|
params.merge!("contact_ids" => contact_ids)
|
32
|
-
delete("/characters/#{character_id}/contacts/", headers: headers, params: params)
|
32
|
+
delete("/characters/#{character_id}/contacts/", headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias delete_characters_character_id_contacts delete_character_contacts
|
35
35
|
|
@@ -59,7 +59,7 @@ module ESI
|
|
59
59
|
#
|
60
60
|
# @see https://esi.evetech.net/ui/#/Contacts/get_alliances_alliance_id_contacts_labels
|
61
61
|
def get_alliance_contact_labels(alliance_id:, headers: {}, params: {})
|
62
|
-
get("/alliances/#{alliance_id}/contacts/labels/", headers: headers, params: params)
|
62
|
+
get("/alliances/#{alliance_id}/contacts/labels/", headers: headers, params: params).json
|
63
63
|
end
|
64
64
|
alias get_alliances_alliance_id_contacts_labels get_alliance_contact_labels
|
65
65
|
|
@@ -88,7 +88,8 @@ module ESI
|
|
88
88
|
#
|
89
89
|
# @see https://esi.evetech.net/ui/#/Contacts/get_alliances_alliance_id_contacts
|
90
90
|
def get_alliance_contacts(alliance_id:, headers: {}, params: {})
|
91
|
-
get("/alliances/#{alliance_id}/contacts/", headers: headers, params: params)
|
91
|
+
responses = get("/alliances/#{alliance_id}/contacts/", headers: headers, params: params)
|
92
|
+
responses.map(&:json).reduce([], :concat)
|
92
93
|
end
|
93
94
|
alias get_alliances_alliance_id_contacts get_alliance_contacts
|
94
95
|
|
@@ -118,7 +119,7 @@ module ESI
|
|
118
119
|
#
|
119
120
|
# @see https://esi.evetech.net/ui/#/Contacts/get_characters_character_id_contacts_labels
|
120
121
|
def get_character_contact_labels(character_id:, headers: {}, params: {})
|
121
|
-
get("/characters/#{character_id}/contacts/labels/", headers: headers, params: params)
|
122
|
+
get("/characters/#{character_id}/contacts/labels/", headers: headers, params: params).json
|
122
123
|
end
|
123
124
|
alias get_characters_character_id_contacts_labels get_character_contact_labels
|
124
125
|
|
@@ -147,7 +148,8 @@ module ESI
|
|
147
148
|
#
|
148
149
|
# @see https://esi.evetech.net/ui/#/Contacts/get_characters_character_id_contacts
|
149
150
|
def get_character_contacts(character_id:, headers: {}, params: {})
|
150
|
-
get("/characters/#{character_id}/contacts/", headers: headers, params: params)
|
151
|
+
responses = get("/characters/#{character_id}/contacts/", headers: headers, params: params)
|
152
|
+
responses.map(&:json).reduce([], :concat)
|
151
153
|
end
|
152
154
|
alias get_characters_character_id_contacts get_character_contacts
|
153
155
|
|
@@ -177,7 +179,7 @@ module ESI
|
|
177
179
|
#
|
178
180
|
# @see https://esi.evetech.net/ui/#/Contacts/get_corporations_corporation_id_contacts_labels
|
179
181
|
def get_corporation_contact_labels(corporation_id:, headers: {}, params: {})
|
180
|
-
get("/corporations/#{corporation_id}/contacts/labels/", headers: headers, params: params)
|
182
|
+
get("/corporations/#{corporation_id}/contacts/labels/", headers: headers, params: params).json
|
181
183
|
end
|
182
184
|
alias get_corporations_corporation_id_contacts_labels get_corporation_contact_labels
|
183
185
|
|
@@ -206,7 +208,8 @@ module ESI
|
|
206
208
|
#
|
207
209
|
# @see https://esi.evetech.net/ui/#/Contacts/get_corporations_corporation_id_contacts
|
208
210
|
def get_corporation_contacts(corporation_id:, headers: {}, params: {})
|
209
|
-
get("/corporations/#{corporation_id}/contacts/", headers: headers, params: params)
|
211
|
+
responses = get("/corporations/#{corporation_id}/contacts/", headers: headers, params: params)
|
212
|
+
responses.map(&:json).reduce([], :concat)
|
210
213
|
end
|
211
214
|
alias get_corporations_corporation_id_contacts get_corporation_contacts
|
212
215
|
|
@@ -239,7 +242,7 @@ module ESI
|
|
239
242
|
# @see https://esi.evetech.net/ui/#/Contacts/post_characters_character_id_contacts
|
240
243
|
def post_character_contacts(character_id:, contact_ids:, standing:, label_ids: nil, watched: nil, headers: {}, params: {})
|
241
244
|
params.merge!("label_ids" => label_ids, "standing" => standing, "watched" => watched)
|
242
|
-
post("/characters/#{character_id}/contacts/", headers: headers, params: params, payload: contact_ids)
|
245
|
+
post("/characters/#{character_id}/contacts/", headers: headers, params: params, payload: contact_ids).json
|
243
246
|
end
|
244
247
|
alias post_characters_character_id_contacts post_character_contacts
|
245
248
|
|
@@ -271,7 +274,7 @@ module ESI
|
|
271
274
|
# @see https://esi.evetech.net/ui/#/Contacts/put_characters_character_id_contacts
|
272
275
|
def put_character_contacts(character_id:, contact_ids:, standing:, label_ids: nil, watched: nil, headers: {}, params: {})
|
273
276
|
params.merge!("label_ids" => label_ids, "standing" => standing, "watched" => watched)
|
274
|
-
put("/characters/#{character_id}/contacts/", headers: headers, params: params, payload: contact_ids)
|
277
|
+
put("/characters/#{character_id}/contacts/", headers: headers, params: params, payload: contact_ids).json
|
275
278
|
end
|
276
279
|
alias put_characters_character_id_contacts put_character_contacts
|
277
280
|
end
|
data/lib/esi/client/contracts.rb
CHANGED
@@ -32,7 +32,7 @@ module ESI
|
|
32
32
|
#
|
33
33
|
# @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_bids
|
34
34
|
def get_character_contract_bids(character_id:, contract_id:, headers: {}, params: {})
|
35
|
-
get("/characters/#{character_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
|
35
|
+
get("/characters/#{character_id}/contracts/#{contract_id}/bids/", headers: headers, params: params).json
|
36
36
|
end
|
37
37
|
alias get_characters_character_id_contracts_contract_id_bids get_character_contract_bids
|
38
38
|
|
@@ -64,7 +64,7 @@ module ESI
|
|
64
64
|
#
|
65
65
|
# @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts_contract_id_items
|
66
66
|
def get_character_contract_items(character_id:, contract_id:, headers: {}, params: {})
|
67
|
-
get("/characters/#{character_id}/contracts/#{contract_id}/items/", headers: headers, params: params)
|
67
|
+
get("/characters/#{character_id}/contracts/#{contract_id}/items/", headers: headers, params: params).json
|
68
68
|
end
|
69
69
|
alias get_characters_character_id_contracts_contract_id_items get_character_contract_items
|
70
70
|
|
@@ -94,7 +94,8 @@ module ESI
|
|
94
94
|
#
|
95
95
|
# @see https://esi.evetech.net/ui/#/Contracts/get_characters_character_id_contracts
|
96
96
|
def get_character_contracts(character_id:, headers: {}, params: {})
|
97
|
-
get("/characters/#{character_id}/contracts/", headers: headers, params: params)
|
97
|
+
responses = get("/characters/#{character_id}/contracts/", headers: headers, params: params)
|
98
|
+
responses.map(&:json).reduce([], :concat)
|
98
99
|
end
|
99
100
|
alias get_characters_character_id_contracts get_character_contracts
|
100
101
|
|
@@ -120,7 +121,8 @@ module ESI
|
|
120
121
|
#
|
121
122
|
# @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_bids_contract_id
|
122
123
|
def get_contracts_public_bids_contract(contract_id:, headers: {}, params: {})
|
123
|
-
get("/contracts/public/bids/#{contract_id}/", headers: headers, params: params)
|
124
|
+
responses = get("/contracts/public/bids/#{contract_id}/", headers: headers, params: params)
|
125
|
+
responses.map(&:json).reduce([], :concat)
|
124
126
|
end
|
125
127
|
alias get_contracts_public_bids_contract_id get_contracts_public_bids_contract
|
126
128
|
|
@@ -146,7 +148,8 @@ module ESI
|
|
146
148
|
#
|
147
149
|
# @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_items_contract_id
|
148
150
|
def get_contracts_public_items_contract(contract_id:, headers: {}, params: {})
|
149
|
-
get("/contracts/public/items/#{contract_id}/", headers: headers, params: params)
|
151
|
+
responses = get("/contracts/public/items/#{contract_id}/", headers: headers, params: params)
|
152
|
+
responses.map(&:json).reduce([], :concat)
|
150
153
|
end
|
151
154
|
alias get_contracts_public_items_contract_id get_contracts_public_items_contract
|
152
155
|
|
@@ -171,7 +174,8 @@ module ESI
|
|
171
174
|
#
|
172
175
|
# @see https://esi.evetech.net/ui/#/Contracts/get_contracts_public_region_id
|
173
176
|
def get_contracts_public_region(region_id:, headers: {}, params: {})
|
174
|
-
get("/contracts/public/#{region_id}/", headers: headers, params: params)
|
177
|
+
responses = get("/contracts/public/#{region_id}/", headers: headers, params: params)
|
178
|
+
responses.map(&:json).reduce([], :concat)
|
175
179
|
end
|
176
180
|
alias get_contracts_public_region_id get_contracts_public_region
|
177
181
|
|
@@ -203,7 +207,8 @@ module ESI
|
|
203
207
|
#
|
204
208
|
# @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_bids
|
205
209
|
def get_corporation_contract_bids(contract_id:, corporation_id:, headers: {}, params: {})
|
206
|
-
get("/corporations/#{corporation_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
|
210
|
+
responses = get("/corporations/#{corporation_id}/contracts/#{contract_id}/bids/", headers: headers, params: params)
|
211
|
+
responses.map(&:json).reduce([], :concat)
|
207
212
|
end
|
208
213
|
alias get_corporations_corporation_id_contracts_contract_id_bids get_corporation_contract_bids
|
209
214
|
|
@@ -236,7 +241,7 @@ module ESI
|
|
236
241
|
#
|
237
242
|
# @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts_contract_id_items
|
238
243
|
def get_corporation_contract_items(contract_id:, corporation_id:, headers: {}, params: {})
|
239
|
-
get("/corporations/#{corporation_id}/contracts/#{contract_id}/items/", headers: headers, params: params)
|
244
|
+
get("/corporations/#{corporation_id}/contracts/#{contract_id}/items/", headers: headers, params: params).json
|
240
245
|
end
|
241
246
|
alias get_corporations_corporation_id_contracts_contract_id_items get_corporation_contract_items
|
242
247
|
|
@@ -266,7 +271,8 @@ module ESI
|
|
266
271
|
#
|
267
272
|
# @see https://esi.evetech.net/ui/#/Contracts/get_corporations_corporation_id_contracts
|
268
273
|
def get_corporation_contracts(corporation_id:, headers: {}, params: {})
|
269
|
-
get("/corporations/#{corporation_id}/contracts/", headers: headers, params: params)
|
274
|
+
responses = get("/corporations/#{corporation_id}/contracts/", headers: headers, params: params)
|
275
|
+
responses.map(&:json).reduce([], :concat)
|
270
276
|
end
|
271
277
|
alias get_corporations_corporation_id_contracts get_corporation_contracts
|
272
278
|
end
|
@@ -24,7 +24,7 @@ module ESI
|
|
24
24
|
#
|
25
25
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id
|
26
26
|
def get_corporation(corporation_id:, headers: {}, params: {})
|
27
|
-
get("/corporations/#{corporation_id}/", headers: headers, params: params)
|
27
|
+
get("/corporations/#{corporation_id}/", headers: headers, params: params).json
|
28
28
|
end
|
29
29
|
alias get_corporations_corporation_id get_corporation
|
30
30
|
|
@@ -47,7 +47,7 @@ module ESI
|
|
47
47
|
#
|
48
48
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_alliancehistory
|
49
49
|
def get_corporation_alliancehistory(corporation_id:, headers: {}, params: {})
|
50
|
-
get("/corporations/#{corporation_id}/alliancehistory/", headers: headers, params: params)
|
50
|
+
get("/corporations/#{corporation_id}/alliancehistory/", headers: headers, params: params).json
|
51
51
|
end
|
52
52
|
alias get_corporation_alliance_history get_corporation_alliancehistory
|
53
53
|
alias get_corporations_corporation_id_alliancehistory get_corporation_alliancehistory
|
@@ -77,7 +77,8 @@ module ESI
|
|
77
77
|
#
|
78
78
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_blueprints
|
79
79
|
def get_corporation_blueprints(corporation_id:, headers: {}, params: {})
|
80
|
-
get("/corporations/#{corporation_id}/blueprints/", headers: headers, params: params)
|
80
|
+
responses = get("/corporations/#{corporation_id}/blueprints/", headers: headers, params: params)
|
81
|
+
responses.map(&:json).reduce([], :concat)
|
81
82
|
end
|
82
83
|
alias get_corporations_corporation_id_blueprints get_corporation_blueprints
|
83
84
|
|
@@ -106,7 +107,8 @@ module ESI
|
|
106
107
|
#
|
107
108
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_containers_logs
|
108
109
|
def get_corporation_container_logs(corporation_id:, headers: {}, params: {})
|
109
|
-
get("/corporations/#{corporation_id}/containers/logs/", headers: headers, params: params)
|
110
|
+
responses = get("/corporations/#{corporation_id}/containers/logs/", headers: headers, params: params)
|
111
|
+
responses.map(&:json).reduce([], :concat)
|
110
112
|
end
|
111
113
|
alias get_corporations_corporation_id_containers_logs get_corporation_container_logs
|
112
114
|
|
@@ -135,7 +137,7 @@ module ESI
|
|
135
137
|
#
|
136
138
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_divisions
|
137
139
|
def get_corporation_divisions(corporation_id:, headers: {}, params: {})
|
138
|
-
get("/corporations/#{corporation_id}/divisions/", headers: headers, params: params)
|
140
|
+
get("/corporations/#{corporation_id}/divisions/", headers: headers, params: params).json
|
139
141
|
end
|
140
142
|
alias get_corporations_corporation_id_divisions get_corporation_divisions
|
141
143
|
|
@@ -164,7 +166,7 @@ module ESI
|
|
164
166
|
#
|
165
167
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_facilities
|
166
168
|
def get_corporation_facilities(corporation_id:, headers: {}, params: {})
|
167
|
-
get("/corporations/#{corporation_id}/facilities/", headers: headers, params: params)
|
169
|
+
get("/corporations/#{corporation_id}/facilities/", headers: headers, params: params).json
|
168
170
|
end
|
169
171
|
alias get_corporations_corporation_id_facilities get_corporation_facilities
|
170
172
|
|
@@ -188,7 +190,7 @@ module ESI
|
|
188
190
|
#
|
189
191
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_icons
|
190
192
|
def get_corporation_icons(corporation_id:, headers: {}, params: {})
|
191
|
-
get("/corporations/#{corporation_id}/icons/", headers: headers, params: params)
|
193
|
+
get("/corporations/#{corporation_id}/icons/", headers: headers, params: params).json
|
192
194
|
end
|
193
195
|
alias get_corporations_corporation_id_icons get_corporation_icons
|
194
196
|
|
@@ -217,7 +219,8 @@ module ESI
|
|
217
219
|
#
|
218
220
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals
|
219
221
|
def get_corporation_medals(corporation_id:, headers: {}, params: {})
|
220
|
-
get("/corporations/#{corporation_id}/medals/", headers: headers, params: params)
|
222
|
+
responses = get("/corporations/#{corporation_id}/medals/", headers: headers, params: params)
|
223
|
+
responses.map(&:json).reduce([], :concat)
|
221
224
|
end
|
222
225
|
alias get_corporations_corporation_id_medals get_corporation_medals
|
223
226
|
|
@@ -246,7 +249,8 @@ module ESI
|
|
246
249
|
#
|
247
250
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_medals_issued
|
248
251
|
def get_corporation_medals_issued(corporation_id:, headers: {}, params: {})
|
249
|
-
get("/corporations/#{corporation_id}/medals/issued/", headers: headers, params: params)
|
252
|
+
responses = get("/corporations/#{corporation_id}/medals/issued/", headers: headers, params: params)
|
253
|
+
responses.map(&:json).reduce([], :concat)
|
250
254
|
end
|
251
255
|
alias get_corporations_corporation_id_medals_issued get_corporation_medals_issued
|
252
256
|
|
@@ -275,7 +279,7 @@ module ESI
|
|
275
279
|
#
|
276
280
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_titles
|
277
281
|
def get_corporation_member_titles(corporation_id:, headers: {}, params: {})
|
278
|
-
get("/corporations/#{corporation_id}/members/titles/", headers: headers, params: params)
|
282
|
+
get("/corporations/#{corporation_id}/members/titles/", headers: headers, params: params).json
|
279
283
|
end
|
280
284
|
alias get_corporations_corporation_id_members_titles get_corporation_member_titles
|
281
285
|
|
@@ -304,7 +308,7 @@ module ESI
|
|
304
308
|
#
|
305
309
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members
|
306
310
|
def get_corporation_members(corporation_id:, headers: {}, params: {})
|
307
|
-
get("/corporations/#{corporation_id}/members/", headers: headers, params: params)
|
311
|
+
get("/corporations/#{corporation_id}/members/", headers: headers, params: params).json
|
308
312
|
end
|
309
313
|
alias get_corporations_corporation_id_members get_corporation_members
|
310
314
|
|
@@ -333,7 +337,7 @@ module ESI
|
|
333
337
|
#
|
334
338
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_members_limit
|
335
339
|
def get_corporation_members_limit(corporation_id:, headers: {}, params: {})
|
336
|
-
get("/corporations/#{corporation_id}/members/limit/", headers: headers, params: params)
|
340
|
+
get("/corporations/#{corporation_id}/members/limit/", headers: headers, params: params).json
|
337
341
|
end
|
338
342
|
alias get_corporations_corporation_id_members_limit get_corporation_members_limit
|
339
343
|
|
@@ -362,7 +366,7 @@ module ESI
|
|
362
366
|
#
|
363
367
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_membertracking
|
364
368
|
def get_corporation_membertracking(corporation_id:, headers: {}, params: {})
|
365
|
-
get("/corporations/#{corporation_id}/membertracking/", headers: headers, params: params)
|
369
|
+
get("/corporations/#{corporation_id}/membertracking/", headers: headers, params: params).json
|
366
370
|
end
|
367
371
|
alias get_corporations_corporation_id_membertracking get_corporation_membertracking
|
368
372
|
|
@@ -382,7 +386,7 @@ module ESI
|
|
382
386
|
#
|
383
387
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_npccorps
|
384
388
|
def get_corporation_npccorps(headers: {}, params: {})
|
385
|
-
get("/corporations/npccorps/", headers: headers, params: params)
|
389
|
+
get("/corporations/npccorps/", headers: headers, params: params).json
|
386
390
|
end
|
387
391
|
alias get_corporations_npccorps get_corporation_npccorps
|
388
392
|
|
@@ -411,7 +415,7 @@ module ESI
|
|
411
415
|
#
|
412
416
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles
|
413
417
|
def get_corporation_roles(corporation_id:, headers: {}, params: {})
|
414
|
-
get("/corporations/#{corporation_id}/roles/", headers: headers, params: params)
|
418
|
+
get("/corporations/#{corporation_id}/roles/", headers: headers, params: params).json
|
415
419
|
end
|
416
420
|
alias get_corporations_corporation_id_roles get_corporation_roles
|
417
421
|
|
@@ -440,7 +444,8 @@ module ESI
|
|
440
444
|
#
|
441
445
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_roles_history
|
442
446
|
def get_corporation_roles_history(corporation_id:, headers: {}, params: {})
|
443
|
-
get("/corporations/#{corporation_id}/roles/history/", headers: headers, params: params)
|
447
|
+
responses = get("/corporations/#{corporation_id}/roles/history/", headers: headers, params: params)
|
448
|
+
responses.map(&:json).reduce([], :concat)
|
444
449
|
end
|
445
450
|
alias get_corporations_corporation_id_roles_history get_corporation_roles_history
|
446
451
|
|
@@ -470,7 +475,8 @@ module ESI
|
|
470
475
|
#
|
471
476
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_shareholders
|
472
477
|
def get_corporation_shareholders(corporation_id:, headers: {}, params: {})
|
473
|
-
get("/corporations/#{corporation_id}/shareholders/", headers: headers, params: params)
|
478
|
+
responses = get("/corporations/#{corporation_id}/shareholders/", headers: headers, params: params)
|
479
|
+
responses.map(&:json).reduce([], :concat)
|
474
480
|
end
|
475
481
|
alias get_corporations_corporation_id_shareholders get_corporation_shareholders
|
476
482
|
|
@@ -499,7 +505,8 @@ module ESI
|
|
499
505
|
#
|
500
506
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_standings
|
501
507
|
def get_corporation_standings(corporation_id:, headers: {}, params: {})
|
502
|
-
get("/corporations/#{corporation_id}/standings/", headers: headers, params: params)
|
508
|
+
responses = get("/corporations/#{corporation_id}/standings/", headers: headers, params: params)
|
509
|
+
responses.map(&:json).reduce([], :concat)
|
503
510
|
end
|
504
511
|
alias get_corporations_corporation_id_standings get_corporation_standings
|
505
512
|
|
@@ -531,7 +538,7 @@ module ESI
|
|
531
538
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases_starbase_id
|
532
539
|
def get_corporation_starbase(corporation_id:, starbase_id:, system_id:, headers: {}, params: {})
|
533
540
|
params.merge!("system_id" => system_id)
|
534
|
-
get("/corporations/#{corporation_id}/starbases/#{starbase_id}/", headers: headers, params: params)
|
541
|
+
get("/corporations/#{corporation_id}/starbases/#{starbase_id}/", headers: headers, params: params).json
|
535
542
|
end
|
536
543
|
alias get_corporations_corporation_id_starbases_starbase_id get_corporation_starbase
|
537
544
|
|
@@ -560,7 +567,8 @@ module ESI
|
|
560
567
|
#
|
561
568
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_starbases
|
562
569
|
def get_corporation_starbases(corporation_id:, headers: {}, params: {})
|
563
|
-
get("/corporations/#{corporation_id}/starbases/", headers: headers, params: params)
|
570
|
+
responses = get("/corporations/#{corporation_id}/starbases/", headers: headers, params: params)
|
571
|
+
responses.map(&:json).reduce([], :concat)
|
564
572
|
end
|
565
573
|
alias get_corporations_corporation_id_starbases get_corporation_starbases
|
566
574
|
|
@@ -589,7 +597,8 @@ module ESI
|
|
589
597
|
#
|
590
598
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_structures
|
591
599
|
def get_corporation_structures(corporation_id:, headers: {}, params: {})
|
592
|
-
get("/corporations/#{corporation_id}/structures/", headers: headers, params: params)
|
600
|
+
responses = get("/corporations/#{corporation_id}/structures/", headers: headers, params: params)
|
601
|
+
responses.map(&:json).reduce([], :concat)
|
593
602
|
end
|
594
603
|
alias get_corporations_corporation_id_structures get_corporation_structures
|
595
604
|
|
@@ -618,7 +627,7 @@ module ESI
|
|
618
627
|
#
|
619
628
|
# @see https://esi.evetech.net/ui/#/Corporation/get_corporations_corporation_id_titles
|
620
629
|
def get_corporation_titles(corporation_id:, headers: {}, params: {})
|
621
|
-
get("/corporations/#{corporation_id}/titles/", headers: headers, params: params)
|
630
|
+
get("/corporations/#{corporation_id}/titles/", headers: headers, params: params).json
|
622
631
|
end
|
623
632
|
alias get_corporations_corporation_id_titles get_corporation_titles
|
624
633
|
end
|
data/lib/esi/client/dogma.rb
CHANGED
@@ -23,7 +23,7 @@ module ESI
|
|
23
23
|
#
|
24
24
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_attributes_attribute_id
|
25
25
|
def get_dogma_attribute(attribute_id:, headers: {}, params: {})
|
26
|
-
get("/dogma/attributes/#{attribute_id}/", headers: headers, params: params)
|
26
|
+
get("/dogma/attributes/#{attribute_id}/", headers: headers, params: params).json
|
27
27
|
end
|
28
28
|
alias get_dogma_attributes_attribute_id get_dogma_attribute
|
29
29
|
|
@@ -44,7 +44,7 @@ module ESI
|
|
44
44
|
#
|
45
45
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_attributes
|
46
46
|
def get_dogma_attributes(headers: {}, params: {})
|
47
|
-
get("/dogma/attributes/", headers: headers, params: params)
|
47
|
+
get("/dogma/attributes/", headers: headers, params: params).json
|
48
48
|
end
|
49
49
|
|
50
50
|
# Returns info about a dynamic item resulting from mutation with a mutaplasmid.
|
@@ -67,7 +67,7 @@ module ESI
|
|
67
67
|
#
|
68
68
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_dynamic_items_type_id_item_id
|
69
69
|
def get_dogma_dynamic_items_type_item(item_id:, type_id:, headers: {}, params: {})
|
70
|
-
get("/dogma/dynamic/items/#{type_id}/#{item_id}/", headers: headers, params: params)
|
70
|
+
get("/dogma/dynamic/items/#{type_id}/#{item_id}/", headers: headers, params: params).json
|
71
71
|
end
|
72
72
|
alias get_dogma_dynamic_items_type_id_item_id get_dogma_dynamic_items_type_item
|
73
73
|
|
@@ -89,7 +89,7 @@ module ESI
|
|
89
89
|
#
|
90
90
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_effects_effect_id
|
91
91
|
def get_dogma_effect(effect_id:, headers: {}, params: {})
|
92
|
-
get("/dogma/effects/#{effect_id}/", headers: headers, params: params)
|
92
|
+
get("/dogma/effects/#{effect_id}/", headers: headers, params: params).json
|
93
93
|
end
|
94
94
|
alias get_dogma_effects_effect_id get_dogma_effect
|
95
95
|
|
@@ -110,7 +110,7 @@ module ESI
|
|
110
110
|
#
|
111
111
|
# @see https://esi.evetech.net/ui/#/Dogma/get_dogma_effects
|
112
112
|
def get_dogma_effects(headers: {}, params: {})
|
113
|
-
get("/dogma/effects/", headers: headers, params: params)
|
113
|
+
get("/dogma/effects/", headers: headers, params: params).json
|
114
114
|
end
|
115
115
|
end
|
116
116
|
end
|
@@ -29,7 +29,7 @@ module ESI
|
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_characters_character_id_fw_stats
|
31
31
|
def get_character_fw_stats(character_id:, headers: {}, params: {})
|
32
|
-
get("/characters/#{character_id}/fw/stats/", headers: headers, params: params)
|
32
|
+
get("/characters/#{character_id}/fw/stats/", headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias get_characters_character_id_fw_stats get_character_fw_stats
|
35
35
|
|
@@ -58,7 +58,7 @@ module ESI
|
|
58
58
|
#
|
59
59
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_corporations_corporation_id_fw_stats
|
60
60
|
def get_corporation_fw_stats(corporation_id:, headers: {}, params: {})
|
61
|
-
get("/corporations/#{corporation_id}/fw/stats/", headers: headers, params: params)
|
61
|
+
get("/corporations/#{corporation_id}/fw/stats/", headers: headers, params: params).json
|
62
62
|
end
|
63
63
|
alias get_corporations_corporation_id_fw_stats get_corporation_fw_stats
|
64
64
|
|
@@ -80,7 +80,7 @@ module ESI
|
|
80
80
|
#
|
81
81
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_fw_leaderboards_characters
|
82
82
|
def get_fw_leaderboard_characters(headers: {}, params: {})
|
83
|
-
get("/fw/leaderboards/characters/", headers: headers, params: params)
|
83
|
+
get("/fw/leaderboards/characters/", headers: headers, params: params).json
|
84
84
|
end
|
85
85
|
alias get_fw_leaderboards_characters get_fw_leaderboard_characters
|
86
86
|
|
@@ -102,7 +102,7 @@ module ESI
|
|
102
102
|
#
|
103
103
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_fw_leaderboards_corporations
|
104
104
|
def get_fw_leaderboard_corporations(headers: {}, params: {})
|
105
|
-
get("/fw/leaderboards/corporations/", headers: headers, params: params)
|
105
|
+
get("/fw/leaderboards/corporations/", headers: headers, params: params).json
|
106
106
|
end
|
107
107
|
alias get_fw_leaderboards_corporations get_fw_leaderboard_corporations
|
108
108
|
|
@@ -124,7 +124,7 @@ module ESI
|
|
124
124
|
#
|
125
125
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_fw_leaderboards
|
126
126
|
def get_fw_leaderboards(headers: {}, params: {})
|
127
|
-
get("/fw/leaderboards/", headers: headers, params: params)
|
127
|
+
get("/fw/leaderboards/", headers: headers, params: params).json
|
128
128
|
end
|
129
129
|
|
130
130
|
# Statistical overviews of factions involved in faction warfare.
|
@@ -145,7 +145,7 @@ module ESI
|
|
145
145
|
#
|
146
146
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_fw_stats
|
147
147
|
def get_fw_stats(headers: {}, params: {})
|
148
|
-
get("/fw/stats/", headers: headers, params: params)
|
148
|
+
get("/fw/stats/", headers: headers, params: params).json
|
149
149
|
end
|
150
150
|
|
151
151
|
# An overview of the current ownership of faction warfare solar systems.
|
@@ -168,7 +168,7 @@ module ESI
|
|
168
168
|
#
|
169
169
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_fw_systems
|
170
170
|
def get_fw_systems(headers: {}, params: {})
|
171
|
-
get("/fw/systems/", headers: headers, params: params)
|
171
|
+
get("/fw/systems/", headers: headers, params: params).json
|
172
172
|
end
|
173
173
|
|
174
174
|
# Data about which NPC factions are at war.
|
@@ -189,7 +189,7 @@ module ESI
|
|
189
189
|
#
|
190
190
|
# @see https://esi.evetech.net/ui/#/Faction Warfare/get_fw_wars
|
191
191
|
def get_fw_wars(headers: {}, params: {})
|
192
|
-
get("/fw/wars/", headers: headers, params: params)
|
192
|
+
get("/fw/wars/", headers: headers, params: params).json
|
193
193
|
end
|
194
194
|
end
|
195
195
|
end
|
data/lib/esi/client/fittings.rb
CHANGED
@@ -29,7 +29,7 @@ module ESI
|
|
29
29
|
#
|
30
30
|
# @see https://esi.evetech.net/ui/#/Fittings/delete_characters_character_id_fittings_fitting_id
|
31
31
|
def delete_character_fitting(character_id:, fitting_id:, headers: {}, params: {})
|
32
|
-
delete("/characters/#{character_id}/fittings/#{fitting_id}/", headers: headers, params: params)
|
32
|
+
delete("/characters/#{character_id}/fittings/#{fitting_id}/", headers: headers, params: params).json
|
33
33
|
end
|
34
34
|
alias delete_characters_character_id_fittings_fitting_id delete_character_fitting
|
35
35
|
|
@@ -58,7 +58,7 @@ module ESI
|
|
58
58
|
#
|
59
59
|
# @see https://esi.evetech.net/ui/#/Fittings/get_characters_character_id_fittings
|
60
60
|
def get_character_fittings(character_id:, headers: {}, params: {})
|
61
|
-
get("/characters/#{character_id}/fittings/", headers: headers, params: params)
|
61
|
+
get("/characters/#{character_id}/fittings/", headers: headers, params: params).json
|
62
62
|
end
|
63
63
|
alias get_characters_character_id_fittings get_character_fittings
|
64
64
|
|
@@ -86,7 +86,7 @@ module ESI
|
|
86
86
|
#
|
87
87
|
# @see https://esi.evetech.net/ui/#/Fittings/post_characters_character_id_fittings
|
88
88
|
def post_character_fittings(character_id:, fitting:, headers: {}, params: {})
|
89
|
-
post("/characters/#{character_id}/fittings/", headers: headers, params: params, payload: fitting)
|
89
|
+
post("/characters/#{character_id}/fittings/", headers: headers, params: params, payload: fitting).json
|
90
90
|
end
|
91
91
|
alias post_characters_character_id_fittings post_character_fittings
|
92
92
|
end
|