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
@@ -6,20 +6,20 @@ module EveOnline
|
|
6
6
|
class JumpClone < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
+
implants: implants,
|
9
10
|
jump_clone_id: jump_clone_id,
|
10
|
-
name: name,
|
11
11
|
location_id: location_id,
|
12
12
|
location_type: location_type,
|
13
|
-
|
13
|
+
name: name
|
14
14
|
}
|
15
15
|
end
|
16
16
|
|
17
|
-
def
|
18
|
-
options['
|
17
|
+
def implants
|
18
|
+
options['implants']
|
19
19
|
end
|
20
20
|
|
21
|
-
def
|
22
|
-
options['
|
21
|
+
def jump_clone_id
|
22
|
+
options['jump_clone_id']
|
23
23
|
end
|
24
24
|
|
25
25
|
def location_id
|
@@ -30,8 +30,8 @@ module EveOnline
|
|
30
30
|
options['location_type']
|
31
31
|
end
|
32
32
|
|
33
|
-
def
|
34
|
-
options['
|
33
|
+
def name
|
34
|
+
options['name']
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -6,40 +6,40 @@ module EveOnline
|
|
6
6
|
class MarketHistory < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
+
average: average,
|
9
10
|
date: date,
|
10
|
-
order_count: order_count,
|
11
|
-
volume: volume,
|
12
11
|
highest: highest,
|
13
|
-
|
14
|
-
|
12
|
+
lowest: lowest,
|
13
|
+
order_count: order_count,
|
14
|
+
volume: volume
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
18
|
+
def average
|
19
|
+
options['average']
|
20
|
+
end
|
21
|
+
|
18
22
|
def date
|
19
23
|
date = options['date']
|
20
24
|
|
21
25
|
parse_datetime_with_timezone(date) if date
|
22
26
|
end
|
23
27
|
|
24
|
-
def order_count
|
25
|
-
options['order_count']
|
26
|
-
end
|
27
|
-
|
28
|
-
def volume
|
29
|
-
options['volume']
|
30
|
-
end
|
31
|
-
|
32
28
|
def highest
|
33
29
|
options['highest']
|
34
30
|
end
|
35
31
|
|
36
|
-
def average
|
37
|
-
options['average']
|
38
|
-
end
|
39
|
-
|
40
32
|
def lowest
|
41
33
|
options['lowest']
|
42
34
|
end
|
35
|
+
|
36
|
+
def order_count
|
37
|
+
options['order_count']
|
38
|
+
end
|
39
|
+
|
40
|
+
def volume
|
41
|
+
options['volume']
|
42
|
+
end
|
43
43
|
end
|
44
44
|
end
|
45
45
|
end
|
@@ -6,16 +6,20 @@ module EveOnline
|
|
6
6
|
class Notification < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
+
is_read: is_read,
|
9
10
|
notification_id: notification_id,
|
10
11
|
sender_id: sender_id,
|
11
12
|
sender_type: sender_type,
|
12
|
-
timestamp: timestamp,
|
13
|
-
is_read: is_read,
|
14
13
|
text: text,
|
14
|
+
timestamp: timestamp,
|
15
15
|
type: type
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
|
+
def is_read
|
20
|
+
options['is_read']
|
21
|
+
end
|
22
|
+
|
19
23
|
def notification_id
|
20
24
|
options['notification_id']
|
21
25
|
end
|
@@ -28,20 +32,16 @@ module EveOnline
|
|
28
32
|
options['sender_type']
|
29
33
|
end
|
30
34
|
|
35
|
+
def text
|
36
|
+
options['text']
|
37
|
+
end
|
38
|
+
|
31
39
|
def timestamp
|
32
40
|
timestamp = options['timestamp']
|
33
41
|
|
34
42
|
parse_datetime_with_timezone(timestamp) if timestamp
|
35
43
|
end
|
36
44
|
|
37
|
-
def is_read
|
38
|
-
options['is_read']
|
39
|
-
end
|
40
|
-
|
41
|
-
def text
|
42
|
-
options['text']
|
43
|
-
end
|
44
|
-
|
45
45
|
def type
|
46
46
|
options['type']
|
47
47
|
end
|
@@ -6,17 +6,13 @@ module EveOnline
|
|
6
6
|
class Online < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
online: online,
|
10
9
|
last_login: last_login,
|
11
10
|
last_logout: last_logout,
|
12
|
-
logins: logins
|
11
|
+
logins: logins,
|
12
|
+
online: online
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
|
-
def online
|
17
|
-
options['online']
|
18
|
-
end
|
19
|
-
|
20
16
|
def last_login
|
21
17
|
last_login = options['last_login']
|
22
18
|
|
@@ -32,6 +28,10 @@ module EveOnline
|
|
32
28
|
def logins
|
33
29
|
options['logins']
|
34
30
|
end
|
31
|
+
|
32
|
+
def online
|
33
|
+
options['online']
|
34
|
+
end
|
35
35
|
end
|
36
36
|
end
|
37
37
|
end
|
@@ -6,27 +6,27 @@ module EveOnline
|
|
6
6
|
class Race < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
|
10
|
-
name: name,
|
9
|
+
alliance_id: alliance_id,
|
11
10
|
description: description,
|
12
|
-
|
11
|
+
name: name,
|
12
|
+
race_id: race_id
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
|
-
def
|
17
|
-
options['
|
18
|
-
end
|
19
|
-
|
20
|
-
def name
|
21
|
-
options['name']
|
16
|
+
def alliance_id
|
17
|
+
options['alliance_id']
|
22
18
|
end
|
23
19
|
|
24
20
|
def description
|
25
21
|
options['description']
|
26
22
|
end
|
27
23
|
|
28
|
-
def
|
29
|
-
options['
|
24
|
+
def name
|
25
|
+
options['name']
|
26
|
+
end
|
27
|
+
|
28
|
+
def race_id
|
29
|
+
options['race_id']
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -6,19 +6,13 @@ module EveOnline
|
|
6
6
|
class ServerStatus < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
start_time: start_time,
|
10
9
|
players: players,
|
11
10
|
server_version: server_version,
|
11
|
+
start_time: start_time,
|
12
12
|
vip: vip
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
|
-
def start_time
|
17
|
-
start_time = options['start_time']
|
18
|
-
|
19
|
-
parse_datetime_with_timezone(start_time) if start_time
|
20
|
-
end
|
21
|
-
|
22
16
|
def players
|
23
17
|
options['players']
|
24
18
|
end
|
@@ -27,6 +21,12 @@ module EveOnline
|
|
27
21
|
options['server_version']
|
28
22
|
end
|
29
23
|
|
24
|
+
def start_time
|
25
|
+
start_time = options['start_time']
|
26
|
+
|
27
|
+
parse_datetime_with_timezone(start_time) if start_time
|
28
|
+
end
|
29
|
+
|
30
30
|
def vip
|
31
31
|
options['vip']
|
32
32
|
end
|
@@ -6,13 +6,17 @@ module EveOnline
|
|
6
6
|
class Skill < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
+
active_skill_level: active_skill_level,
|
9
10
|
skill_id: skill_id,
|
10
11
|
skillpoints_in_skill: skillpoints_in_skill,
|
11
|
-
trained_skill_level: trained_skill_level
|
12
|
-
active_skill_level: active_skill_level
|
12
|
+
trained_skill_level: trained_skill_level
|
13
13
|
}
|
14
14
|
end
|
15
15
|
|
16
|
+
def active_skill_level
|
17
|
+
options['active_skill_level']
|
18
|
+
end
|
19
|
+
|
16
20
|
def skill_id
|
17
21
|
options['skill_id']
|
18
22
|
end
|
@@ -24,10 +28,6 @@ module EveOnline
|
|
24
28
|
def trained_skill_level
|
25
29
|
options['trained_skill_level']
|
26
30
|
end
|
27
|
-
|
28
|
-
def active_skill_level
|
29
|
-
options['active_skill_level']
|
30
|
-
end
|
31
31
|
end
|
32
32
|
end
|
33
33
|
end
|
@@ -6,33 +6,41 @@ module EveOnline
|
|
6
6
|
class SkillQueueEntry < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
|
9
|
+
finish_date: finish_date,
|
10
10
|
finished_level: finished_level,
|
11
|
+
level_end_sp: level_end_sp,
|
12
|
+
level_start_sp: level_start_sp,
|
11
13
|
queue_position: queue_position,
|
12
|
-
|
14
|
+
skill_id: skill_id,
|
13
15
|
start_date: start_date,
|
14
|
-
training_start_sp: training_start_sp
|
15
|
-
level_end_sp: level_end_sp,
|
16
|
-
level_start_sp: level_start_sp
|
16
|
+
training_start_sp: training_start_sp
|
17
17
|
}
|
18
18
|
end
|
19
19
|
|
20
|
-
def
|
21
|
-
options['
|
20
|
+
def finish_date
|
21
|
+
finish_date = options['finish_date']
|
22
|
+
|
23
|
+
parse_datetime_with_timezone(finish_date) if finish_date
|
22
24
|
end
|
23
25
|
|
24
26
|
def finished_level
|
25
27
|
options['finished_level']
|
26
28
|
end
|
27
29
|
|
30
|
+
def level_end_sp
|
31
|
+
options['level_end_sp']
|
32
|
+
end
|
33
|
+
|
34
|
+
def level_start_sp
|
35
|
+
options['level_start_sp']
|
36
|
+
end
|
37
|
+
|
28
38
|
def queue_position
|
29
39
|
options['queue_position']
|
30
40
|
end
|
31
41
|
|
32
|
-
def
|
33
|
-
|
34
|
-
|
35
|
-
parse_datetime_with_timezone(finish_date) if finish_date
|
42
|
+
def skill_id
|
43
|
+
options['skill_id']
|
36
44
|
end
|
37
45
|
|
38
46
|
def start_date
|
@@ -44,14 +52,6 @@ module EveOnline
|
|
44
52
|
def training_start_sp
|
45
53
|
options['training_start_sp']
|
46
54
|
end
|
47
|
-
|
48
|
-
def level_end_sp
|
49
|
-
options['level_end_sp']
|
50
|
-
end
|
51
|
-
|
52
|
-
def level_start_sp
|
53
|
-
options['level_start_sp']
|
54
|
-
end
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
@@ -6,79 +6,79 @@ module EveOnline
|
|
6
6
|
class Type < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
|
10
|
-
name: name,
|
9
|
+
capacity: capacity,
|
11
10
|
description: description,
|
12
|
-
|
11
|
+
# TODO: dogma_attributes
|
12
|
+
# TODO: dogma_effects
|
13
|
+
graphic_id: graphic_id,
|
13
14
|
group_id: group_id,
|
15
|
+
icon_id: icon_id,
|
14
16
|
market_group_id: market_group_id,
|
15
|
-
|
16
|
-
|
17
|
+
mass: mass,
|
18
|
+
name: name,
|
17
19
|
packaged_volume: packaged_volume,
|
18
|
-
icon_id: icon_id,
|
19
|
-
capacity: capacity,
|
20
20
|
portion_size: portion_size,
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
21
|
+
published: published,
|
22
|
+
radius: radius,
|
23
|
+
type_id: type_id,
|
24
|
+
volume: volume
|
25
25
|
}
|
26
26
|
end
|
27
27
|
|
28
|
-
def
|
29
|
-
options['
|
30
|
-
end
|
31
|
-
|
32
|
-
def name
|
33
|
-
options['name']
|
28
|
+
def capacity
|
29
|
+
options['capacity']
|
34
30
|
end
|
35
31
|
|
36
32
|
def description
|
37
33
|
options['description']
|
38
34
|
end
|
39
35
|
|
40
|
-
def
|
41
|
-
options['
|
36
|
+
def graphic_id
|
37
|
+
options['graphic_id']
|
42
38
|
end
|
43
39
|
|
44
40
|
def group_id
|
45
41
|
options['group_id']
|
46
42
|
end
|
47
43
|
|
44
|
+
def icon_id
|
45
|
+
options['icon_id']
|
46
|
+
end
|
47
|
+
|
48
48
|
def market_group_id
|
49
49
|
options['market_group_id']
|
50
50
|
end
|
51
51
|
|
52
|
-
def
|
53
|
-
options['
|
52
|
+
def mass
|
53
|
+
options['mass']
|
54
54
|
end
|
55
55
|
|
56
|
-
def
|
57
|
-
options['
|
56
|
+
def name
|
57
|
+
options['name']
|
58
58
|
end
|
59
59
|
|
60
60
|
def packaged_volume
|
61
61
|
options['packaged_volume']
|
62
62
|
end
|
63
63
|
|
64
|
-
def
|
65
|
-
options['
|
64
|
+
def portion_size
|
65
|
+
options['portion_size']
|
66
66
|
end
|
67
67
|
|
68
|
-
def
|
69
|
-
options['
|
68
|
+
def published
|
69
|
+
options['published']
|
70
70
|
end
|
71
71
|
|
72
|
-
def
|
73
|
-
options['
|
72
|
+
def radius
|
73
|
+
options['radius']
|
74
74
|
end
|
75
75
|
|
76
|
-
def
|
77
|
-
options['
|
76
|
+
def type_id
|
77
|
+
options['type_id']
|
78
78
|
end
|
79
79
|
|
80
|
-
def
|
81
|
-
options['
|
80
|
+
def volume
|
81
|
+
options['volume']
|
82
82
|
end
|
83
83
|
end
|
84
84
|
end
|