eve_online 0.14.0 → 0.15.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.gitignore +0 -2
- data/.rubocop.yml +8 -15
- data/.rubocop_general.yml +10 -2
- data/.ruby-version +1 -0
- data/.travis.yml +15 -16
- data/CHANGELOG.md +60 -0
- data/Gemfile +3 -0
- data/Gemfile.lock +170 -0
- data/LICENSE.txt +1 -1
- data/README.md +569 -587
- data/Rakefile +2 -0
- data/eve_online.gemspec +7 -6
- data/gemfiles/activesupport_42.gemfile +3 -1
- data/gemfiles/activesupport_50.gemfile +3 -1
- data/gemfiles/activesupport_51.gemfile +3 -1
- data/gemfiles/activesupport_52.gemfile +4 -2
- data/gemfiles/activesupport_edge.gemfile +3 -1
- data/lib/eve_online.rb +23 -40
- data/lib/eve_online/esi/alliance.rb +3 -1
- data/lib/eve_online/esi/alliance_corporations.rb +27 -0
- data/lib/eve_online/esi/alliance_icon.rb +4 -2
- data/lib/eve_online/esi/alliances.rb +19 -0
- data/lib/eve_online/esi/alliances_names.rb +32 -0
- data/lib/eve_online/esi/ancestries.rb +24 -0
- data/lib/eve_online/esi/base.rb +3 -0
- data/lib/eve_online/esi/bloodlines.rb +3 -1
- data/lib/eve_online/esi/character.rb +3 -1
- data/lib/eve_online/esi/character_assets.rb +3 -1
- data/lib/eve_online/esi/character_attributes.rb +3 -1
- data/lib/eve_online/esi/character_blueprints.rb +3 -1
- data/lib/eve_online/esi/character_bookmark_folders.rb +34 -0
- data/lib/eve_online/esi/character_bookmarks.rb +34 -0
- data/lib/eve_online/esi/character_calendar.rb +34 -0
- data/lib/eve_online/esi/character_clones.rb +3 -1
- data/lib/eve_online/esi/character_fatigue.rb +3 -1
- data/lib/eve_online/esi/character_implants.rb +3 -1
- data/lib/eve_online/esi/character_industry_jobs.rb +4 -2
- data/lib/eve_online/esi/character_loyalty_points.rb +3 -1
- data/lib/eve_online/esi/character_notifications.rb +34 -0
- data/lib/eve_online/esi/character_online.rb +3 -1
- data/lib/eve_online/esi/character_orders.rb +34 -0
- data/lib/eve_online/esi/character_portrait.rb +3 -1
- data/lib/eve_online/esi/character_skill_queue.rb +3 -1
- data/lib/eve_online/esi/character_skills.rb +3 -1
- data/lib/eve_online/esi/character_standings.rb +3 -1
- data/lib/eve_online/esi/character_wallet.rb +3 -1
- data/lib/eve_online/esi/character_wallet_journal.rb +34 -0
- data/lib/eve_online/esi/corporation.rb +3 -1
- data/lib/eve_online/esi/corporation_blueprints.rb +3 -1
- data/lib/eve_online/esi/corporation_industry_jobs.rb +4 -2
- data/lib/eve_online/esi/corporation_orders.rb +39 -0
- data/lib/eve_online/esi/dogma_attribute.rb +3 -1
- data/lib/eve_online/esi/dogma_attributes.rb +3 -1
- data/lib/eve_online/esi/factions.rb +3 -1
- data/lib/eve_online/esi/market_history.rb +4 -2
- data/lib/eve_online/esi/models/alliance.rb +2 -0
- data/lib/eve_online/esi/models/alliance_icon.rb +6 -4
- data/lib/eve_online/esi/models/alliance_short.rb +24 -0
- data/lib/eve_online/esi/models/ancestry.rb +44 -0
- data/lib/eve_online/esi/models/asset.rb +2 -0
- data/lib/eve_online/esi/models/attributes.rb +2 -0
- data/lib/eve_online/esi/models/base.rb +2 -0
- data/lib/eve_online/esi/models/bloodline.rb +2 -0
- data/lib/eve_online/esi/models/blueprint.rb +2 -0
- data/lib/eve_online/esi/models/bookmark.rb +76 -0
- data/lib/eve_online/esi/models/bookmark_folder.rb +24 -0
- data/lib/eve_online/esi/models/character.rb +2 -0
- data/lib/eve_online/esi/models/character_order.rb +96 -0
- data/lib/eve_online/esi/models/character_portrait.rb +2 -0
- data/lib/eve_online/esi/models/corporation.rb +2 -0
- data/lib/eve_online/esi/models/corporation_order.rb +91 -0
- data/lib/eve_online/esi/models/dogma_attribute.rb +2 -0
- data/lib/eve_online/esi/models/event.rb +41 -0
- data/lib/eve_online/esi/models/faction.rb +2 -0
- data/lib/eve_online/esi/models/fatigue.rb +2 -0
- data/lib/eve_online/esi/models/home_location.rb +2 -0
- data/lib/eve_online/esi/models/industry_job.rb +2 -0
- data/lib/eve_online/esi/models/jump_clone.rb +2 -0
- data/lib/eve_online/esi/models/loyalty_point.rb +2 -0
- data/lib/eve_online/esi/models/market_history.rb +2 -0
- data/lib/eve_online/esi/models/notification.rb +51 -0
- data/lib/eve_online/esi/models/online.rb +2 -0
- data/lib/eve_online/esi/models/race.rb +2 -0
- data/lib/eve_online/esi/models/server_status.rb +2 -0
- data/lib/eve_online/esi/models/skill.rb +2 -0
- data/lib/eve_online/esi/models/skill_queue_entry.rb +2 -0
- data/lib/eve_online/esi/models/standing.rb +2 -0
- data/lib/eve_online/esi/models/wallet_journal_entry.rb +77 -0
- data/lib/eve_online/esi/races.rb +3 -1
- data/lib/eve_online/esi/server_status.rb +3 -1
- data/lib/eve_online/exceptions/base.rb +2 -0
- data/lib/eve_online/exceptions/invalid_character_id_exception.rb +2 -0
- data/lib/eve_online/exceptions/timeout_exception.rb +2 -0
- data/lib/eve_online/exceptions/unauthorized_exception.rb +2 -0
- data/lib/eve_online/version.rb +3 -1
- metadata +55 -50
- data/lib/eve_online/base.rb +0 -34
- data/lib/eve_online/base_xml.rb +0 -43
- data/lib/eve_online/bookmark.rb +0 -71
- data/lib/eve_online/bookmark_folder.rb +0 -56
- data/lib/eve_online/contact_notification.rb +0 -42
- data/lib/eve_online/event.rb +0 -66
- data/lib/eve_online/event_response_object.rb +0 -18
- data/lib/eve_online/market_order.rb +0 -91
- data/lib/eve_online/sde/agt_agent_types.rb +0 -14
- data/lib/eve_online/sde/agt_agents.rb +0 -14
- data/lib/eve_online/sde/agt_research_agents.rb +0 -14
- data/lib/eve_online/sde/base.rb +0 -25
- data/lib/eve_online/sde/inv_flags.rb +0 -14
- data/lib/eve_online/sde/inv_items.rb +0 -14
- data/lib/eve_online/sde/inv_names.rb +0 -14
- data/lib/eve_online/sde/inv_positions.rb +0 -14
- data/lib/eve_online/sde/models/agt_agent.rb +0 -58
- data/lib/eve_online/sde/models/agt_agent_type.rb +0 -28
- data/lib/eve_online/sde/models/agt_research_agent.rb +0 -28
- data/lib/eve_online/sde/models/inv_flag.rb +0 -38
- data/lib/eve_online/sde/models/inv_item.rb +0 -48
- data/lib/eve_online/sde/models/inv_name.rb +0 -28
- data/lib/eve_online/sde/models/inv_position.rb +0 -53
- data/lib/eve_online/wallet_journal_entry.rb +0 -97
- data/lib/eve_online/xml/base.rb +0 -84
- data/lib/eve_online/xml/character_bookmarks.rb +0 -53
- data/lib/eve_online/xml/character_contact_notifications.rb +0 -51
- data/lib/eve_online/xml/character_market_orders.rb +0 -55
- data/lib/eve_online/xml/character_upcoming_calendar_events.rb +0 -51
- data/lib/eve_online/xml/character_wallet_journal.rb +0 -57
- data/lib/eve_online/xml/corporation_market_orders.rb +0 -55
@@ -1,14 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
class AgtResearchAgents < Base
|
4
|
-
def agt_research_agents
|
5
|
-
output = []
|
6
|
-
data.each do |agt_research_agent|
|
7
|
-
output << EveOnline::SDE::Models::AgtResearchAgent.new(agt_research_agent)
|
8
|
-
end
|
9
|
-
output
|
10
|
-
end
|
11
|
-
memoize :agt_research_agents
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
data/lib/eve_online/sde/base.rb
DELETED
@@ -1,25 +0,0 @@
|
|
1
|
-
require 'memoist'
|
2
|
-
|
3
|
-
module EveOnline
|
4
|
-
module SDE
|
5
|
-
class Base
|
6
|
-
extend Memoist
|
7
|
-
|
8
|
-
attr_reader :file
|
9
|
-
|
10
|
-
def initialize(file)
|
11
|
-
@file = file
|
12
|
-
end
|
13
|
-
|
14
|
-
def content
|
15
|
-
File.read(file)
|
16
|
-
end
|
17
|
-
memoize :content
|
18
|
-
|
19
|
-
def data
|
20
|
-
YAML.safe_load(content)
|
21
|
-
end
|
22
|
-
memoize :data
|
23
|
-
end
|
24
|
-
end
|
25
|
-
end
|
@@ -1,14 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
class InvPositions < Base
|
4
|
-
def inv_positions
|
5
|
-
output = []
|
6
|
-
data.each do |inv_position|
|
7
|
-
output << EveOnline::SDE::Models::InvPosition.new(inv_position)
|
8
|
-
end
|
9
|
-
output
|
10
|
-
end
|
11
|
-
memoize :inv_positions
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
@@ -1,58 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
module Models
|
4
|
-
class AgtAgent
|
5
|
-
attr_reader :data
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
agent_id: agent_id,
|
14
|
-
agent_type_id: agent_type_id,
|
15
|
-
corporation_id: corporation_id,
|
16
|
-
division_id: division_id,
|
17
|
-
is_locator: is_locator,
|
18
|
-
level: level,
|
19
|
-
location_id: location_id,
|
20
|
-
quality: quality
|
21
|
-
}
|
22
|
-
end
|
23
|
-
|
24
|
-
def agent_id
|
25
|
-
data['agentID']
|
26
|
-
end
|
27
|
-
|
28
|
-
def agent_type_id
|
29
|
-
data['agentTypeID']
|
30
|
-
end
|
31
|
-
|
32
|
-
def corporation_id
|
33
|
-
data['corporationID']
|
34
|
-
end
|
35
|
-
|
36
|
-
def division_id
|
37
|
-
data['divisionID']
|
38
|
-
end
|
39
|
-
|
40
|
-
def is_locator
|
41
|
-
data['isLocator']
|
42
|
-
end
|
43
|
-
|
44
|
-
def level
|
45
|
-
data['level']
|
46
|
-
end
|
47
|
-
|
48
|
-
def location_id
|
49
|
-
data['locationID']
|
50
|
-
end
|
51
|
-
|
52
|
-
def quality
|
53
|
-
data['quality']
|
54
|
-
end
|
55
|
-
end
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
module Models
|
4
|
-
class AgtAgentType
|
5
|
-
attr_reader :data
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
agent_type: agent_type,
|
14
|
-
agent_type_id: agent_type_id
|
15
|
-
}
|
16
|
-
end
|
17
|
-
|
18
|
-
def agent_type
|
19
|
-
data['agentType']
|
20
|
-
end
|
21
|
-
|
22
|
-
def agent_type_id
|
23
|
-
data['agentTypeID']
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
module Models
|
4
|
-
class AgtResearchAgent
|
5
|
-
attr_reader :data
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
agent_id: agent_id,
|
14
|
-
type_id: type_id
|
15
|
-
}
|
16
|
-
end
|
17
|
-
|
18
|
-
def agent_id
|
19
|
-
data['agentID']
|
20
|
-
end
|
21
|
-
|
22
|
-
def type_id
|
23
|
-
data['typeID']
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,38 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
module Models
|
4
|
-
class InvFlag
|
5
|
-
attr_reader :data
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
flag_id: flag_id,
|
14
|
-
flag_name: flag_name,
|
15
|
-
flag_text: flag_text,
|
16
|
-
order_id: order_id
|
17
|
-
}
|
18
|
-
end
|
19
|
-
|
20
|
-
def flag_id
|
21
|
-
data['flagID']
|
22
|
-
end
|
23
|
-
|
24
|
-
def flag_name
|
25
|
-
data['flagName']
|
26
|
-
end
|
27
|
-
|
28
|
-
def flag_text
|
29
|
-
data['flagText']
|
30
|
-
end
|
31
|
-
|
32
|
-
def order_id
|
33
|
-
data['orderID']
|
34
|
-
end
|
35
|
-
end
|
36
|
-
end
|
37
|
-
end
|
38
|
-
end
|
@@ -1,48 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
module Models
|
4
|
-
class InvItem
|
5
|
-
attr_reader :data
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
flag_id: flag_id,
|
14
|
-
item_id: item_id,
|
15
|
-
location_id: location_id,
|
16
|
-
owner_id: owner_id,
|
17
|
-
quantity: quantity,
|
18
|
-
type_id: type_id
|
19
|
-
}
|
20
|
-
end
|
21
|
-
|
22
|
-
def flag_id
|
23
|
-
data['flagID']
|
24
|
-
end
|
25
|
-
|
26
|
-
def item_id
|
27
|
-
data['itemID']
|
28
|
-
end
|
29
|
-
|
30
|
-
def location_id
|
31
|
-
data['locationID']
|
32
|
-
end
|
33
|
-
|
34
|
-
def owner_id
|
35
|
-
data['ownerID']
|
36
|
-
end
|
37
|
-
|
38
|
-
def quantity
|
39
|
-
data['quantity']
|
40
|
-
end
|
41
|
-
|
42
|
-
def type_id
|
43
|
-
data['typeID']
|
44
|
-
end
|
45
|
-
end
|
46
|
-
end
|
47
|
-
end
|
48
|
-
end
|
@@ -1,28 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
module Models
|
4
|
-
class InvName
|
5
|
-
attr_reader :data
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
item_id: item_id,
|
14
|
-
item_name: item_name
|
15
|
-
}
|
16
|
-
end
|
17
|
-
|
18
|
-
def item_id
|
19
|
-
data['itemID']
|
20
|
-
end
|
21
|
-
|
22
|
-
def item_name
|
23
|
-
data['itemName']
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
end
|
28
|
-
end
|
@@ -1,53 +0,0 @@
|
|
1
|
-
module EveOnline
|
2
|
-
module SDE
|
3
|
-
module Models
|
4
|
-
class InvPosition
|
5
|
-
attr_reader :data
|
6
|
-
|
7
|
-
def initialize(data)
|
8
|
-
@data = data
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
item_id: item_id,
|
14
|
-
pitch: pitch,
|
15
|
-
roll: roll,
|
16
|
-
x: x,
|
17
|
-
y: y,
|
18
|
-
yaw: yaw,
|
19
|
-
z: z
|
20
|
-
}
|
21
|
-
end
|
22
|
-
|
23
|
-
def item_id
|
24
|
-
data['itemID']
|
25
|
-
end
|
26
|
-
|
27
|
-
def pitch
|
28
|
-
data['pitch']
|
29
|
-
end
|
30
|
-
|
31
|
-
def roll
|
32
|
-
data['roll']
|
33
|
-
end
|
34
|
-
|
35
|
-
def x
|
36
|
-
data['x']
|
37
|
-
end
|
38
|
-
|
39
|
-
def y
|
40
|
-
data['y']
|
41
|
-
end
|
42
|
-
|
43
|
-
def yaw
|
44
|
-
data['yaw']
|
45
|
-
end
|
46
|
-
|
47
|
-
def z
|
48
|
-
data['z']
|
49
|
-
end
|
50
|
-
end
|
51
|
-
end
|
52
|
-
end
|
53
|
-
end
|
@@ -1,97 +0,0 @@
|
|
1
|
-
require 'active_support/time'
|
2
|
-
|
3
|
-
module EveOnline
|
4
|
-
class WalletJournalEntry
|
5
|
-
attr_reader :options
|
6
|
-
|
7
|
-
def initialize(options)
|
8
|
-
@options = options
|
9
|
-
end
|
10
|
-
|
11
|
-
def as_json
|
12
|
-
{
|
13
|
-
date: date,
|
14
|
-
ref_id: ref_id,
|
15
|
-
ref_type_id: ref_type_id,
|
16
|
-
owner_name1: owner_name1,
|
17
|
-
owner_id1: owner_id1,
|
18
|
-
owner_name2: owner_name2,
|
19
|
-
owner_id2: owner_id2,
|
20
|
-
arg_name1: arg_name1,
|
21
|
-
arg_id1: arg_id1,
|
22
|
-
amount: amount,
|
23
|
-
balance: balance,
|
24
|
-
reason: reason,
|
25
|
-
tax_receiver_id: tax_receiver_id,
|
26
|
-
tax_amount: tax_amount,
|
27
|
-
owner1_type_id: owner1_type_id,
|
28
|
-
owner2_type_id: owner2_type_id
|
29
|
-
}
|
30
|
-
end
|
31
|
-
|
32
|
-
def date
|
33
|
-
ActiveSupport::TimeZone['UTC'].parse(options.fetch('@date'))
|
34
|
-
end
|
35
|
-
|
36
|
-
def ref_id
|
37
|
-
options.fetch('@refID').to_i
|
38
|
-
end
|
39
|
-
|
40
|
-
def ref_type_id
|
41
|
-
options.fetch('@refTypeID').to_i
|
42
|
-
end
|
43
|
-
|
44
|
-
def owner_name1
|
45
|
-
options.fetch('@ownerName1')
|
46
|
-
end
|
47
|
-
|
48
|
-
def owner_id1
|
49
|
-
options.fetch('@ownerID1').to_i
|
50
|
-
end
|
51
|
-
|
52
|
-
def owner_name2
|
53
|
-
options.fetch('@ownerName2')
|
54
|
-
end
|
55
|
-
|
56
|
-
def owner_id2
|
57
|
-
options.fetch('@ownerID2').to_i
|
58
|
-
end
|
59
|
-
|
60
|
-
def arg_name1
|
61
|
-
options.fetch('@argName1')
|
62
|
-
end
|
63
|
-
|
64
|
-
def arg_id1
|
65
|
-
options.fetch('@argID1').to_i
|
66
|
-
end
|
67
|
-
|
68
|
-
def amount
|
69
|
-
options.fetch('@amount').to_f
|
70
|
-
end
|
71
|
-
|
72
|
-
def balance
|
73
|
-
options.fetch('@balance').to_f
|
74
|
-
end
|
75
|
-
|
76
|
-
def reason
|
77
|
-
options.fetch('@reason')
|
78
|
-
end
|
79
|
-
|
80
|
-
def tax_receiver_id
|
81
|
-
# TODO: to_i
|
82
|
-
options.fetch('@taxReceiverID')
|
83
|
-
end
|
84
|
-
|
85
|
-
def tax_amount
|
86
|
-
options.fetch('@taxAmount')
|
87
|
-
end
|
88
|
-
|
89
|
-
def owner1_type_id
|
90
|
-
options.fetch('@owner1TypeID').to_i
|
91
|
-
end
|
92
|
-
|
93
|
-
def owner2_type_id
|
94
|
-
options.fetch('@owner2TypeID').to_i
|
95
|
-
end
|
96
|
-
end
|
97
|
-
end
|