eve_online 0.13.0 → 0.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/.travis.yml +29 -8
- data/CHANGELOG.md +9 -0
- data/README.md +133 -26
- data/eve_online.gemspec +1 -1
- data/gemfiles/activesupport_52.gemfile +5 -0
- data/lib/eve_online.rb +7 -0
- data/lib/eve_online/esi/alliance.rb +5 -4
- data/lib/eve_online/esi/alliance_icon.rb +2 -2
- data/lib/eve_online/esi/character.rb +3 -3
- data/lib/eve_online/esi/character_assets.rb +2 -2
- data/lib/eve_online/esi/character_attributes.rb +2 -2
- data/lib/eve_online/esi/character_blueprints.rb +2 -2
- data/lib/eve_online/esi/character_clones.rb +11 -5
- data/lib/eve_online/esi/character_fatigue.rb +2 -2
- data/lib/eve_online/esi/character_implants.rb +2 -2
- data/lib/eve_online/esi/character_loyalty_points.rb +2 -2
- data/lib/eve_online/esi/character_online.rb +35 -0
- data/lib/eve_online/esi/character_portrait.rb +2 -2
- data/lib/eve_online/esi/character_skill_queue.rb +2 -2
- data/lib/eve_online/esi/character_skills.rb +9 -4
- data/lib/eve_online/esi/character_standings.rb +2 -2
- data/lib/eve_online/esi/character_wallet.rb +2 -2
- data/lib/eve_online/esi/corporation.rb +6 -6
- data/lib/eve_online/esi/corporation_blueprints.rb +32 -0
- data/lib/eve_online/esi/dogma_attribute.rb +2 -2
- data/lib/eve_online/esi/market_history.rb +31 -0
- data/lib/eve_online/esi/models/alliance.rb +21 -6
- data/lib/eve_online/esi/models/asset.rb +6 -6
- data/lib/eve_online/esi/models/character.rb +6 -1
- data/lib/eve_online/esi/models/corporation.rb +40 -30
- data/lib/eve_online/esi/models/industry_job.rb +1 -0
- data/lib/eve_online/esi/models/jump_clone.rb +10 -0
- data/lib/eve_online/esi/models/market_history.rb +44 -0
- data/lib/eve_online/esi/models/online.rb +36 -0
- data/lib/eve_online/esi/models/skill.rb +8 -3
- data/lib/eve_online/version.rb +1 -1
- data/server.http +0 -0
- metadata +12 -5
@@ -4,29 +4,44 @@ module EveOnline
|
|
4
4
|
class Alliance < Base
|
5
5
|
def as_json
|
6
6
|
{
|
7
|
-
|
7
|
+
name: name,
|
8
8
|
ticker: ticker,
|
9
|
+
creator_id: creator_id,
|
10
|
+
creator_corporation_id: creator_corporation_id,
|
11
|
+
executor_corporation_id: executor_corporation_id,
|
9
12
|
date_founded: date_founded,
|
10
|
-
|
13
|
+
faction_id: faction_id
|
11
14
|
}
|
12
15
|
end
|
13
16
|
|
14
|
-
def
|
15
|
-
options['
|
17
|
+
def name
|
18
|
+
options['name']
|
16
19
|
end
|
17
20
|
|
18
21
|
def ticker
|
19
22
|
options['ticker']
|
20
23
|
end
|
21
24
|
|
25
|
+
def creator_id
|
26
|
+
options['creator_id']
|
27
|
+
end
|
28
|
+
|
29
|
+
def creator_corporation_id
|
30
|
+
options['creator_corporation_id']
|
31
|
+
end
|
32
|
+
|
33
|
+
def executor_corporation_id
|
34
|
+
options['executor_corporation_id']
|
35
|
+
end
|
36
|
+
|
22
37
|
def date_founded
|
23
38
|
date_founded = options['date_founded']
|
24
39
|
|
25
40
|
parse_datetime_with_timezone(date_founded) if date_founded
|
26
41
|
end
|
27
42
|
|
28
|
-
def
|
29
|
-
options['
|
43
|
+
def faction_id
|
44
|
+
options['faction_id']
|
30
45
|
end
|
31
46
|
end
|
32
47
|
end
|
@@ -5,12 +5,12 @@ module EveOnline
|
|
5
5
|
def as_json
|
6
6
|
{
|
7
7
|
type_id: type_id,
|
8
|
+
quantity: quantity,
|
8
9
|
location_id: location_id,
|
9
10
|
location_type: location_type,
|
10
11
|
item_id: item_id,
|
11
12
|
location_flag: location_flag,
|
12
|
-
is_singleton: is_singleton
|
13
|
-
quantity: quantity
|
13
|
+
is_singleton: is_singleton
|
14
14
|
}
|
15
15
|
end
|
16
16
|
|
@@ -18,6 +18,10 @@ module EveOnline
|
|
18
18
|
options['type_id']
|
19
19
|
end
|
20
20
|
|
21
|
+
def quantity
|
22
|
+
options['quantity']
|
23
|
+
end
|
24
|
+
|
21
25
|
def location_id
|
22
26
|
options['location_id']
|
23
27
|
end
|
@@ -37,10 +41,6 @@ module EveOnline
|
|
37
41
|
def is_singleton
|
38
42
|
options['is_singleton']
|
39
43
|
end
|
40
|
-
|
41
|
-
def quantity
|
42
|
-
options['quantity']
|
43
|
-
end
|
44
44
|
end
|
45
45
|
end
|
46
46
|
end
|
@@ -13,7 +13,8 @@ module EveOnline
|
|
13
13
|
description: description,
|
14
14
|
alliance_id: alliance_id,
|
15
15
|
ancestry_id: ancestry_id,
|
16
|
-
security_status: security_status
|
16
|
+
security_status: security_status,
|
17
|
+
faction_id: faction_id
|
17
18
|
}
|
18
19
|
end
|
19
20
|
|
@@ -58,6 +59,10 @@ module EveOnline
|
|
58
59
|
def security_status
|
59
60
|
options['security_status']
|
60
61
|
end
|
62
|
+
|
63
|
+
def faction_id
|
64
|
+
options['faction_id']
|
65
|
+
end
|
61
66
|
end
|
62
67
|
end
|
63
68
|
end
|
@@ -4,64 +4,74 @@ module EveOnline
|
|
4
4
|
class Corporation < Base
|
5
5
|
def as_json
|
6
6
|
{
|
7
|
-
|
8
|
-
|
9
|
-
corporation_description: corporation_description,
|
10
|
-
corporation_name: corporation_name,
|
11
|
-
creation_date: creation_date,
|
12
|
-
creator_id: creator_id,
|
13
|
-
faction: faction,
|
7
|
+
name: name,
|
8
|
+
ticker: ticker,
|
14
9
|
member_count: member_count,
|
10
|
+
ceo_id: ceo_id,
|
11
|
+
alliance_id: alliance_id,
|
12
|
+
description: description,
|
15
13
|
tax_rate: tax_rate,
|
16
|
-
|
17
|
-
|
14
|
+
date_founded: date_founded,
|
15
|
+
creator_id: creator_id,
|
16
|
+
corporation_url: corporation_url,
|
17
|
+
faction_id: faction_id,
|
18
|
+
home_station_id: home_station_id,
|
19
|
+
shares: shares
|
18
20
|
}
|
19
21
|
end
|
20
22
|
|
21
|
-
def
|
22
|
-
options['
|
23
|
+
def name
|
24
|
+
options['name']
|
25
|
+
end
|
26
|
+
|
27
|
+
def ticker
|
28
|
+
options['ticker']
|
29
|
+
end
|
30
|
+
|
31
|
+
def member_count
|
32
|
+
options['member_count']
|
23
33
|
end
|
24
34
|
|
25
35
|
def ceo_id
|
26
36
|
options['ceo_id']
|
27
37
|
end
|
28
38
|
|
29
|
-
def
|
30
|
-
options['
|
39
|
+
def alliance_id
|
40
|
+
options['alliance_id']
|
31
41
|
end
|
32
42
|
|
33
|
-
def
|
34
|
-
options['
|
43
|
+
def description
|
44
|
+
options['description']
|
35
45
|
end
|
36
46
|
|
37
|
-
def
|
38
|
-
|
47
|
+
def tax_rate
|
48
|
+
options['tax_rate']
|
49
|
+
end
|
39
50
|
|
40
|
-
|
51
|
+
def date_founded
|
52
|
+
date_founded = options['date_founded']
|
53
|
+
|
54
|
+
parse_datetime_with_timezone(date_founded) if date_founded
|
41
55
|
end
|
42
56
|
|
43
57
|
def creator_id
|
44
58
|
options['creator_id']
|
45
59
|
end
|
46
60
|
|
47
|
-
def
|
48
|
-
options['
|
49
|
-
end
|
50
|
-
|
51
|
-
def member_count
|
52
|
-
options['member_count']
|
61
|
+
def corporation_url
|
62
|
+
options['url']
|
53
63
|
end
|
54
64
|
|
55
|
-
def
|
56
|
-
options['
|
65
|
+
def home_station_id
|
66
|
+
options['home_station_id']
|
57
67
|
end
|
58
68
|
|
59
|
-
def
|
60
|
-
options['
|
69
|
+
def faction_id
|
70
|
+
options['faction_id']
|
61
71
|
end
|
62
72
|
|
63
|
-
def
|
64
|
-
options['
|
73
|
+
def shares
|
74
|
+
options['shares']
|
65
75
|
end
|
66
76
|
end
|
67
77
|
end
|
@@ -4,12 +4,22 @@ module EveOnline
|
|
4
4
|
class JumpClone < Base
|
5
5
|
def as_json
|
6
6
|
{
|
7
|
+
jump_clone_id: jump_clone_id,
|
8
|
+
name: name,
|
7
9
|
location_id: location_id,
|
8
10
|
location_type: location_type,
|
9
11
|
implants: implants
|
10
12
|
}
|
11
13
|
end
|
12
14
|
|
15
|
+
def jump_clone_id
|
16
|
+
options['jump_clone_id']
|
17
|
+
end
|
18
|
+
|
19
|
+
def name
|
20
|
+
options['name']
|
21
|
+
end
|
22
|
+
|
13
23
|
def location_id
|
14
24
|
options['location_id']
|
15
25
|
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
module EveOnline
|
2
|
+
module ESI
|
3
|
+
module Models
|
4
|
+
class MarketHistory < Base
|
5
|
+
def as_json
|
6
|
+
{
|
7
|
+
date: date,
|
8
|
+
order_count: order_count,
|
9
|
+
volume: volume,
|
10
|
+
highest: highest,
|
11
|
+
average: average,
|
12
|
+
lowest: lowest
|
13
|
+
}
|
14
|
+
end
|
15
|
+
|
16
|
+
def date
|
17
|
+
date = options['date']
|
18
|
+
|
19
|
+
parse_datetime_with_timezone(date) if date
|
20
|
+
end
|
21
|
+
|
22
|
+
def order_count
|
23
|
+
options['order_count']
|
24
|
+
end
|
25
|
+
|
26
|
+
def volume
|
27
|
+
options['volume']
|
28
|
+
end
|
29
|
+
|
30
|
+
def highest
|
31
|
+
options['highest']
|
32
|
+
end
|
33
|
+
|
34
|
+
def average
|
35
|
+
options['average']
|
36
|
+
end
|
37
|
+
|
38
|
+
def lowest
|
39
|
+
options['lowest']
|
40
|
+
end
|
41
|
+
end
|
42
|
+
end
|
43
|
+
end
|
44
|
+
end
|
@@ -0,0 +1,36 @@
|
|
1
|
+
module EveOnline
|
2
|
+
module ESI
|
3
|
+
module Models
|
4
|
+
class Online < Base
|
5
|
+
def as_json
|
6
|
+
{
|
7
|
+
online: online,
|
8
|
+
last_login: last_login,
|
9
|
+
last_logout: last_logout,
|
10
|
+
logins: logins
|
11
|
+
}
|
12
|
+
end
|
13
|
+
|
14
|
+
def online
|
15
|
+
options['online']
|
16
|
+
end
|
17
|
+
|
18
|
+
def last_login
|
19
|
+
last_login = options['last_login']
|
20
|
+
|
21
|
+
parse_datetime_with_timezone(last_login) if last_login
|
22
|
+
end
|
23
|
+
|
24
|
+
def last_logout
|
25
|
+
last_logout = options['last_logout']
|
26
|
+
|
27
|
+
parse_datetime_with_timezone(last_logout) if last_logout
|
28
|
+
end
|
29
|
+
|
30
|
+
def logins
|
31
|
+
options['logins']
|
32
|
+
end
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
@@ -6,7 +6,8 @@ module EveOnline
|
|
6
6
|
{
|
7
7
|
skill_id: skill_id,
|
8
8
|
skillpoints_in_skill: skillpoints_in_skill,
|
9
|
-
|
9
|
+
trained_skill_level: trained_skill_level,
|
10
|
+
active_skill_level: active_skill_level
|
10
11
|
}
|
11
12
|
end
|
12
13
|
|
@@ -18,8 +19,12 @@ module EveOnline
|
|
18
19
|
options['skillpoints_in_skill']
|
19
20
|
end
|
20
21
|
|
21
|
-
def
|
22
|
-
options['
|
22
|
+
def trained_skill_level
|
23
|
+
options['trained_skill_level']
|
24
|
+
end
|
25
|
+
|
26
|
+
def active_skill_level
|
27
|
+
options['active_skill_level']
|
23
28
|
end
|
24
29
|
end
|
25
30
|
end
|
data/lib/eve_online/version.rb
CHANGED
data/server.http
ADDED
File without changes
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eve_online
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.14.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Igor Zubkov
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-12-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -100,14 +100,14 @@ dependencies:
|
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
102
102
|
- !ruby/object:Gem::Version
|
103
|
-
version:
|
103
|
+
version: 4.2.0
|
104
104
|
type: :runtime
|
105
105
|
prerelease: false
|
106
106
|
version_requirements: !ruby/object:Gem::Requirement
|
107
107
|
requirements:
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
|
-
version:
|
110
|
+
version: 4.2.0
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
112
|
name: faraday
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
@@ -187,6 +187,7 @@ files:
|
|
187
187
|
- gemfiles/activesupport_42.gemfile
|
188
188
|
- gemfiles/activesupport_50.gemfile
|
189
189
|
- gemfiles/activesupport_51.gemfile
|
190
|
+
- gemfiles/activesupport_52.gemfile
|
190
191
|
- gemfiles/activesupport_edge.gemfile
|
191
192
|
- lib/eve_online.rb
|
192
193
|
- lib/eve_online/base.rb
|
@@ -207,16 +208,19 @@ files:
|
|
207
208
|
- lib/eve_online/esi/character_implants.rb
|
208
209
|
- lib/eve_online/esi/character_industry_jobs.rb
|
209
210
|
- lib/eve_online/esi/character_loyalty_points.rb
|
211
|
+
- lib/eve_online/esi/character_online.rb
|
210
212
|
- lib/eve_online/esi/character_portrait.rb
|
211
213
|
- lib/eve_online/esi/character_skill_queue.rb
|
212
214
|
- lib/eve_online/esi/character_skills.rb
|
213
215
|
- lib/eve_online/esi/character_standings.rb
|
214
216
|
- lib/eve_online/esi/character_wallet.rb
|
215
217
|
- lib/eve_online/esi/corporation.rb
|
218
|
+
- lib/eve_online/esi/corporation_blueprints.rb
|
216
219
|
- lib/eve_online/esi/corporation_industry_jobs.rb
|
217
220
|
- lib/eve_online/esi/dogma_attribute.rb
|
218
221
|
- lib/eve_online/esi/dogma_attributes.rb
|
219
222
|
- lib/eve_online/esi/factions.rb
|
223
|
+
- lib/eve_online/esi/market_history.rb
|
220
224
|
- lib/eve_online/esi/models/alliance.rb
|
221
225
|
- lib/eve_online/esi/models/alliance_icon.rb
|
222
226
|
- lib/eve_online/esi/models/asset.rb
|
@@ -234,6 +238,8 @@ files:
|
|
234
238
|
- lib/eve_online/esi/models/industry_job.rb
|
235
239
|
- lib/eve_online/esi/models/jump_clone.rb
|
236
240
|
- lib/eve_online/esi/models/loyalty_point.rb
|
241
|
+
- lib/eve_online/esi/models/market_history.rb
|
242
|
+
- lib/eve_online/esi/models/online.rb
|
237
243
|
- lib/eve_online/esi/models/race.rb
|
238
244
|
- lib/eve_online/esi/models/server_status.rb
|
239
245
|
- lib/eve_online/esi/models/skill.rb
|
@@ -273,6 +279,7 @@ files:
|
|
273
279
|
- lib/eve_online/xml/character_wallet_journal.rb
|
274
280
|
- lib/eve_online/xml/corporation_market_orders.rb
|
275
281
|
- mutant.sh
|
282
|
+
- server.http
|
276
283
|
homepage: https://github.com/biow0lf/eve_online
|
277
284
|
licenses:
|
278
285
|
- MIT
|
@@ -293,7 +300,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
293
300
|
version: '0'
|
294
301
|
requirements: []
|
295
302
|
rubyforge_project:
|
296
|
-
rubygems_version: 2.
|
303
|
+
rubygems_version: 2.6.14
|
297
304
|
signing_key:
|
298
305
|
specification_version: 4
|
299
306
|
summary: EveOnline API. XML, ESI and SDE.
|