eve_online 0.33.0 → 0.37.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,98 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ module Models
6
+ class PublicContract < Base
7
+ def as_json
8
+ {
9
+ buyout: buyout,
10
+ collateral: collateral,
11
+ contract_id: contract_id,
12
+ date_expired: date_expired,
13
+ date_issued: date_issued,
14
+ days_to_complete: days_to_complete,
15
+ end_location_id: end_location_id,
16
+ for_corporation: for_corporation,
17
+ issuer_corporation_id: issuer_corporation_id,
18
+ issuer_id: issuer_id,
19
+ price: price,
20
+ reward: reward,
21
+ start_location_id: start_location_id,
22
+ title: title,
23
+ kind: kind,
24
+ volume: volume
25
+ }
26
+ end
27
+
28
+ def buyout
29
+ options["buyout"]
30
+ end
31
+
32
+ def collateral
33
+ options["collateral"]
34
+ end
35
+
36
+ def contract_id
37
+ options["contract_id"]
38
+ end
39
+
40
+ def date_expired
41
+ date_expired = options["date_expired"]
42
+
43
+ parse_datetime_with_timezone(date_expired) if date_expired
44
+ end
45
+
46
+ def date_issued
47
+ date_issued = options["date_issued"]
48
+
49
+ parse_datetime_with_timezone(date_issued) if date_issued
50
+ end
51
+
52
+ def days_to_complete
53
+ options["days_to_complete"]
54
+ end
55
+
56
+ def end_location_id
57
+ options["end_location_id"]
58
+ end
59
+
60
+ def for_corporation
61
+ options["for_corporation"]
62
+ end
63
+
64
+ def issuer_corporation_id
65
+ options["issuer_corporation_id"]
66
+ end
67
+
68
+ def issuer_id
69
+ options["issuer_id"]
70
+ end
71
+
72
+ def price
73
+ options["price"]
74
+ end
75
+
76
+ def reward
77
+ options["reward"]
78
+ end
79
+
80
+ def start_location_id
81
+ options["start_location_id"]
82
+ end
83
+
84
+ def title
85
+ options["title"]
86
+ end
87
+
88
+ def kind
89
+ options["type"]
90
+ end
91
+
92
+ def volume
93
+ options["volume"]
94
+ end
95
+ end
96
+ end
97
+ end
98
+ end
@@ -0,0 +1,59 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ module Models
6
+ class PublicContractItem < Base
7
+ def as_json
8
+ {
9
+ is_blueprint_copy: is_blueprint_copy,
10
+ is_included: is_included,
11
+ item_id: item_id,
12
+ material_efficiency: material_efficiency,
13
+ quantity: quantity,
14
+ record_id: record_id,
15
+ runs: runs,
16
+ time_efficiency: time_efficiency,
17
+ type_id: type_id
18
+ }
19
+ end
20
+
21
+ def is_blueprint_copy
22
+ options["is_blueprint_copy"]
23
+ end
24
+
25
+ def is_included
26
+ options["is_included"]
27
+ end
28
+
29
+ def item_id
30
+ options["item_id"]
31
+ end
32
+
33
+ def material_efficiency
34
+ options["material_efficiency"]
35
+ end
36
+
37
+ def quantity
38
+ options["quantity"]
39
+ end
40
+
41
+ def record_id
42
+ options["record_id"]
43
+ end
44
+
45
+ def runs
46
+ options["runs"]
47
+ end
48
+
49
+ def time_efficiency
50
+ options["time_efficiency"]
51
+ end
52
+
53
+ def type_id
54
+ options["type_id"]
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -6,14 +6,14 @@ module EveOnline
6
6
  class Race < Base
7
7
  def as_json
8
8
  {
9
- alliance_id: alliance_id,
9
+ faction_id: faction_id,
10
10
  description: description,
11
11
  name: name,
12
12
  race_id: race_id
13
13
  }
14
14
  end
15
15
 
16
- def alliance_id
16
+ def faction_id
17
17
  options["alliance_id"]
18
18
  end
19
19
 
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ class PublicContract < Base
6
+ API_PATH = "/v1/contracts/public/items/%<contract_id>s/"
7
+
8
+ attr_reader :contract_id, :page
9
+
10
+ def initialize(options)
11
+ super
12
+
13
+ @contract_id = options.fetch(:contract_id)
14
+ @page = options.fetch(:page, 1)
15
+ end
16
+
17
+ def items
18
+ @items ||=
19
+ begin
20
+ output = []
21
+ response.each do |item|
22
+ output << Models::PublicContractItem.new(item)
23
+ end
24
+ output
25
+ end
26
+ end
27
+
28
+ def scope
29
+ end
30
+
31
+ def additional_query_params
32
+ [:page]
33
+ end
34
+
35
+ def path
36
+ format(API_PATH, contract_id: contract_id)
37
+ end
38
+ end
39
+ end
40
+ end
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ module EveOnline
4
+ module ESI
5
+ class PublicContracts < Base
6
+ API_PATH = "/v1/contracts/public/%<region_id>s/"
7
+
8
+ attr_reader :region_id, :page
9
+
10
+ def initialize(options)
11
+ super
12
+
13
+ @region_id = options.fetch(:region_id)
14
+ @page = options.fetch(:page, 1)
15
+ end
16
+
17
+ def contracts
18
+ @contracts ||=
19
+ begin
20
+ output = []
21
+ response.each do |contract|
22
+ output << Models::PublicContract.new(contract)
23
+ end
24
+ output
25
+ end
26
+ end
27
+
28
+ def scope
29
+ end
30
+
31
+ def additional_query_params
32
+ [:page]
33
+ end
34
+
35
+ def path
36
+ format(API_PATH, region_id: region_id)
37
+ end
38
+ end
39
+ end
40
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module EveOnline
4
- VERSION = "0.33.0"
4
+ VERSION = "0.37.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.33.0
4
+ version: 0.37.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Igor Zubkov
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-05-07 00:00:00.000000000 Z
11
+ date: 2021-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - ">="
144
144
  - !ruby/object:Gem::Version
145
- version: 4.2.0
145
+ version: 5.2.0
146
146
  type: :runtime
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - ">="
151
151
  - !ruby/object:Gem::Version
152
- version: 4.2.0
152
+ version: 5.2.0
153
153
  description: EveOnline ESI API.
154
154
  email:
155
155
  - igor.zubkov@gmail.com
@@ -158,16 +158,16 @@ extensions: []
158
158
  extra_rdoc_files: []
159
159
  files:
160
160
  - ".circleci/config.yml"
161
+ - ".deepsource.toml"
161
162
  - ".github/FUNDING.yml"
162
163
  - ".gitignore"
163
164
  - ".mdlrc"
164
165
  - ".ruby-version"
166
+ - ".standard.yml"
165
167
  - Appraisals
166
168
  - CHANGELOG.md
167
169
  - Gemfile
168
170
  - Gemfile.lock
169
- - Gemfile.mutant
170
- - Gemfile.mutant.lock
171
171
  - LICENSE.txt
172
172
  - README.md
173
173
  - Rakefile
@@ -218,6 +218,7 @@ files:
218
218
  - lib/eve_online/esi/corporation_industry_jobs.rb
219
219
  - lib/eve_online/esi/corporation_killmails_recent.rb
220
220
  - lib/eve_online/esi/corporation_loyalty_store_offers.rb
221
+ - lib/eve_online/esi/corporation_members.rb
221
222
  - lib/eve_online/esi/corporation_npc.rb
222
223
  - lib/eve_online/esi/corporation_orders.rb
223
224
  - lib/eve_online/esi/dogma_attribute.rb
@@ -296,6 +297,8 @@ files:
296
297
  - lib/eve_online/esi/models/planet_short.rb
297
298
  - lib/eve_online/esi/models/planets.rb
298
299
  - lib/eve_online/esi/models/position.rb
300
+ - lib/eve_online/esi/models/public_contract.rb
301
+ - lib/eve_online/esi/models/public_contract_item.rb
299
302
  - lib/eve_online/esi/models/race.rb
300
303
  - lib/eve_online/esi/models/region.rb
301
304
  - lib/eve_online/esi/models/server_status.rb
@@ -312,6 +315,8 @@ files:
312
315
  - lib/eve_online/esi/models/wallet_journal.rb
313
316
  - lib/eve_online/esi/models/wallet_transaction.rb
314
317
  - lib/eve_online/esi/models/war.rb
318
+ - lib/eve_online/esi/public_contract.rb
319
+ - lib/eve_online/esi/public_contracts.rb
315
320
  - lib/eve_online/esi/server_status.rb
316
321
  - lib/eve_online/esi/universe_ancestries.rb
317
322
  - lib/eve_online/esi/universe_asteroid_belt.rb
@@ -357,7 +362,6 @@ files:
357
362
  - lib/eve_online/exceptions/unauthorized.rb
358
363
  - lib/eve_online/formulas/blueprint_copy_time.rb
359
364
  - lib/eve_online/version.rb
360
- - mutant.sh
361
365
  homepage: https://github.com/evemonk/eve_online
362
366
  licenses:
363
367
  - MIT
@@ -367,7 +371,7 @@ metadata:
367
371
  documentation_uri: https://github.com/evemonk/eve_online/blob/master/README.md
368
372
  homepage_uri: https://github.com/evemonk/eve_online
369
373
  source_code_uri: https://github.com/evemonk/eve_online
370
- post_install_message:
374
+ post_install_message:
371
375
  rdoc_options: []
372
376
  require_paths:
373
377
  - lib
@@ -382,8 +386,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
382
386
  - !ruby/object:Gem::Version
383
387
  version: '0'
384
388
  requirements: []
385
- rubygems_version: 3.1.2
386
- signing_key:
389
+ rubygems_version: 3.2.3
390
+ signing_key:
387
391
  specification_version: 4
388
392
  summary: EveOnline ESI API.
389
393
  test_files: []
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in eveonline.gemspec
6
- gemspec
7
-
8
- gem 'nokogiri'
9
- gem 'mutant'
10
- gem 'mutant-rspec'
@@ -1,155 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- eve_online (0.33.0)
5
- activesupport (>= 4.2.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- abstract_type (0.0.7)
11
- activesupport (6.0.3)
12
- concurrent-ruby (~> 1.0, >= 1.0.2)
13
- i18n (>= 0.7, < 2)
14
- minitest (~> 5.1)
15
- tzinfo (~> 1.1)
16
- zeitwerk (~> 2.2, >= 2.2.2)
17
- adamantium (0.2.0)
18
- ice_nine (~> 0.11.0)
19
- memoizable (~> 0.4.0)
20
- addressable (2.7.0)
21
- public_suffix (>= 2.0.2, < 5.0)
22
- anima (0.3.1)
23
- abstract_type (~> 0.0.7)
24
- adamantium (~> 0.2)
25
- equalizer (~> 0.0.11)
26
- appraisal (2.2.0)
27
- bundler
28
- rake
29
- thor (>= 0.14.0)
30
- ast (2.4.0)
31
- concord (0.1.5)
32
- adamantium (~> 0.2.0)
33
- equalizer (~> 0.0.9)
34
- concurrent-ruby (1.1.6)
35
- crack (0.4.3)
36
- safe_yaml (~> 1.0.0)
37
- diff-lcs (1.3)
38
- docile (1.3.2)
39
- equalizer (0.0.11)
40
- hashdiff (1.0.1)
41
- i18n (1.8.2)
42
- concurrent-ruby (~> 1.0)
43
- ice_nine (0.11.2)
44
- kramdown (2.2.1)
45
- rexml
46
- kramdown-parser-gfm (1.1.0)
47
- kramdown (~> 2.0)
48
- mdl (0.9.0)
49
- kramdown (~> 2.0)
50
- kramdown-parser-gfm (~> 1.0)
51
- mixlib-cli (~> 2.1, >= 2.1.1)
52
- mixlib-config (>= 2.2.1, < 4)
53
- memoizable (0.4.2)
54
- thread_safe (~> 0.3, >= 0.3.1)
55
- mini_portile2 (2.4.0)
56
- minitest (5.14.0)
57
- mixlib-cli (2.1.6)
58
- mixlib-config (3.0.6)
59
- tomlrb
60
- mprelude (0.1.0)
61
- abstract_type (~> 0.0.7)
62
- adamantium (~> 0.2.0)
63
- concord (~> 0.1.5)
64
- equalizer (~> 0.0.9)
65
- ice_nine (~> 0.11.1)
66
- procto (~> 0.0.2)
67
- mutant (0.9.6)
68
- abstract_type (~> 0.0.7)
69
- adamantium (~> 0.2.0)
70
- anima (~> 0.3.1)
71
- ast (~> 2.2)
72
- concord (~> 0.1.5)
73
- diff-lcs (~> 1.3)
74
- equalizer (~> 0.0.9)
75
- ice_nine (~> 0.11.1)
76
- memoizable (~> 0.4.2)
77
- mprelude (~> 0.1.0)
78
- parser (~> 2.7.0.2)
79
- procto (~> 0.0.2)
80
- unparser (~> 0.4.6)
81
- variable (~> 0.0.1)
82
- mutant-rspec (0.9.5)
83
- mutant (~> 0.9.5)
84
- rspec-core (>= 3.8.0, < 4.0.0)
85
- nokogiri (1.10.9)
86
- mini_portile2 (~> 2.4.0)
87
- parser (2.7.0.5)
88
- ast (~> 2.4.0)
89
- procto (0.0.3)
90
- public_suffix (4.0.4)
91
- rake (13.0.1)
92
- rexml (3.2.4)
93
- rspec (3.9.0)
94
- rspec-core (~> 3.9.0)
95
- rspec-expectations (~> 3.9.0)
96
- rspec-mocks (~> 3.9.0)
97
- rspec-core (3.9.2)
98
- rspec-support (~> 3.9.3)
99
- rspec-expectations (3.9.1)
100
- diff-lcs (>= 1.2.0, < 2.0)
101
- rspec-support (~> 3.9.0)
102
- rspec-its (1.3.0)
103
- rspec-core (>= 3.0.0)
104
- rspec-expectations (>= 3.0.0)
105
- rspec-mocks (3.9.1)
106
- diff-lcs (>= 1.2.0, < 2.0)
107
- rspec-support (~> 3.9.0)
108
- rspec-support (3.9.3)
109
- safe_yaml (1.0.5)
110
- simplecov (0.18.5)
111
- docile (~> 1.1)
112
- simplecov-html (~> 0.11)
113
- simplecov-html (0.12.2)
114
- thor (1.0.1)
115
- thread_safe (0.3.6)
116
- tomlrb (1.3.0)
117
- tzinfo (1.2.7)
118
- thread_safe (~> 0.1)
119
- unparser (0.4.7)
120
- abstract_type (~> 0.0.7)
121
- adamantium (~> 0.2.0)
122
- concord (~> 0.1.5)
123
- diff-lcs (~> 1.3)
124
- equalizer (~> 0.0.9)
125
- parser (>= 2.6.5)
126
- procto (~> 0.0.2)
127
- variable (0.0.1)
128
- equalizer (~> 0.0.11)
129
- vcr (5.1.0)
130
- webmock (3.8.3)
131
- addressable (>= 2.3.6)
132
- crack (>= 0.3.2)
133
- hashdiff (>= 0.4.0, < 2.0.0)
134
- zeitwerk (2.3.0)
135
-
136
- PLATFORMS
137
- ruby
138
-
139
- DEPENDENCIES
140
- appraisal
141
- bundler
142
- eve_online!
143
- mdl
144
- mutant
145
- mutant-rspec
146
- nokogiri
147
- rake
148
- rspec
149
- rspec-its
150
- simplecov
151
- vcr
152
- webmock
153
-
154
- BUNDLED WITH
155
- 2.1.4