eve_online 0.16.0 → 0.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.mdlrc +1 -0
- data/.travis.yml +11 -2
- data/CHANGELOG.md +43 -17
- data/Gemfile.lock +37 -28
- data/Gemfile.mutant +0 -4
- data/Gemfile.mutant.lock +154 -0
- data/README.md +334 -302
- data/TODO.md +4 -0
- data/eve_online.gemspec +1 -1
- data/lib/eve_online.rb +2 -2
- data/lib/eve_online/esi/alliance.rb +6 -6
- data/lib/eve_online/esi/alliance_corporations.rb +3 -3
- data/lib/eve_online/esi/alliance_icon.rb +3 -3
- data/lib/eve_online/esi/alliances.rb +2 -2
- data/lib/eve_online/esi/ancestries.rb +2 -2
- data/lib/eve_online/esi/base.rb +3 -2
- data/lib/eve_online/esi/bloodlines.rb +2 -2
- data/lib/eve_online/esi/character.rb +6 -6
- data/lib/eve_online/esi/character_assets.rb +3 -3
- data/lib/eve_online/esi/character_attributes.rb +6 -6
- data/lib/eve_online/esi/character_blueprints.rb +3 -3
- data/lib/eve_online/esi/character_bookmark_folders.rb +3 -3
- data/lib/eve_online/esi/character_bookmarks.rb +3 -3
- data/lib/eve_online/esi/character_calendar.rb +3 -3
- data/lib/eve_online/esi/character_clones.rb +9 -9
- data/lib/eve_online/esi/character_fatigue.rb +3 -3
- data/lib/eve_online/esi/character_implants.rb +3 -3
- data/lib/eve_online/esi/character_industry_jobs.rb +5 -5
- data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
- data/lib/eve_online/esi/character_notifications.rb +3 -3
- data/lib/eve_online/esi/character_online.rb +5 -5
- data/lib/eve_online/esi/character_orders.rb +3 -3
- data/lib/eve_online/esi/character_portrait.rb +4 -5
- data/lib/eve_online/esi/character_skill_queue.rb +3 -3
- data/lib/eve_online/esi/character_skills.rb +11 -11
- data/lib/eve_online/esi/character_standings.rb +3 -3
- data/lib/eve_online/esi/character_wallet.rb +3 -3
- data/lib/eve_online/esi/character_wallet_journal.rb +3 -3
- data/lib/eve_online/esi/corporation.rb +7 -7
- data/lib/eve_online/esi/corporation_blueprints.rb +3 -3
- data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
- data/lib/eve_online/esi/corporation_orders.rb +3 -3
- data/lib/eve_online/esi/dogma_attribute.rb +7 -7
- data/lib/eve_online/esi/dogma_attributes.rb +2 -2
- data/lib/eve_online/esi/factions.rb +2 -2
- data/lib/eve_online/esi/market_history.rb +4 -4
- data/lib/eve_online/esi/models/alliance.rb +18 -18
- data/lib/eve_online/esi/models/alliance_icon.rb +5 -5
- data/lib/eve_online/esi/models/ancestry.rb +16 -16
- data/lib/eve_online/esi/models/asset.rb +22 -17
- data/lib/eve_online/esi/models/attributes.rb +20 -20
- data/lib/eve_online/esi/models/bloodline.rb +25 -25
- data/lib/eve_online/esi/models/blueprint.rb +16 -16
- data/lib/eve_online/esi/models/bookmark.rb +26 -26
- data/lib/eve_online/esi/models/character.rb +28 -28
- data/lib/eve_online/esi/models/{industry_job.rb → character_industry_job.rb} +1 -2
- data/lib/eve_online/esi/models/character_order.rb +39 -49
- data/lib/eve_online/esi/models/character_portrait.rb +4 -20
- data/lib/eve_online/esi/models/corporation.rb +35 -35
- data/lib/eve_online/esi/models/corporation_industry_job.rb +132 -0
- data/lib/eve_online/esi/models/corporation_order.rb +42 -42
- data/lib/eve_online/esi/models/dogma_attribute.rb +21 -21
- data/lib/eve_online/esi/models/event.rb +11 -11
- data/lib/eve_online/esi/models/faction.rb +20 -20
- data/lib/eve_online/esi/models/jump_clone.rb +8 -8
- data/lib/eve_online/esi/models/market_history.rb +16 -16
- data/lib/eve_online/esi/models/notification.rb +10 -10
- data/lib/eve_online/esi/models/online.rb +6 -6
- data/lib/eve_online/esi/models/race.rb +11 -11
- data/lib/eve_online/esi/models/server_status.rb +7 -7
- data/lib/eve_online/esi/models/skill.rb +6 -6
- data/lib/eve_online/esi/models/skill_queue_entry.rb +19 -19
- data/lib/eve_online/esi/models/type.rb +33 -33
- data/lib/eve_online/esi/models/wallet_journal_entry.rb +37 -33
- data/lib/eve_online/esi/races.rb +2 -2
- data/lib/eve_online/esi/server_status.rb +2 -2
- data/lib/eve_online/esi/universe_type.rb +8 -8
- data/lib/eve_online/esi/universe_types.rb +2 -2
- data/lib/eve_online/version.rb +1 -1
- data/mutant.sh +1 -1
- metadata +14 -11
- data/lib/eve_online/esi/alliances_names.rb +0 -32
@@ -7,13 +7,13 @@ module EveOnline
|
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
item_id: item_id,
|
10
|
-
|
10
|
+
location_flag: location_flag,
|
11
11
|
location_id: location_id,
|
12
|
-
quantity: quantity,
|
13
|
-
time_efficiency: time_efficiency,
|
14
12
|
material_efficiency: material_efficiency,
|
13
|
+
quantity: quantity,
|
15
14
|
runs: runs,
|
16
|
-
|
15
|
+
time_efficiency: time_efficiency,
|
16
|
+
type_id: type_id
|
17
17
|
}
|
18
18
|
end
|
19
19
|
|
@@ -21,32 +21,32 @@ module EveOnline
|
|
21
21
|
options['item_id']
|
22
22
|
end
|
23
23
|
|
24
|
-
def
|
25
|
-
options['
|
24
|
+
def location_flag
|
25
|
+
options['location_flag']
|
26
26
|
end
|
27
27
|
|
28
28
|
def location_id
|
29
29
|
options['location_id']
|
30
30
|
end
|
31
31
|
|
32
|
-
def quantity
|
33
|
-
options['quantity']
|
34
|
-
end
|
35
|
-
|
36
|
-
def time_efficiency
|
37
|
-
options['time_efficiency']
|
38
|
-
end
|
39
|
-
|
40
32
|
def material_efficiency
|
41
33
|
options['material_efficiency']
|
42
34
|
end
|
43
35
|
|
36
|
+
def quantity
|
37
|
+
options['quantity']
|
38
|
+
end
|
39
|
+
|
44
40
|
def runs
|
45
41
|
options['runs']
|
46
42
|
end
|
47
43
|
|
48
|
-
def
|
49
|
-
options['
|
44
|
+
def time_efficiency
|
45
|
+
options['time_efficiency']
|
46
|
+
end
|
47
|
+
|
48
|
+
def type_id
|
49
|
+
options['type_id']
|
50
50
|
end
|
51
51
|
end
|
52
52
|
end
|
@@ -7,17 +7,17 @@ module EveOnline
|
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
bookmark_id: bookmark_id,
|
10
|
-
|
10
|
+
coordinate_x: coordinate_x,
|
11
|
+
coordinate_y: coordinate_y,
|
12
|
+
coordinate_z: coordinate_z,
|
11
13
|
created: created,
|
12
|
-
label: label,
|
13
|
-
notes: notes,
|
14
|
-
location_id: location_id,
|
15
14
|
creator_id: creator_id,
|
15
|
+
folder_id: folder_id,
|
16
16
|
item_id: item_id,
|
17
17
|
item_type_id: item_type_id,
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
label: label,
|
19
|
+
location_id: location_id,
|
20
|
+
notes: notes
|
21
21
|
}
|
22
22
|
end
|
23
23
|
|
@@ -25,32 +25,32 @@ module EveOnline
|
|
25
25
|
options['bookmark_id']
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
29
|
-
options['
|
28
|
+
def coordinate_x
|
29
|
+
options['coordinates']['x'] if options['coordinates']
|
30
30
|
end
|
31
31
|
|
32
|
-
def
|
33
|
-
|
34
|
-
|
35
|
-
parse_datetime_with_timezone(created) if created
|
32
|
+
def coordinate_y
|
33
|
+
options['coordinates']['y'] if options['coordinates']
|
36
34
|
end
|
37
35
|
|
38
|
-
def
|
39
|
-
options['
|
36
|
+
def coordinate_z
|
37
|
+
options['coordinates']['z'] if options['coordinates']
|
40
38
|
end
|
41
39
|
|
42
|
-
def
|
43
|
-
options['
|
44
|
-
end
|
40
|
+
def created
|
41
|
+
created = options['created']
|
45
42
|
|
46
|
-
|
47
|
-
options['location_id']
|
43
|
+
parse_datetime_with_timezone(created) if created
|
48
44
|
end
|
49
45
|
|
50
46
|
def creator_id
|
51
47
|
options['creator_id']
|
52
48
|
end
|
53
49
|
|
50
|
+
def folder_id
|
51
|
+
options['folder_id']
|
52
|
+
end
|
53
|
+
|
54
54
|
def item_id
|
55
55
|
options['item']['item_id'] if options['item']
|
56
56
|
end
|
@@ -59,16 +59,16 @@ module EveOnline
|
|
59
59
|
options['item']['type_id'] if options['item']
|
60
60
|
end
|
61
61
|
|
62
|
-
def
|
63
|
-
options['
|
62
|
+
def label
|
63
|
+
options['label']
|
64
64
|
end
|
65
65
|
|
66
|
-
def
|
67
|
-
options['
|
66
|
+
def location_id
|
67
|
+
options['location_id']
|
68
68
|
end
|
69
69
|
|
70
|
-
def
|
71
|
-
options['
|
70
|
+
def notes
|
71
|
+
options['notes']
|
72
72
|
end
|
73
73
|
end
|
74
74
|
end
|
@@ -6,22 +6,26 @@ module EveOnline
|
|
6
6
|
class Character < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
|
9
|
+
alliance_id: alliance_id,
|
10
|
+
ancestry_id: ancestry_id,
|
10
11
|
birthday: birthday,
|
11
|
-
name: name,
|
12
|
-
gender: gender,
|
13
|
-
race_id: race_id,
|
14
12
|
bloodline_id: bloodline_id,
|
13
|
+
corporation_id: corporation_id,
|
15
14
|
description: description,
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
15
|
+
faction_id: faction_id,
|
16
|
+
gender: gender,
|
17
|
+
name: name,
|
18
|
+
race_id: race_id,
|
19
|
+
security_status: security_status
|
20
20
|
}
|
21
21
|
end
|
22
22
|
|
23
|
-
def
|
24
|
-
options['
|
23
|
+
def alliance_id
|
24
|
+
options['alliance_id']
|
25
|
+
end
|
26
|
+
|
27
|
+
def ancestry_id
|
28
|
+
options['ancestry_id']
|
25
29
|
end
|
26
30
|
|
27
31
|
def birthday
|
@@ -30,41 +34,37 @@ module EveOnline
|
|
30
34
|
parse_datetime_with_timezone(birthday) if birthday
|
31
35
|
end
|
32
36
|
|
33
|
-
def
|
34
|
-
options['
|
37
|
+
def bloodline_id
|
38
|
+
options['bloodline_id']
|
35
39
|
end
|
36
40
|
|
37
|
-
def
|
38
|
-
options['
|
41
|
+
def corporation_id
|
42
|
+
options['corporation_id']
|
39
43
|
end
|
40
44
|
|
41
|
-
def
|
42
|
-
options['
|
45
|
+
def description
|
46
|
+
options['description']
|
43
47
|
end
|
44
48
|
|
45
|
-
def
|
46
|
-
options['
|
49
|
+
def faction_id
|
50
|
+
options['faction_id']
|
47
51
|
end
|
48
52
|
|
49
|
-
def
|
50
|
-
options['
|
53
|
+
def gender
|
54
|
+
options['gender']
|
51
55
|
end
|
52
56
|
|
53
|
-
def
|
54
|
-
options['
|
57
|
+
def name
|
58
|
+
options['name']
|
55
59
|
end
|
56
60
|
|
57
|
-
def
|
58
|
-
options['
|
61
|
+
def race_id
|
62
|
+
options['race_id']
|
59
63
|
end
|
60
64
|
|
61
65
|
def security_status
|
62
66
|
options['security_status']
|
63
67
|
end
|
64
|
-
|
65
|
-
def faction_id
|
66
|
-
options['faction_id']
|
67
|
-
end
|
68
68
|
end
|
69
69
|
end
|
70
70
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
module Models
|
6
|
-
class
|
6
|
+
class CharacterIndustryJob < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
activity_id: activity_id,
|
@@ -28,7 +28,6 @@ module EveOnline
|
|
28
28
|
station_id: station_id,
|
29
29
|
status: status,
|
30
30
|
successful_runs: successful_runs
|
31
|
-
# location_id WTF???
|
32
31
|
}
|
33
32
|
end
|
34
33
|
|
@@ -6,59 +6,37 @@ module EveOnline
|
|
6
6
|
class CharacterOrder < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
|
10
|
-
|
11
|
-
region_id: region_id,
|
12
|
-
location_id: location_id,
|
13
|
-
range: range,
|
9
|
+
duration: duration,
|
10
|
+
escrow: escrow,
|
14
11
|
is_buy_order: is_buy_order,
|
15
|
-
|
16
|
-
volume_total: volume_total,
|
17
|
-
volume_remain: volume_remain,
|
12
|
+
is_corporation: is_corporation,
|
18
13
|
issued: issued,
|
19
|
-
|
14
|
+
location_id: location_id,
|
20
15
|
min_volume: min_volume,
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
16
|
+
order_id: order_id,
|
17
|
+
price: price,
|
18
|
+
range: range,
|
19
|
+
region_id: region_id,
|
20
|
+
type_id: type_id,
|
21
|
+
volume_remain: volume_remain,
|
22
|
+
volume_total: volume_total
|
25
23
|
}
|
26
24
|
end
|
27
25
|
|
28
|
-
def
|
29
|
-
options['
|
30
|
-
end
|
31
|
-
|
32
|
-
def type_id
|
33
|
-
options['type_id']
|
34
|
-
end
|
35
|
-
|
36
|
-
def region_id
|
37
|
-
options['region_id']
|
38
|
-
end
|
39
|
-
|
40
|
-
def location_id
|
41
|
-
options['location_id']
|
26
|
+
def duration
|
27
|
+
options['duration']
|
42
28
|
end
|
43
29
|
|
44
|
-
def
|
45
|
-
options['
|
30
|
+
def escrow
|
31
|
+
options['escrow']
|
46
32
|
end
|
47
33
|
|
48
34
|
def is_buy_order
|
49
35
|
options['is_buy_order']
|
50
36
|
end
|
51
37
|
|
52
|
-
def
|
53
|
-
options['
|
54
|
-
end
|
55
|
-
|
56
|
-
def volume_total
|
57
|
-
options['volume_total']
|
58
|
-
end
|
59
|
-
|
60
|
-
def volume_remain
|
61
|
-
options['volume_remain']
|
38
|
+
def is_corporation
|
39
|
+
options['is_corporation']
|
62
40
|
end
|
63
41
|
|
64
42
|
def issued
|
@@ -67,28 +45,40 @@ module EveOnline
|
|
67
45
|
parse_datetime_with_timezone(issued) if issued
|
68
46
|
end
|
69
47
|
|
70
|
-
def
|
71
|
-
options['
|
48
|
+
def location_id
|
49
|
+
options['location_id']
|
72
50
|
end
|
73
51
|
|
74
52
|
def min_volume
|
75
53
|
options['min_volume']
|
76
54
|
end
|
77
55
|
|
78
|
-
def
|
79
|
-
options['
|
56
|
+
def order_id
|
57
|
+
options['order_id']
|
80
58
|
end
|
81
59
|
|
82
|
-
def
|
83
|
-
options['
|
60
|
+
def price
|
61
|
+
options['price']
|
84
62
|
end
|
85
63
|
|
86
|
-
def
|
87
|
-
options['
|
64
|
+
def range
|
65
|
+
options['range']
|
88
66
|
end
|
89
67
|
|
90
|
-
def
|
91
|
-
options['
|
68
|
+
def region_id
|
69
|
+
options['region_id']
|
70
|
+
end
|
71
|
+
|
72
|
+
def type_id
|
73
|
+
options['type_id']
|
74
|
+
end
|
75
|
+
|
76
|
+
def volume_remain
|
77
|
+
options['volume_remain']
|
78
|
+
end
|
79
|
+
|
80
|
+
def volume_total
|
81
|
+
options['volume_total']
|
92
82
|
end
|
93
83
|
end
|
94
84
|
end
|
@@ -4,29 +4,15 @@ module EveOnline
|
|
4
4
|
module ESI
|
5
5
|
module Models
|
6
6
|
class CharacterPortrait < Base
|
7
|
-
# https://eveonline-third-party-documentation.readthedocs.io/en/latest/imageserver/intro.html#character-images
|
8
|
-
# Available Sizes: 32, 64, 128, 256, 512, 1024
|
9
|
-
# https://nethackwiki.com/wiki/Physical_size
|
10
|
-
# Tiny = 0; Small = 1; Medium = 2; Large = 3; Huge = 4; Gigantic = 7.
|
11
7
|
def as_json
|
12
8
|
{
|
13
|
-
small: small,
|
14
9
|
medium: medium,
|
15
10
|
large: large,
|
16
|
-
huge: huge
|
11
|
+
huge: huge,
|
12
|
+
small: small
|
17
13
|
}
|
18
14
|
end
|
19
15
|
|
20
|
-
def tiny
|
21
|
-
# FIXME: https://github.com/ccpgames/esi-issues/issues/270
|
22
|
-
# FIXME: https://github.com/ccpgames/esi-issues/issues/131
|
23
|
-
raise NotImplementedError
|
24
|
-
end
|
25
|
-
|
26
|
-
def small
|
27
|
-
options['px64x64']
|
28
|
-
end
|
29
|
-
|
30
16
|
def medium
|
31
17
|
options['px128x128']
|
32
18
|
end
|
@@ -39,10 +25,8 @@ module EveOnline
|
|
39
25
|
options['px512x512']
|
40
26
|
end
|
41
27
|
|
42
|
-
def
|
43
|
-
|
44
|
-
# FIXME: https://github.com/ccpgames/esi-issues/issues/131
|
45
|
-
raise NotImplementedError
|
28
|
+
def small
|
29
|
+
options['px64x64']
|
46
30
|
end
|
47
31
|
end
|
48
32
|
end
|
@@ -6,48 +6,32 @@ module EveOnline
|
|
6
6
|
class Corporation < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
name: name,
|
10
|
-
ticker: ticker,
|
11
|
-
member_count: member_count,
|
12
|
-
ceo_id: ceo_id,
|
13
9
|
alliance_id: alliance_id,
|
14
|
-
|
15
|
-
tax_rate: tax_rate,
|
16
|
-
date_founded: date_founded,
|
10
|
+
ceo_id: ceo_id,
|
17
11
|
creator_id: creator_id,
|
18
|
-
|
12
|
+
date_founded: date_founded,
|
13
|
+
description: description,
|
19
14
|
faction_id: faction_id,
|
20
15
|
home_station_id: home_station_id,
|
21
|
-
|
16
|
+
member_count: member_count,
|
17
|
+
name: name,
|
18
|
+
shares: shares,
|
19
|
+
tax_rate: tax_rate,
|
20
|
+
ticker: ticker,
|
21
|
+
corporation_url: corporation_url
|
22
22
|
}
|
23
23
|
end
|
24
24
|
|
25
|
-
def name
|
26
|
-
options['name']
|
27
|
-
end
|
28
|
-
|
29
|
-
def ticker
|
30
|
-
options['ticker']
|
31
|
-
end
|
32
|
-
|
33
|
-
def member_count
|
34
|
-
options['member_count']
|
35
|
-
end
|
36
|
-
|
37
|
-
def ceo_id
|
38
|
-
options['ceo_id']
|
39
|
-
end
|
40
|
-
|
41
25
|
def alliance_id
|
42
26
|
options['alliance_id']
|
43
27
|
end
|
44
28
|
|
45
|
-
def
|
46
|
-
options['
|
29
|
+
def ceo_id
|
30
|
+
options['ceo_id']
|
47
31
|
end
|
48
32
|
|
49
|
-
def
|
50
|
-
options['
|
33
|
+
def creator_id
|
34
|
+
options['creator_id']
|
51
35
|
end
|
52
36
|
|
53
37
|
def date_founded
|
@@ -56,25 +40,41 @@ module EveOnline
|
|
56
40
|
parse_datetime_with_timezone(date_founded) if date_founded
|
57
41
|
end
|
58
42
|
|
59
|
-
def
|
60
|
-
options['
|
43
|
+
def description
|
44
|
+
options['description']
|
61
45
|
end
|
62
46
|
|
63
|
-
def
|
64
|
-
options['
|
47
|
+
def faction_id
|
48
|
+
options['faction_id']
|
65
49
|
end
|
66
50
|
|
67
51
|
def home_station_id
|
68
52
|
options['home_station_id']
|
69
53
|
end
|
70
54
|
|
71
|
-
def
|
72
|
-
options['
|
55
|
+
def member_count
|
56
|
+
options['member_count']
|
57
|
+
end
|
58
|
+
|
59
|
+
def name
|
60
|
+
options['name']
|
73
61
|
end
|
74
62
|
|
75
63
|
def shares
|
76
64
|
options['shares']
|
77
65
|
end
|
66
|
+
|
67
|
+
def tax_rate
|
68
|
+
options['tax_rate']
|
69
|
+
end
|
70
|
+
|
71
|
+
def ticker
|
72
|
+
options['ticker']
|
73
|
+
end
|
74
|
+
|
75
|
+
def corporation_url
|
76
|
+
options['url']
|
77
|
+
end
|
78
78
|
end
|
79
79
|
end
|
80
80
|
end
|