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
@@ -3,14 +3,14 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class CorporationOrders < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/corporations/%<corporation_id>s/orders/?datasource=%<datasource>s&page=1'
|
7
7
|
|
8
8
|
attr_reader :corporation_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@corporation_id = options
|
13
|
+
@corporation_id = options.fetch(:corporation_id)
|
14
14
|
end
|
15
15
|
|
16
16
|
def orders
|
@@ -32,7 +32,7 @@ module EveOnline
|
|
32
32
|
# end
|
33
33
|
|
34
34
|
def url
|
35
|
-
format(API_ENDPOINT, corporation_id: corporation_id)
|
35
|
+
format(API_ENDPOINT, corporation_id: corporation_id, datasource: datasource)
|
36
36
|
end
|
37
37
|
end
|
38
38
|
end
|
@@ -7,19 +7,19 @@ module EveOnline
|
|
7
7
|
class DogmaAttribute < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/dogma/attributes/%<attribute_id>s/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/dogma/attributes/%<attribute_id>s/?datasource=%<datasource>s'
|
11
11
|
|
12
|
-
attr_reader :
|
12
|
+
attr_reader :id
|
13
13
|
|
14
14
|
def initialize(options)
|
15
15
|
super
|
16
16
|
|
17
|
-
@
|
17
|
+
@id = options.fetch(:id)
|
18
18
|
end
|
19
19
|
|
20
|
-
def_delegators :model, :as_json, :
|
21
|
-
:
|
22
|
-
:stackable, :
|
20
|
+
def_delegators :model, :as_json, :attribute_id, :default_value,
|
21
|
+
:description, :display_name, :high_is_good, :icon_id,
|
22
|
+
:name, :published, :stackable, :unit_id
|
23
23
|
|
24
24
|
def model
|
25
25
|
Models::DogmaAttribute.new(response)
|
@@ -29,7 +29,7 @@ module EveOnline
|
|
29
29
|
def scope; end
|
30
30
|
|
31
31
|
def url
|
32
|
-
format(API_ENDPOINT, attribute_id:
|
32
|
+
format(API_ENDPOINT, attribute_id: id, datasource: datasource)
|
33
33
|
end
|
34
34
|
end
|
35
35
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class DogmaAttributes < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/dogma/attributes/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/dogma/attributes/?datasource=%<datasource>s'
|
7
7
|
|
8
8
|
def attributes
|
9
9
|
response
|
@@ -12,7 +12,7 @@ module EveOnline
|
|
12
12
|
def scope; end
|
13
13
|
|
14
14
|
def url
|
15
|
-
API_ENDPOINT
|
15
|
+
format(API_ENDPOINT, datasource: datasource)
|
16
16
|
end
|
17
17
|
end
|
18
18
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class Factions < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/universe/factions/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/universe/factions/?datasource=%<datasource>s&language=en-us'
|
7
7
|
|
8
8
|
def factions
|
9
9
|
output = []
|
@@ -17,7 +17,7 @@ module EveOnline
|
|
17
17
|
def scope; end
|
18
18
|
|
19
19
|
def url
|
20
|
-
API_ENDPOINT
|
20
|
+
format(API_ENDPOINT, datasource: datasource)
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -3,15 +3,15 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class MarketHistory < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/markets/%<region_id>s/history/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/markets/%<region_id>s/history/?datasource=%<datasource>s&type_id=%<type_id>s'
|
7
7
|
|
8
8
|
attr_reader :region_id, :type_id
|
9
9
|
|
10
10
|
def initialize(options)
|
11
11
|
super
|
12
12
|
|
13
|
-
@region_id = options
|
14
|
-
@type_id = options
|
13
|
+
@region_id = options.fetch(:region_id)
|
14
|
+
@type_id = options.fetch(:type_id)
|
15
15
|
end
|
16
16
|
|
17
17
|
def history
|
@@ -26,7 +26,7 @@ module EveOnline
|
|
26
26
|
def scope; end
|
27
27
|
|
28
28
|
def url
|
29
|
-
format(API_ENDPOINT, region_id: region_id, type_id: type_id)
|
29
|
+
format(API_ENDPOINT, region_id: region_id, type_id: type_id, datasource: datasource)
|
30
30
|
end
|
31
31
|
end
|
32
32
|
end
|
@@ -6,44 +6,44 @@ module EveOnline
|
|
6
6
|
class Alliance < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
name: name,
|
10
|
-
ticker: ticker,
|
11
|
-
creator_id: creator_id,
|
12
9
|
creator_corporation_id: creator_corporation_id,
|
13
|
-
|
10
|
+
creator_id: creator_id,
|
14
11
|
date_founded: date_founded,
|
15
|
-
|
12
|
+
executor_corporation_id: executor_corporation_id,
|
13
|
+
faction_id: faction_id,
|
14
|
+
name: name,
|
15
|
+
ticker: ticker
|
16
16
|
}
|
17
17
|
end
|
18
18
|
|
19
|
-
def
|
20
|
-
options['
|
21
|
-
end
|
22
|
-
|
23
|
-
def ticker
|
24
|
-
options['ticker']
|
19
|
+
def creator_corporation_id
|
20
|
+
options['creator_corporation_id']
|
25
21
|
end
|
26
22
|
|
27
23
|
def creator_id
|
28
24
|
options['creator_id']
|
29
25
|
end
|
30
26
|
|
31
|
-
def
|
32
|
-
options['
|
27
|
+
def date_founded
|
28
|
+
date_founded = options['date_founded']
|
29
|
+
|
30
|
+
parse_datetime_with_timezone(date_founded) if date_founded
|
33
31
|
end
|
34
32
|
|
35
33
|
def executor_corporation_id
|
36
34
|
options['executor_corporation_id']
|
37
35
|
end
|
38
36
|
|
39
|
-
def
|
40
|
-
|
37
|
+
def faction_id
|
38
|
+
options['faction_id']
|
39
|
+
end
|
41
40
|
|
42
|
-
|
41
|
+
def name
|
42
|
+
options['name']
|
43
43
|
end
|
44
44
|
|
45
|
-
def
|
46
|
-
options['
|
45
|
+
def ticker
|
46
|
+
options['ticker']
|
47
47
|
end
|
48
48
|
end
|
49
49
|
end
|
@@ -6,18 +6,18 @@ module EveOnline
|
|
6
6
|
class AllianceIcon < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
+
icon_medium: icon_medium,
|
9
10
|
icon_small: icon_small,
|
10
|
-
icon_medium: icon_medium
|
11
11
|
}
|
12
12
|
end
|
13
13
|
|
14
|
-
def icon_small
|
15
|
-
options['px64x64']
|
16
|
-
end
|
17
|
-
|
18
14
|
def icon_medium
|
19
15
|
options['px128x128']
|
20
16
|
end
|
17
|
+
|
18
|
+
def icon_small
|
19
|
+
options['px64x64']
|
20
|
+
end
|
21
21
|
end
|
22
22
|
end
|
23
23
|
end
|
@@ -6,23 +6,15 @@ module EveOnline
|
|
6
6
|
class Ancestry < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
ancestry_id: ancestry_id,
|
10
|
-
name: name,
|
11
9
|
bloodline_id: bloodline_id,
|
12
10
|
description: description,
|
13
|
-
|
14
|
-
|
11
|
+
icon_id: icon_id,
|
12
|
+
ancestry_id: ancestry_id,
|
13
|
+
name: name,
|
14
|
+
short_description: short_description
|
15
15
|
}
|
16
16
|
end
|
17
17
|
|
18
|
-
def ancestry_id
|
19
|
-
options['id']
|
20
|
-
end
|
21
|
-
|
22
|
-
def name
|
23
|
-
options['name']
|
24
|
-
end
|
25
|
-
|
26
18
|
def bloodline_id
|
27
19
|
options['bloodline_id']
|
28
20
|
end
|
@@ -31,13 +23,21 @@ module EveOnline
|
|
31
23
|
options['description']
|
32
24
|
end
|
33
25
|
|
34
|
-
def short_description
|
35
|
-
options['short_description']
|
36
|
-
end
|
37
|
-
|
38
26
|
def icon_id
|
39
27
|
options['icon_id']
|
40
28
|
end
|
29
|
+
|
30
|
+
def ancestry_id
|
31
|
+
options['id']
|
32
|
+
end
|
33
|
+
|
34
|
+
def name
|
35
|
+
options['name']
|
36
|
+
end
|
37
|
+
|
38
|
+
def short_description
|
39
|
+
options['short_description']
|
40
|
+
end
|
41
41
|
end
|
42
42
|
end
|
43
43
|
end
|
@@ -6,22 +6,31 @@ module EveOnline
|
|
6
6
|
class Asset < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
|
10
|
-
|
11
|
-
location_id: location_id,
|
12
|
-
location_type: location_type,
|
9
|
+
is_blueprint_copy: is_blueprint_copy,
|
10
|
+
is_singleton: is_singleton,
|
13
11
|
item_id: item_id,
|
14
12
|
location_flag: location_flag,
|
15
|
-
|
13
|
+
location_id: location_id,
|
14
|
+
location_type: location_type,
|
15
|
+
quantity: quantity,
|
16
|
+
type_id: type_id
|
16
17
|
}
|
17
18
|
end
|
18
19
|
|
19
|
-
def
|
20
|
-
options['
|
20
|
+
def is_blueprint_copy
|
21
|
+
options['is_blueprint_copy']
|
21
22
|
end
|
22
23
|
|
23
|
-
def
|
24
|
-
options['
|
24
|
+
def is_singleton
|
25
|
+
options['is_singleton']
|
26
|
+
end
|
27
|
+
|
28
|
+
def item_id
|
29
|
+
options['item_id']
|
30
|
+
end
|
31
|
+
|
32
|
+
def location_flag
|
33
|
+
options['location_flag']
|
25
34
|
end
|
26
35
|
|
27
36
|
def location_id
|
@@ -32,16 +41,12 @@ module EveOnline
|
|
32
41
|
options['location_type']
|
33
42
|
end
|
34
43
|
|
35
|
-
def
|
36
|
-
options['
|
37
|
-
end
|
38
|
-
|
39
|
-
def location_flag
|
40
|
-
options['location_flag']
|
44
|
+
def quantity
|
45
|
+
options['quantity']
|
41
46
|
end
|
42
47
|
|
43
|
-
def
|
44
|
-
options['
|
48
|
+
def type_id
|
49
|
+
options['type_id']
|
45
50
|
end
|
46
51
|
end
|
47
52
|
end
|
@@ -6,17 +6,27 @@ module EveOnline
|
|
6
6
|
class Attributes < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
+
accrued_remap_cooldown_date: accrued_remap_cooldown_date,
|
10
|
+
bonus_remaps: bonus_remaps,
|
9
11
|
charisma: charisma,
|
10
12
|
intelligence: intelligence,
|
13
|
+
last_remap_date: last_remap_date,
|
11
14
|
memory: memory,
|
12
15
|
perception: perception,
|
13
|
-
willpower: willpower
|
14
|
-
bonus_remaps: bonus_remaps,
|
15
|
-
last_remap_date: last_remap_date,
|
16
|
-
accrued_remap_cooldown_date: accrued_remap_cooldown_date
|
16
|
+
willpower: willpower
|
17
17
|
}
|
18
18
|
end
|
19
19
|
|
20
|
+
def accrued_remap_cooldown_date
|
21
|
+
accrued_remap_cooldown_date = options['accrued_remap_cooldown_date']
|
22
|
+
|
23
|
+
parse_datetime_with_timezone(accrued_remap_cooldown_date) if accrued_remap_cooldown_date
|
24
|
+
end
|
25
|
+
|
26
|
+
def bonus_remaps
|
27
|
+
options['bonus_remaps']
|
28
|
+
end
|
29
|
+
|
20
30
|
def charisma
|
21
31
|
options['charisma']
|
22
32
|
end
|
@@ -25,6 +35,12 @@ module EveOnline
|
|
25
35
|
options['intelligence']
|
26
36
|
end
|
27
37
|
|
38
|
+
def last_remap_date
|
39
|
+
last_remap_date = options['last_remap_date']
|
40
|
+
|
41
|
+
parse_datetime_with_timezone(last_remap_date) if last_remap_date
|
42
|
+
end
|
43
|
+
|
28
44
|
def memory
|
29
45
|
options['memory']
|
30
46
|
end
|
@@ -36,22 +52,6 @@ module EveOnline
|
|
36
52
|
def willpower
|
37
53
|
options['willpower']
|
38
54
|
end
|
39
|
-
|
40
|
-
def bonus_remaps
|
41
|
-
options['bonus_remaps']
|
42
|
-
end
|
43
|
-
|
44
|
-
def last_remap_date
|
45
|
-
last_remap_date = options['last_remap_date']
|
46
|
-
|
47
|
-
parse_datetime_with_timezone(last_remap_date) if last_remap_date
|
48
|
-
end
|
49
|
-
|
50
|
-
def accrued_remap_cooldown_date
|
51
|
-
accrued_remap_cooldown_date = options['accrued_remap_cooldown_date']
|
52
|
-
|
53
|
-
parse_datetime_with_timezone(accrued_remap_cooldown_date) if accrued_remap_cooldown_date
|
54
|
-
end
|
55
55
|
end
|
56
56
|
end
|
57
57
|
end
|
@@ -7,16 +7,16 @@ module EveOnline
|
|
7
7
|
def as_json
|
8
8
|
{
|
9
9
|
bloodline_id: bloodline_id,
|
10
|
-
|
10
|
+
charisma: charisma,
|
11
|
+
corporation_id: corporation_id,
|
11
12
|
description: description,
|
13
|
+
intelligence: intelligence,
|
14
|
+
memory: memory,
|
15
|
+
name: name,
|
16
|
+
perception: perception,
|
12
17
|
race_id: race_id,
|
13
18
|
ship_type_id: ship_type_id,
|
14
|
-
|
15
|
-
perception: perception,
|
16
|
-
willpower: willpower,
|
17
|
-
charisma: charisma,
|
18
|
-
memory: memory,
|
19
|
-
intelligence: intelligence
|
19
|
+
willpower: willpower
|
20
20
|
}
|
21
21
|
end
|
22
22
|
|
@@ -24,44 +24,44 @@ module EveOnline
|
|
24
24
|
options['bloodline_id']
|
25
25
|
end
|
26
26
|
|
27
|
-
def
|
28
|
-
options['
|
27
|
+
def charisma
|
28
|
+
options['charisma']
|
29
|
+
end
|
30
|
+
|
31
|
+
def corporation_id
|
32
|
+
options['corporation_id']
|
29
33
|
end
|
30
34
|
|
31
35
|
def description
|
32
36
|
options['description']
|
33
37
|
end
|
34
38
|
|
35
|
-
def
|
36
|
-
options['
|
39
|
+
def intelligence
|
40
|
+
options['intelligence']
|
37
41
|
end
|
38
42
|
|
39
|
-
def
|
40
|
-
options['
|
43
|
+
def memory
|
44
|
+
options['memory']
|
41
45
|
end
|
42
46
|
|
43
|
-
def
|
44
|
-
options['
|
47
|
+
def name
|
48
|
+
options['name']
|
45
49
|
end
|
46
50
|
|
47
51
|
def perception
|
48
52
|
options['perception']
|
49
53
|
end
|
50
54
|
|
51
|
-
def
|
52
|
-
options['
|
53
|
-
end
|
54
|
-
|
55
|
-
def charisma
|
56
|
-
options['charisma']
|
55
|
+
def race_id
|
56
|
+
options['race_id']
|
57
57
|
end
|
58
58
|
|
59
|
-
def
|
60
|
-
options['
|
59
|
+
def ship_type_id
|
60
|
+
options['ship_type_id']
|
61
61
|
end
|
62
62
|
|
63
|
-
def
|
64
|
-
options['
|
63
|
+
def willpower
|
64
|
+
options['willpower']
|
65
65
|
end
|
66
66
|
end
|
67
67
|
end
|