eve_online 0.26.0 → 0.27.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 +4 -4
- data/.travis.yml +11 -0
- data/CHANGELOG.md +11 -0
- data/Gemfile.lock +10 -10
- data/Gemfile.mutant.lock +6 -6
- data/README.md +89 -1
- data/TODO.md +0 -1
- data/gemfiles/activesupport_60.gemfile +7 -0
- data/lib/eve_online.rb +6 -0
- data/lib/eve_online/esi/character_calendar_event.rb +36 -0
- data/lib/eve_online/esi/character_corporation_history.rb +34 -0
- data/lib/eve_online/esi/corporation_loyalty_store_offers.rb +38 -0
- data/lib/eve_online/esi/models/character_corporation_history.rb +36 -0
- data/lib/eve_online/esi/models/event_details.rb +66 -0
- data/lib/eve_online/esi/models/loyalty_store_offer.rb +47 -0
- data/lib/eve_online/version.rb +1 -1
- metadata +10 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a17eb0d2aec3139c872785d811bdb2314c56b1b9c64b8a96dc91cf500944777b
|
|
4
|
+
data.tar.gz: 9d9c93b5cc0238575e56d14e3f772ce9bb4699836a08b93a9e41e109abfee3a8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d3ea3e4d977d2d3bfd8dd730977b1c023125bc51978a9aceaa2af1c060e7813ce23bc6436727da210be2c37590bee107406fd2b890af4973b05e0139c398186
|
|
7
|
+
data.tar.gz: 8e13af4b0fd4abb10bafb1552ad98afd756b1ca091cb824a219771b8ed101f9a3e81154cbb9ea2f570ec6dc5a428248d770a53d1b9a6856907084e2b0a0167b5
|
data/.travis.yml
CHANGED
|
@@ -12,6 +12,7 @@ gemfile:
|
|
|
12
12
|
- gemfiles/activesupport_50.gemfile
|
|
13
13
|
- gemfiles/activesupport_51.gemfile
|
|
14
14
|
- gemfiles/activesupport_52.gemfile
|
|
15
|
+
- gemfiles/activesupport_60.gemfile
|
|
15
16
|
- gemfiles/activesupport_edge.gemfile
|
|
16
17
|
|
|
17
18
|
addons:
|
|
@@ -26,6 +27,8 @@ matrix:
|
|
|
26
27
|
gemfile: gemfiles/activesupport_42.gemfile
|
|
27
28
|
- rvm: 2.5.5
|
|
28
29
|
gemfile: gemfiles/activesupport_42.gemfile
|
|
30
|
+
- rvm: 2.4.6
|
|
31
|
+
gemfile: gemfiles/activesupport_60.gemfile
|
|
29
32
|
- rvm: 2.4.6
|
|
30
33
|
gemfile: gemfiles/activesupport_edge.gemfile
|
|
31
34
|
include:
|
|
@@ -45,6 +48,10 @@ matrix:
|
|
|
45
48
|
gemfile: gemfiles/activesupport_52.gemfile
|
|
46
49
|
jdk: oraclejdk8
|
|
47
50
|
env: JRUBY_OPTS='--debug' # get more accurate coverage data
|
|
51
|
+
- rvm: jruby-9.2.7.0
|
|
52
|
+
gemfile: gemfiles/activesupport_60.gemfile
|
|
53
|
+
jdk: oraclejdk8
|
|
54
|
+
env: JRUBY_OPTS='--debug' # get more accurate coverage data
|
|
48
55
|
- rvm: jruby-head
|
|
49
56
|
gemfile: gemfiles/activesupport_42.gemfile
|
|
50
57
|
jdk: oraclejdk8
|
|
@@ -61,6 +68,10 @@ matrix:
|
|
|
61
68
|
gemfile: gemfiles/activesupport_52.gemfile
|
|
62
69
|
jdk: oraclejdk8
|
|
63
70
|
env: JRUBY_OPTS='--debug' # get more accurate coverage data
|
|
71
|
+
- rvm: jruby-head
|
|
72
|
+
gemfile: gemfiles/activesupport_60.gemfile
|
|
73
|
+
jdk: oraclejdk8
|
|
74
|
+
env: JRUBY_OPTS='--debug' # get more accurate coverage data
|
|
64
75
|
- rvm: jruby-head
|
|
65
76
|
gemfile: gemfiles/activesupport_edge.gemfile
|
|
66
77
|
jdk: oraclejdk8
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,16 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## v0.27.0
|
|
4
|
+
|
|
5
|
+
* Rails 6.0.0.rc1
|
|
6
|
+
* Add `EveOnline::ESI::CharacterCalendarEvent`
|
|
7
|
+
* Add `EveOnline::ESI::Models::EventDetails`
|
|
8
|
+
* Add `EveOnline::ESI::Models::LoyaltyStoreOffer`
|
|
9
|
+
* Add `EveOnline::ESI::CorporationLoyaltyStoreOffers`
|
|
10
|
+
* Rename `EveOnline::ESI::Models::EventDetails#response` to `#event_response`
|
|
11
|
+
* Add `EveOnine::ESI::CharacterCorporationHistory`
|
|
12
|
+
* Add `EveOnline::ESI::Models::CharacterCorporationHistory`
|
|
13
|
+
|
|
3
14
|
## v0.26.0
|
|
4
15
|
|
|
5
16
|
* Sync with new ESI API
|
data/Gemfile.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
eve_online (0.
|
|
4
|
+
eve_online (0.27.0)
|
|
5
5
|
activesupport (>= 4.2.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -22,14 +22,14 @@ GEM
|
|
|
22
22
|
crack (0.4.3)
|
|
23
23
|
safe_yaml (~> 1.0.0)
|
|
24
24
|
diff-lcs (1.3)
|
|
25
|
-
docile (1.3.
|
|
25
|
+
docile (1.3.2)
|
|
26
26
|
fasterer (0.5.1)
|
|
27
27
|
colorize (~> 0.7)
|
|
28
28
|
ruby_parser (>= 3.13.0)
|
|
29
29
|
hashdiff (0.4.0)
|
|
30
30
|
i18n (1.6.0)
|
|
31
31
|
concurrent-ruby (~> 1.0)
|
|
32
|
-
jaro_winkler (1.5.
|
|
32
|
+
jaro_winkler (1.5.3)
|
|
33
33
|
json (2.2.0)
|
|
34
34
|
kramdown (1.17.0)
|
|
35
35
|
mdl (0.5.0)
|
|
@@ -50,14 +50,14 @@ GEM
|
|
|
50
50
|
pry (0.12.2)
|
|
51
51
|
coderay (~> 1.1.0)
|
|
52
52
|
method_source (~> 0.9.0)
|
|
53
|
-
public_suffix (3.1.
|
|
53
|
+
public_suffix (3.1.1)
|
|
54
54
|
rainbow (3.0.0)
|
|
55
55
|
rake (12.3.2)
|
|
56
56
|
rspec (3.8.0)
|
|
57
57
|
rspec-core (~> 3.8.0)
|
|
58
58
|
rspec-expectations (~> 3.8.0)
|
|
59
59
|
rspec-mocks (~> 3.8.0)
|
|
60
|
-
rspec-core (3.8.
|
|
60
|
+
rspec-core (3.8.2)
|
|
61
61
|
rspec-support (~> 3.8.0)
|
|
62
62
|
rspec-expectations (3.8.4)
|
|
63
63
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
@@ -65,19 +65,19 @@ GEM
|
|
|
65
65
|
rspec-its (1.3.0)
|
|
66
66
|
rspec-core (>= 3.0.0)
|
|
67
67
|
rspec-expectations (>= 3.0.0)
|
|
68
|
-
rspec-mocks (3.8.
|
|
68
|
+
rspec-mocks (3.8.1)
|
|
69
69
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
70
70
|
rspec-support (~> 3.8.0)
|
|
71
71
|
rspec-support (3.8.2)
|
|
72
|
-
rubocop (0.
|
|
72
|
+
rubocop (0.72.0)
|
|
73
73
|
jaro_winkler (~> 1.5.1)
|
|
74
74
|
parallel (~> 1.10)
|
|
75
75
|
parser (>= 2.6)
|
|
76
76
|
rainbow (>= 2.2.2, < 4.0)
|
|
77
77
|
ruby-progressbar (~> 1.7)
|
|
78
78
|
unicode-display_width (>= 1.4.0, < 1.7)
|
|
79
|
-
rubocop-performance (1.
|
|
80
|
-
rubocop (>= 0.
|
|
79
|
+
rubocop-performance (1.4.0)
|
|
80
|
+
rubocop (>= 0.71.0)
|
|
81
81
|
rubocop-rspec (1.33.0)
|
|
82
82
|
rubocop (>= 0.60.0)
|
|
83
83
|
rubocop-thread_safety (0.3.4)
|
|
@@ -126,4 +126,4 @@ DEPENDENCIES
|
|
|
126
126
|
webmock
|
|
127
127
|
|
|
128
128
|
BUNDLED WITH
|
|
129
|
-
2.0.
|
|
129
|
+
2.0.2
|
data/Gemfile.mutant.lock
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
eve_online (0.
|
|
4
|
+
eve_online (0.27.0)
|
|
5
5
|
activesupport (>= 4.2.0)
|
|
6
6
|
|
|
7
7
|
GEM
|
|
@@ -30,7 +30,7 @@ GEM
|
|
|
30
30
|
crack (0.4.3)
|
|
31
31
|
safe_yaml (~> 1.0.0)
|
|
32
32
|
diff-lcs (1.3)
|
|
33
|
-
docile (1.3.
|
|
33
|
+
docile (1.3.2)
|
|
34
34
|
equalizer (0.0.11)
|
|
35
35
|
hashdiff (0.4.0)
|
|
36
36
|
i18n (1.6.0)
|
|
@@ -81,14 +81,14 @@ GEM
|
|
|
81
81
|
parser (2.5.3.0)
|
|
82
82
|
ast (~> 2.4.0)
|
|
83
83
|
procto (0.0.3)
|
|
84
|
-
public_suffix (3.1.
|
|
84
|
+
public_suffix (3.1.1)
|
|
85
85
|
rake (12.3.2)
|
|
86
86
|
regexp_parser (1.5.1)
|
|
87
87
|
rspec (3.8.0)
|
|
88
88
|
rspec-core (~> 3.8.0)
|
|
89
89
|
rspec-expectations (~> 3.8.0)
|
|
90
90
|
rspec-mocks (~> 3.8.0)
|
|
91
|
-
rspec-core (3.8.
|
|
91
|
+
rspec-core (3.8.2)
|
|
92
92
|
rspec-support (~> 3.8.0)
|
|
93
93
|
rspec-expectations (3.8.4)
|
|
94
94
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
@@ -96,7 +96,7 @@ GEM
|
|
|
96
96
|
rspec-its (1.3.0)
|
|
97
97
|
rspec-core (>= 3.0.0)
|
|
98
98
|
rspec-expectations (>= 3.0.0)
|
|
99
|
-
rspec-mocks (3.8.
|
|
99
|
+
rspec-mocks (3.8.1)
|
|
100
100
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
101
101
|
rspec-support (~> 3.8.0)
|
|
102
102
|
rspec-support (3.8.2)
|
|
@@ -142,4 +142,4 @@ DEPENDENCIES
|
|
|
142
142
|
webmock
|
|
143
143
|
|
|
144
144
|
BUNDLED WITH
|
|
145
|
-
2.0.
|
|
145
|
+
2.0.2
|
data/README.md
CHANGED
|
@@ -59,6 +59,7 @@ gem install eve_online
|
|
|
59
59
|
* 5.0
|
|
60
60
|
* 5.1
|
|
61
61
|
* 5.2
|
|
62
|
+
* 6.0.0.rc1
|
|
62
63
|
* Edge
|
|
63
64
|
|
|
64
65
|
## Usage examples
|
|
@@ -434,6 +435,36 @@ event.title # => "Moon extraction for 66-PMM - GoldMine-5-"
|
|
|
434
435
|
|
|
435
436
|
#### Get an event
|
|
436
437
|
|
|
438
|
+
```ruby
|
|
439
|
+
options = { token: 'token123', character_id: 90_729_314, event_id: 1_635_240 }
|
|
440
|
+
|
|
441
|
+
calendar_event = EveOnline::ESI::CharacterCalendarEvent.new(options)
|
|
442
|
+
|
|
443
|
+
calendar_event.scope # => "esi-calendar.read_calendar_events.v1"
|
|
444
|
+
|
|
445
|
+
calendar_event.as_json # => {:date=>Tue, 06 Mar 2018 15:00:59 UTC +00:00,
|
|
446
|
+
# :duration=>60,
|
|
447
|
+
# :event_id=>1635240,
|
|
448
|
+
# :importance=>0,
|
|
449
|
+
# :owner_id=>90729314,
|
|
450
|
+
# :owner_name=>"Green Black",
|
|
451
|
+
# :owner_type=>"character",
|
|
452
|
+
# :event_response=>"not_responded",
|
|
453
|
+
# :text=>"",
|
|
454
|
+
# :title=>"Moon extraction for 66-PMM - GoldMine-5-"}
|
|
455
|
+
|
|
456
|
+
calendar_event.date # => Tue, 06 Mar 2018 15:00:59 UTC +00:00
|
|
457
|
+
calendar_event.duration # => 60
|
|
458
|
+
calendar_event.event_id # => 1635240
|
|
459
|
+
calendar_event.importance # => 0
|
|
460
|
+
calendar_event.owner_id # => 90729314
|
|
461
|
+
calendar_event.owner_name # => "Green Black"
|
|
462
|
+
calendar_event.owner_type # => "character"
|
|
463
|
+
calendar_event.event_response # => "not_responded"
|
|
464
|
+
calendar_event.text # => ""
|
|
465
|
+
calendar_event.title # => "Moon extraction for 66-PMM - GoldMine-5-"
|
|
466
|
+
```
|
|
467
|
+
|
|
437
468
|
#### Respond to an event
|
|
438
469
|
|
|
439
470
|
#### Get attendees
|
|
@@ -520,6 +551,30 @@ blueprint.type_id # => 1010
|
|
|
520
551
|
|
|
521
552
|
#### Get corporation history
|
|
522
553
|
|
|
554
|
+
```ruby
|
|
555
|
+
options = { character_id: 90_729_314 }
|
|
556
|
+
|
|
557
|
+
character_corporation_history = EveOnline::ESI::CharacterCorporationHistory.new(options)
|
|
558
|
+
|
|
559
|
+
character_corporation_history.scope # => nil
|
|
560
|
+
|
|
561
|
+
character_corporation_history.entries.size # => 1
|
|
562
|
+
|
|
563
|
+
entry = character_corporation_history.entries.first
|
|
564
|
+
|
|
565
|
+
entry.as_json # => {:corporation_id=>1000168,
|
|
566
|
+
# :is_deleted=>nil,
|
|
567
|
+
# :record_id=>16785803,
|
|
568
|
+
# :start_date=>Tue, 10 May 2011 10:23:00 UTC +00:00}
|
|
569
|
+
|
|
570
|
+
entry.corporation_id # => 1000168
|
|
571
|
+
entry.is_deleted # => nil
|
|
572
|
+
entry.record_id # => 16785803
|
|
573
|
+
entry.start_date # => Tue, 10 May 2011 10:23:00 UTC +00:00
|
|
574
|
+
|
|
575
|
+
character_corporation_history.etag # => "f9497588fc2db18ca9a2ee06c48a16120e0c712fe9925bb29d7aaeeb"
|
|
576
|
+
```
|
|
577
|
+
|
|
523
578
|
#### Calculate a CSPA charge cost
|
|
524
579
|
|
|
525
580
|
#### Get jump fatigue
|
|
@@ -1339,11 +1394,43 @@ loyalty_point.as_json # => {:corporation_id=>1000035, :loyalty_points=>14163}
|
|
|
1339
1394
|
loyalty_point.corporation_id # => 1000035
|
|
1340
1395
|
loyalty_point.loyalty_points # => 14163
|
|
1341
1396
|
|
|
1342
|
-
#
|
|
1397
|
+
character_loyalty_points.etag # => "b6f4d03c84350052a2e95e3b098c41b1c50f938ffe3f6da7fc1c1698"
|
|
1343
1398
|
```
|
|
1344
1399
|
|
|
1345
1400
|
#### List loyalty store offers
|
|
1346
1401
|
|
|
1402
|
+
```ruby
|
|
1403
|
+
options = { corporation_id: 1_000_035 }
|
|
1404
|
+
|
|
1405
|
+
corporation_loyalty_store_offers = EveOnline::ESI::CorporationLoyaltyStoreOffers.new(options)
|
|
1406
|
+
|
|
1407
|
+
corporation_loyalty_store_offers.scope # => nil
|
|
1408
|
+
|
|
1409
|
+
corporation_loyalty_store_offers.roles # => []
|
|
1410
|
+
|
|
1411
|
+
corporation_loyalty_store_offers.offers.size # => 332
|
|
1412
|
+
|
|
1413
|
+
offer = corporation_loyalty_store_offers.offers.first
|
|
1414
|
+
|
|
1415
|
+
offer.as_json # => {:ak_cost=>nil,
|
|
1416
|
+
# :isk_cost=>2400000,
|
|
1417
|
+
# :lp_cost=>2400,
|
|
1418
|
+
# :offer_id=>3584,
|
|
1419
|
+
# :quantity=>5000,
|
|
1420
|
+
# :type_id=>23047}
|
|
1421
|
+
|
|
1422
|
+
offer.ak_cost # => nil
|
|
1423
|
+
offer.isk_cost # => 2400000
|
|
1424
|
+
offer.lp_cost # => 2400
|
|
1425
|
+
offer.offer_id # => 3584
|
|
1426
|
+
offer.quantity # => 5000
|
|
1427
|
+
offer.type_id # => 23047
|
|
1428
|
+
|
|
1429
|
+
# TODO: offer.required_items
|
|
1430
|
+
|
|
1431
|
+
corporation_loyalty_store_offers.etag # => "89211f42fde090e4d22621e9b97d7604ab87af95b3b6ffed7fe81bc0"
|
|
1432
|
+
```
|
|
1433
|
+
|
|
1347
1434
|
### Mail
|
|
1348
1435
|
|
|
1349
1436
|
#### Return mail headers
|
|
@@ -2678,6 +2765,7 @@ Thank you everyone!
|
|
|
2678
2765
|
|
|
2679
2766
|
* Ian Flynn (@monban)
|
|
2680
2767
|
* Mekaret Eriker (@Mekaret)
|
|
2768
|
+
* Y. (@lunohodov)
|
|
2681
2769
|
|
|
2682
2770
|
## License
|
|
2683
2771
|
|
data/TODO.md
CHANGED
data/lib/eve_online.rb
CHANGED
|
@@ -34,9 +34,11 @@ require 'eve_online/esi/character_bookmarks'
|
|
|
34
34
|
require 'eve_online/esi/character_bookmark_folders'
|
|
35
35
|
|
|
36
36
|
require 'eve_online/esi/character_calendar'
|
|
37
|
+
require 'eve_online/esi/character_calendar_event'
|
|
37
38
|
|
|
38
39
|
require 'eve_online/esi/character'
|
|
39
40
|
require 'eve_online/esi/character_blueprints'
|
|
41
|
+
require 'eve_online/esi/character_corporation_history'
|
|
40
42
|
require 'eve_online/esi/character_fatigue'
|
|
41
43
|
require 'eve_online/esi/character_notifications'
|
|
42
44
|
require 'eve_online/esi/character_portrait'
|
|
@@ -64,6 +66,7 @@ require 'eve_online/esi/character_online'
|
|
|
64
66
|
require 'eve_online/esi/character_ship'
|
|
65
67
|
|
|
66
68
|
require 'eve_online/esi/character_loyalty_points'
|
|
69
|
+
require 'eve_online/esi/corporation_loyalty_store_offers'
|
|
67
70
|
|
|
68
71
|
require 'eve_online/esi/character_orders'
|
|
69
72
|
require 'eve_online/esi/corporation_orders'
|
|
@@ -115,6 +118,7 @@ require 'eve_online/esi/models/base'
|
|
|
115
118
|
require 'eve_online/esi/models/position'
|
|
116
119
|
require 'eve_online/esi/models/coordinates'
|
|
117
120
|
require 'eve_online/esi/models/loyalty_point'
|
|
121
|
+
require 'eve_online/esi/models/loyalty_store_offer'
|
|
118
122
|
require 'eve_online/esi/models/skill_queue_entry'
|
|
119
123
|
require 'eve_online/esi/models/skill'
|
|
120
124
|
require 'eve_online/esi/models/asset'
|
|
@@ -123,6 +127,7 @@ require 'eve_online/esi/models/asset_name'
|
|
|
123
127
|
require 'eve_online/esi/models/online'
|
|
124
128
|
require 'eve_online/esi/models/attributes'
|
|
125
129
|
require 'eve_online/esi/models/character'
|
|
130
|
+
require 'eve_online/esi/models/character_corporation_history'
|
|
126
131
|
require 'eve_online/esi/models/character_industry_job'
|
|
127
132
|
require 'eve_online/esi/models/corporation_industry_job'
|
|
128
133
|
require 'eve_online/esi/models/character_portrait'
|
|
@@ -136,6 +141,7 @@ require 'eve_online/esi/models/standing'
|
|
|
136
141
|
require 'eve_online/esi/models/fatigue'
|
|
137
142
|
require 'eve_online/esi/models/notification'
|
|
138
143
|
require 'eve_online/esi/models/event'
|
|
144
|
+
require 'eve_online/esi/models/event_details'
|
|
139
145
|
require 'eve_online/esi/models/type'
|
|
140
146
|
require 'eve_online/esi/models/jump_clone'
|
|
141
147
|
require 'eve_online/esi/models/wallet_journal_entry'
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EveOnline
|
|
4
|
+
module ESI
|
|
5
|
+
class CharacterCalendarEvent < Base
|
|
6
|
+
extend Forwardable
|
|
7
|
+
|
|
8
|
+
API_PATH = '/v3/characters/%<character_id>s/calendar/%<event_id>s/?datasource=%<datasource>s'
|
|
9
|
+
|
|
10
|
+
attr_reader :character_id, :event_id
|
|
11
|
+
|
|
12
|
+
def initialize(options)
|
|
13
|
+
super
|
|
14
|
+
|
|
15
|
+
@character_id = options.fetch(:character_id)
|
|
16
|
+
@event_id = options.fetch(:event_id)
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
def_delegators :model, :as_json, :date, :duration, :importance,
|
|
20
|
+
:owner_id, :owner_name, :owner_type, :event_response,
|
|
21
|
+
:text, :title
|
|
22
|
+
|
|
23
|
+
def model
|
|
24
|
+
@model ||= Models::EventDetails.new(response)
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def scope
|
|
28
|
+
'esi-calendar.read_calendar_events.v1'
|
|
29
|
+
end
|
|
30
|
+
|
|
31
|
+
def url
|
|
32
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, event_id: event_id, datasource: datasource)
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EveOnline
|
|
4
|
+
module ESI
|
|
5
|
+
class CharacterCorporationHistory < Base
|
|
6
|
+
API_PATH = '/v1/characters/%<character_id>s/corporationhistory/?datasource=%<datasource>s'
|
|
7
|
+
|
|
8
|
+
attr_reader :character_id
|
|
9
|
+
|
|
10
|
+
def initialize(options)
|
|
11
|
+
super
|
|
12
|
+
|
|
13
|
+
@character_id = options.fetch(:character_id)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def entries
|
|
17
|
+
@entries ||=
|
|
18
|
+
begin
|
|
19
|
+
output = []
|
|
20
|
+
response.each do |record|
|
|
21
|
+
output << Models::CharacterCorporationHistory.new(record)
|
|
22
|
+
end
|
|
23
|
+
output
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def scope; end
|
|
28
|
+
|
|
29
|
+
def url
|
|
30
|
+
format("#{ API_HOST }#{ API_PATH }", character_id: character_id, datasource: datasource)
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EveOnline
|
|
4
|
+
module ESI
|
|
5
|
+
class CorporationLoyaltyStoreOffers < Base
|
|
6
|
+
API_PATH = '/v1/loyalty/stores/%<corporation_id>s/offers/?datasource=%<datasource>s'
|
|
7
|
+
|
|
8
|
+
attr_reader :corporation_id
|
|
9
|
+
|
|
10
|
+
def initialize(options = {})
|
|
11
|
+
super
|
|
12
|
+
|
|
13
|
+
@corporation_id = options.fetch(:corporation_id)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def offers
|
|
17
|
+
@offers ||=
|
|
18
|
+
begin
|
|
19
|
+
output = []
|
|
20
|
+
response.each do |offer|
|
|
21
|
+
output << Models::LoyaltyStoreOffer.new(offer)
|
|
22
|
+
end
|
|
23
|
+
output
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
def scope; end
|
|
28
|
+
|
|
29
|
+
def roles
|
|
30
|
+
[]
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def url
|
|
34
|
+
format("#{ API_HOST }#{ API_PATH }", corporation_id: corporation_id, datasource: datasource)
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
38
|
+
end
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EveOnline
|
|
4
|
+
module ESI
|
|
5
|
+
module Models
|
|
6
|
+
class CharacterCorporationHistory < Base
|
|
7
|
+
def as_json
|
|
8
|
+
{
|
|
9
|
+
corporation_id: corporation_id,
|
|
10
|
+
is_deleted: is_deleted,
|
|
11
|
+
record_id: record_id,
|
|
12
|
+
start_date: start_date
|
|
13
|
+
}
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def corporation_id
|
|
17
|
+
options['corporation_id']
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def is_deleted
|
|
21
|
+
options['is_deleted']
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def record_id
|
|
25
|
+
options['record_id']
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def start_date
|
|
29
|
+
start_date = options['start_date']
|
|
30
|
+
|
|
31
|
+
parse_datetime_with_timezone(start_date) if start_date
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EveOnline
|
|
4
|
+
module ESI
|
|
5
|
+
module Models
|
|
6
|
+
class EventDetails < Base
|
|
7
|
+
def as_json
|
|
8
|
+
{
|
|
9
|
+
date: date,
|
|
10
|
+
duration: duration,
|
|
11
|
+
event_id: event_id,
|
|
12
|
+
importance: importance,
|
|
13
|
+
owner_id: owner_id,
|
|
14
|
+
owner_name: owner_name,
|
|
15
|
+
owner_type: owner_type,
|
|
16
|
+
event_response: event_response,
|
|
17
|
+
text: text,
|
|
18
|
+
title: title
|
|
19
|
+
}
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def date
|
|
23
|
+
date = options['date']
|
|
24
|
+
|
|
25
|
+
parse_datetime_with_timezone(date) if date
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
def duration
|
|
29
|
+
options['duration']
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
def event_id
|
|
33
|
+
options['event_id']
|
|
34
|
+
end
|
|
35
|
+
|
|
36
|
+
def importance
|
|
37
|
+
options['importance']
|
|
38
|
+
end
|
|
39
|
+
|
|
40
|
+
def owner_id
|
|
41
|
+
options['owner_id']
|
|
42
|
+
end
|
|
43
|
+
|
|
44
|
+
def owner_name
|
|
45
|
+
options['owner_name']
|
|
46
|
+
end
|
|
47
|
+
|
|
48
|
+
def owner_type
|
|
49
|
+
options['owner_type']
|
|
50
|
+
end
|
|
51
|
+
|
|
52
|
+
def event_response
|
|
53
|
+
options['response']
|
|
54
|
+
end
|
|
55
|
+
|
|
56
|
+
def text
|
|
57
|
+
options['text']
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
def title
|
|
61
|
+
options['title']
|
|
62
|
+
end
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
end
|
|
66
|
+
end
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
|
|
3
|
+
module EveOnline
|
|
4
|
+
module ESI
|
|
5
|
+
module Models
|
|
6
|
+
class LoyaltyStoreOffer < Base
|
|
7
|
+
def as_json
|
|
8
|
+
{
|
|
9
|
+
ak_cost: ak_cost,
|
|
10
|
+
isk_cost: isk_cost,
|
|
11
|
+
lp_cost: lp_cost,
|
|
12
|
+
offer_id: offer_id,
|
|
13
|
+
quantity: quantity,
|
|
14
|
+
type_id: type_id
|
|
15
|
+
}
|
|
16
|
+
end
|
|
17
|
+
|
|
18
|
+
def ak_cost
|
|
19
|
+
options['ak_cost']
|
|
20
|
+
end
|
|
21
|
+
|
|
22
|
+
def isk_cost
|
|
23
|
+
options['isk_cost']
|
|
24
|
+
end
|
|
25
|
+
|
|
26
|
+
def lp_cost
|
|
27
|
+
options['lp_cost']
|
|
28
|
+
end
|
|
29
|
+
|
|
30
|
+
def offer_id
|
|
31
|
+
options['offer_id']
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
def quantity
|
|
35
|
+
options['quantity']
|
|
36
|
+
end
|
|
37
|
+
|
|
38
|
+
def type_id
|
|
39
|
+
options['type_id']
|
|
40
|
+
end
|
|
41
|
+
|
|
42
|
+
# def required_items
|
|
43
|
+
# end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
data/lib/eve_online/version.rb
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.27.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: 2019-06-
|
|
11
|
+
date: 2019-06-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -166,6 +166,7 @@ files:
|
|
|
166
166
|
- gemfiles/activesupport_50.gemfile
|
|
167
167
|
- gemfiles/activesupport_51.gemfile
|
|
168
168
|
- gemfiles/activesupport_52.gemfile
|
|
169
|
+
- gemfiles/activesupport_60.gemfile
|
|
169
170
|
- gemfiles/activesupport_edge.gemfile
|
|
170
171
|
- lib/eve_online.rb
|
|
171
172
|
- lib/eve_online/esi/alliance.rb
|
|
@@ -182,7 +183,9 @@ files:
|
|
|
182
183
|
- lib/eve_online/esi/character_bookmark_folders.rb
|
|
183
184
|
- lib/eve_online/esi/character_bookmarks.rb
|
|
184
185
|
- lib/eve_online/esi/character_calendar.rb
|
|
186
|
+
- lib/eve_online/esi/character_calendar_event.rb
|
|
185
187
|
- lib/eve_online/esi/character_clones.rb
|
|
188
|
+
- lib/eve_online/esi/character_corporation_history.rb
|
|
186
189
|
- lib/eve_online/esi/character_fatigue.rb
|
|
187
190
|
- lib/eve_online/esi/character_implants.rb
|
|
188
191
|
- lib/eve_online/esi/character_industry_jobs.rb
|
|
@@ -206,6 +209,7 @@ files:
|
|
|
206
209
|
- lib/eve_online/esi/corporation_blueprints.rb
|
|
207
210
|
- lib/eve_online/esi/corporation_industry_jobs.rb
|
|
208
211
|
- lib/eve_online/esi/corporation_killmails_recent.rb
|
|
212
|
+
- lib/eve_online/esi/corporation_loyalty_store_offers.rb
|
|
209
213
|
- lib/eve_online/esi/corporation_orders.rb
|
|
210
214
|
- lib/eve_online/esi/dogma_attribute.rb
|
|
211
215
|
- lib/eve_online/esi/dogma_attributes.rb
|
|
@@ -228,6 +232,7 @@ files:
|
|
|
228
232
|
- lib/eve_online/esi/models/bookmark_folder.rb
|
|
229
233
|
- lib/eve_online/esi/models/category.rb
|
|
230
234
|
- lib/eve_online/esi/models/character.rb
|
|
235
|
+
- lib/eve_online/esi/models/character_corporation_history.rb
|
|
231
236
|
- lib/eve_online/esi/models/character_industry_job.rb
|
|
232
237
|
- lib/eve_online/esi/models/character_location.rb
|
|
233
238
|
- lib/eve_online/esi/models/character_order.rb
|
|
@@ -247,6 +252,7 @@ files:
|
|
|
247
252
|
- lib/eve_online/esi/models/dogma_effect_short.rb
|
|
248
253
|
- lib/eve_online/esi/models/dogma_effects.rb
|
|
249
254
|
- lib/eve_online/esi/models/event.rb
|
|
255
|
+
- lib/eve_online/esi/models/event_details.rb
|
|
250
256
|
- lib/eve_online/esi/models/faction.rb
|
|
251
257
|
- lib/eve_online/esi/models/fatigue.rb
|
|
252
258
|
- lib/eve_online/esi/models/graphic.rb
|
|
@@ -255,6 +261,7 @@ files:
|
|
|
255
261
|
- lib/eve_online/esi/models/jump_clone.rb
|
|
256
262
|
- lib/eve_online/esi/models/killmail_short.rb
|
|
257
263
|
- lib/eve_online/esi/models/loyalty_point.rb
|
|
264
|
+
- lib/eve_online/esi/models/loyalty_store_offer.rb
|
|
258
265
|
- lib/eve_online/esi/models/market_history.rb
|
|
259
266
|
- lib/eve_online/esi/models/moon.rb
|
|
260
267
|
- lib/eve_online/esi/models/notification.rb
|
|
@@ -345,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
345
352
|
- !ruby/object:Gem::Version
|
|
346
353
|
version: '0'
|
|
347
354
|
requirements: []
|
|
348
|
-
rubygems_version: 3.0.
|
|
355
|
+
rubygems_version: 3.0.4
|
|
349
356
|
signing_key:
|
|
350
357
|
specification_version: 4
|
|
351
358
|
summary: EveOnline ESI API.
|