eve_online 0.35.1 → 0.36.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9123bed8af1eec1b5acd826bc1bac8c1c97a55d10a97f7018758dd477690220
4
- data.tar.gz: 8c75adc4f6606db348bc3d0818669729c4ec3efbd52778635b04e49bd41a0c5d
3
+ metadata.gz: ea744697f6be18627f2e0e4d74b6610bc7ad4f8a69fc8aef52ea0cfbe6ab77d7
4
+ data.tar.gz: 9019ee5be2147bbd0e6a5c2736906bde31241406882d64ce928a113b2489d704
5
5
  SHA512:
6
- metadata.gz: fc26ba8fbf1c1646ebfd6aaef1058da05e5de7aaa28fcc4c2f53e4d174fd1d22e8231d81d641132f5b799367f49b00c89dbaa90ef8c305e7da90c1abc0ee9819
7
- data.tar.gz: 19932dd1f755ae058a849c469eebdea52bc45d4e53b7ccd4e1b1db9cafc64116c30e0bbb3642b7a658c80f1eaf54e1b9895d181b8664905cb16bae988ad48ab4
6
+ metadata.gz: 0645c8fe9df0fb9519f8d1c85d45de0b751ee6fad5474c30f4130faada392798c0d906e69d0a36b5291d99c53df3018433b3b5b69049281b056d0605a47cf57f
7
+ data.tar.gz: fb5aa10688942214ea9fc9cafa6c150e064d65f500a475a90fae9a0eea1a3394c19cf42c0e89e2e834ad93ef8e4e506fb45821602e2ef53a78ce9f17a2b82b1c
@@ -37,26 +37,11 @@ jobs:
37
37
  - run: bundle exec appraisal rake
38
38
  - run: bundle exec standardrb
39
39
  - run: bundle exec mdl README.md CHANGELOG.md TODO.md
40
- jruby-9.2.11.1:
41
- docker:
42
- - image: circleci/jruby:9.2.11.1
43
- environment:
44
- JRUBY_OPTS: "--debug -J-Xmn1024m -J-Xms2048m -J-Xmx2048m"
45
- steps:
46
- - checkout
47
- - run: rm Gemfile.lock
48
- - run: rm .ruby-version
49
- - run: bundle install
50
- - run: bundle exec appraisal install || true
51
- - run: bundle exec appraisal rake
52
- - run: bundle exec standardrb
53
- - run: bundle exec mdl README.md CHANGELOG.md TODO.md
54
40
 
55
41
  workflows:
56
42
  version: 2
57
43
  tests:
58
44
  jobs:
59
- - jruby-9.2.11.1
60
45
  - ruby-2.5.8
61
46
  - ruby-2.6.6
62
47
  - ruby-2.7.1
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## v0.36.0
4
+
5
+ * Drop JRuby support
6
+ * Add `EveOnline::ESI::CorporationMembers`
7
+
3
8
  ## v0.35.1
4
9
 
5
10
  * Rename `EveOnline::ESI::Models::PublicContract#type` to `#kind`. Fix Rails STI.
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.35.1)
4
+ eve_online (0.36.0)
5
5
  activesupport (>= 5.2.0)
6
6
 
7
7
  GEM
@@ -21,35 +21,39 @@ GEM
21
21
  thor (>= 0.14.0)
22
22
  ast (2.4.1)
23
23
  awesome_print (1.8.0)
24
+ chef-utils (16.4.41)
24
25
  coderay (1.1.3)
25
26
  colorize (0.8.1)
26
- concurrent-ruby (1.1.6)
27
+ concurrent-ruby (1.1.7)
27
28
  crack (0.4.3)
28
29
  safe_yaml (~> 1.0.0)
29
- diff-lcs (1.3)
30
+ diff-lcs (1.4.4)
30
31
  docile (1.3.2)
31
32
  fasterer (0.8.3)
32
33
  colorize (~> 0.7)
33
34
  ruby_parser (>= 3.14.1)
34
35
  hashdiff (1.0.1)
35
- i18n (1.8.3)
36
+ i18n (1.8.5)
36
37
  concurrent-ruby (~> 1.0)
37
- kramdown (2.2.1)
38
+ kramdown (2.3.0)
38
39
  rexml
39
40
  kramdown-parser-gfm (1.1.0)
40
41
  kramdown (~> 2.0)
41
- mdl (0.9.0)
42
- kramdown (~> 2.0)
43
- kramdown-parser-gfm (~> 1.0)
42
+ mdl (0.10.0)
43
+ kramdown (~> 2.3)
44
+ kramdown-parser-gfm (~> 1.1)
44
45
  mixlib-cli (~> 2.1, >= 2.1.1)
45
46
  mixlib-config (>= 2.2.1, < 4)
47
+ mixlib-shellout
46
48
  method_source (1.0.0)
47
49
  mini_portile2 (2.4.0)
48
50
  minitest (5.14.1)
49
- mixlib-cli (2.1.6)
50
- mixlib-config (3.0.6)
51
+ mixlib-cli (2.1.8)
52
+ mixlib-config (3.0.9)
51
53
  tomlrb
52
- nokogiri (1.10.9)
54
+ mixlib-shellout (3.1.4)
55
+ chef-utils
56
+ nokogiri (1.10.10)
53
57
  mini_portile2 (~> 2.4.0)
54
58
  parallel (1.19.2)
55
59
  parser (2.7.1.4)
@@ -87,8 +91,8 @@ GEM
87
91
  rubocop-ast (>= 0.0.3)
88
92
  ruby-progressbar (~> 1.7)
89
93
  unicode-display_width (>= 1.4.0, < 2.0)
90
- rubocop-ast (0.0.3)
91
- parser (>= 2.7.0.1)
94
+ rubocop-ast (0.3.0)
95
+ parser (>= 2.7.1.4)
92
96
  rubocop-performance (1.6.1)
93
97
  rubocop (>= 0.71.0)
94
98
  ruby-progressbar (1.10.1)
@@ -96,7 +100,7 @@ GEM
96
100
  sexp_processor (~> 4.9)
97
101
  safe_yaml (1.0.5)
98
102
  sexp_processor (4.15.0)
99
- simplecov (0.18.5)
103
+ simplecov (0.19.0)
100
104
  docile (~> 1.1)
101
105
  simplecov-html (~> 0.11)
102
106
  simplecov-html (0.12.2)
@@ -114,7 +118,7 @@ GEM
114
118
  addressable (>= 2.3.6)
115
119
  crack (>= 0.3.2)
116
120
  hashdiff (>= 0.4.0, < 2.0.0)
117
- zeitwerk (2.3.0)
121
+ zeitwerk (2.4.0)
118
122
 
119
123
  PLATFORMS
120
124
  ruby
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- eve_online (0.35.1)
4
+ eve_online (0.36.0)
5
5
  activesupport (>= 5.2.0)
6
6
 
7
7
  GEM
@@ -28,35 +28,39 @@ GEM
28
28
  rake
29
29
  thor (>= 0.14.0)
30
30
  ast (2.4.1)
31
+ chef-utils (16.4.41)
31
32
  concord (0.1.5)
32
33
  adamantium (~> 0.2.0)
33
34
  equalizer (~> 0.0.9)
34
- concurrent-ruby (1.1.6)
35
+ concurrent-ruby (1.1.7)
35
36
  crack (0.4.3)
36
37
  safe_yaml (~> 1.0.0)
37
38
  diff-lcs (1.3)
38
39
  docile (1.3.2)
39
40
  equalizer (0.0.11)
40
41
  hashdiff (1.0.1)
41
- i18n (1.8.3)
42
+ i18n (1.8.5)
42
43
  concurrent-ruby (~> 1.0)
43
44
  ice_nine (0.11.2)
44
- kramdown (2.2.1)
45
+ kramdown (2.3.0)
45
46
  rexml
46
47
  kramdown-parser-gfm (1.1.0)
47
48
  kramdown (~> 2.0)
48
- mdl (0.9.0)
49
- kramdown (~> 2.0)
50
- kramdown-parser-gfm (~> 1.0)
49
+ mdl (0.10.0)
50
+ kramdown (~> 2.3)
51
+ kramdown-parser-gfm (~> 1.1)
51
52
  mixlib-cli (~> 2.1, >= 2.1.1)
52
53
  mixlib-config (>= 2.2.1, < 4)
54
+ mixlib-shellout
53
55
  memoizable (0.4.2)
54
56
  thread_safe (~> 0.3, >= 0.3.1)
55
57
  mini_portile2 (2.4.0)
56
58
  minitest (5.14.1)
57
- mixlib-cli (2.1.6)
58
- mixlib-config (3.0.6)
59
+ mixlib-cli (2.1.8)
60
+ mixlib-config (3.0.9)
59
61
  tomlrb
62
+ mixlib-shellout (3.1.4)
63
+ chef-utils
60
64
  mprelude (0.1.0)
61
65
  abstract_type (~> 0.0.7)
62
66
  adamantium (~> 0.2.0)
@@ -64,28 +68,28 @@ GEM
64
68
  equalizer (~> 0.0.9)
65
69
  ice_nine (~> 0.11.1)
66
70
  procto (~> 0.0.2)
67
- mutant (0.9.6)
71
+ mutant (0.9.8)
68
72
  abstract_type (~> 0.0.7)
69
73
  adamantium (~> 0.2.0)
70
74
  anima (~> 0.3.1)
71
75
  ast (~> 2.2)
72
76
  concord (~> 0.1.5)
73
- diff-lcs (~> 1.3)
77
+ diff-lcs (= 1.3)
74
78
  equalizer (~> 0.0.9)
75
79
  ice_nine (~> 0.11.1)
76
80
  memoizable (~> 0.4.2)
77
81
  mprelude (~> 0.1.0)
78
- parser (~> 2.7.0.2)
82
+ parser (~> 2.7.1)
79
83
  procto (~> 0.0.2)
80
84
  unparser (~> 0.4.6)
81
85
  variable (~> 0.0.1)
82
86
  mutant-rspec (0.9.5)
83
87
  mutant (~> 0.9.5)
84
88
  rspec-core (>= 3.8.0, < 4.0.0)
85
- nokogiri (1.10.9)
89
+ nokogiri (1.10.10)
86
90
  mini_portile2 (~> 2.4.0)
87
- parser (2.7.0.5)
88
- ast (~> 2.4.0)
91
+ parser (2.7.1.4)
92
+ ast (~> 2.4.1)
89
93
  procto (0.0.3)
90
94
  public_suffix (4.0.5)
91
95
  rake (13.0.1)
@@ -107,7 +111,7 @@ GEM
107
111
  rspec-support (~> 3.9.0)
108
112
  rspec-support (3.9.3)
109
113
  safe_yaml (1.0.5)
110
- simplecov (0.18.5)
114
+ simplecov (0.19.0)
111
115
  docile (~> 1.1)
112
116
  simplecov-html (~> 0.11)
113
117
  simplecov-html (0.12.2)
@@ -131,7 +135,7 @@ GEM
131
135
  addressable (>= 2.3.6)
132
136
  crack (>= 0.3.2)
133
137
  hashdiff (>= 0.4.0, < 2.0.0)
134
- zeitwerk (2.3.0)
138
+ zeitwerk (2.4.0)
135
139
 
136
140
  PLATFORMS
137
141
  ruby
data/README.md CHANGED
@@ -52,7 +52,6 @@ gem install eve_online
52
52
  * MRI 2.5
53
53
  * MRI 2.6
54
54
  * MRI 2.7
55
- * JRuby 9.2.11.1
56
55
 
57
56
  ## Supported rails versions
58
57
 
@@ -990,6 +989,20 @@ corporation_blueprints.roles # => ["Director"]
990
989
 
991
990
  #### Get corporation members
992
991
 
992
+ ```ruby
993
+ options = { token: 'token123', corporation_id: 98565696 }
994
+
995
+ corporation_members = EveOnline::ESI::CorporationMembers.new(options)
996
+
997
+ corporation_members.scope # => "esi-corporations.read_corporation_membership.v1"
998
+
999
+ corporation_members.character_ids.size # => 118
1000
+
1001
+ corporation_members.character_ids.first # => 2114220544
1002
+
1003
+ corporation_members.etag # => "6094aeb7f2c2754a7d1f210eed73f1f858042330852fac847a477a59"
1004
+ ```
1005
+
993
1006
  #### Get corporation member limit
994
1007
 
995
1008
  #### Get corporation's members' titles
@@ -52,6 +52,7 @@ require "eve_online/esi/public_contract"
52
52
  require "eve_online/esi/corporation"
53
53
  require "eve_online/esi/corporation_alliance_history"
54
54
  require "eve_online/esi/corporation_blueprints"
55
+ require "eve_online/esi/corporation_members"
55
56
  require "eve_online/esi/corporation_npc"
56
57
 
57
58
  require "eve_online/esi/dogma_attributes"
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ class CorporationMembers < Base
6
+ API_PATH = "/v3/corporations/%<corporation_id>s/members/"
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 character_ids
17
+ response
18
+ end
19
+
20
+ def scope
21
+ "esi-corporations.read_corporation_membership.v1"
22
+ end
23
+
24
+ def path
25
+ format(API_PATH, corporation_id: corporation_id)
26
+ end
27
+ end
28
+ end
29
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveOnline
4
- VERSION = "0.35.1"
4
+ VERSION = "0.36.0"
5
5
  end
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.35.1
4
+ version: 0.36.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: 2020-06-20 00:00:00.000000000 Z
11
+ date: 2020-08-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -219,6 +219,7 @@ files:
219
219
  - lib/eve_online/esi/corporation_industry_jobs.rb
220
220
  - lib/eve_online/esi/corporation_killmails_recent.rb
221
221
  - lib/eve_online/esi/corporation_loyalty_store_offers.rb
222
+ - lib/eve_online/esi/corporation_members.rb
222
223
  - lib/eve_online/esi/corporation_npc.rb
223
224
  - lib/eve_online/esi/corporation_orders.rb
224
225
  - lib/eve_online/esi/dogma_attribute.rb
@@ -387,7 +388,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
387
388
  - !ruby/object:Gem::Version
388
389
  version: '0'
389
390
  requirements: []
390
- rubygems_version: 3.1.2
391
+ rubygems_version: 3.1.4
391
392
  signing_key:
392
393
  specification_version: 4
393
394
  summary: EveOnline ESI API.