eve_online 0.34.0 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +9 -21
- data/.deepsource.toml +5 -0
- data/.fasterer.yml +2 -0
- data/.ruby-version +1 -1
- data/.standard.yml +5 -0
- data/Appraisals +8 -2
- data/CHANGELOG.md +28 -0
- data/Gemfile.lock +92 -70
- data/LICENSE.txt +1 -1
- data/README.md +111 -5
- data/eve_online.gemspec +4 -2
- data/lib/eve_online.rb +223 -217
- data/lib/eve_online/esi/base.rb +53 -86
- data/lib/eve_online/esi/character_assets_locations.rb +1 -1
- data/lib/eve_online/esi/character_assets_names.rb +1 -1
- data/lib/eve_online/esi/corporation_assets_locations.rb +1 -1
- data/lib/eve_online/esi/corporation_assets_names.rb +1 -1
- data/lib/eve_online/esi/corporation_members.rb +29 -0
- data/lib/eve_online/esi/faraday_middlewares/raise_errors.rb +40 -0
- data/lib/eve_online/esi/models/public_contract.rb +98 -0
- data/lib/eve_online/esi/models/public_contract_item.rb +59 -0
- data/lib/eve_online/esi/public_contract.rb +40 -0
- data/lib/eve_online/esi/public_contracts.rb +40 -0
- data/lib/eve_online/version.rb +1 -1
- metadata +42 -8
- data/Gemfile.mutant +0 -10
- data/Gemfile.mutant.lock +0 -155
- data/mutant.sh +0 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2b0901d9d2b00008e029a12fb3e586da93862acb00548179d26f7a0765c7dde0
|
4
|
+
data.tar.gz: d84f24fbfb9dea652708d1a2e78df29984868e48709f9f0bbec78dab9e01a90c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 255486b61894bbdb23e6dd22f9da0f3f2561b6092c00e7eae19ce66a94617c2289c1bbcf0796cbb0204d7cb5f483b3e9a888b01e0558f98ce8daac0799ab1ebd
|
7
|
+
data.tar.gz: 45170de6d973bc6d12b00c81525670ce767e15014bb9cb8629c30ce0517f6cc0106d8ba46e0291ce384be51689e470c800f9fd052162c6bfa8b503b955abfb71
|
data/.circleci/config.yml
CHANGED
@@ -1,18 +1,6 @@
|
|
1
1
|
version: 2
|
2
2
|
|
3
3
|
jobs:
|
4
|
-
ruby-2.5.8:
|
5
|
-
docker:
|
6
|
-
- image: circleci/ruby:2.5.8
|
7
|
-
steps:
|
8
|
-
- checkout
|
9
|
-
- run: rm Gemfile.lock
|
10
|
-
- run: rm .ruby-version
|
11
|
-
- run: bundle install
|
12
|
-
- run: bundle exec appraisal install || true
|
13
|
-
- run: bundle exec appraisal rake
|
14
|
-
- run: bundle exec standardrb
|
15
|
-
- run: bundle exec mdl README.md CHANGELOG.md TODO.md
|
16
4
|
ruby-2.6.6:
|
17
5
|
docker:
|
18
6
|
- image: circleci/ruby:2.6.6
|
@@ -24,10 +12,11 @@ jobs:
|
|
24
12
|
- run: bundle exec appraisal install || true
|
25
13
|
- run: bundle exec appraisal rake
|
26
14
|
- run: bundle exec standardrb
|
15
|
+
- run: bundle exec fasterer
|
27
16
|
- run: bundle exec mdl README.md CHANGELOG.md TODO.md
|
28
|
-
ruby-2.7.
|
17
|
+
ruby-2.7.2:
|
29
18
|
docker:
|
30
|
-
- image: circleci/ruby:2.7.
|
19
|
+
- image: circleci/ruby:2.7.2
|
31
20
|
steps:
|
32
21
|
- checkout
|
33
22
|
- run: rm Gemfile.lock
|
@@ -36,12 +25,11 @@ jobs:
|
|
36
25
|
- run: bundle exec appraisal install || true
|
37
26
|
- run: bundle exec appraisal rake
|
38
27
|
- run: bundle exec standardrb
|
28
|
+
- run: bundle exec fasterer
|
39
29
|
- run: bundle exec mdl README.md CHANGELOG.md TODO.md
|
40
|
-
|
30
|
+
ruby-3.0.0:
|
41
31
|
docker:
|
42
|
-
- image: circleci/
|
43
|
-
environment:
|
44
|
-
JRUBY_OPTS: "--debug -J-Xmn1024m -J-Xms2048m -J-Xmx2048m"
|
32
|
+
- image: circleci/ruby:3.0.0
|
45
33
|
steps:
|
46
34
|
- checkout
|
47
35
|
- run: rm Gemfile.lock
|
@@ -50,13 +38,13 @@ jobs:
|
|
50
38
|
- run: bundle exec appraisal install || true
|
51
39
|
- run: bundle exec appraisal rake
|
52
40
|
- run: bundle exec standardrb
|
41
|
+
- run: bundle exec fasterer
|
53
42
|
- run: bundle exec mdl README.md CHANGELOG.md TODO.md
|
54
43
|
|
55
44
|
workflows:
|
56
45
|
version: 2
|
57
46
|
tests:
|
58
47
|
jobs:
|
59
|
-
- jruby-9.2.11.1
|
60
|
-
- ruby-2.5.8
|
61
48
|
- ruby-2.6.6
|
62
|
-
- ruby-2.7.
|
49
|
+
- ruby-2.7.2
|
50
|
+
- ruby-3.0.0
|
data/.deepsource.toml
ADDED
data/.fasterer.yml
ADDED
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
3.0.0
|
data/.standard.yml
ADDED
data/Appraisals
CHANGED
@@ -6,6 +6,12 @@ appraise "activesupport_60" do
|
|
6
6
|
gem "activesupport", "~> 6.0.0"
|
7
7
|
end
|
8
8
|
|
9
|
-
appraise "
|
10
|
-
gem "activesupport",
|
9
|
+
appraise "activesupport_61" do
|
10
|
+
gem "activesupport", "~> 6.1.0"
|
11
|
+
end
|
12
|
+
|
13
|
+
if Gem::Version.new(RUBY_VERSION) > Gem::Version.new("2.7.0")
|
14
|
+
appraise "activesupport_edge" do
|
15
|
+
gem "activesupport", git: "https://github.com/rails/rails", require: "activesupport", branch: "main"
|
16
|
+
end
|
11
17
|
end
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,33 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.38.0
|
4
|
+
|
5
|
+
* Replace `net/http` with `faraday`
|
6
|
+
* Drop Ruby 2.5 support
|
7
|
+
|
8
|
+
## v0.37.0
|
9
|
+
|
10
|
+
* Use autoload for class loading
|
11
|
+
* Rails 6.1
|
12
|
+
* Ruby 3.0
|
13
|
+
* Remove `mutant` stuff
|
14
|
+
|
15
|
+
## v0.36.0
|
16
|
+
|
17
|
+
* Drop JRuby support
|
18
|
+
* Add `EveOnline::ESI::CorporationMembers`
|
19
|
+
|
20
|
+
## v0.35.1
|
21
|
+
|
22
|
+
* Rename `EveOnline::ESI::Models::PublicContract#type` to `#kind`. Fix Rails STI.
|
23
|
+
|
24
|
+
## v0.35.0
|
25
|
+
|
26
|
+
* Add `EveOnline::ESI::PublicContracts`
|
27
|
+
* Add `EveOnline::ESI::Models::PublicContract`
|
28
|
+
* Add `EveOnline::ESI::Models::PublicContractItem`
|
29
|
+
* Add `EveOnline::ESI::PublicContract`
|
30
|
+
|
3
31
|
## v0.34.0
|
4
32
|
|
5
33
|
* Rename `EveOnline::ESI::Models::Race#alliance_id` to `#faction_id`. [Fix esi issue 812](https://github.com/esi/esi-issues/issues/812).
|
data/Gemfile.lock
CHANGED
@@ -1,123 +1,145 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
eve_online (0.
|
4
|
+
eve_online (0.38.0)
|
5
5
|
activesupport (>= 5.2.0)
|
6
|
+
faraday
|
7
|
+
faraday_middleware
|
6
8
|
|
7
9
|
GEM
|
8
10
|
remote: https://rubygems.org/
|
9
11
|
specs:
|
10
|
-
activesupport (6.
|
12
|
+
activesupport (6.1.3)
|
11
13
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
12
|
-
i18n (>=
|
13
|
-
minitest (
|
14
|
-
tzinfo (~>
|
15
|
-
zeitwerk (~> 2.
|
14
|
+
i18n (>= 1.6, < 2)
|
15
|
+
minitest (>= 5.1)
|
16
|
+
tzinfo (~> 2.0)
|
17
|
+
zeitwerk (~> 2.3)
|
16
18
|
addressable (2.7.0)
|
17
19
|
public_suffix (>= 2.0.2, < 5.0)
|
18
|
-
appraisal (2.
|
20
|
+
appraisal (2.4.0)
|
19
21
|
bundler
|
20
22
|
rake
|
21
23
|
thor (>= 0.14.0)
|
22
|
-
ast (2.4.
|
24
|
+
ast (2.4.2)
|
23
25
|
awesome_print (1.8.0)
|
26
|
+
chef-utils (16.10.17)
|
24
27
|
coderay (1.1.3)
|
25
28
|
colorize (0.8.1)
|
26
|
-
concurrent-ruby (1.1.
|
27
|
-
crack (0.4.
|
28
|
-
|
29
|
-
diff-lcs (1.
|
30
|
-
docile (1.3.
|
31
|
-
|
29
|
+
concurrent-ruby (1.1.8)
|
30
|
+
crack (0.4.5)
|
31
|
+
rexml
|
32
|
+
diff-lcs (1.4.4)
|
33
|
+
docile (1.3.5)
|
34
|
+
faraday (1.3.0)
|
35
|
+
faraday-net_http (~> 1.0)
|
36
|
+
multipart-post (>= 1.2, < 3)
|
37
|
+
ruby2_keywords
|
38
|
+
faraday-net_http (1.0.1)
|
39
|
+
faraday_middleware (1.0.0)
|
40
|
+
faraday (~> 1.0)
|
41
|
+
fasterer (0.9.0)
|
32
42
|
colorize (~> 0.7)
|
33
43
|
ruby_parser (>= 3.14.1)
|
34
44
|
hashdiff (1.0.1)
|
35
|
-
i18n (1.8.
|
45
|
+
i18n (1.8.9)
|
36
46
|
concurrent-ruby (~> 1.0)
|
37
|
-
kramdown (2.
|
47
|
+
kramdown (2.3.0)
|
38
48
|
rexml
|
39
49
|
kramdown-parser-gfm (1.1.0)
|
40
50
|
kramdown (~> 2.0)
|
41
|
-
mdl (0.
|
42
|
-
kramdown (~> 2.
|
43
|
-
kramdown-parser-gfm (~> 1.
|
51
|
+
mdl (0.11.0)
|
52
|
+
kramdown (~> 2.3)
|
53
|
+
kramdown-parser-gfm (~> 1.1)
|
44
54
|
mixlib-cli (~> 2.1, >= 2.1.1)
|
45
55
|
mixlib-config (>= 2.2.1, < 4)
|
56
|
+
mixlib-shellout
|
46
57
|
method_source (1.0.0)
|
47
|
-
mini_portile2 (2.
|
48
|
-
minitest (5.14.
|
49
|
-
mixlib-cli (2.1.
|
50
|
-
mixlib-config (3.0.
|
58
|
+
mini_portile2 (2.5.0)
|
59
|
+
minitest (5.14.4)
|
60
|
+
mixlib-cli (2.1.8)
|
61
|
+
mixlib-config (3.0.9)
|
51
62
|
tomlrb
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
63
|
+
mixlib-shellout (3.2.5)
|
64
|
+
chef-utils
|
65
|
+
multipart-post (2.1.1)
|
66
|
+
nokogiri (1.11.1)
|
67
|
+
mini_portile2 (~> 2.5.0)
|
68
|
+
racc (~> 1.4)
|
69
|
+
nokogiri (1.11.1-x86_64-darwin)
|
70
|
+
racc (~> 1.4)
|
71
|
+
parallel (1.20.1)
|
72
|
+
parser (3.0.0.0)
|
73
|
+
ast (~> 2.4.1)
|
74
|
+
pry (0.14.0)
|
58
75
|
coderay (~> 1.1)
|
59
76
|
method_source (~> 1.0)
|
60
|
-
public_suffix (4.0.
|
77
|
+
public_suffix (4.0.6)
|
78
|
+
racc (1.5.2)
|
61
79
|
rainbow (3.0.0)
|
62
|
-
rake (13.0.
|
63
|
-
regexp_parser (1.
|
80
|
+
rake (13.0.3)
|
81
|
+
regexp_parser (2.1.1)
|
64
82
|
rexml (3.2.4)
|
65
|
-
rspec (3.
|
66
|
-
rspec-core (~> 3.
|
67
|
-
rspec-expectations (~> 3.
|
68
|
-
rspec-mocks (~> 3.
|
69
|
-
rspec-core (3.
|
70
|
-
rspec-support (~> 3.
|
71
|
-
rspec-expectations (3.
|
83
|
+
rspec (3.10.0)
|
84
|
+
rspec-core (~> 3.10.0)
|
85
|
+
rspec-expectations (~> 3.10.0)
|
86
|
+
rspec-mocks (~> 3.10.0)
|
87
|
+
rspec-core (3.10.1)
|
88
|
+
rspec-support (~> 3.10.0)
|
89
|
+
rspec-expectations (3.10.1)
|
72
90
|
diff-lcs (>= 1.2.0, < 2.0)
|
73
|
-
rspec-support (~> 3.
|
91
|
+
rspec-support (~> 3.10.0)
|
74
92
|
rspec-its (1.3.0)
|
75
93
|
rspec-core (>= 3.0.0)
|
76
94
|
rspec-expectations (>= 3.0.0)
|
77
|
-
rspec-mocks (3.
|
95
|
+
rspec-mocks (3.10.2)
|
78
96
|
diff-lcs (>= 1.2.0, < 2.0)
|
79
|
-
rspec-support (~> 3.
|
80
|
-
rspec-support (3.
|
81
|
-
rubocop (
|
97
|
+
rspec-support (~> 3.10.0)
|
98
|
+
rspec-support (3.10.2)
|
99
|
+
rubocop (1.10.0)
|
82
100
|
parallel (~> 1.10)
|
83
|
-
parser (>=
|
101
|
+
parser (>= 3.0.0.0)
|
84
102
|
rainbow (>= 2.2.2, < 4.0)
|
85
|
-
regexp_parser (>= 1.
|
103
|
+
regexp_parser (>= 1.8, < 3.0)
|
86
104
|
rexml
|
87
|
-
rubocop-ast (>= 0.0
|
105
|
+
rubocop-ast (>= 1.2.0, < 2.0)
|
88
106
|
ruby-progressbar (~> 1.7)
|
89
|
-
unicode-display_width (>= 1.4.0, <
|
90
|
-
rubocop-ast (
|
91
|
-
parser (>= 2.7.
|
92
|
-
rubocop-performance (1.
|
93
|
-
rubocop (>= 0.
|
94
|
-
|
95
|
-
|
107
|
+
unicode-display_width (>= 1.4.0, < 3.0)
|
108
|
+
rubocop-ast (1.4.1)
|
109
|
+
parser (>= 2.7.1.5)
|
110
|
+
rubocop-performance (1.9.2)
|
111
|
+
rubocop (>= 0.90.0, < 2.0)
|
112
|
+
rubocop-ast (>= 0.4.0)
|
113
|
+
ruby-progressbar (1.11.0)
|
114
|
+
ruby2_keywords (0.0.4)
|
115
|
+
ruby_parser (3.15.1)
|
96
116
|
sexp_processor (~> 4.9)
|
97
|
-
|
98
|
-
|
99
|
-
simplecov (0.18.5)
|
117
|
+
sexp_processor (4.15.2)
|
118
|
+
simplecov (0.21.2)
|
100
119
|
docile (~> 1.1)
|
101
120
|
simplecov-html (~> 0.11)
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
121
|
+
simplecov_json_formatter (~> 0.1)
|
122
|
+
simplecov-html (0.12.3)
|
123
|
+
simplecov_json_formatter (0.1.2)
|
124
|
+
standard (0.13.0)
|
125
|
+
rubocop (= 1.10.0)
|
126
|
+
rubocop-performance (= 1.9.2)
|
127
|
+
thor (1.1.0)
|
128
|
+
tomlrb (2.0.1)
|
129
|
+
tzinfo (2.0.4)
|
130
|
+
concurrent-ruby (~> 1.0)
|
131
|
+
unicode-display_width (2.0.0)
|
112
132
|
vcr (6.0.0)
|
113
|
-
webmock (3.
|
133
|
+
webmock (3.12.0)
|
114
134
|
addressable (>= 2.3.6)
|
115
135
|
crack (>= 0.3.2)
|
116
136
|
hashdiff (>= 0.4.0, < 2.0.0)
|
117
|
-
zeitwerk (2.
|
137
|
+
zeitwerk (2.4.2)
|
118
138
|
|
119
139
|
PLATFORMS
|
120
140
|
ruby
|
141
|
+
x86_64-darwin-19
|
142
|
+
x86_64-darwin-20
|
121
143
|
|
122
144
|
DEPENDENCIES
|
123
145
|
appraisal
|
@@ -137,4 +159,4 @@ DEPENDENCIES
|
|
137
159
|
webmock
|
138
160
|
|
139
161
|
BUNDLED WITH
|
140
|
-
2.
|
162
|
+
2.2.11
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -3,8 +3,10 @@
|
|
3
3
|
[![CircleCI](https://circleci.com/gh/evemonk/eve_online.svg?style=svg)](https://circleci.com/gh/evemonk/eve_online)
|
4
4
|
[![Gem Version](https://badge.fury.io/rb/eve_online.svg)](https://badge.fury.io/rb/eve_online)
|
5
5
|
[![Gem Downloads](https://img.shields.io/gem/dt/eve_online.svg)](https://rubygems.org/gems/eve_online)
|
6
|
-
[![
|
6
|
+
[![Known Vulnerabilities](https://snyk.io/test/github/evemonk/eve_online/badge.svg)](https://snyk.io/test/github/evemonk/eve_online)
|
7
7
|
[![security](https://hakiri.io/github/evemonk/eve_online/master.svg)](https://hakiri.io/github/evemonk/eve_online/master)
|
8
|
+
[![DeepSource](https://static.deepsource.io/deepsource-badge-light-mini.svg)](https://deepsource.io/gh/evemonk/eve_online/?ref=repository-badge)
|
9
|
+
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)
|
8
10
|
|
9
11
|
This gem implement Ruby API for EveOnline MMORPG (ESI).
|
10
12
|
|
@@ -48,15 +50,15 @@ gem install eve_online
|
|
48
50
|
|
49
51
|
## Supported ruby versions
|
50
52
|
|
51
|
-
* MRI 2.5
|
52
53
|
* MRI 2.6
|
53
54
|
* MRI 2.7
|
54
|
-
*
|
55
|
+
* MRI 3.0
|
55
56
|
|
56
57
|
## Supported rails versions
|
57
58
|
|
58
59
|
* 5.2
|
59
60
|
* 6.0
|
61
|
+
* 6.1
|
60
62
|
* Edge
|
61
63
|
|
62
64
|
## Usage examples
|
@@ -763,8 +765,98 @@ contracts.etag # => "6e18566a8f786f08aba678262360d0c74a783f9923aa43f8043133e4"
|
|
763
765
|
|
764
766
|
#### Get public contracts
|
765
767
|
|
768
|
+
```ruby
|
769
|
+
options = { region_id: 10_000_043, page: 1 }
|
770
|
+
|
771
|
+
contracts = EveOnline::ESI::PublicContracts.new(options)
|
772
|
+
|
773
|
+
contracts.scope # => nil
|
774
|
+
|
775
|
+
contracts.page # => 1
|
776
|
+
|
777
|
+
contracts.total_pages # => 4
|
778
|
+
|
779
|
+
contracts.contracts.size # => 1000
|
780
|
+
|
781
|
+
contract = contracts.contracts.first
|
782
|
+
|
783
|
+
contract.as_json # => {:buyout=>nil,
|
784
|
+
# :collateral=>0.0,
|
785
|
+
# :contract_id=>157834735,
|
786
|
+
# :date_expired=>Wed, 17 Jun 2020 21:36:41 UTC +00:00,
|
787
|
+
# :date_issued=>Wed, 20 May 2020 21:36:41 UTC +00:00,
|
788
|
+
# :days_to_complete=>0,
|
789
|
+
# :end_location_id=>60008494,
|
790
|
+
# :for_corporation=>true,
|
791
|
+
# :issuer_corporation_id=>897372069,
|
792
|
+
# :issuer_id=>1314102096,
|
793
|
+
# :price=>1250000000.0,
|
794
|
+
# :reward=>0.0,
|
795
|
+
# :start_location_id=>60008494,
|
796
|
+
# :title=>"Apostle Me10/Te16 Complete Bpc 10 Pack",
|
797
|
+
# :kind=>"item_exchange",
|
798
|
+
# :volume=>100.0}
|
799
|
+
|
800
|
+
contract.buyout # => nil
|
801
|
+
contract.collateral # => 0.0
|
802
|
+
contract.contract_id # => 157834735
|
803
|
+
contract.date_expired # => Wed, 17 Jun 2020 21:36:41 UTC +00:00
|
804
|
+
contract.date_issued # => Wed, 20 May 2020 21:36:41 UTC +00:00
|
805
|
+
contract.days_to_complete # => 0
|
806
|
+
contract.end_location_id # => 60008494
|
807
|
+
contract.for_corporation # => true
|
808
|
+
contract.issuer_corporation_id # => 897372069
|
809
|
+
contract.issuer_id # => 1314102096
|
810
|
+
contract.price # => 1250000000.0
|
811
|
+
contract.reward # => 0.0
|
812
|
+
contract.start_location_id # => 60008494
|
813
|
+
contract.title # => "Apostle Me10/Te16 Complete Bpc 10 Pack"
|
814
|
+
contract.kind # => "item_exchange"
|
815
|
+
contract.volume # => 100.0
|
816
|
+
|
817
|
+
contracts.etag # => "3f7fdf9a69e35bb35d619b6cb5043a2766d11ca6306a8b5af369ce6e"
|
818
|
+
```
|
819
|
+
|
766
820
|
#### Get public contract bids
|
767
821
|
|
822
|
+
```ruby
|
823
|
+
options = { contract_id: 157_872_948, page: 1 }
|
824
|
+
|
825
|
+
contract = EveOnline::ESI::PublicContract.new(options)
|
826
|
+
|
827
|
+
contract.scope # => nil
|
828
|
+
|
829
|
+
contract.page # => 1
|
830
|
+
|
831
|
+
contract.total_pages # => 1
|
832
|
+
|
833
|
+
contract.items.size # => 1
|
834
|
+
|
835
|
+
item = contract.items.first
|
836
|
+
|
837
|
+
item.as_json # => {:is_blueprint_copy=>true,
|
838
|
+
# :is_included=>true,
|
839
|
+
# :item_id=>1029552558074,
|
840
|
+
# :material_efficiency=>10,
|
841
|
+
# :quantity=>1,
|
842
|
+
# :record_id=>3210378611,
|
843
|
+
# :runs=>400,
|
844
|
+
# :time_efficiency=>20,
|
845
|
+
# :type_id=>29040}
|
846
|
+
|
847
|
+
item.is_blueprint_copy # => true
|
848
|
+
item.is_included # => true
|
849
|
+
item.item_id # => 1029552558074
|
850
|
+
item.material_efficiency # => 10
|
851
|
+
item.quantity # => 1
|
852
|
+
item.record_id # => 3210378611
|
853
|
+
item.runs # => 400
|
854
|
+
item.time_efficiency # => 20
|
855
|
+
item.type_id # => 29040
|
856
|
+
|
857
|
+
contract.etag # => "d458c3f56c114882a9ecfe1aaf173837310b15b6e7cef86a019e700f"
|
858
|
+
```
|
859
|
+
|
768
860
|
#### Get public contract items
|
769
861
|
|
770
862
|
#### Get corporation contracts
|
@@ -899,6 +991,20 @@ corporation_blueprints.roles # => ["Director"]
|
|
899
991
|
|
900
992
|
#### Get corporation members
|
901
993
|
|
994
|
+
```ruby
|
995
|
+
options = { token: 'token123', corporation_id: 98565696 }
|
996
|
+
|
997
|
+
corporation_members = EveOnline::ESI::CorporationMembers.new(options)
|
998
|
+
|
999
|
+
corporation_members.scope # => "esi-corporations.read_corporation_membership.v1"
|
1000
|
+
|
1001
|
+
corporation_members.character_ids.size # => 118
|
1002
|
+
|
1003
|
+
corporation_members.character_ids.first # => 2114220544
|
1004
|
+
|
1005
|
+
corporation_members.etag # => "6094aeb7f2c2754a7d1f210eed73f1f858042330852fac847a477a59"
|
1006
|
+
```
|
1007
|
+
|
902
1008
|
#### Get corporation member limit
|
903
1009
|
|
904
1010
|
#### Get corporation's members' titles
|
@@ -2298,12 +2404,12 @@ races.races.size # => 4
|
|
2298
2404
|
|
2299
2405
|
race = races.races.first
|
2300
2406
|
|
2301
|
-
race.as_json # => {:
|
2407
|
+
race.as_json # => {:faction_id=>500002,
|
2302
2408
|
# :description=>"Once a thriving tribal civilization, the Minmatar...",
|
2303
2409
|
# :name=>"Minmatar",
|
2304
2410
|
# :race_id=>2}
|
2305
2411
|
|
2306
|
-
race.
|
2412
|
+
race.faction_id # => 500002
|
2307
2413
|
race.description # => "Once a thriving tribal civilization, the Minmatar..."
|
2308
2414
|
race.name # => "Minmatar"
|
2309
2415
|
race.race_id # => 2
|