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,71 +6,75 @@ module EveOnline
|
|
6
6
|
class WalletJournalEntry < Base
|
7
7
|
def as_json
|
8
8
|
{
|
9
|
-
date: date,
|
10
|
-
ref_id: ref_id,
|
11
|
-
ref_type: ref_type,
|
12
|
-
first_party_id: first_party_id,
|
13
|
-
first_party_type: first_party_type,
|
14
|
-
second_party_id: second_party_id,
|
15
|
-
second_party_type: second_party_type,
|
16
9
|
amount: amount,
|
17
10
|
balance: balance,
|
11
|
+
context_id: context_id,
|
12
|
+
context_id_type: context_id_type,
|
13
|
+
date: date,
|
14
|
+
description: description,
|
15
|
+
first_party_id: first_party_id,
|
16
|
+
id: id,
|
18
17
|
reason: reason,
|
19
|
-
|
20
|
-
|
21
|
-
|
18
|
+
ref_type: ref_type,
|
19
|
+
second_party_id: second_party_id,
|
20
|
+
tax: tax,
|
21
|
+
tax_receiver_id: tax_receiver_id
|
22
22
|
}
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
26
|
-
|
27
|
-
|
28
|
-
parse_datetime_with_timezone(date) if date
|
25
|
+
def amount
|
26
|
+
options['amount']
|
29
27
|
end
|
30
28
|
|
31
|
-
def
|
32
|
-
options['
|
29
|
+
def balance
|
30
|
+
options['balance']
|
33
31
|
end
|
34
32
|
|
35
|
-
def
|
36
|
-
options['
|
33
|
+
def context_id
|
34
|
+
options['context_id']
|
37
35
|
end
|
38
36
|
|
39
|
-
def
|
40
|
-
options['
|
37
|
+
def context_id_type
|
38
|
+
options['context_id_type']
|
41
39
|
end
|
42
40
|
|
43
|
-
def
|
44
|
-
options['
|
45
|
-
end
|
41
|
+
def date
|
42
|
+
date = options['date']
|
46
43
|
|
47
|
-
|
48
|
-
options['second_party_id']
|
44
|
+
parse_datetime_with_timezone(date) if date
|
49
45
|
end
|
50
46
|
|
51
|
-
def
|
52
|
-
options['
|
47
|
+
def description
|
48
|
+
options['description']
|
53
49
|
end
|
54
50
|
|
55
|
-
def
|
56
|
-
options['
|
51
|
+
def first_party_id
|
52
|
+
options['first_party_id']
|
57
53
|
end
|
58
54
|
|
59
|
-
def
|
60
|
-
options['
|
55
|
+
def id
|
56
|
+
options['id']
|
61
57
|
end
|
62
58
|
|
63
59
|
def reason
|
64
60
|
options['reason']
|
65
61
|
end
|
66
62
|
|
67
|
-
def
|
68
|
-
options['
|
63
|
+
def ref_type
|
64
|
+
options['ref_type']
|
65
|
+
end
|
66
|
+
|
67
|
+
def second_party_id
|
68
|
+
options['second_party_id']
|
69
69
|
end
|
70
70
|
|
71
71
|
def tax
|
72
72
|
options['tax']
|
73
73
|
end
|
74
|
+
|
75
|
+
def tax_receiver_id
|
76
|
+
options['tax_receiver_id']
|
77
|
+
end
|
74
78
|
end
|
75
79
|
end
|
76
80
|
end
|
data/lib/eve_online/esi/races.rb
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class Races < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/races/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/races/?datasource=%<datasource>s&language=en-us'
|
7
7
|
|
8
8
|
def races
|
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
|
@@ -7,7 +7,7 @@ module EveOnline
|
|
7
7
|
class ServerStatus < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/status/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/status/?datasource=%<datasource>s'
|
11
11
|
|
12
12
|
def_delegators :model, :as_json, :start_time, :players, :server_version, :vip
|
13
13
|
|
@@ -19,7 +19,7 @@ module EveOnline
|
|
19
19
|
def scope; end
|
20
20
|
|
21
21
|
def url
|
22
|
-
API_ENDPOINT
|
22
|
+
format(API_ENDPOINT, datasource: datasource)
|
23
23
|
end
|
24
24
|
end
|
25
25
|
end
|
@@ -7,20 +7,20 @@ module EveOnline
|
|
7
7
|
class UniverseType < Base
|
8
8
|
extend Forwardable
|
9
9
|
|
10
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/universe/types/%<type_id>s/?datasource
|
10
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v3/universe/types/%<type_id>s/?datasource=%<datasource>s&language=en-us'
|
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
|
-
:packaged_volume, :
|
23
|
-
:
|
20
|
+
def_delegators :model, :as_json, :capacity, :description, :graphic_id,
|
21
|
+
:group_id, :icon_id, :market_group_id, :mass, :name,
|
22
|
+
:packaged_volume, :portion_size, :published, :radius,
|
23
|
+
:type_id, :volume
|
24
24
|
|
25
25
|
def model
|
26
26
|
Models::Type.new(response)
|
@@ -30,7 +30,7 @@ module EveOnline
|
|
30
30
|
def scope; end
|
31
31
|
|
32
32
|
def url
|
33
|
-
format(API_ENDPOINT, type_id:
|
33
|
+
format(API_ENDPOINT, type_id: id, datasource: datasource)
|
34
34
|
end
|
35
35
|
end
|
36
36
|
end
|
@@ -3,7 +3,7 @@
|
|
3
3
|
module EveOnline
|
4
4
|
module ESI
|
5
5
|
class UniverseTypes < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/types/?datasource
|
6
|
+
API_ENDPOINT = 'https://esi.tech.ccp.is/v1/universe/types/?datasource=%<datasource>s&page=1'
|
7
7
|
|
8
8
|
def universe_types_ids
|
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
|
data/lib/eve_online/version.rb
CHANGED
data/mutant.sh
CHANGED
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.17.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: 2018-
|
11
|
+
date: 2018-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -39,7 +39,7 @@ dependencies:
|
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - ">="
|
@@ -53,7 +53,7 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name: rspec
|
56
|
+
name: rspec-its
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - ">="
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: simplecov
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -81,7 +81,7 @@ dependencies:
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
|
-
name:
|
84
|
+
name: webmock
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
87
|
- - ">="
|
@@ -95,7 +95,7 @@ dependencies:
|
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '0'
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
|
-
name:
|
98
|
+
name: vcr
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
100
100
|
requirements:
|
101
101
|
- - ">="
|
@@ -109,7 +109,7 @@ dependencies:
|
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
111
|
- !ruby/object:Gem::Dependency
|
112
|
-
name:
|
112
|
+
name: mdl
|
113
113
|
requirement: !ruby/object:Gem::Requirement
|
114
114
|
requirements:
|
115
115
|
- - ">="
|
@@ -186,6 +186,7 @@ extensions: []
|
|
186
186
|
extra_rdoc_files: []
|
187
187
|
files:
|
188
188
|
- ".gitignore"
|
189
|
+
- ".mdlrc"
|
189
190
|
- ".rubocop-thread_safety.yml"
|
190
191
|
- ".rubocop.yml"
|
191
192
|
- ".rubocop_general.yml"
|
@@ -197,9 +198,11 @@ files:
|
|
197
198
|
- Gemfile
|
198
199
|
- Gemfile.lock
|
199
200
|
- Gemfile.mutant
|
201
|
+
- Gemfile.mutant.lock
|
200
202
|
- LICENSE.txt
|
201
203
|
- README.md
|
202
204
|
- Rakefile
|
205
|
+
- TODO.md
|
203
206
|
- eve_online.gemspec
|
204
207
|
- gemfiles/activesupport_42.gemfile
|
205
208
|
- gemfiles/activesupport_50.gemfile
|
@@ -211,7 +214,6 @@ files:
|
|
211
214
|
- lib/eve_online/esi/alliance_corporations.rb
|
212
215
|
- lib/eve_online/esi/alliance_icon.rb
|
213
216
|
- lib/eve_online/esi/alliances.rb
|
214
|
-
- lib/eve_online/esi/alliances_names.rb
|
215
217
|
- lib/eve_online/esi/ancestries.rb
|
216
218
|
- lib/eve_online/esi/base.rb
|
217
219
|
- lib/eve_online/esi/bloodlines.rb
|
@@ -256,16 +258,17 @@ files:
|
|
256
258
|
- lib/eve_online/esi/models/bookmark.rb
|
257
259
|
- lib/eve_online/esi/models/bookmark_folder.rb
|
258
260
|
- lib/eve_online/esi/models/character.rb
|
261
|
+
- lib/eve_online/esi/models/character_industry_job.rb
|
259
262
|
- lib/eve_online/esi/models/character_order.rb
|
260
263
|
- lib/eve_online/esi/models/character_portrait.rb
|
261
264
|
- lib/eve_online/esi/models/corporation.rb
|
265
|
+
- lib/eve_online/esi/models/corporation_industry_job.rb
|
262
266
|
- lib/eve_online/esi/models/corporation_order.rb
|
263
267
|
- lib/eve_online/esi/models/dogma_attribute.rb
|
264
268
|
- lib/eve_online/esi/models/event.rb
|
265
269
|
- lib/eve_online/esi/models/faction.rb
|
266
270
|
- lib/eve_online/esi/models/fatigue.rb
|
267
271
|
- lib/eve_online/esi/models/home_location.rb
|
268
|
-
- lib/eve_online/esi/models/industry_job.rb
|
269
272
|
- lib/eve_online/esi/models/jump_clone.rb
|
270
273
|
- lib/eve_online/esi/models/loyalty_point.rb
|
271
274
|
- lib/eve_online/esi/models/market_history.rb
|
@@ -1,32 +0,0 @@
|
|
1
|
-
# frozen_string_literal: true
|
2
|
-
|
3
|
-
module EveOnline
|
4
|
-
module ESI
|
5
|
-
class AlliancesNames < Base
|
6
|
-
API_ENDPOINT = 'https://esi.tech.ccp.is/v2/alliances/names/?alliance_ids=%<alliance_ids>s&datasource=tranquility'
|
7
|
-
|
8
|
-
attr_reader :alliance_ids
|
9
|
-
|
10
|
-
def initialize(options)
|
11
|
-
super
|
12
|
-
|
13
|
-
@alliance_ids = options[:alliance_ids]
|
14
|
-
end
|
15
|
-
|
16
|
-
def alliances
|
17
|
-
output = []
|
18
|
-
response.each do |alliance|
|
19
|
-
output << Models::AllianceShort.new(alliance)
|
20
|
-
end
|
21
|
-
output
|
22
|
-
end
|
23
|
-
memoize :alliances
|
24
|
-
|
25
|
-
def scope; end
|
26
|
-
|
27
|
-
def url
|
28
|
-
format(API_ENDPOINT, alliance_ids: alliance_ids.join(','))
|
29
|
-
end
|
30
|
-
end
|
31
|
-
end
|
32
|
-
end
|