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.
Files changed (128) hide show
  1. checksums.yaml +5 -5
  2. data/.gitignore +0 -2
  3. data/.rubocop.yml +8 -15
  4. data/.rubocop_general.yml +10 -2
  5. data/.ruby-version +1 -0
  6. data/.travis.yml +15 -16
  7. data/CHANGELOG.md +60 -0
  8. data/Gemfile +3 -0
  9. data/Gemfile.lock +170 -0
  10. data/LICENSE.txt +1 -1
  11. data/README.md +569 -587
  12. data/Rakefile +2 -0
  13. data/eve_online.gemspec +7 -6
  14. data/gemfiles/activesupport_42.gemfile +3 -1
  15. data/gemfiles/activesupport_50.gemfile +3 -1
  16. data/gemfiles/activesupport_51.gemfile +3 -1
  17. data/gemfiles/activesupport_52.gemfile +4 -2
  18. data/gemfiles/activesupport_edge.gemfile +3 -1
  19. data/lib/eve_online.rb +23 -40
  20. data/lib/eve_online/esi/alliance.rb +3 -1
  21. data/lib/eve_online/esi/alliance_corporations.rb +27 -0
  22. data/lib/eve_online/esi/alliance_icon.rb +4 -2
  23. data/lib/eve_online/esi/alliances.rb +19 -0
  24. data/lib/eve_online/esi/alliances_names.rb +32 -0
  25. data/lib/eve_online/esi/ancestries.rb +24 -0
  26. data/lib/eve_online/esi/base.rb +3 -0
  27. data/lib/eve_online/esi/bloodlines.rb +3 -1
  28. data/lib/eve_online/esi/character.rb +3 -1
  29. data/lib/eve_online/esi/character_assets.rb +3 -1
  30. data/lib/eve_online/esi/character_attributes.rb +3 -1
  31. data/lib/eve_online/esi/character_blueprints.rb +3 -1
  32. data/lib/eve_online/esi/character_bookmark_folders.rb +34 -0
  33. data/lib/eve_online/esi/character_bookmarks.rb +34 -0
  34. data/lib/eve_online/esi/character_calendar.rb +34 -0
  35. data/lib/eve_online/esi/character_clones.rb +3 -1
  36. data/lib/eve_online/esi/character_fatigue.rb +3 -1
  37. data/lib/eve_online/esi/character_implants.rb +3 -1
  38. data/lib/eve_online/esi/character_industry_jobs.rb +4 -2
  39. data/lib/eve_online/esi/character_loyalty_points.rb +3 -1
  40. data/lib/eve_online/esi/character_notifications.rb +34 -0
  41. data/lib/eve_online/esi/character_online.rb +3 -1
  42. data/lib/eve_online/esi/character_orders.rb +34 -0
  43. data/lib/eve_online/esi/character_portrait.rb +3 -1
  44. data/lib/eve_online/esi/character_skill_queue.rb +3 -1
  45. data/lib/eve_online/esi/character_skills.rb +3 -1
  46. data/lib/eve_online/esi/character_standings.rb +3 -1
  47. data/lib/eve_online/esi/character_wallet.rb +3 -1
  48. data/lib/eve_online/esi/character_wallet_journal.rb +34 -0
  49. data/lib/eve_online/esi/corporation.rb +3 -1
  50. data/lib/eve_online/esi/corporation_blueprints.rb +3 -1
  51. data/lib/eve_online/esi/corporation_industry_jobs.rb +4 -2
  52. data/lib/eve_online/esi/corporation_orders.rb +39 -0
  53. data/lib/eve_online/esi/dogma_attribute.rb +3 -1
  54. data/lib/eve_online/esi/dogma_attributes.rb +3 -1
  55. data/lib/eve_online/esi/factions.rb +3 -1
  56. data/lib/eve_online/esi/market_history.rb +4 -2
  57. data/lib/eve_online/esi/models/alliance.rb +2 -0
  58. data/lib/eve_online/esi/models/alliance_icon.rb +6 -4
  59. data/lib/eve_online/esi/models/alliance_short.rb +24 -0
  60. data/lib/eve_online/esi/models/ancestry.rb +44 -0
  61. data/lib/eve_online/esi/models/asset.rb +2 -0
  62. data/lib/eve_online/esi/models/attributes.rb +2 -0
  63. data/lib/eve_online/esi/models/base.rb +2 -0
  64. data/lib/eve_online/esi/models/bloodline.rb +2 -0
  65. data/lib/eve_online/esi/models/blueprint.rb +2 -0
  66. data/lib/eve_online/esi/models/bookmark.rb +76 -0
  67. data/lib/eve_online/esi/models/bookmark_folder.rb +24 -0
  68. data/lib/eve_online/esi/models/character.rb +2 -0
  69. data/lib/eve_online/esi/models/character_order.rb +96 -0
  70. data/lib/eve_online/esi/models/character_portrait.rb +2 -0
  71. data/lib/eve_online/esi/models/corporation.rb +2 -0
  72. data/lib/eve_online/esi/models/corporation_order.rb +91 -0
  73. data/lib/eve_online/esi/models/dogma_attribute.rb +2 -0
  74. data/lib/eve_online/esi/models/event.rb +41 -0
  75. data/lib/eve_online/esi/models/faction.rb +2 -0
  76. data/lib/eve_online/esi/models/fatigue.rb +2 -0
  77. data/lib/eve_online/esi/models/home_location.rb +2 -0
  78. data/lib/eve_online/esi/models/industry_job.rb +2 -0
  79. data/lib/eve_online/esi/models/jump_clone.rb +2 -0
  80. data/lib/eve_online/esi/models/loyalty_point.rb +2 -0
  81. data/lib/eve_online/esi/models/market_history.rb +2 -0
  82. data/lib/eve_online/esi/models/notification.rb +51 -0
  83. data/lib/eve_online/esi/models/online.rb +2 -0
  84. data/lib/eve_online/esi/models/race.rb +2 -0
  85. data/lib/eve_online/esi/models/server_status.rb +2 -0
  86. data/lib/eve_online/esi/models/skill.rb +2 -0
  87. data/lib/eve_online/esi/models/skill_queue_entry.rb +2 -0
  88. data/lib/eve_online/esi/models/standing.rb +2 -0
  89. data/lib/eve_online/esi/models/wallet_journal_entry.rb +77 -0
  90. data/lib/eve_online/esi/races.rb +3 -1
  91. data/lib/eve_online/esi/server_status.rb +3 -1
  92. data/lib/eve_online/exceptions/base.rb +2 -0
  93. data/lib/eve_online/exceptions/invalid_character_id_exception.rb +2 -0
  94. data/lib/eve_online/exceptions/timeout_exception.rb +2 -0
  95. data/lib/eve_online/exceptions/unauthorized_exception.rb +2 -0
  96. data/lib/eve_online/version.rb +3 -1
  97. metadata +55 -50
  98. data/lib/eve_online/base.rb +0 -34
  99. data/lib/eve_online/base_xml.rb +0 -43
  100. data/lib/eve_online/bookmark.rb +0 -71
  101. data/lib/eve_online/bookmark_folder.rb +0 -56
  102. data/lib/eve_online/contact_notification.rb +0 -42
  103. data/lib/eve_online/event.rb +0 -66
  104. data/lib/eve_online/event_response_object.rb +0 -18
  105. data/lib/eve_online/market_order.rb +0 -91
  106. data/lib/eve_online/sde/agt_agent_types.rb +0 -14
  107. data/lib/eve_online/sde/agt_agents.rb +0 -14
  108. data/lib/eve_online/sde/agt_research_agents.rb +0 -14
  109. data/lib/eve_online/sde/base.rb +0 -25
  110. data/lib/eve_online/sde/inv_flags.rb +0 -14
  111. data/lib/eve_online/sde/inv_items.rb +0 -14
  112. data/lib/eve_online/sde/inv_names.rb +0 -14
  113. data/lib/eve_online/sde/inv_positions.rb +0 -14
  114. data/lib/eve_online/sde/models/agt_agent.rb +0 -58
  115. data/lib/eve_online/sde/models/agt_agent_type.rb +0 -28
  116. data/lib/eve_online/sde/models/agt_research_agent.rb +0 -28
  117. data/lib/eve_online/sde/models/inv_flag.rb +0 -38
  118. data/lib/eve_online/sde/models/inv_item.rb +0 -48
  119. data/lib/eve_online/sde/models/inv_name.rb +0 -28
  120. data/lib/eve_online/sde/models/inv_position.rb +0 -53
  121. data/lib/eve_online/wallet_journal_entry.rb +0 -97
  122. data/lib/eve_online/xml/base.rb +0 -84
  123. data/lib/eve_online/xml/character_bookmarks.rb +0 -53
  124. data/lib/eve_online/xml/character_contact_notifications.rb +0 -51
  125. data/lib/eve_online/xml/character_market_orders.rb +0 -55
  126. data/lib/eve_online/xml/character_upcoming_calendar_events.rb +0 -51
  127. data/lib/eve_online/xml/character_wallet_journal.rb +0 -57
  128. data/lib/eve_online/xml/corporation_market_orders.rb +0 -55
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 343632ea50d398841ee701e91e02ccb43e862910
4
- data.tar.gz: 7e2dca690c6ba8633674acefe135f6d2aa43b686
2
+ SHA256:
3
+ metadata.gz: 6606ce1e9e2c4fa66b22b44de0941fc5810b9e34ad104f33644404d6e3397dfc
4
+ data.tar.gz: 31847a6f29eab2746e37f4cdf214d273c4560d078fc9b88c648c2210ed391a49
5
5
  SHA512:
6
- metadata.gz: 61447caa266c021b24e1e382e5662db9328b66ee4721d3470e797fdc158105e498a1e1980f22048e00569ca877f9119a6f976ba9e29c626061077afd0a328a2d
7
- data.tar.gz: 78769a65925b6be99e835eca8e4547b4f8a553b36bfae38f72326ed69ca90aef66b9ba98f923375b29f66cefb082cca7c5c7b898ebd20105efb78396b583a035
6
+ metadata.gz: 68fd517c71c5e9d453fe9002e3f844cd352dcd423ff22b548e47be2dcf8df7760b01eb82149075599e3625725f3807ed5a9ba5be3798f048784ca2223b30e15a
7
+ data.tar.gz: ab3481b5c5c58695ca7fd28dd7747e28e0ce82e7ce91895bf2afb915251a28c5fa1a608ac5e9d4ad0cd693b4a3d7880862afc9e4bb3f1df82ff243e8a676a406
data/.gitignore CHANGED
@@ -1,6 +1,5 @@
1
1
  /.bundle/
2
2
  /.yardoc
3
- /Gemfile.lock
4
3
  /_yardoc/
5
4
  /coverage/
6
5
  /doc/
@@ -8,6 +7,5 @@
8
7
  /spec/reports/
9
8
  /tmp/
10
9
  /.idea/
11
- .ruby-version
12
10
  /.DS_Store
13
11
 
data/.rubocop.yml CHANGED
@@ -1,30 +1,23 @@
1
- #require: rubocop-thread_safety
2
- #require: rubocop-rspec
1
+ require: rubocop-thread_safety
2
+ require: rubocop-rspec
3
3
 
4
4
  inherit_from:
5
5
  - .rubocop_general.yml
6
- # - .rubocop_rspec.yml
7
- # - .rubocop-thread_safety.yml
6
+ - .rubocop_rspec.yml
7
+ - .rubocop-thread_safety.yml
8
8
  - .rubocop_todo.yml
9
9
 
10
10
  AllCops:
11
11
  Exclude:
12
- - 'lib/eve_online/xml/corporation_market_orders.rb'
13
12
  - 'lib/eve_online/xml/character_wallet_journal.rb'
14
13
  - 'lib/eve_online/xml/character_upcoming_calendar_events.rb'
15
- - 'lib/eve_online/xml/character_market_orders.rb'
16
- - 'lib/eve_online/xml/character_contact_notifications.rb'
17
- - 'lib/eve_online/xml/character_bookmarks.rb'
18
14
  - 'lib/eve_online/xml/base.rb'
19
15
  - 'lib/eve_online/wallet_journal_entry.rb'
20
- - 'lib/eve_online/market_order.rb'
21
16
  - 'lib/eve_online/event.rb'
22
- - 'lib/eve_online/bookmark_folder.rb'
23
- - 'lib/eve_online/bookmark.rb'
24
-
25
- # Enable when all supported ruby will support feature
26
- Style/FrozenStringLiteralComment:
27
- Enabled: false
17
+ - 'spec/eve_online/xml/character_wallet_journal_spec.rb'
18
+ - 'spec/eve_online/xml/character_upcoming_calendar_events_spec.rb'
19
+ - 'spec/eve_online/xml/base_spec.rb'
20
+ - 'spec/eve_online/event_response_object_spec.rb'
28
21
 
29
22
  Metrics/BlockLength:
30
23
  Exclude:
data/.rubocop_general.yml CHANGED
@@ -1,6 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.2
3
- DisplayCopNames: true
2
+ TargetRubyVersion: 2.3
4
3
  DisplayStyleGuide: true
5
4
 
6
5
  Layout/EndOfLine:
@@ -10,6 +9,9 @@ Layout/EndOfLine:
10
9
  # TODO: check this
11
10
  # Layout/ExtraSpacing
12
11
 
12
+ # TODO: later
13
+ # Layout/ClassStructure
14
+
13
15
  Layout/SpaceInsideStringInterpolation:
14
16
  EnforcedStyle: space
15
17
  Enabled: true
@@ -46,6 +48,9 @@ Style/ConditionalAssignment:
46
48
  Style/Documentation:
47
49
  Enabled: false
48
50
 
51
+ Style/EmptyMethod:
52
+ Enabled: false
53
+
49
54
  Style/FrozenStringLiteralComment:
50
55
  Enabled: true
51
56
  EnforcedStyle: always
@@ -90,5 +95,8 @@ Style/IfUnlessModifier:
90
95
  Bundler/OrderedGems:
91
96
  Enabled: false
92
97
 
98
+ Gemspec/OrderedDependencies:
99
+ Enabled: false
100
+
93
101
  Style/RegexpLiteral:
94
102
  Enabled: false
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 2.5.1
data/.travis.yml CHANGED
@@ -2,10 +2,9 @@ language: ruby
2
2
  sudo: false
3
3
  cache: bundler
4
4
  rvm:
5
- - 2.2.9
6
- - 2.3.6
7
- - 2.4.3
8
- - 2.5.0-rc1
5
+ - 2.3.7
6
+ - 2.4.4
7
+ - 2.5.1
9
8
  - ruby-head
10
9
 
11
10
  gemfile:
@@ -19,29 +18,27 @@ matrix:
19
18
  exclude:
20
19
  - rvm: ruby-head
21
20
  gemfile: gemfiles/activesupport_42.gemfile
22
- - rvm: 2.5.0-rc1
21
+ - rvm: 2.5.0
23
22
  gemfile: gemfiles/activesupport_42.gemfile
23
+ - rvm: 2.3.7
24
+ gemfile: gemfiles/activesupport_edge.gemfile
24
25
  include:
25
- - rvm: jruby-9.1.15.0
26
+ - rvm: jruby-9.1.16.0
26
27
  gemfile: gemfiles/activesupport_42.gemfile
27
28
  jdk: oraclejdk8
28
29
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
29
- - rvm: jruby-9.1.15.0
30
+ - rvm: jruby-9.1.16.0
30
31
  gemfile: gemfiles/activesupport_50.gemfile
31
32
  jdk: oraclejdk8
32
33
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
33
- - rvm: jruby-9.1.15.0
34
+ - rvm: jruby-9.1.16.0
34
35
  gemfile: gemfiles/activesupport_51.gemfile
35
36
  jdk: oraclejdk8
36
37
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
37
- - rvm: jruby-9.1.15.0
38
+ - rvm: jruby-9.1.16.0
38
39
  gemfile: gemfiles/activesupport_52.gemfile
39
40
  jdk: oraclejdk8
40
41
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
41
- - rvm: jruby-9.1.15.0
42
- gemfile: gemfiles/activesupport_edge.gemfile
43
- jdk: oraclejdk8
44
- env: JRUBY_OPTS='--debug' # get more accurate coverage data
45
42
  - rvm: jruby-head
46
43
  gemfile: gemfiles/activesupport_42.gemfile
47
44
  jdk: oraclejdk8
@@ -64,13 +61,15 @@ matrix:
64
61
  env: JRUBY_OPTS='--debug' # get more accurate coverage data
65
62
 
66
63
  allow_failures:
67
- - rvm: 2.5.0-rc1
68
64
  - rvm: ruby-head
69
- - rvm: jruby-9.1.15.0
65
+ - rvm: jruby-9.1.16.0
70
66
  - rvm: jruby-head
71
67
  fast_finish: true
72
68
 
73
- before_install: gem install bundler
69
+ before_install:
70
+ - rm Gemfile.lock
71
+ - rm .ruby-version
72
+ - gem install bundler
74
73
 
75
74
  script:
76
75
  - bundle exec rake
data/CHANGELOG.md CHANGED
@@ -1,5 +1,65 @@
1
1
  ## Changelog
2
2
 
3
+ **v0.15.0**
4
+
5
+ * Add `EveOnline::ESI::Alliances`
6
+ * Add `EveOnline::ESI::AllianceCorporations`
7
+ * Add `EveOnline::ESI::Models::AllianceShort`
8
+ * Add `EveOnline::ESI::AlliancesNames`
9
+ * Ruby 2.5.0
10
+ * Add `EveOnline::ESI::Models::CharacterOrder`
11
+ * Add `EveOnline::ESI::CharacterOrders`
12
+ * Remove `EveOnline::XML::CharacterMarketOrders`. Use `EveOnline::ESI::CharacterOrders` instead.
13
+ * Add `EveOnline::ESI::Models::CorporationOrder`
14
+ * Add `EveOnline::ESI::CorporationOrders`
15
+ * Remove `EveOnline::XML::CorporationMarketOrders`. Use `EveOnline::ESI::CorporationOrders` instead.
16
+ * Remove `EveOnline::MarketOrder`
17
+ * Add `EveOnline::ESI::Models::Bookmark`
18
+ * Add `EveOnline::ESI::CharacterBookmarks`
19
+ * Remove `EveOnline::Bookmark`
20
+ * Remove `EveOnline::BookmarkFolder`
21
+ * Remove `EveOnline::XML::CharacterBookmarks`. Use `EveOnline::ESI::CharacterBookmarks` instead.
22
+ * Add `EveOnline::ESI::Models::BookmarkFolder`
23
+ * Add `EveOnline::ESI::CharacterBookmarkFolders`
24
+ * Add `EveOnline::ESI::Models::Notification`
25
+ * Add `EveOnline::ESI::CharacterNotifications`
26
+ * Remove `EveOnline::XML::CharacterContactNotifications`. Use `EveOnline::ESI::CharacterNotifications` instead.
27
+ * Remove `EveOnline::ContactNotification`
28
+ * [Drop Ruby 2.2 support](https://www.ruby-lang.org/en/news/2017/12/14/ruby-2-2-9-released/)
29
+ * Add `EveOnline::ESI::CharacterWalletJournal`
30
+ * Add `EveOnline::ESI::Models::WalletJournalEntry`
31
+ * Remove `EveOnline::XML::CharacterWalletJournal`. Use `EveOnline::ESI::CharacterWalletJournal` instead.
32
+ * Remove `EveOnline::WalletJournalEntry`
33
+ * Add `EveOnline::ESI::CharacterCalendar`
34
+ * Add `EveOnline::ESI::Models::Event`
35
+ * Remove `EveOnline::XML::CharacterUpcomingCalendarEvents`. Use `EveOnline::ESI::CharacterCalendar` instead.
36
+ * Remove `EveOnline::Event`
37
+ * Remove `EveOnline::EventResponseObject`
38
+ * Remove `EveOnline::XML::Base`
39
+ * Remove `EveOnline::Base`
40
+ * Remove `EveOnline::BaseXML`
41
+ * Remove `EveOnline::SDE::AgtAgentTypes`
42
+ * Remove `EveOnline::SDE::AgtAgents`
43
+ * Remove `EveOnline::SDE::AgtResearchAgents`
44
+ * Remove `EveOnline::SDE::Base`
45
+ * Remove `EveOnline::SDE::InvFlags`
46
+ * Remove `EveOnline::SDE::InvItems`
47
+ * Remove `EveOnline::SDE::InvNames`
48
+ * Remove `EveOnline::SDE::InvPositions`
49
+ * Remove `EveOnline::SDE::Models::AgtAgent`
50
+ * Remove `EveOnline::SDE::Models::AgtAgentType`
51
+ * Remove `EveOnline::SDE::Models::AgtResearchAgent`
52
+ * Remove `EveOnline::SDE::Models::InvFlag`
53
+ * Remove `EveOnline::SDE::Models::InvItem`
54
+ * Remove `EveOnline::SDE::Models::InvName`
55
+ * Remove `EveOnline::SDE::Models::InvPosition`
56
+ * Add `EveOnline::ESI::Models::Ancestry`
57
+ * Add `EveOnline::ESI::Ancestries`
58
+ * Rename `EveOnline::ESI::Models::AllianceIcon#small` to `#icon_small`
59
+ * Rename `EveOnline::ESI::Models::AllianceIcon#medium` to `#icon_medium`
60
+ * Rename `EveOnline::ESI::AllianceIcon#small` to `#icon_small`
61
+ * Rename `EveOnline::ESI::AllianceIcon#medium` to `#icon_medium`
62
+
3
63
  **v0.14.0**
4
64
 
5
65
  * Add `EveOnline::ESI::CorporationBlueprints`
data/Gemfile CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  source 'https://rubygems.org'
2
4
 
3
5
  # Specify your gem's dependencies in eveonline.gemspec
@@ -9,3 +11,4 @@ gem 'pry'
9
11
  gem 'mutant'
10
12
  gem 'mutant-rspec'
11
13
  gem 'rubocop', require: false
14
+ gem 'rubocop-rspec', require: false
data/Gemfile.lock ADDED
@@ -0,0 +1,170 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ eve_online (0.15.0)
5
+ activesupport (>= 4.2.0)
6
+ faraday
7
+ json
8
+ memoist
9
+
10
+ GEM
11
+ remote: https://rubygems.org/
12
+ specs:
13
+ abstract_type (0.0.7)
14
+ activesupport (5.1.6)
15
+ concurrent-ruby (~> 1.0, >= 1.0.2)
16
+ i18n (>= 0.7, < 2)
17
+ minitest (~> 5.1)
18
+ tzinfo (~> 1.1)
19
+ adamantium (0.2.0)
20
+ ice_nine (~> 0.11.0)
21
+ memoizable (~> 0.4.0)
22
+ addressable (2.5.2)
23
+ public_suffix (>= 2.0.2, < 4.0)
24
+ anima (0.3.0)
25
+ abstract_type (~> 0.0.7)
26
+ adamantium (~> 0.2)
27
+ equalizer (~> 0.0.11)
28
+ ast (2.4.0)
29
+ awesome_print (1.8.0)
30
+ codeclimate-test-reporter (1.0.7)
31
+ simplecov
32
+ coderay (1.1.2)
33
+ concord (0.1.5)
34
+ adamantium (~> 0.2.0)
35
+ equalizer (~> 0.0.9)
36
+ concurrent-ruby (1.0.5)
37
+ crack (0.4.3)
38
+ safe_yaml (~> 1.0.0)
39
+ diff-lcs (1.3)
40
+ docile (1.3.0)
41
+ equalizer (0.0.11)
42
+ faraday (0.14.0)
43
+ multipart-post (>= 1.2, < 3)
44
+ hashdiff (0.3.7)
45
+ i18n (1.0.0)
46
+ concurrent-ruby (~> 1.0)
47
+ ice_nine (0.11.2)
48
+ json (2.1.0)
49
+ memoist (0.16.0)
50
+ memoizable (0.4.2)
51
+ thread_safe (~> 0.3, >= 0.3.1)
52
+ method_source (0.9.0)
53
+ mini_portile2 (2.3.0)
54
+ minitest (5.11.3)
55
+ morpher (0.2.6)
56
+ abstract_type (~> 0.0.7)
57
+ adamantium (~> 0.2.0)
58
+ anima (~> 0.3.0)
59
+ ast (~> 2.2)
60
+ concord (~> 0.1.5)
61
+ equalizer (~> 0.0.9)
62
+ ice_nine (~> 0.11.0)
63
+ procto (~> 0.0.2)
64
+ multipart-post (2.0.0)
65
+ mutant (0.8.14)
66
+ abstract_type (~> 0.0.7)
67
+ adamantium (~> 0.2.0)
68
+ anima (~> 0.3.0)
69
+ ast (~> 2.2)
70
+ concord (~> 0.1.5)
71
+ diff-lcs (~> 1.3)
72
+ equalizer (~> 0.0.9)
73
+ ice_nine (~> 0.11.1)
74
+ memoizable (~> 0.4.2)
75
+ morpher (~> 0.2.6)
76
+ parallel (~> 1.3)
77
+ parser (>= 2.3.1.4, < 2.5)
78
+ procto (~> 0.0.2)
79
+ regexp_parser (~> 0.4.3)
80
+ unparser (~> 0.2.5)
81
+ mutant-rspec (0.8.14)
82
+ mutant (~> 0.8.14)
83
+ rspec-core (>= 3.4.0, < 3.7.0)
84
+ nokogiri (1.8.2)
85
+ mini_portile2 (~> 2.3.0)
86
+ parallel (1.12.1)
87
+ parser (2.4.0.2)
88
+ ast (~> 2.3)
89
+ powerpack (0.1.1)
90
+ procto (0.0.3)
91
+ pry (0.11.3)
92
+ coderay (~> 1.1.0)
93
+ method_source (~> 0.9.0)
94
+ public_suffix (3.0.2)
95
+ rainbow (3.0.0)
96
+ rake (12.3.1)
97
+ regexp_parser (0.4.12)
98
+ rspec (3.6.0)
99
+ rspec-core (~> 3.6.0)
100
+ rspec-expectations (~> 3.6.0)
101
+ rspec-mocks (~> 3.6.0)
102
+ rspec-core (3.6.0)
103
+ rspec-support (~> 3.6.0)
104
+ rspec-expectations (3.6.0)
105
+ diff-lcs (>= 1.2.0, < 2.0)
106
+ rspec-support (~> 3.6.0)
107
+ rspec-its (1.2.0)
108
+ rspec-core (>= 3.0.0)
109
+ rspec-expectations (>= 3.0.0)
110
+ rspec-mocks (3.6.0)
111
+ diff-lcs (>= 1.2.0, < 2.0)
112
+ rspec-support (~> 3.6.0)
113
+ rspec-support (3.6.0)
114
+ rubocop (0.52.1)
115
+ parallel (~> 1.10)
116
+ parser (>= 2.4.0.2, < 3.0)
117
+ powerpack (~> 0.1)
118
+ rainbow (>= 2.2.2, < 4.0)
119
+ ruby-progressbar (~> 1.7)
120
+ unicode-display_width (~> 1.0, >= 1.0.1)
121
+ rubocop-rspec (1.23.0)
122
+ rubocop (>= 0.52.1)
123
+ ruby-progressbar (1.9.0)
124
+ safe_yaml (1.0.4)
125
+ simplecov (0.16.1)
126
+ docile (~> 1.1)
127
+ json (>= 1.8, < 3)
128
+ simplecov-html (~> 0.10.0)
129
+ simplecov-html (0.10.2)
130
+ thread_safe (0.3.6)
131
+ tzinfo (1.2.5)
132
+ thread_safe (~> 0.1)
133
+ unicode-display_width (1.3.0)
134
+ unparser (0.2.7)
135
+ abstract_type (~> 0.0.7)
136
+ adamantium (~> 0.2.0)
137
+ concord (~> 0.1.5)
138
+ diff-lcs (~> 1.3)
139
+ equalizer (~> 0.0.9)
140
+ parser (>= 2.3.1.2, < 2.6)
141
+ procto (~> 0.0.2)
142
+ vcr (4.0.0)
143
+ webmock (3.3.0)
144
+ addressable (>= 2.3.6)
145
+ crack (>= 0.3.2)
146
+ hashdiff
147
+
148
+ PLATFORMS
149
+ ruby
150
+
151
+ DEPENDENCIES
152
+ awesome_print
153
+ bundler
154
+ codeclimate-test-reporter
155
+ eve_online!
156
+ mutant
157
+ mutant-rspec
158
+ nokogiri
159
+ pry
160
+ rake
161
+ rspec
162
+ rspec-its
163
+ rubocop
164
+ rubocop-rspec
165
+ simplecov
166
+ vcr
167
+ webmock
168
+
169
+ BUNDLED WITH
170
+ 1.16.1
data/LICENSE.txt CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2017 Igor Zubkov
3
+ Copyright (c) 2015-2018 Igor Zubkov
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # EveOnline API (XML and ESI). With SDE.
1
+ # EveOnline ESI API.
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/eve_online.svg)](https://badge.fury.io/rb/eve_online)
4
4
  [![Gem Downloads](https://img.shields.io/gem/dt/eve_online.svg)](https://rubygems.org/gems/eve_online)
@@ -7,14 +7,10 @@
7
7
  [![Dependency Status](https://gemnasium.com/biow0lf/eve_online.svg)](https://gemnasium.com/biow0lf/eve_online)
8
8
  [![security](https://hakiri.io/github/biow0lf/eve_online/master.svg)](https://hakiri.io/github/biow0lf/eve_online/master)
9
9
 
10
- This gem implement Ruby API for EveOnline MMORPG. XML and ESI API. With SDE.
10
+ This gem implement Ruby API for EveOnline MMORPG (ESI).
11
11
 
12
12
  This gem was extracted from [EveMonk](http://evemonk.com). Source code of evemonk backend published [here](https://github.com/biow0lf/evemonk).
13
13
 
14
- You will need to add xml parser to your Gemfile to use this gem. E.g. `nokogiri`. Or any other xml parser which are supported by nori.
15
-
16
- EveOnline XML API deprecated. And will be removed in near future. From this library and by [CCP developers](https://community.eveonline.com/news/dev-blogs/introducing-esi/).
17
-
18
14
  ## TOC
19
15
 
20
16
  * [Installation](#installation)
@@ -23,7 +19,6 @@ EveOnline XML API deprecated. And will be removed in near future. From this libr
23
19
  * [Useful links](#useful-links)
24
20
  * [Development](#development)
25
21
  * [Contributing](#contributing)
26
- * [Implementation check list](#implementation-check-list)
27
22
  * [TODO](#todo)
28
23
  * [Author](#author)
29
24
  * [Contributors. Thank you everyone!](#contributors-thank-you-everyone)
@@ -48,12 +43,11 @@ Or install it yourself as:
48
43
 
49
44
  ## Supported ruby versions
50
45
 
51
- * MRI 2.2
52
46
  * MRI 2.3
53
47
  * MRI 2.4
54
48
  * MRI 2.5
55
49
  * MRI (head)
56
- * JRuby 9.1.15.0
50
+ * JRuby 9.1.16.0
57
51
  * JRuby (head)
58
52
 
59
53
  ## Supported rails versions
@@ -64,204 +58,23 @@ Or install it yourself as:
64
58
  * 5.2
65
59
  * Edge
66
60
 
67
- ## Usage
68
-
69
- ### XML API
70
-
71
- #### Characters Bookmarks
72
-
73
- ```ruby
74
- key_id = 1234567
75
- v_code = '9ce9970b18d07586ead3d052e5b83bc8db303171a28a6f754cf35d9e6b66af17'
76
- options = { character_id: 90729314 }
77
-
78
- bookmarks = EveOnline::XML::CharacterBookmarks.new(key_id, v_code, options)
79
-
80
- bookmarks.current_time # => Sun, 03 Jan 2016 14:53:44 UTC +00:00
81
- bookmarks.cached_until # => Sun, 03 Jan 2016 15:50:44 UTC +00:00
82
- bookmarks.version # => 2
61
+ ## Usage examples
83
62
 
84
- bookmarks.bookmark_folders.size # => 4
85
-
86
- bookmark_folder = bookmarks.bookmark_folders.first
87
-
88
- bookmark_folder.as_json # => {:folder_id=>0, :folder_name=>""}
89
-
90
- bookmark_folder.folder_id # => 0
91
- bookmark_folder.folder_name # => ""
92
-
93
- bookmark_folder.bookmarks.size # => 87
94
-
95
- bookmark = bookmark_folder.bookmarks.first
96
-
97
- bookmark.as_json # => {:bookmark_id=>459411933, :creator_id=>0, :created=>Sat, 28 Mar 2009 07:51:00 UTC +00:00, :item_id=>0, :type_id=>5, :location_id=>30002656, :x=>-267396330161.0, :y=>-376627274.0, :z=>-556366331388.0, :memo=>"1", :note=>""}
98
-
99
- bookmark.bookmark_id # => 459411933
100
- bookmark.creator_id # => 0
101
- bookmark.created # => Sat, 28 Mar 2009 07:51:00 UTC +00:00
102
- bookmark.item_id # => 0
103
- bookmark.type_id # => 5
104
- bookmark.location_id # => 30002656
105
- bookmark.x # => -267396330161.0
106
- bookmark.y # => -376627274.0
107
- bookmark.z # => -556366331388.0
108
- bookmark.memo # => "1"
109
- bookmark.note # => ""
110
- ```
63
+ ### Alliance
111
64
 
112
- #### Character contact notifications
65
+ #### List all alliances
113
66
 
114
67
  ```ruby
115
- key_id = 1234567
116
- v_code = '9ce9970b18d07586ead3d052e5b83bc8db303171a28a6f754cf35d9e6b66af17'
117
- character_id = 90729314
68
+ alliances = EveOnline::ESI::Alliances.new
118
69
 
119
- contact_notifications = EveOnline::XML::CharacterContactNotifications.new(key_id, v_code, character_id)
70
+ alliances.scope # => nil
120
71
 
121
- contact_notifications.current_time # => Fri, 19 Aug 2016 11:10:23 UTC +00:00
122
- contact_notifications.cached_until # => Fri, 19 Aug 2016 11:37:23 UTC +00:00
123
- contact_notifications.version # => 2
72
+ alliances.alliances.size # => 3013
124
73
 
125
- contact_notifications.contact_notifications.size # => 3
126
-
127
- contact_notification = contact_notifications.contact_notifications.first
128
-
129
- contact_notification.as_json # => {:notification_id=>308734131, :sender_id=>797400947, :sender_name=>"CCP Garthagk", :sent_date=>Sat, 19 Mar 2016 12:13:00 UTC +00:00, :message_data=>"level: 5\nmessage: ''\n"}
130
-
131
- contact_notification.notification_id # => 308734131
132
- contact_notification.sender_id # => 797400947
133
- contact_notification.sender_name # => "CCP Garthagk"
134
- contact_notification.sent_date # => Sat, 19 Mar 2016 12:13:00 UTC +00:00
135
- contact_notification.message_data # => "level: 5\nmessage: ''\n"
136
- ```
137
-
138
- #### Character market orders
139
-
140
- ```ruby
141
- key_id = 1234567
142
- v_code = '9ce9970b18d07586ead3d052e5b83bc8db303171a28a6f754cf35d9e6b66af17'
143
- options = { character_id: 90729314 }
144
-
145
- market_orders = EveOnline::XML::CharacterMarketOrders.new(key_id, v_code, options)
146
-
147
- market_orders.current_time # => Fri, 26 Aug 2016 13:56:17 UTC +00:00
148
- market_orders.cached_until # => Fri, 26 Aug 2016 14:53:17 UTC +00:00
149
- market_orders.version # => 2
150
-
151
- market_orders.orders.size # => 1
152
-
153
- marker_order = market_orders.orders.first
154
-
155
- marker_order.as_json # => {:order_id=>4053334100, :char_id=>1801683792, :station_id=>60005686, :vol_entered=>340000, :vol_remaining=>245705, :min_volume=>1, :order_state=>0, :type_id=>24488, :range=>32767, :account_key=>1000, :duration=>90, :escrow=>0.0, :price=>92.0, :bid=>false, :issued=>Thu, 01 Sep 2016 20:01:57 UTC +00:00}
156
-
157
- marker_order.order_id # => 4053334100
158
- marker_order.char_id # => 1801683792
159
- marker_order.station_id # => 60005686
160
- marker_order.vol_entered # => 340000
161
- marker_order.vol_remaining # => 245705
162
- marker_order.min_volume # => 1
163
- marker_order.order_state # => 0
164
- marker_order.type_id # => 24488
165
- marker_order.range # => 32767
166
- marker_order.account_key # => 1000
167
- marker_order.duration # => 90
168
- marker_order.escrow # => 0.0
169
- marker_order.price # => 92.0
170
- marker_order.bid # => false
171
- marker_order.issued # => Thu, 01 Sep 2016 20:01:57 UTC +00:00
74
+ alliances.alliances.first # => 1354830081
172
75
  ```
173
76
 
174
- #### Character upcoming calender events
175
-
176
- ```ruby
177
- key_id = 1234567
178
- v_code = '9ce9970b18d07586ead3d052e5b83bc8db303171a28a6f754cf35d9e6b66af17'
179
- character_id = 90729314
180
-
181
- upcoming_events = EveOnline::XML::CharacterUpcomingCalendarEvents.new(key_id, v_code, character_id)
182
-
183
- upcoming_events.current_time # => Thu, 17 Dec 2015 20:43:46 UTC +00:00
184
- upcoming_events.cached_until # => Thu, 17 Dec 2015 21:40:46 UTC +00:00
185
- upcoming_events.version # => 2
186
-
187
- upcoming_events.events.size # => 2
188
-
189
- event = upcoming_events.events.first
190
-
191
- event.as_json
192
- # => {:event_id=>1234567, :owner_id=>98765432, :owner_name=>"MyCorp", :event_date=>Sat, 26 Dec 2015 19:47:29 UTC +00:00, :event_title=>"Control tower in 99-999", :duration=>60, :importance=>false, :response=>:undecided, :event_text=>"<b>Minmatar Control Tower</b> will run out of fuel and go offline...", :owner_type_id=>2}
193
-
194
- event.event_id # => 1234567
195
- event.owner_id # => 98765432
196
- event.owner_name # => "MyCorp"
197
- event.event_date # => Sat, 26 Dec 2015 19:47:29 UTC +00:00
198
- event.event_title # => "Control tower in 99-999"
199
- event.duration # => 60
200
- event.importance # => false
201
- event.response # => :undecided
202
- event.event_text # => "<b>Minmatar Control Tower</b> will run out of fuel and go offline..."
203
- event.owner_type_id # => 2
204
- ```
205
-
206
- #### Retrieve character wallet journal
207
-
208
- ```ruby
209
- key_id = 1234567
210
- v_code = '9ce9970b18d07586ead3d052e5b83bc8db303171a28a6f754cf35d9e6b66af17'
211
- character_id = 90729314
212
-
213
- wallet_journal = EveOnline::XML::CharacterWalletJournal.new(key_id, v_code, character_id)
214
-
215
- wallet_journal.current_time # => Sat, 27 Aug 2016 21:14:20 UTC +00:00
216
- wallet_journal.cached_until # => Sat, 27 Aug 2016 21:41:20 UTC +00:00
217
- wallet_journal.version # => 2
218
-
219
- wallet_journal.wallet_journal_entries.size # => 3
220
-
221
- wallet_journal_entry = wallet_journal.wallet_journal_entries.first
222
-
223
- wallet_journal_entry.as_json # => {:date=>Thu, 01 Sep 2016 20:01:57 UTC +00:00, :ref_id=>6709813912, :ref_type_id=>15, :owner_name1=>"reygar burnt", :owner_id1=>1801683792, :owner_name2=>"Wiyrkomi Corporation", :owner_id2=>1000011, :arg_name1=>"EVE System", :arg_id1=>1, :amount=>-9250.00, :balance=>385574791.30, :reason=>"", :tax_receiver_id=>"", :tax_amount=>"", :owner1_type_id=>1380, :owner2_type_id=>2}
224
-
225
- wallet_journal_entry.date # => Thu, 01 Sep 2016 20:01:57 UTC +00:00
226
- wallet_journal_entry.ref_id # => 6709813912
227
- wallet_journal_entry.ref_type_id # => 15
228
- wallet_journal_entry.owner_name1 # => "reygar burnt"
229
- wallet_journal_entry.owner_id1 # => 1801683792
230
- wallet_journal_entry.owner_name2 # => "Wiyrkomi Corporation"
231
- wallet_journal_entry.owner_id2 # => 1000011
232
- wallet_journal_entry.arg_name1 # => "EVE System"
233
- wallet_journal_entry.arg_id1 # => 1
234
- wallet_journal_entry.amount # => -9250.00
235
- wallet_journal_entry.balance # => 385574791.30
236
- wallet_journal_entry.reason # => ""
237
- wallet_journal_entry.tax_receiver_id # => ""
238
- wallet_journal_entry.tax_amount # => ""
239
- wallet_journal_entry.owner1_type_id # => 1380
240
- wallet_journal_entry.owner2_type_id # => 2
241
- ```
242
-
243
- #### Corporation market orders
244
-
245
- ```ruby
246
- key_id = 1234567
247
- v_code = '9ce9970b18d07586ead3d052e5b83bc8db303171a28a6f754cf35d9e6b66af17'
248
- options = { character_id: 90729314 }
249
-
250
- corporation_market_orders = EveOnline::XML::CorporationMarketOrders.new(key_id, v_code, options)
251
-
252
- # TODO: finish this
253
-
254
- ```
255
-
256
- ### ESI Examples
257
-
258
- #### Alliance
259
-
260
- ##### List all alliances
261
-
262
- ##### Get alliance names
263
-
264
- ##### Get alliance information
77
+ #### Get alliance information
265
78
 
266
79
  ```ruby
267
80
  options = { alliance_id: 99005443 }
@@ -287,9 +100,21 @@ alliance.date_founded # => Sun, 03 May 2015 19:45:17 UTC +00:00
287
100
  alliance.faction_id # => nil
288
101
  ```
289
102
 
290
- ##### List alliance's corporations
103
+ #### List alliance's corporations
104
+
105
+ ```ruby
106
+ options = { alliance_id: 99005443 }
107
+
108
+ alliance_corporations = EveOnline::ESI::AllianceCorporations.new(options)
109
+
110
+ alliance_corporations.scope # => nil
111
+
112
+ alliance_corporations.corporations.size # => 33
113
+
114
+ alliance_corporations.corporations.first # => 98134807
115
+ ```
291
116
 
292
- ##### Get alliance icon
117
+ #### Get alliance icon
293
118
 
294
119
  ```ruby
295
120
  options = { alliance_id: 99005443 }
@@ -298,15 +123,35 @@ alliance_icon = EveOnline::ESI::AllianceIcon.new(options)
298
123
 
299
124
  alliance_icon.scope # => nil
300
125
 
301
- alliance_icon.as_json # => {:small=>"http://image.eveonline.com/Alliance/99005443_64.png", :medium=>"http://image.eveonline.com/Alliance/99005443_128.png"}
126
+ alliance_icon.as_json # => {:icon_small=>"http://image.eveonline.com/Alliance/99005443_64.png", :icon_medium=>"http://image.eveonline.com/Alliance/99005443_128.png"}
302
127
 
303
- alliance_icon.small # => "http://image.eveonline.com/Alliance/99005443_64.png"
304
- alliance_icon.medium # => "http://image.eveonline.com/Alliance/99005443_128.png"
128
+ alliance_icon.icon_small # => "http://image.eveonline.com/Alliance/99005443_64.png"
129
+ alliance_icon.icon_medium # => "http://image.eveonline.com/Alliance/99005443_128.png"
305
130
  ```
306
131
 
307
- #### Assets
132
+ #### Get alliance names
133
+
134
+ ```ruby
135
+ options = { alliance_ids: [99005443, 99005443] }
136
+
137
+ alliances_names = EveOnline::ESI::AlliancesNames.new(options)
308
138
 
309
- ##### Get character assets
139
+ alliances_names.scope # => nil
140
+
141
+ alliances_names.alliances.size # => 2
142
+
143
+ alliance = alliances_names.alliances.first
144
+
145
+ alliance.as_json
146
+ # => {:alliance_id=>99005443, :alliance_name=>"Kids With Guns Alliance"}
147
+
148
+ alliance.alliance_id # => 99005443
149
+ alliance.alliance_name # => "Kids With Guns Alliance"
150
+ ```
151
+
152
+ ### Assets
153
+
154
+ #### Get character assets
310
155
 
311
156
  ```ruby
312
157
  options = { token: 'token123', character_id: 90729314 }
@@ -338,35 +183,121 @@ asset.quantity # => 16156
338
183
  # TODO: add pagination support
339
184
  ```
340
185
 
341
- ##### Get character asset locations
186
+ #### Get character asset locations
342
187
 
343
- ##### Get character asset names
188
+ #### Get character asset names
344
189
 
345
- ##### Get corporation assets
190
+ #### Get corporation assets
346
191
 
347
- #### Bookmarks
192
+ #### Get corporation asset locations
348
193
 
349
- ##### List bookmarks
194
+ #### Get coporation asset names (typo in swagger)
350
195
 
351
- ##### List bookmark folders
196
+ ### Bookmarks
352
197
 
353
- #### Calendar
198
+ #### List bookmarks
354
199
 
355
- ##### List calendar event summaries
200
+ ```ruby
201
+ options = { token: 'token123', character_id: 90729314 }
356
202
 
357
- ##### Get an event
203
+ character_bookmarks = EveOnline::ESI::CharacterBookmarks.new(options)
204
+
205
+ character_bookmarks.scope # => "esi-bookmarks.read_character_bookmarks.v1"
206
+
207
+ character_bookmarks.bookmarks.size # => 20
208
+
209
+ bookmark = character_bookmarks.bookmarks.first
210
+
211
+ bookmark.as_json # => {:bookmark_id=>4,
212
+ # :folder_id=>5,
213
+ # :created=>Mon, 09 Jul 2012 22:38:31 UTC +00:00,
214
+ # :label=>"Stargate",
215
+ # :notes=>"This is a stargate",
216
+ # :location_id=>30003430,
217
+ # :creator_id=>2112625428,
218
+ # :item_id=>30003496,
219
+ # :item_type_id=>5,
220
+ # :coordinate_x=>-144951231521.81625,
221
+ # :coordinate_y=>164030047870.25558,
222
+ # :coordinate_z=>211467631848.1311}
223
+
224
+ bookmark.bookmark_id # => 4
225
+ bookmark.folder_id # => 5
226
+ bookmark.created # => Mon, 09 Jul 2012 22:38:31 UTC +00:00
227
+ bookmark.label # => "Stargate"
228
+ bookmark.notes # => "This is a stargate"
229
+ bookmark.location_id # => 30003430
230
+ bookmark.creator_id # => 2112625428
231
+ bookmark.item_id # => 30003496
232
+ bookmark.item_type_id # => 5
233
+ bookmark.coordinate_x # => -144951231521.81625
234
+ bookmark.coordinate_y # => 164030047870.25558
235
+ bookmark.coordinate_z # => 211467631848.1311
236
+ ```
237
+
238
+ #### List bookmark folders
358
239
 
359
- ##### Respond to an event
240
+ ```ruby
241
+ options = { token: 'token123', character_id: 90729314 }
360
242
 
361
- ##### Get attendees
243
+ character_bookmark_folders = EveOnline::ESI::CharacterBookmarkFolders.new(options)
362
244
 
363
- #### Character
245
+ character_bookmark_folders.scope # => "esi-bookmarks.read_character_bookmarks.v1"
364
246
 
365
- ##### Character affiliation
247
+ character_bookmark_folders.bookmark_folders.size # => 1
366
248
 
367
- ##### Get character names
249
+ bookmark_folder = character_bookmark_folders.bookmark_folders.first
368
250
 
369
- ##### Get character's public information
251
+ bookmark_folder.as_json # => {:folder_id=>5,
252
+ # :name=>"Icecream"}
253
+
254
+ bookmark_folder.folder_id # => 5
255
+ bookmark_folder.name # => "Icecream"
256
+ ```
257
+
258
+ #### List corporation bookmarks
259
+
260
+ #### List corporation bookmark folders
261
+
262
+ ### Calendar
263
+
264
+ #### List calendar event summaries
265
+
266
+ ```ruby
267
+ options = { token: 'token123', character_id: 90729314 }
268
+
269
+ character_calendar = EveOnline::ESI::CharacterCalendar.new(options)
270
+
271
+ character_calendar.scope # => "esi-calendar.read_calendar_events.v1"
272
+
273
+ character_calendar.events.size # => 22
274
+
275
+ event = character_calendar.events.first
276
+
277
+ event.as_json # => {:event_id=>1635240,
278
+ # :event_date=>Tue, 06 Mar 2018 15:00:59 UTC +00:00,
279
+ # :title=>"Moon extraction for 66-PMM - GoldMine-5-",
280
+ # :importance=>0,
281
+ # :event_response=>"not_responded"}
282
+
283
+ event.event_id # => 1635240
284
+ event.event_date # => Tue, 06 Mar 2018 15:00:59 UTC +00:00
285
+ event.title # => "Moon extraction for 66-PMM - GoldMine-5-"
286
+ event.importance # => 0
287
+ event.event_response # => "not_responded"
288
+
289
+ # TODO: add from_event support
290
+ ```
291
+
292
+ #### Get an event
293
+
294
+ #### Respond to an event
295
+
296
+ #### Get attendees
297
+
298
+ ### Character
299
+
300
+ #### Get character's public information
370
301
 
371
302
  ```ruby
372
303
  options = { character_id: 90729314 }
@@ -391,9 +322,9 @@ character.security_status # => 1.8694881661345457
391
322
  character.faction_id # => 500001
392
323
  ```
393
324
 
394
- ##### Get agents research
325
+ #### Get agents research
395
326
 
396
- ##### Get blueprints
327
+ #### Get blueprints
397
328
 
398
329
  ```ruby
399
330
  options = { token: 'token123', character_id: 90729314 }
@@ -427,13 +358,13 @@ blueprint.type_id # => 1010
427
358
  # TODO: add pagination support
428
359
  ```
429
360
 
430
- ##### Get chat channels
361
+ #### Get chat channels
431
362
 
432
- ##### Get corporation history
363
+ #### Get corporation history
433
364
 
434
- ##### Calculate a CSPA charge cost
365
+ #### Calculate a CSPA charge cost
435
366
 
436
- ##### Get jump fatigue
367
+ #### Get jump fatigue
437
368
 
438
369
  ```ruby
439
370
  options = { token: 'token123', character_id: 90729314 }
@@ -451,13 +382,40 @@ character_fatigue.last_update_date # => nil
451
382
  # TODO: add real data here
452
383
  ```
453
384
 
454
- ##### Get medals
385
+ #### Get medals
386
+
387
+ #### Get character notifications
455
388
 
456
- ##### Get character notifications
389
+ ```ruby
390
+ options = { token: 'token123', character_id: 90729314 }
391
+
392
+ character_notifications = EveOnline::ESI::CharacterNotifications.new(options)
393
+
394
+ character_notifications.scope # => "esi-characters.read_notifications.v1"
395
+
396
+ character_notifications.notifications.size # => 500
397
+
398
+ notification = character_notifications.notifications.first
399
+
400
+ notification.as_json # => {:notification_id=>774328832,
401
+ # :type=>"AllWarDeclaredMsg",
402
+ # :sender_id=>1000125,
403
+ # :sender_type=>"corporation",
404
+ # :timestamp=>Thu, 01 Mar 2018 13:48:00 UTC +00:00,
405
+ # :is_read=>nil,
406
+ # :text=>"againstID: 99005443\ncost: 0\ndeclaredByID: 98442842\ndelayHours: 24\nhostileState: 0\n"}
407
+
408
+ notification.notification_id # => 774328832
409
+ notification.type # => "AllWarDeclaredMsg"
410
+ notification.sender_id # => 1000125
411
+ notification.sender_type # => "corporation"
412
+ notification.timestamp # => Thu, 01 Mar 2018 13:48:00 UTC +00:00
413
+ notification.text # => "againstID: 99005443\ncost: 0\ndeclaredByID: 98442842\ndelayHours: 24\nhostileState: 0\n"
414
+ ```
457
415
 
458
- ##### Get new contact notifications
416
+ #### Get new contact notifications
459
417
 
460
- ##### Get character portraits
418
+ #### Get character portraits
461
419
 
462
420
  ```ruby
463
421
  options = { character_id: 90729314 }
@@ -475,9 +433,9 @@ character_portrait.large # => "http://image.eveonline.com/Character/90729314_256
475
433
  character_portrait.huge # => "http://image.eveonline.com/Character/90729314_512.jpg"
476
434
  ```
477
435
 
478
- ##### Get character corporation roles
436
+ #### Get character corporation roles
479
437
 
480
- ##### Get standings
438
+ #### Get standings
481
439
 
482
440
  ```ruby
483
441
  options = { token: 'token123', character_id: 90729314 }
@@ -497,9 +455,17 @@ standing.from_type # => "faction"
497
455
  standing.standing # => 0.3303719111639991
498
456
  ```
499
457
 
500
- #### Clones
458
+ #### Yearly aggregate stats
501
459
 
502
- ##### Get clones
460
+ #### Get character corporation titles
461
+
462
+ #### Character affiliation
463
+
464
+ #### Get character names
465
+
466
+ ### Clones
467
+
468
+ #### Get clones
503
469
 
504
470
  ```ruby
505
471
  options = { token: 'token123', character_id: 90729314 }
@@ -528,7 +494,7 @@ jump_clone.implants # => [22118]
528
494
  character_clones.last_station_change_date # => Tue, 30 Jun 2015 21:51:13 UTC +00:00
529
495
  ```
530
496
 
531
- ##### Get active implants
497
+ #### Get active implants
532
498
 
533
499
  ```ruby
534
500
  options = { token: 'token123', character_id: 90729314 }
@@ -542,41 +508,39 @@ character_implants.implants.size # => 5
542
508
  character_implants.implants # => [9899, 9941, 9942, 9943, 9956]
543
509
  ```
544
510
 
545
- #### Contacts
511
+ ### Contacts
546
512
 
547
- ##### Delete contacts
513
+ #### Get alliance contacts
548
514
 
549
- ##### Get contacts
515
+ #### Delete contacts
550
516
 
551
- ##### Add contacts
517
+ #### Get contacts
552
518
 
553
- ##### Edit contacts
519
+ #### Add contacts
554
520
 
555
- ##### Get contact labels
521
+ #### Edit contacts
556
522
 
557
- ##### Get corporation contacts
523
+ #### Get contact labels
558
524
 
559
- #### Contracts
525
+ #### Get corporation contacts
560
526
 
561
- ##### Get contracts
527
+ ### Contracts
562
528
 
563
- ##### Get contract bids
529
+ #### Get contracts
564
530
 
565
- ##### Get contract items
531
+ #### Get contract bids
566
532
 
567
- ##### Get coporation contracts (typo in swagger)
533
+ #### Get contract items
568
534
 
569
- ##### Get corporation contract bids
535
+ #### Get coporation contracts (typo in swagger)
570
536
 
571
- ##### Get corporation contract items
537
+ #### Get corporation contract bids
572
538
 
573
- #### Corporation
539
+ #### Get corporation contract items
574
540
 
575
- ##### Get corporation names
576
-
577
- ##### Get npc corporations
541
+ ### Corporation
578
542
 
579
- ##### Get corporation information
543
+ #### Get corporation information
580
544
 
581
545
  ```ruby
582
546
  options = { corporation_id: 98468592 }
@@ -615,9 +579,9 @@ corporation.home_station_id # => 60011893
615
579
  corporation.shares # => 1000
616
580
  ```
617
581
 
618
- ##### Get alliance history
582
+ #### Get alliance history
619
583
 
620
- ##### Get corporation blueprints
584
+ #### Get corporation blueprints
621
585
 
622
586
  ```ruby
623
587
  options = options = { token: 'token123', corporation_id: 98260237 }
@@ -651,29 +615,53 @@ blueprint.type_id # => 31803
651
615
  # TODO: add pagination
652
616
  ```
653
617
 
654
- ##### Get corporation divisions
618
+ #### Get all corporation ALSC logs
619
+
620
+ #### Get corporation divisions
621
+
622
+ #### Get corporation facilities
655
623
 
656
- ##### Get corporation icon
624
+ #### Get corporation icon
657
625
 
658
- ##### Get corporation members
626
+ #### Get corporation medals
659
627
 
660
- ##### Get corporation member limit
628
+ #### Get corporation issued medals
661
629
 
662
- ##### Track corporation members
630
+ #### Get corporation members
663
631
 
664
- ##### Get corporation member roles
632
+ #### Get corporation member limit
665
633
 
666
- ##### Get corporation standings
634
+ #### Get corporation's members' titles
667
635
 
668
- ##### Get corporation structures
636
+ #### Track corporation members
669
637
 
670
- ##### Update structure vulnerability schedule
638
+ #### Get corporation outposts
671
639
 
672
- ##### Get corporation titles
640
+ #### Get corporation outpost details
673
641
 
674
- #### Dogma
642
+ #### Get corporation member roles
675
643
 
676
- ##### Get attributes
644
+ #### Get corporation member roles history
645
+
646
+ #### Get corporation shareholders
647
+
648
+ #### Get corporation standings
649
+
650
+ #### Get corporation starbases (POSes)
651
+
652
+ #### Get starbase (POS) detail
653
+
654
+ #### Get corporation structures
655
+
656
+ #### Get corporation titles
657
+
658
+ #### Get corporation names
659
+
660
+ #### Get npc corporations
661
+
662
+ ### Dogma
663
+
664
+ #### Get attributes
677
665
 
678
666
  ```ruby
679
667
  dogma_attributes = EveOnline::ESI::DogmaAttributes.new
@@ -685,7 +673,7 @@ dogma_attributes.attributes.size # => 2385
685
673
  dogma_attributes.attributes.first # => 2
686
674
  ```
687
675
 
688
- ##### Get attribute information
676
+ #### Get attribute information
689
677
 
690
678
  ```ruby
691
679
  options = { attribute_id: 2 }
@@ -717,67 +705,74 @@ dogma_attribute.stackable # => true
717
705
  dogma_attribute.high_is_good # => true
718
706
  ```
719
707
 
720
- ##### Get effects
708
+ #### Get effects
709
+
710
+ #### Get effect information
711
+
712
+ ### Faction Warfare
721
713
 
722
- ##### Get effect information
714
+ #### Overview of a character involved in faction warfare
723
715
 
724
- #### Faction Warfare
716
+ #### Overview of a corporation involved in faction warfare
725
717
 
726
- ##### List of the top factions in faction warfare
718
+ #### List of the top factions in faction warfare
727
719
 
728
- ##### List of the top pilots in faction warfare
720
+ #### List of the top pilots in faction warfare
729
721
 
730
- ##### List of the top corporations in faction warfare
722
+ #### List of the top corporations in faction warfare
731
723
 
732
- ##### An overview of statistics about factions involved in faction warfare
724
+ #### An overview of statistics about factions involved in faction warfare
733
725
 
734
- ##### Ownership of faction warfare systems
726
+ #### Ownership of faction warfare systems
735
727
 
736
- ##### Data about which NPC factions are at war
728
+ #### Data about which NPC factions are at war
737
729
 
738
- #### Fittings
730
+ ### Fittings
739
731
 
740
- ##### Get fitting
732
+ #### Get fitting
741
733
 
742
- ##### Create fitting
734
+ #### Create fitting
743
735
 
744
- ##### Delete fitting
736
+ #### Delete fitting
745
737
 
746
- #### Fleets
738
+ ### Fleets
747
739
 
748
- ##### Get fleet information
740
+ #### Get character fleet info
749
741
 
750
- ##### Update fleet
742
+ #### Get fleet information
751
743
 
752
- ##### Get fleet members
744
+ #### Update fleet
753
745
 
754
- ##### Create fleet invitation
746
+ #### Get fleet members
755
747
 
756
- ##### Kick fleet member
748
+ #### Create fleet invitation
757
749
 
758
- ##### Move fleet member
750
+ #### Kick fleet member
759
751
 
760
- ##### Delete fleet squad
752
+ #### Move fleet member
761
753
 
762
- ##### Rename fleet squad
754
+ #### Delete fleet squad
763
755
 
764
- ##### Get fleet wings
756
+ #### Rename fleet squad
765
757
 
766
- ##### Create fleet wing
758
+ #### Get fleet wings
767
759
 
768
- ##### Delete fleet wing
760
+ #### Create fleet wing
769
761
 
770
- ##### Rename fleet wing
762
+ #### Delete fleet wing
771
763
 
772
- ##### Create fleet squad
764
+ #### Rename fleet wing
773
765
 
774
- #### Incursions
766
+ #### Create fleet squad
775
767
 
776
- ##### List incursions
768
+ ### Incursions
777
769
 
778
- #### Industry
770
+ #### List incursions
771
+
772
+ ### Industry
773
+
774
+ #### List character industry jobs
779
775
 
780
- ##### List character industry jobs
781
776
  ```ruby
782
777
  options = { token: 'token123', character_id: 90729314 }
783
778
 
@@ -789,28 +784,28 @@ character_jobs.jobs.size # => 3
789
784
 
790
785
  job = character_jobs.jobs.first
791
786
 
792
- job.as_json = # => {:activity_id=>5,
793
- # :blueprint_id=>1024839597103,
794
- # :blueprint_location_id=>1023579231924,
795
- # :blueprint_type_id=>28607,
796
- # :completed_character_id=>nil,
797
- # :completed_date=>nil,
798
- # :cost=>902034.0,
799
- # :duration=>625697,
800
- # :end_date=>Sat, 25 Nov 2017 16:04:31 UTC +00:00,
801
- # :facility_id=>1023579231924,
802
- # :installer_id=>93997721,
803
- # :job_id=>344732396,
804
- # :licensed_runs=>1,
805
- # :output_location_id=>1023579231924,
806
- # :pause_date=>nil,
807
- # :probability=>1.0,
808
- # :product_type_id=>28607,
809
- # :runs=>2,
810
- # :start_date=>Sat, 18 Nov 2017 10:16:14 UTC +00:00,
811
- # :station_id=>1023579231924,
812
- # :status=>"active",
813
- # :successful_runs=>nil}
787
+ job.as_json # => {:activity_id=>5,
788
+ # :blueprint_id=>1024839597103,
789
+ # :blueprint_location_id=>1023579231924,
790
+ # :blueprint_type_id=>28607,
791
+ # :completed_character_id=>nil,
792
+ # :completed_date=>nil,
793
+ # :cost=>902034.0,
794
+ # :duration=>625697,
795
+ # :end_date=>Sat, 25 Nov 2017 16:04:31 UTC +00:00,
796
+ # :facility_id=>1023579231924,
797
+ # :installer_id=>93997721,
798
+ # :job_id=>344732396,
799
+ # :licensed_runs=>1,
800
+ # :output_location_id=>1023579231924,
801
+ # :pause_date=>nil,
802
+ # :probability=>1.0,
803
+ # :product_type_id=>28607,
804
+ # :runs=>2,
805
+ # :start_date=>Sat, 18 Nov 2017 10:16:14 UTC +00:00,
806
+ # :station_id=>1023579231924,
807
+ # :status=>"active",
808
+ # :successful_runs=>nil}
814
809
 
815
810
  job.activity_id # => 5
816
811
  job.blueprint_id # => 1024839597103
@@ -834,12 +829,18 @@ job.start_date # => Sat, 18 Nov 2017 10:16:14 UTC +00:00
834
829
  job.station_id # => 1023579231924
835
830
  job.status # => "active"
836
831
  job.successful_runs # => nil
837
-
838
- # TODO: add pagination support
839
832
  ```
840
833
 
834
+ #### Character mining ledger
835
+
836
+ #### Moon extraction timers
837
+
838
+ #### Corporation mining observers
839
+
840
+ #### Observed corporation mining
841
+
842
+ #### List corporation industry jobs
841
843
 
842
- ##### List corporation industry jobs
843
844
  ```ruby
844
845
  options = { token: 'token123', corporation_id: 98146630 }
845
846
 
@@ -875,74 +876,52 @@ job.as_json # => {:activity_id=>1,
875
876
  # :successful_runs=>nil}
876
877
 
877
878
  job.activity_id # => 1
878
-
879
879
  job.blueprint_id # => 1026042055832
880
-
881
880
  job.blueprint_location_id # => 1024956764558
882
-
883
881
  job.job.blueprint_type_id # => 28607
884
-
885
882
  job.completed_character_id # => nil
886
-
887
883
  job.completed_date # => nil
888
-
889
884
  job.cost # => 19505804.0
890
-
891
885
  job.duration # => 424816
892
-
893
886
  job.end_date # => Thu, 23 Nov 2017 09:20:30 UTC +00:00
894
-
895
887
  job.facility_id # => 1023579231924
896
-
897
888
  job.installer_id # => 93174304
898
-
899
889
  job.job_id # => 344736432
900
-
901
890
  job.licensed_runs # => 1
902
-
903
891
  job.output_location_id # => 1024956764558
904
-
905
892
  job.pause_date # => nil
906
-
907
893
  job.probability # => 1.0
908
-
909
894
  job.product_type_id # => 28606
910
-
911
895
  job.runs # => 1
912
-
913
896
  job.start_date # => Sat, 18 Nov 2017 11:20:14 UTC +00:00
914
-
915
897
  job.station_id # => nil
916
-
917
898
  job.status # => "active"
918
-
919
899
  job.successful_runs # => nil
920
900
 
921
901
  # TODO: add pagination support
922
-
923
902
  ```
924
903
 
925
- ##### List industry facilities
904
+ #### List industry facilities
926
905
 
927
- ##### List solar system cost indices
906
+ #### List solar system cost indices
928
907
 
929
- #### Insurance
908
+ ### Insurance
930
909
 
931
- ##### List insurance levels
910
+ #### List insurance levels
932
911
 
933
- #### Killmails
912
+ ### Killmails
934
913
 
935
- ##### Get character kills and losses
914
+ #### Get character kills and losses
936
915
 
937
- ##### Get corporation kills and losses
916
+ #### Get corporation kills and losses
938
917
 
939
- ##### Get a single killmail
918
+ #### Get a single killmail
940
919
 
941
- #### Location
920
+ ### Location
942
921
 
943
- ##### Get character location
922
+ #### Get character location
944
923
 
945
- ##### Get character online
924
+ #### Get character online
946
925
 
947
926
  ```ruby
948
927
  options = { token: 'token123', character_id: 90729314 }
@@ -960,11 +939,11 @@ character_online.last_logout # => Sun, 15 Jan 2017 11:31:22 UTC +00:00
960
939
  character_online.logins # => 370
961
940
  ```
962
941
 
963
- ##### Get current ship
942
+ #### Get current ship
964
943
 
965
- #### Loyalty
944
+ ### Loyalty
966
945
 
967
- ##### Get loyalty points
946
+ #### Get loyalty points
968
947
 
969
948
  ```ruby
970
949
  options = { token: 'token123', character_id: 90729314 }
@@ -983,43 +962,106 @@ loyalty_point.corporation_id # => 1000035
983
962
  loyalty_point.loyalty_points # => 14163
984
963
  ```
985
964
 
986
- ##### List loyalty store offers
965
+ #### List loyalty store offers
966
+
967
+ ### Mail
987
968
 
988
- #### Mail
969
+ #### Return mail headers
989
970
 
990
- ##### Return mail headers
971
+ #### Send a new mail
991
972
 
992
- ##### Send a new mail
973
+ #### Delete a mail
993
974
 
994
- ##### Get mail labels and unread counts
975
+ #### Return a mail
995
976
 
996
- ##### Create a mail label
977
+ #### Update metadata about a mail
997
978
 
998
- ##### Delete a mail label
979
+ #### Get mail labels and unread counts
999
980
 
1000
- ##### Return mailing list subscriptions
981
+ #### Create a mail label
1001
982
 
1002
- ##### Delete a mail
983
+ #### Delete a mail label
1003
984
 
1004
- ##### Return a mail
985
+ #### Return mailing list subscriptions
1005
986
 
1006
- ##### Update metadata about a mail
987
+ ### Market
1007
988
 
1008
- #### Market
989
+ #### List open orders from a character
1009
990
 
1010
- ##### List orders from a character
991
+ ```ruby
992
+ options = { token: 'token123', character_id: 90729314 }
1011
993
 
1012
- ##### List orders from a corporation
994
+ character_orders = EveOnline::ESI::CharacterOrders.new(options)
1013
995
 
1014
- ##### Get item groups
996
+ character_orders.scope
1015
997
 
1016
- ##### Get item group information
998
+ character_orders.orders.size
1017
999
 
1018
- ##### List market prices
1000
+ order = character_orders.orders.first
1001
+
1002
+ order.as_json
1003
+
1004
+ order.order_id
1005
+ order.type_id
1006
+ order.region_id
1007
+ order.location_id
1008
+ order.range
1009
+ order.is_buy_order
1010
+ order.price
1011
+ order.volume_total
1012
+ order.volume_remain
1013
+ order.issued
1014
+ order.state
1015
+ order.min_volume
1016
+ order.account_id
1017
+ order.duration
1018
+ order.is_corp
1019
+ order.escrow
1020
+
1021
+ # TODO: update example
1022
+ ```
1019
1023
 
1020
- ##### List orders in a structure
1024
+ #### List historical orders by a character
1021
1025
 
1022
- ##### List historical market statistics in a region
1026
+ #### List open orders from a corporation
1027
+
1028
+ ```ruby
1029
+ options = { token: 'token123', corporation_id: 1000168 }
1030
+
1031
+ corporation_orders = EveOnline::ESI::CorporationOrders.new(options)
1032
+
1033
+ corporation_orders.scope
1034
+
1035
+ corporation_orders.orders.size
1036
+
1037
+ order = corporation_orders.orders.first
1038
+
1039
+ order.as_json
1040
+
1041
+ order.order_id
1042
+ order.type_id
1043
+ order.region_id
1044
+ order.location_id
1045
+ order.range
1046
+ order.is_buy_order
1047
+ order.price
1048
+ order.volume_total
1049
+ order.volume_remain
1050
+ order.issued
1051
+ order.state
1052
+ order.min_volume
1053
+ order.wallet_division
1054
+ order.duration
1055
+ order.escrow
1056
+
1057
+ # TODO: update example
1058
+
1059
+ # TODO: add pagination support
1060
+ ```
1061
+
1062
+ #### List historical orders from a corporation
1063
+
1064
+ #### List historical market statistics in a region
1023
1065
 
1024
1066
  ```ruby
1025
1067
  options = { region_id: 10000002, type_id: 28606 }
@@ -1049,43 +1091,53 @@ stats_today.average # => 754702326.19
1049
1091
  stats_today.lowest # => 701100002.49
1050
1092
  ```
1051
1093
 
1052
- ##### List orders in a region
1094
+ #### List orders in a region
1095
+
1096
+ #### List type IDs relevant to a market
1097
+
1098
+ #### Get item groups
1053
1099
 
1054
- ##### List type IDs relevant to a market
1100
+ #### Get item group information
1055
1101
 
1056
- #### Opportunities
1102
+ #### List market prices
1057
1103
 
1058
- ##### Get a character's completed task
1104
+ #### List orders in a structure
1059
1105
 
1060
- ##### Get opportunities groups
1106
+ ### Opportunities
1061
1107
 
1062
- ##### Get opportunities group
1108
+ #### Get a character's completed task
1063
1109
 
1064
- ##### Get opportunities tasks
1110
+ #### Get opportunities groups
1065
1111
 
1066
- ##### Get opportunities task
1112
+ #### Get opportunities group
1067
1113
 
1068
- #### Planetary Interaction
1114
+ #### Get opportunities tasks
1069
1115
 
1070
- ##### Get colonies
1116
+ #### Get opportunities task
1071
1117
 
1072
- ##### Get colony layout
1118
+ ### Planetary Interaction
1073
1119
 
1074
- ##### Get schematic information
1120
+ #### Get colonies
1075
1121
 
1076
- #### Routes
1122
+ #### Get colony layout
1077
1123
 
1078
- ##### Get route
1124
+ #### List corporation customs offices
1079
1125
 
1080
- #### Search
1126
+ #### Get schematic information
1081
1127
 
1082
- ##### Search on a string (search for something in character stuff)
1128
+ ### Routes
1083
1129
 
1084
- ##### Search on a string
1130
+ #### Get route
1085
1131
 
1086
- #### Skills
1132
+ ### Search
1087
1133
 
1088
- ##### Get character attributes
1134
+ #### Search on a string (search for something in character stuff)
1135
+
1136
+ #### Search on a string
1137
+
1138
+ ### Skills
1139
+
1140
+ #### Get character attributes
1089
1141
 
1090
1142
  ```ruby
1091
1143
  options = { token: 'token123', character_id: 90729314 }
@@ -1113,7 +1165,7 @@ character_attributes.last_remap_date # => Sat, 07 May 2011 12:58:06 UTC +00:00
1113
1165
  character_attributes.accrued_remap_cooldown_date # => Sun, 06 May 2012 12:58:06 UTC +00:00
1114
1166
  ```
1115
1167
 
1116
- ##### Get character's skill queue
1168
+ #### Get character's skill queue
1117
1169
 
1118
1170
  ```ruby
1119
1171
  options = { token: 'token123', character_id: 90729314 }
@@ -1139,7 +1191,7 @@ skill_queue_entry.level_end_sp # => 40000
1139
1191
  skill_queue_entry.level_start_sp # => 7072
1140
1192
  ```
1141
1193
 
1142
- ##### Get character skills
1194
+ #### Get character skills
1143
1195
 
1144
1196
  ```ruby
1145
1197
  options = { token: 'token123', character_id: 90729314 }
@@ -1166,17 +1218,17 @@ skill.trained_skill_level # => 1
1166
1218
  skill.active_skill_level # => 0
1167
1219
  ```
1168
1220
 
1169
- #### Sovereignty
1221
+ ### Sovereignty
1170
1222
 
1171
- ##### List sovereignty campaigns
1223
+ #### List sovereignty campaigns
1172
1224
 
1173
- ##### List sovereignty of systems
1225
+ #### List sovereignty of systems
1174
1226
 
1175
- ##### List sovereignty structures
1227
+ #### List sovereignty structures
1176
1228
 
1177
- #### Status
1229
+ ### Status
1178
1230
 
1179
- ##### Retrieve the uptime and player counts
1231
+ #### Retrieve the uptime and player counts
1180
1232
 
1181
1233
  ```ruby
1182
1234
  server_status = EveOnline::ESI::ServerStatus.new
@@ -1191,9 +1243,37 @@ server_status.server_version # => "1135520"
1191
1243
  server_status.vip # => nil
1192
1244
  ```
1193
1245
 
1194
- #### Universe
1246
+ ### Universe
1247
+
1248
+ #### Get ancestries
1249
+
1250
+ ```ruby
1251
+ ancestries = EveOnline::ESI::Ancestries.new
1252
+
1253
+ ancestries.scope # => nil
1254
+
1255
+ ancestries.ancestries.size # => 42
1195
1256
 
1196
- ##### Get bloodlines
1257
+ ancestry = ancestries.ancestries.first
1258
+
1259
+ ancestry.as_json # => {:ancestry_id=>24,
1260
+ # :name=>"Slave Child",
1261
+ # :bloodline_id=>4,
1262
+ # :description=>"Millions of slaves within the Amarr Empire dream of escape...",
1263
+ # :short_description=>"Torn from the cold and brought to the warmth of a new life.",
1264
+ # :icon_id=>1664}
1265
+
1266
+ ancestry.ancestry_id # => 24
1267
+ ancestry.name # => "Slave Child"
1268
+ ancestry.bloodline_id # => 4
1269
+ ancestry.description # => "Millions of slaves within the Amarr Empire dream of escape..."
1270
+ ancestry.short_description # => "Torn from the cold and brought to the warmth of a new life."
1271
+ ancestry.icon_id # => 1664
1272
+
1273
+ # TODO: add languages
1274
+ ```
1275
+
1276
+ #### Get bloodlines
1197
1277
 
1198
1278
  ```ruby
1199
1279
  bloodlines = EveOnline::ESI::Bloodlines.new
@@ -1231,15 +1311,15 @@ bloodline.intelligence # => 4
1231
1311
  # TODO: add languages
1232
1312
  ```
1233
1313
 
1234
- ##### Get item categories
1314
+ #### Get item categories
1235
1315
 
1236
- ##### Get item category information
1316
+ #### Get item category information
1237
1317
 
1238
- ##### Get constellations
1318
+ #### Get constellations
1239
1319
 
1240
- ##### Get constellation information
1320
+ #### Get constellation information
1241
1321
 
1242
- ##### Get factions
1322
+ #### Get factions
1243
1323
 
1244
1324
  ```ruby
1245
1325
  factions = EveOnline::ESI::Factions.new
@@ -1275,21 +1355,23 @@ faction.is_unique # => true
1275
1355
  # TODO: add languages
1276
1356
  ```
1277
1357
 
1278
- ##### Get graphics
1358
+ #### Get graphics
1359
+
1360
+ #### Get graphic information
1279
1361
 
1280
- ##### Get graphic information
1362
+ #### Get item groups
1281
1363
 
1282
- ##### Get item groups
1364
+ #### Get item group information
1283
1365
 
1284
- ##### Get item group information
1366
+ #### Bulk names to IDs
1285
1367
 
1286
- ##### Get moon information
1368
+ #### Get moon information
1287
1369
 
1288
- ##### Get names and categories for a set of ID's
1370
+ #### Get names and categories for a set of ID's
1289
1371
 
1290
- ##### Get planet information
1372
+ #### Get planet information
1291
1373
 
1292
- ##### Get character races
1374
+ #### Get character races
1293
1375
 
1294
1376
  ```ruby
1295
1377
  races = EveOnline::ESI::Races.new
@@ -1314,47 +1396,47 @@ race.alliance_id # => 500002
1314
1396
 
1315
1397
  ```
1316
1398
 
1317
- ##### Get regions
1399
+ #### Get regions
1318
1400
 
1319
- ##### Get region information
1401
+ #### Get region information
1320
1402
 
1321
- ##### Get stargate information
1403
+ #### Get stargate information
1322
1404
 
1323
- ##### Get star information
1405
+ #### Get star information
1324
1406
 
1325
- ##### Get station information
1407
+ #### Get station information
1326
1408
 
1327
- ##### List all public structures
1409
+ #### List all public structures
1328
1410
 
1329
- ##### Get structure information
1411
+ #### Get structure information
1330
1412
 
1331
- ##### Get system jumps
1413
+ #### Get system jumps
1332
1414
 
1333
- ##### Get system kills
1415
+ #### Get system kills
1334
1416
 
1335
- ##### Get solar systems
1417
+ #### Get solar systems
1336
1418
 
1337
- ##### Get solar system information
1419
+ #### Get solar system information
1338
1420
 
1339
- ##### Get types
1421
+ #### Get types
1340
1422
 
1341
- ##### Get type information
1423
+ #### Get type information
1342
1424
 
1343
- #### User Interface
1425
+ ### User Interface
1344
1426
 
1345
- ##### Set Autopilot Waypoint
1427
+ #### Set Autopilot Waypoint
1346
1428
 
1347
- ##### Open Contract Window
1429
+ #### Open Contract Window
1348
1430
 
1349
- ##### Open Information Window
1431
+ #### Open Information Window
1350
1432
 
1351
- ##### Open Market Details
1433
+ #### Open Market Details
1352
1434
 
1353
- ##### Open New Mail Window
1435
+ #### Open New Mail Window
1354
1436
 
1355
- #### Wallet
1437
+ ### Wallet
1356
1438
 
1357
- ##### Get a character's wallet balance
1439
+ #### Get a character's wallet balance
1358
1440
 
1359
1441
  ```ruby
1360
1442
  options = { token: 'token123', character_id: 90729314 }
@@ -1368,139 +1450,61 @@ character_wallet.as_json # => {:wallet=>409488252.49}
1368
1450
  character_wallet.wallet # => 409488252.49
1369
1451
  ```
1370
1452
 
1371
- ##### Get character wallet journal
1372
-
1373
- ##### Get wallet transactions
1374
-
1375
- ##### Returns a corporation's wallet balance
1376
-
1377
- ##### Get corporation wallet journal
1378
-
1379
- ##### Get corporation wallet transactions
1380
-
1381
- #### Wars
1382
-
1383
- ##### List wars
1384
-
1385
- ##### Get war information
1386
-
1387
- ##### List kills for a war
1388
-
1389
-
1390
- ### SDE Examples
1391
-
1392
- Agent Types:
1393
- ```ruby
1394
- file = 'agtAgentTypes.yaml'
1395
-
1396
- agt_agent_types = EveOnline::SDE::AgtAgentTypes.new(file)
1397
-
1398
- agt_agent_types.agt_agent_types.size # => 12
1399
-
1400
- agent_type = agt_agent_types.agt_agent_types.first
1401
-
1402
- agent_type.as_json # => {:agent_type=>"NonAgent", :agent_type_id=>1}
1403
-
1404
- agent_type.agent_type # => "NonAgent"
1405
- agent_type.agent_type_id # => 1
1406
- ```
1407
-
1408
- Agents:
1409
- ```ruby
1410
- file = 'agtAgents.yaml'
1411
-
1412
- agt_agents = EveOnline::SDE::AgtAgents.new(file)
1413
-
1414
- agt_agents.agt_agents.size # => 10975
1415
-
1416
- agt_agent = agt_agents.agt_agents.first
1417
-
1418
- agt_agent.as_json # => {:agent_id=>3008416, :agent_type_id=>2, :corporation_id=>1000002, :division_id=>22, :is_locator=>false, :level=>1, :location_id=>60000004, :quality=>20}
1419
-
1420
- agt_agent.agent_id # => 3008416
1421
- agt_agent.agent_type_id # => 2
1422
- agt_agent.corporation_id # => 1000002
1423
- agt_agent.division_id # => 22
1424
- agt_agent.is_locator # => false
1425
- agt_agent.level # => 1
1426
- agt_agent.location_id # => 60000004
1427
- agt_agent.quality # => 20
1428
- ```
1429
-
1430
- Inventory Flags:
1431
- ```ruby
1432
- file = 'invFlags.yaml'
1433
-
1434
- inv_flags = EveOnline::SDE::InvFlags.new(file)
1435
-
1436
- inv_flags.inv_flags.size # => 152
1437
-
1438
- inv_flag = inv_flags.inv_flags.first
1453
+ #### Get character wallet journal
1439
1454
 
1440
- inv_flag.as_json # => {:flag_id=>0, :flag_name=>"None", :flag_text=>"None", :order_id=>0}
1441
-
1442
- inv_flag.flag_id # => 0
1443
- inv_flag.flag_name # => "None"
1444
- inv_flag.flag_text # => "None"
1445
- inv_flag.order_id # => 0
1446
- ```
1447
-
1448
- Inventory Items:
1449
1455
  ```ruby
1450
- file = 'invItems.yaml'
1451
-
1452
- inv_items = EveOnline::SDE::InvItems.new(file)
1453
-
1454
- inv_items.inv_items.size # => 531470
1455
-
1456
- inv_item = inv_items.inv_items.first
1457
-
1458
- inv_item.as_json # => {:flag_id=>0, :item_id=>40021067, :location_id=>30000334, :owner_id=>1, :quantity=>34, :type_id=>14}
1456
+ options = { token: 'token123', character_id: 90729314 }
1459
1457
 
1460
- inv_item.flag_id # => 0
1461
- inv_item.item_id # => 40021067
1462
- inv_item.location_id # => 30000334
1463
- inv_item.owner_id # => 1
1464
- inv_item.quantity # => 34
1465
- inv_item.type_id # => 14
1458
+ character_wallet_journal = EveOnline::ESI::CharacterWalletJournal.new(options)
1459
+
1460
+ character_wallet_journal.scope # => "esi-wallet.read_character_wallet.v1"
1461
+
1462
+ character_wallet_journal.wallet_journal_entries.size # => 1
1463
+
1464
+ wallet_journal_entry = character_wallet_journal.wallet_journal_entries.first
1465
+
1466
+ wallet_journal_entry.as_json # => {:date=>Tue, 06 Mar 2018 12:43:50 UTC +00:00,
1467
+ # :ref_id=>15264764711,
1468
+ # :ref_type=>"market_escrow",
1469
+ # :first_party_id=>90729314,
1470
+ # :first_party_type=>"character",
1471
+ # :second_party_id=>nil,
1472
+ # :second_party_type=>nil,
1473
+ # :amount=>-9.5,
1474
+ # :balance=>4990.5,
1475
+ # :reason=>nil,
1476
+ # :tax_receiver_id=>nil,
1477
+ # :tax=>nil}
1478
+
1479
+ wallet_journal_entry.date # => Tue, 06 Mar 2018 12:43:50 UTC +00:00
1480
+ wallet_journal_entry.ref_id # => 15264764711
1481
+ wallet_journal_entry.ref_type # => "market_escrow"
1482
+ wallet_journal_entry.first_party_id # => 90729314
1483
+ wallet_journal_entry.first_party_type # => "character"
1484
+ wallet_journal_entry.second_party_id # => nil
1485
+ wallet_journal_entry.second_party_type # => nil
1486
+ wallet_journal_entry.amount # => -9.5
1487
+ wallet_journal_entry.balance # => 4990.5
1488
+ wallet_journal_entry.reason # => nil
1489
+ wallet_journal_entry.tax_receiver_id # => nil
1490
+ wallet_journal_entry.tax # => nil
1466
1491
  ```
1467
1492
 
1468
- Inventory Names:
1469
- ```ruby
1470
- file = 'invNames.yaml'
1471
-
1472
- inv_names = EveOnline::SDE::InvNames.new(file)
1493
+ #### Get wallet transactions
1473
1494
 
1474
- inv_names.inv_names.size # => 519921
1495
+ #### Returns a corporation's wallet balance
1475
1496
 
1476
- inv_name = inv_names.inv_names.first
1497
+ #### Get corporation wallet journal
1477
1498
 
1478
- inv_name.as_json # => {:item_id=>0, :item_name=>"(none)"}
1499
+ #### Get corporation wallet transactions
1479
1500
 
1480
- inv_name.item_id # => 0
1481
- inv_name.item_name # => "(none)"
1482
- ```
1501
+ ### Wars
1483
1502
 
1484
- Inventory Positions:
1485
- ```ruby
1486
- file = 'invPositions.yaml'
1503
+ #### List wars
1487
1504
 
1488
- inv_positions = EveOnline::SDE::InvPositions.new(file)
1505
+ #### Get war information
1489
1506
 
1490
- inv_positions.inv_positions.size # => 508383
1491
-
1492
- inv_position = inv_positions.inv_positions.first
1493
-
1494
- inv_position.as_json # => {:item_id=>0, :pitch=>0.0, :roll=>0.0, :x=>0.0, :y=>0.0, :yaw=>0.0, :z=>0.0}
1495
-
1496
- inv_position.item_id # => 0
1497
- inv_position.pitch # => 0.0
1498
- inv_position.roll # => 0.0
1499
- inv_position.x # => 0.0
1500
- inv_position.y # => 0.0
1501
- inv_position.yaw # => 0.0
1502
- inv_position.z # => 0.0
1503
- ```
1507
+ #### List kills for a war
1504
1508
 
1505
1509
  ## Exceptions
1506
1510
 
@@ -1543,6 +1547,7 @@ Timeout. `EveOnline::Exceptions::TimeoutException`.
1543
1547
  ## Timeouts
1544
1548
 
1545
1549
  `eve_online` gem uses `faraday` for network request. `faraday` configured with:
1550
+
1546
1551
  ```ruby
1547
1552
  faraday = Faraday.new
1548
1553
 
@@ -1569,29 +1574,6 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
1569
1574
 
1570
1575
  Issue reports and pull requests are welcome on GitHub at https://github.com/biow0lf/eve_online.
1571
1576
 
1572
- ## Implementation check list
1573
-
1574
- ### Character
1575
-
1576
- - [x] [Bookmarks](https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_bookmarks.html)
1577
- - [x] [Contact Notifications](https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_contactnotifications.html)
1578
- - [x] [Market Orders](https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_marketorders.html)
1579
- - [x] [Upcoming Calendar Events](https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_upcomingcalendarevents.html)
1580
- - [x] [Wallet Journal](https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/character/char_walletjournal.html)
1581
-
1582
- ----
1583
-
1584
- ### Corporation
1585
-
1586
- - [x] [Market Orders](https://eveonline-third-party-documentation.readthedocs.io/en/latest/xmlapi/corporation/corp_marketorders.html)
1587
-
1588
- ----
1589
-
1590
- ## TODO
1591
-
1592
- - [ ] Caching
1593
- - [ ] Test EVE server
1594
-
1595
1577
  ## Author
1596
1578
 
1597
1579
  * Igor Zubkov (@biow0lf)