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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.mdlrc +1 -0
  3. data/.travis.yml +11 -2
  4. data/CHANGELOG.md +43 -17
  5. data/Gemfile.lock +37 -28
  6. data/Gemfile.mutant +0 -4
  7. data/Gemfile.mutant.lock +154 -0
  8. data/README.md +334 -302
  9. data/TODO.md +4 -0
  10. data/eve_online.gemspec +1 -1
  11. data/lib/eve_online.rb +2 -2
  12. data/lib/eve_online/esi/alliance.rb +6 -6
  13. data/lib/eve_online/esi/alliance_corporations.rb +3 -3
  14. data/lib/eve_online/esi/alliance_icon.rb +3 -3
  15. data/lib/eve_online/esi/alliances.rb +2 -2
  16. data/lib/eve_online/esi/ancestries.rb +2 -2
  17. data/lib/eve_online/esi/base.rb +3 -2
  18. data/lib/eve_online/esi/bloodlines.rb +2 -2
  19. data/lib/eve_online/esi/character.rb +6 -6
  20. data/lib/eve_online/esi/character_assets.rb +3 -3
  21. data/lib/eve_online/esi/character_attributes.rb +6 -6
  22. data/lib/eve_online/esi/character_blueprints.rb +3 -3
  23. data/lib/eve_online/esi/character_bookmark_folders.rb +3 -3
  24. data/lib/eve_online/esi/character_bookmarks.rb +3 -3
  25. data/lib/eve_online/esi/character_calendar.rb +3 -3
  26. data/lib/eve_online/esi/character_clones.rb +9 -9
  27. data/lib/eve_online/esi/character_fatigue.rb +3 -3
  28. data/lib/eve_online/esi/character_implants.rb +3 -3
  29. data/lib/eve_online/esi/character_industry_jobs.rb +5 -5
  30. data/lib/eve_online/esi/character_loyalty_points.rb +3 -3
  31. data/lib/eve_online/esi/character_notifications.rb +3 -3
  32. data/lib/eve_online/esi/character_online.rb +5 -5
  33. data/lib/eve_online/esi/character_orders.rb +3 -3
  34. data/lib/eve_online/esi/character_portrait.rb +4 -5
  35. data/lib/eve_online/esi/character_skill_queue.rb +3 -3
  36. data/lib/eve_online/esi/character_skills.rb +11 -11
  37. data/lib/eve_online/esi/character_standings.rb +3 -3
  38. data/lib/eve_online/esi/character_wallet.rb +3 -3
  39. data/lib/eve_online/esi/character_wallet_journal.rb +3 -3
  40. data/lib/eve_online/esi/corporation.rb +7 -7
  41. data/lib/eve_online/esi/corporation_blueprints.rb +3 -3
  42. data/lib/eve_online/esi/corporation_industry_jobs.rb +5 -5
  43. data/lib/eve_online/esi/corporation_orders.rb +3 -3
  44. data/lib/eve_online/esi/dogma_attribute.rb +7 -7
  45. data/lib/eve_online/esi/dogma_attributes.rb +2 -2
  46. data/lib/eve_online/esi/factions.rb +2 -2
  47. data/lib/eve_online/esi/market_history.rb +4 -4
  48. data/lib/eve_online/esi/models/alliance.rb +18 -18
  49. data/lib/eve_online/esi/models/alliance_icon.rb +5 -5
  50. data/lib/eve_online/esi/models/ancestry.rb +16 -16
  51. data/lib/eve_online/esi/models/asset.rb +22 -17
  52. data/lib/eve_online/esi/models/attributes.rb +20 -20
  53. data/lib/eve_online/esi/models/bloodline.rb +25 -25
  54. data/lib/eve_online/esi/models/blueprint.rb +16 -16
  55. data/lib/eve_online/esi/models/bookmark.rb +26 -26
  56. data/lib/eve_online/esi/models/character.rb +28 -28
  57. data/lib/eve_online/esi/models/{industry_job.rb → character_industry_job.rb} +1 -2
  58. data/lib/eve_online/esi/models/character_order.rb +39 -49
  59. data/lib/eve_online/esi/models/character_portrait.rb +4 -20
  60. data/lib/eve_online/esi/models/corporation.rb +35 -35
  61. data/lib/eve_online/esi/models/corporation_industry_job.rb +132 -0
  62. data/lib/eve_online/esi/models/corporation_order.rb +42 -42
  63. data/lib/eve_online/esi/models/dogma_attribute.rb +21 -21
  64. data/lib/eve_online/esi/models/event.rb +11 -11
  65. data/lib/eve_online/esi/models/faction.rb +20 -20
  66. data/lib/eve_online/esi/models/jump_clone.rb +8 -8
  67. data/lib/eve_online/esi/models/market_history.rb +16 -16
  68. data/lib/eve_online/esi/models/notification.rb +10 -10
  69. data/lib/eve_online/esi/models/online.rb +6 -6
  70. data/lib/eve_online/esi/models/race.rb +11 -11
  71. data/lib/eve_online/esi/models/server_status.rb +7 -7
  72. data/lib/eve_online/esi/models/skill.rb +6 -6
  73. data/lib/eve_online/esi/models/skill_queue_entry.rb +19 -19
  74. data/lib/eve_online/esi/models/type.rb +33 -33
  75. data/lib/eve_online/esi/models/wallet_journal_entry.rb +37 -33
  76. data/lib/eve_online/esi/races.rb +2 -2
  77. data/lib/eve_online/esi/server_status.rb +2 -2
  78. data/lib/eve_online/esi/universe_type.rb +8 -8
  79. data/lib/eve_online/esi/universe_types.rb +2 -2
  80. data/lib/eve_online/version.rb +1 -1
  81. data/mutant.sh +1 -1
  82. metadata +14 -11
  83. 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
- type_id: type_id,
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
- location_flag: location_flag
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 type_id
25
- options['type_id']
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 location_flag
49
- options['location_flag']
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
- folder_id: folder_id,
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
- coordinate_x: coordinate_x,
19
- coordinate_y: coordinate_y,
20
- coordinate_z: coordinate_z
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 folder_id
29
- options['folder_id']
28
+ def coordinate_x
29
+ options['coordinates']['x'] if options['coordinates']
30
30
  end
31
31
 
32
- def created
33
- created = options['created']
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 label
39
- options['label']
36
+ def coordinate_z
37
+ options['coordinates']['z'] if options['coordinates']
40
38
  end
41
39
 
42
- def notes
43
- options['notes']
44
- end
40
+ def created
41
+ created = options['created']
45
42
 
46
- def location_id
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 coordinate_x
63
- options['coordinates']['x'] if options['coordinates']
62
+ def label
63
+ options['label']
64
64
  end
65
65
 
66
- def coordinate_y
67
- options['coordinates']['y'] if options['coordinates']
66
+ def location_id
67
+ options['location_id']
68
68
  end
69
69
 
70
- def coordinate_z
71
- options['coordinates']['z'] if options['coordinates']
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
- corporation_id: corporation_id,
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
- alliance_id: alliance_id,
17
- ancestry_id: ancestry_id,
18
- security_status: security_status,
19
- faction_id: faction_id
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 corporation_id
24
- options['corporation_id']
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 name
34
- options['name']
37
+ def bloodline_id
38
+ options['bloodline_id']
35
39
  end
36
40
 
37
- def gender
38
- options['gender']
41
+ def corporation_id
42
+ options['corporation_id']
39
43
  end
40
44
 
41
- def race_id
42
- options['race_id']
45
+ def description
46
+ options['description']
43
47
  end
44
48
 
45
- def bloodline_id
46
- options['bloodline_id']
49
+ def faction_id
50
+ options['faction_id']
47
51
  end
48
52
 
49
- def description
50
- options['description']
53
+ def gender
54
+ options['gender']
51
55
  end
52
56
 
53
- def alliance_id
54
- options['alliance_id']
57
+ def name
58
+ options['name']
55
59
  end
56
60
 
57
- def ancestry_id
58
- options['ancestry_id']
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 IndustryJob < Base
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
- order_id: order_id,
10
- type_id: type_id,
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
- price: price,
16
- volume_total: volume_total,
17
- volume_remain: volume_remain,
12
+ is_corporation: is_corporation,
18
13
  issued: issued,
19
- state: state,
14
+ location_id: location_id,
20
15
  min_volume: min_volume,
21
- account_id: account_id,
22
- duration: duration,
23
- is_corp: is_corp,
24
- escrow: escrow
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 order_id
29
- options['order_id']
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 range
45
- options['range']
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 price
53
- options['price']
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 state
71
- options['state']
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 account_id
79
- options['account_id']
56
+ def order_id
57
+ options['order_id']
80
58
  end
81
59
 
82
- def duration
83
- options['duration']
60
+ def price
61
+ options['price']
84
62
  end
85
63
 
86
- def is_corp
87
- options['is_corp']
64
+ def range
65
+ options['range']
88
66
  end
89
67
 
90
- def escrow
91
- options['escrow']
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 gigantic
43
- # FIXME: https://github.com/ccpgames/esi-issues/issues/270
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
- description: description,
15
- tax_rate: tax_rate,
16
- date_founded: date_founded,
10
+ ceo_id: ceo_id,
17
11
  creator_id: creator_id,
18
- corporation_url: corporation_url,
12
+ date_founded: date_founded,
13
+ description: description,
19
14
  faction_id: faction_id,
20
15
  home_station_id: home_station_id,
21
- shares: shares
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 description
46
- options['description']
29
+ def ceo_id
30
+ options['ceo_id']
47
31
  end
48
32
 
49
- def tax_rate
50
- options['tax_rate']
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 creator_id
60
- options['creator_id']
43
+ def description
44
+ options['description']
61
45
  end
62
46
 
63
- def corporation_url
64
- options['url']
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 faction_id
72
- options['faction_id']
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