eve_online 0.30.0 → 0.35.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +18 -54
- data/.deepsource.toml +5 -0
- data/.ruby-version +1 -1
- data/Appraisals +0 -12
- data/CHANGELOG.md +58 -0
- data/Gemfile.lock +57 -53
- data/Gemfile.mutant.lock +49 -50
- data/README.md +401 -133
- data/eve_online.gemspec +3 -3
- data/lib/eve_online.rb +40 -7
- data/lib/eve_online/esi/alliance_corporations.rb +1 -1
- data/lib/eve_online/esi/alliances.rb +1 -1
- data/lib/eve_online/esi/base.rb +15 -6
- data/lib/eve_online/esi/character_assets.rb +1 -1
- data/lib/eve_online/esi/character_calendar.rb +1 -1
- data/lib/eve_online/esi/character_calendar_event.rb +1 -1
- data/lib/eve_online/esi/{character_bookmarks.rb → character_contracts.rb} +7 -7
- data/lib/eve_online/esi/character_get_mail.rb +37 -0
- data/lib/eve_online/esi/character_location.rb +1 -1
- data/lib/eve_online/esi/character_mail_labels.rb +40 -0
- data/lib/eve_online/esi/character_online.rb +1 -1
- data/lib/eve_online/esi/character_ship.rb +1 -1
- data/lib/eve_online/esi/character_skills.rb +1 -1
- data/lib/eve_online/esi/character_wallet.rb +1 -1
- data/lib/eve_online/esi/character_wallet_journal.rb +2 -2
- data/lib/eve_online/esi/character_wallet_transactions.rb +41 -0
- data/lib/eve_online/esi/corporation_assets.rb +1 -1
- data/lib/eve_online/esi/corporation_npc.rb +20 -0
- data/lib/eve_online/esi/killmail.rb +30 -0
- data/lib/eve_online/esi/market_prices.rb +27 -0
- data/lib/eve_online/esi/models/aggressor.rb +1 -1
- data/lib/eve_online/esi/models/alliance.rb +1 -1
- data/lib/eve_online/esi/models/alliance_icon.rb +1 -1
- data/lib/eve_online/esi/models/alliance_short.rb +1 -1
- data/lib/eve_online/esi/models/ally.rb +1 -1
- data/lib/eve_online/esi/models/ancestry.rb +1 -1
- data/lib/eve_online/esi/models/asset.rb +1 -1
- data/lib/eve_online/esi/models/asset_location.rb +1 -1
- data/lib/eve_online/esi/models/asset_name.rb +1 -1
- data/lib/eve_online/esi/models/asteroid_belt.rb +1 -1
- data/lib/eve_online/esi/models/attributes.rb +1 -1
- data/lib/eve_online/esi/models/bloodline.rb +1 -1
- data/lib/eve_online/esi/models/blueprint.rb +1 -1
- data/lib/eve_online/esi/models/category.rb +1 -1
- data/lib/eve_online/esi/models/character.rb +1 -1
- data/lib/eve_online/esi/models/character_corporation_history.rb +1 -1
- data/lib/eve_online/esi/models/character_industry_job.rb +1 -1
- data/lib/eve_online/esi/models/character_location.rb +1 -1
- data/lib/eve_online/esi/models/character_order.rb +1 -1
- data/lib/eve_online/esi/models/character_portrait.rb +1 -1
- data/lib/eve_online/esi/models/character_ship.rb +1 -1
- data/lib/eve_online/esi/models/constellation.rb +1 -1
- data/lib/eve_online/esi/models/contract.rb +132 -0
- data/lib/eve_online/esi/models/coordinates.rb +1 -1
- data/lib/eve_online/esi/models/corporation.rb +1 -1
- data/lib/eve_online/esi/models/corporation_alliance_history.rb +1 -1
- data/lib/eve_online/esi/models/corporation_industry_job.rb +1 -1
- data/lib/eve_online/esi/models/corporation_order.rb +1 -1
- data/lib/eve_online/esi/models/defender.rb +1 -1
- data/lib/eve_online/esi/models/dogma_attribute.rb +1 -1
- data/lib/eve_online/esi/models/dogma_attribute_short.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect_modifier.rb +1 -1
- data/lib/eve_online/esi/models/dogma_effect_short.rb +1 -1
- data/lib/eve_online/esi/models/event.rb +1 -1
- data/lib/eve_online/esi/models/event_details.rb +1 -1
- data/lib/eve_online/esi/models/faction.rb +1 -1
- data/lib/eve_online/esi/models/fatigue.rb +1 -1
- data/lib/eve_online/esi/models/graphic.rb +1 -1
- data/lib/eve_online/esi/models/group.rb +1 -1
- data/lib/eve_online/esi/models/home_location.rb +1 -1
- data/lib/eve_online/esi/models/jump_clone.rb +1 -1
- data/lib/eve_online/esi/models/killmail.rb +47 -0
- data/lib/eve_online/esi/models/killmail_short.rb +1 -1
- data/lib/eve_online/esi/models/loyalty_point.rb +1 -1
- data/lib/eve_online/esi/models/loyalty_store_offer.rb +1 -1
- data/lib/eve_online/esi/models/mail.rb +49 -0
- data/lib/eve_online/esi/models/mail_label.rb +34 -0
- data/lib/eve_online/esi/models/mail_recipient.rb +24 -0
- data/lib/eve_online/esi/models/mail_recipients.rb +21 -0
- data/lib/eve_online/esi/models/market_group.rb +1 -1
- data/lib/eve_online/esi/models/market_history.rb +1 -1
- data/lib/eve_online/esi/models/market_price.rb +29 -0
- data/lib/eve_online/esi/models/moon.rb +1 -1
- data/lib/eve_online/esi/models/notification.rb +1 -1
- data/lib/eve_online/esi/models/offer_required_item.rb +1 -1
- data/lib/eve_online/esi/models/online.rb +1 -1
- data/lib/eve_online/esi/models/planet.rb +1 -1
- data/lib/eve_online/esi/models/planet_short.rb +1 -1
- data/lib/eve_online/esi/models/position.rb +1 -1
- data/lib/eve_online/esi/models/public_contract.rb +98 -0
- data/lib/eve_online/esi/models/public_contract_item.rb +59 -0
- data/lib/eve_online/esi/models/race.rb +3 -3
- data/lib/eve_online/esi/models/region.rb +5 -6
- data/lib/eve_online/esi/models/server_status.rb +1 -1
- data/lib/eve_online/esi/models/skill.rb +1 -1
- data/lib/eve_online/esi/models/skill_queue_entry.rb +1 -1
- data/lib/eve_online/esi/models/standing.rb +1 -1
- data/lib/eve_online/esi/models/star.rb +1 -1
- data/lib/eve_online/esi/models/stargate.rb +8 -2
- data/lib/eve_online/esi/models/station.rb +1 -1
- data/lib/eve_online/esi/models/system.rb +1 -1
- data/lib/eve_online/esi/models/system_jump.rb +1 -1
- data/lib/eve_online/esi/models/system_kill.rb +1 -1
- data/lib/eve_online/esi/models/type.rb +1 -1
- data/lib/eve_online/esi/models/{wallet_journal_entry.rb → wallet_journal.rb} +4 -4
- data/lib/eve_online/esi/models/wallet_transaction.rb +66 -0
- data/lib/eve_online/esi/models/war.rb +1 -1
- data/lib/eve_online/esi/public_contract.rb +40 -0
- data/lib/eve_online/esi/public_contracts.rb +40 -0
- data/lib/eve_online/esi/universe_region.rb +2 -2
- data/lib/eve_online/esi/universe_stargate.rb +1 -1
- data/lib/eve_online/exceptions/error_limited.rb +8 -0
- data/lib/eve_online/formulas/blueprint_copy_time.rb +47 -0
- data/lib/eve_online/version.rb +1 -1
- metadata +32 -15
- data/lib/eve_online/esi/character_bookmark_folders.rb +0 -41
- data/lib/eve_online/esi/models/bookmark.rb +0 -71
- data/lib/eve_online/esi/models/bookmark_folder.rb +0 -24
- data/lib/eve_online/esi/models/stargate_destination.rb +0 -24
@@ -0,0 +1,98 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class PublicContract < Base
|
7
|
+
def as_json
|
8
|
+
{
|
9
|
+
buyout: buyout,
|
10
|
+
collateral: collateral,
|
11
|
+
contract_id: contract_id,
|
12
|
+
date_expired: date_expired,
|
13
|
+
date_issued: date_issued,
|
14
|
+
days_to_complete: days_to_complete,
|
15
|
+
end_location_id: end_location_id,
|
16
|
+
for_corporation: for_corporation,
|
17
|
+
issuer_corporation_id: issuer_corporation_id,
|
18
|
+
issuer_id: issuer_id,
|
19
|
+
price: price,
|
20
|
+
reward: reward,
|
21
|
+
start_location_id: start_location_id,
|
22
|
+
title: title,
|
23
|
+
type: type,
|
24
|
+
volume: volume
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
def buyout
|
29
|
+
options["buyout"]
|
30
|
+
end
|
31
|
+
|
32
|
+
def collateral
|
33
|
+
options["collateral"]
|
34
|
+
end
|
35
|
+
|
36
|
+
def contract_id
|
37
|
+
options["contract_id"]
|
38
|
+
end
|
39
|
+
|
40
|
+
def date_expired
|
41
|
+
date_expired = options["date_expired"]
|
42
|
+
|
43
|
+
parse_datetime_with_timezone(date_expired) if date_expired
|
44
|
+
end
|
45
|
+
|
46
|
+
def date_issued
|
47
|
+
date_issued = options["date_issued"]
|
48
|
+
|
49
|
+
parse_datetime_with_timezone(date_issued) if date_issued
|
50
|
+
end
|
51
|
+
|
52
|
+
def days_to_complete
|
53
|
+
options["days_to_complete"]
|
54
|
+
end
|
55
|
+
|
56
|
+
def end_location_id
|
57
|
+
options["end_location_id"]
|
58
|
+
end
|
59
|
+
|
60
|
+
def for_corporation
|
61
|
+
options["for_corporation"]
|
62
|
+
end
|
63
|
+
|
64
|
+
def issuer_corporation_id
|
65
|
+
options["issuer_corporation_id"]
|
66
|
+
end
|
67
|
+
|
68
|
+
def issuer_id
|
69
|
+
options["issuer_id"]
|
70
|
+
end
|
71
|
+
|
72
|
+
def price
|
73
|
+
options["price"]
|
74
|
+
end
|
75
|
+
|
76
|
+
def reward
|
77
|
+
options["reward"]
|
78
|
+
end
|
79
|
+
|
80
|
+
def start_location_id
|
81
|
+
options["start_location_id"]
|
82
|
+
end
|
83
|
+
|
84
|
+
def title
|
85
|
+
options["title"]
|
86
|
+
end
|
87
|
+
|
88
|
+
def type
|
89
|
+
options["type"]
|
90
|
+
end
|
91
|
+
|
92
|
+
def volume
|
93
|
+
options["volume"]
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,59 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class PublicContractItem < Base
|
7
|
+
def as_json
|
8
|
+
{
|
9
|
+
is_blueprint_copy: is_blueprint_copy,
|
10
|
+
is_included: is_included,
|
11
|
+
item_id: item_id,
|
12
|
+
material_efficiency: material_efficiency,
|
13
|
+
quantity: quantity,
|
14
|
+
record_id: record_id,
|
15
|
+
runs: runs,
|
16
|
+
time_efficiency: time_efficiency,
|
17
|
+
type_id: type_id
|
18
|
+
}
|
19
|
+
end
|
20
|
+
|
21
|
+
def is_blueprint_copy
|
22
|
+
options["is_blueprint_copy"]
|
23
|
+
end
|
24
|
+
|
25
|
+
def is_included
|
26
|
+
options["is_included"]
|
27
|
+
end
|
28
|
+
|
29
|
+
def item_id
|
30
|
+
options["item_id"]
|
31
|
+
end
|
32
|
+
|
33
|
+
def material_efficiency
|
34
|
+
options["material_efficiency"]
|
35
|
+
end
|
36
|
+
|
37
|
+
def quantity
|
38
|
+
options["quantity"]
|
39
|
+
end
|
40
|
+
|
41
|
+
def record_id
|
42
|
+
options["record_id"]
|
43
|
+
end
|
44
|
+
|
45
|
+
def runs
|
46
|
+
options["runs"]
|
47
|
+
end
|
48
|
+
|
49
|
+
def time_efficiency
|
50
|
+
options["time_efficiency"]
|
51
|
+
end
|
52
|
+
|
53
|
+
def type_id
|
54
|
+
options["type_id"]
|
55
|
+
end
|
56
|
+
end
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
@@ -6,14 +6,14 @@ module EveOnline
|
|
6
6
|
class Race < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
|
9
|
+
faction_id: faction_id,
|
10
10
|
description: description,
|
11
11
|
name: name,
|
12
|
-
race_id: race_id
|
12
|
+
race_id: race_id
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
16
|
+
def faction_id
|
17
17
|
options["alliance_id"]
|
18
18
|
end
|
19
19
|
|
@@ -6,17 +6,12 @@ module EveOnline
|
|
6
6
|
class Region < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
constellations: constellations, # TODO: rename constellations -> constellation_ids and remove from as_json
|
10
9
|
description: description,
|
11
10
|
name: name,
|
12
|
-
region_id: region_id
|
11
|
+
region_id: region_id
|
13
12
|
}
|
14
13
|
end
|
15
14
|
|
16
|
-
def constellations
|
17
|
-
options["constellations"]
|
18
|
-
end
|
19
|
-
|
20
15
|
def description
|
21
16
|
options["description"]
|
22
17
|
end
|
@@ -28,6 +23,10 @@ module EveOnline
|
|
28
23
|
def region_id
|
29
24
|
options["region_id"]
|
30
25
|
end
|
26
|
+
|
27
|
+
def constellation_ids
|
28
|
+
options["constellations"]
|
29
|
+
end
|
31
30
|
end
|
32
31
|
end
|
33
32
|
end
|
@@ -10,6 +10,8 @@ module EveOnline
|
|
10
10
|
stargate_id: stargate_id,
|
11
11
|
system_id: system_id,
|
12
12
|
type_id: type_id,
|
13
|
+
destination_stargate_id: destination_stargate_id,
|
14
|
+
destination_system_id: destination_system_id
|
13
15
|
}
|
14
16
|
end
|
15
17
|
|
@@ -29,8 +31,12 @@ module EveOnline
|
|
29
31
|
options["type_id"]
|
30
32
|
end
|
31
33
|
|
32
|
-
def
|
33
|
-
|
34
|
+
def destination_stargate_id
|
35
|
+
options.dig("destination", "stargate_id")
|
36
|
+
end
|
37
|
+
|
38
|
+
def destination_system_id
|
39
|
+
options.dig("destination", "system_id")
|
34
40
|
end
|
35
41
|
|
36
42
|
def position
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
module Models
|
6
|
-
class
|
6
|
+
class WalletJournal < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
amount: amount,
|
@@ -13,12 +13,12 @@ module EveOnline
|
|
13
13
|
date: date,
|
14
14
|
description: description,
|
15
15
|
first_party_id: first_party_id,
|
16
|
-
|
16
|
+
wallet_journal_id: wallet_journal_id,
|
17
17
|
reason: reason,
|
18
18
|
ref_type: ref_type,
|
19
19
|
second_party_id: second_party_id,
|
20
20
|
tax: tax,
|
21
|
-
tax_receiver_id: tax_receiver_id
|
21
|
+
tax_receiver_id: tax_receiver_id
|
22
22
|
}
|
23
23
|
end
|
24
24
|
|
@@ -52,7 +52,7 @@ module EveOnline
|
|
52
52
|
options["first_party_id"]
|
53
53
|
end
|
54
54
|
|
55
|
-
def
|
55
|
+
def wallet_journal_id
|
56
56
|
options["id"]
|
57
57
|
end
|
58
58
|
|
@@ -0,0 +1,66 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module EveOnline
|
4
|
+
module ESI
|
5
|
+
module Models
|
6
|
+
class WalletTransaction < Base
|
7
|
+
def as_json
|
8
|
+
{
|
9
|
+
client_id: client_id,
|
10
|
+
date: date,
|
11
|
+
is_buy: is_buy,
|
12
|
+
is_personal: is_personal,
|
13
|
+
journal_ref_id: journal_ref_id,
|
14
|
+
location_id: location_id,
|
15
|
+
quantity: quantity,
|
16
|
+
transaction_id: transaction_id,
|
17
|
+
type_id: type_id,
|
18
|
+
unit_price: unit_price
|
19
|
+
}
|
20
|
+
end
|
21
|
+
|
22
|
+
def client_id
|
23
|
+
options["client_id"]
|
24
|
+
end
|
25
|
+
|
26
|
+
def date
|
27
|
+
date = options["date"]
|
28
|
+
|
29
|
+
parse_datetime_with_timezone(date) if date
|
30
|
+
end
|
31
|
+
|
32
|
+
def is_buy
|
33
|
+
options["is_buy"]
|
34
|
+
end
|
35
|
+
|
36
|
+
def is_personal
|
37
|
+
options["is_personal"]
|
38
|
+
end
|
39
|
+
|
40
|
+
def journal_ref_id
|
41
|
+
options["journal_ref_id"]
|
42
|
+
end
|
43
|
+
|
44
|
+
def location_id
|
45
|
+
options["location_id"]
|
46
|
+
end
|
47
|
+
|
48
|
+
def quantity
|
49
|
+
options["quantity"]
|
50
|
+
end
|
51
|
+
|
52
|
+
def transaction_id
|
53
|
+
options["transaction_id"]
|
54
|
+
end
|
55
|
+
|
56
|
+
def type_id
|
57
|
+
options["type_id"]
|
58
|
+
end
|
59
|
+
|
60
|
+
def unit_price
|
61
|
+
options["unit_price"]
|
62
|
+
end
|
63
|
+
end
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|