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.
@@ -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.34.0"
4
+ VERSION = "0.38.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.34.0
4
+ version: 0.38.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-09 00:00:00.000000000 Z
11
+ date: 2021-02-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -136,6 +136,34 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: faraday
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: faraday_middleware
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
139
167
  - !ruby/object:Gem::Dependency
140
168
  name: activesupport
141
169
  requirement: !ruby/object:Gem::Requirement
@@ -158,16 +186,17 @@ extensions: []
158
186
  extra_rdoc_files: []
159
187
  files:
160
188
  - ".circleci/config.yml"
189
+ - ".deepsource.toml"
190
+ - ".fasterer.yml"
161
191
  - ".github/FUNDING.yml"
162
192
  - ".gitignore"
163
193
  - ".mdlrc"
164
194
  - ".ruby-version"
195
+ - ".standard.yml"
165
196
  - Appraisals
166
197
  - CHANGELOG.md
167
198
  - Gemfile
168
199
  - Gemfile.lock
169
- - Gemfile.mutant
170
- - Gemfile.mutant.lock
171
200
  - LICENSE.txt
172
201
  - README.md
173
202
  - Rakefile
@@ -218,12 +247,14 @@ files:
218
247
  - lib/eve_online/esi/corporation_industry_jobs.rb
219
248
  - lib/eve_online/esi/corporation_killmails_recent.rb
220
249
  - lib/eve_online/esi/corporation_loyalty_store_offers.rb
250
+ - lib/eve_online/esi/corporation_members.rb
221
251
  - lib/eve_online/esi/corporation_npc.rb
222
252
  - lib/eve_online/esi/corporation_orders.rb
223
253
  - lib/eve_online/esi/dogma_attribute.rb
224
254
  - lib/eve_online/esi/dogma_attributes.rb
225
255
  - lib/eve_online/esi/dogma_effect.rb
226
256
  - lib/eve_online/esi/dogma_effects.rb
257
+ - lib/eve_online/esi/faraday_middlewares/raise_errors.rb
227
258
  - lib/eve_online/esi/killmail.rb
228
259
  - lib/eve_online/esi/market_group.rb
229
260
  - lib/eve_online/esi/market_groups.rb
@@ -296,6 +327,8 @@ files:
296
327
  - lib/eve_online/esi/models/planet_short.rb
297
328
  - lib/eve_online/esi/models/planets.rb
298
329
  - lib/eve_online/esi/models/position.rb
330
+ - lib/eve_online/esi/models/public_contract.rb
331
+ - lib/eve_online/esi/models/public_contract_item.rb
299
332
  - lib/eve_online/esi/models/race.rb
300
333
  - lib/eve_online/esi/models/region.rb
301
334
  - lib/eve_online/esi/models/server_status.rb
@@ -312,6 +345,8 @@ files:
312
345
  - lib/eve_online/esi/models/wallet_journal.rb
313
346
  - lib/eve_online/esi/models/wallet_transaction.rb
314
347
  - lib/eve_online/esi/models/war.rb
348
+ - lib/eve_online/esi/public_contract.rb
349
+ - lib/eve_online/esi/public_contracts.rb
315
350
  - lib/eve_online/esi/server_status.rb
316
351
  - lib/eve_online/esi/universe_ancestries.rb
317
352
  - lib/eve_online/esi/universe_asteroid_belt.rb
@@ -357,7 +392,6 @@ files:
357
392
  - lib/eve_online/exceptions/unauthorized.rb
358
393
  - lib/eve_online/formulas/blueprint_copy_time.rb
359
394
  - lib/eve_online/version.rb
360
- - mutant.sh
361
395
  homepage: https://github.com/evemonk/eve_online
362
396
  licenses:
363
397
  - MIT
@@ -375,15 +409,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
375
409
  requirements:
376
410
  - - ">="
377
411
  - !ruby/object:Gem::Version
378
- version: '2.5'
412
+ version: '2.6'
379
413
  required_rubygems_version: !ruby/object:Gem::Requirement
380
414
  requirements:
381
415
  - - ">="
382
416
  - !ruby/object:Gem::Version
383
417
  version: '0'
384
418
  requirements: []
385
- rubygems_version: 3.1.2
419
+ rubygems_version: 3.2.11
386
420
  signing_key:
387
421
  specification_version: 4
388
- summary: EveOnline ESI API.
422
+ summary: EveOnline ESI API
389
423
  test_files: []
data/Gemfile.mutant DELETED
@@ -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'
data/Gemfile.mutant.lock DELETED
@@ -1,155 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- eve_online (0.34.0)
5
- activesupport (>= 5.2.0)
6
-
7
- GEM
8
- remote: https://rubygems.org/
9
- specs:
10
- abstract_type (0.0.7)
11
- activesupport (6.0.3.1)
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.3.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.3)
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.1)
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.5)
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.2)
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 (6.0.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
data/mutant.sh DELETED
@@ -1,4 +0,0 @@
1
- #! /bin/sh
2
-
3
- BUNDLE_GEMFILE=Gemfile.mutant bundle exec mutant --include lib --require eve_online --use rspec EveOnline*
4
-