esi 0.1.15 → 0.1.16
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 +4 -4
- data/lib/esi/calls.rb +26 -3
- data/lib/esi/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 73cbcd135ad400abf7b1a97762d8c8b9b0fd12f4
|
|
4
|
+
data.tar.gz: 2885d29337baf908e2e1f2204234b6b6f5d2b347
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: edc6f1ec57905e18a97f7fa77da68e27e534dcaec9a8acc259f93692697dffa741259c3633d944e47c17f733e4c78d4e89e556bc94a4d57ef9ac919cc8d436dd
|
|
7
|
+
data.tar.gz: 75dc712c9d73593acbe8db5ffbf167ac240732bf21ae0c1c8fbbd1226febc807027c1ed08bc2105fe368ebafa339aec410a6d9cda254581eae657dbb25be5a82
|
data/lib/esi/calls.rb
CHANGED
|
@@ -51,6 +51,30 @@ module Esi
|
|
|
51
51
|
end
|
|
52
52
|
end
|
|
53
53
|
|
|
54
|
+
class Regions < Base
|
|
55
|
+
def initialize
|
|
56
|
+
@path = "/universe/regions/#{region_id}"
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
|
|
60
|
+
class Region < Base
|
|
61
|
+
def initialize(region_id)
|
|
62
|
+
@path = "/universe/regions/#{region_id}"
|
|
63
|
+
end
|
|
64
|
+
end
|
|
65
|
+
|
|
66
|
+
class Constellations < Base
|
|
67
|
+
def initialize
|
|
68
|
+
@path = "/universe/constellations"
|
|
69
|
+
end
|
|
70
|
+
end
|
|
71
|
+
|
|
72
|
+
class Constellation < Base
|
|
73
|
+
def initialize(constellation_id)
|
|
74
|
+
@path = "/universe/constellations/#{constellation_id}"
|
|
75
|
+
end
|
|
76
|
+
end
|
|
77
|
+
|
|
54
78
|
class SolarSystem < Base
|
|
55
79
|
def initialize(system_id)
|
|
56
80
|
@path = "/universe/systems/#{system_id}"
|
|
@@ -103,7 +127,7 @@ module Esi
|
|
|
103
127
|
end
|
|
104
128
|
|
|
105
129
|
class MarketHistory < Base
|
|
106
|
-
def initialize(
|
|
130
|
+
def initialize(region_id:, type_id:)
|
|
107
131
|
@path = "/markets/#{region_id}/history"
|
|
108
132
|
@params = { type_id: type_id }
|
|
109
133
|
end
|
|
@@ -401,8 +425,7 @@ module Esi
|
|
|
401
425
|
end
|
|
402
426
|
|
|
403
427
|
class MarketOrders < Base
|
|
404
|
-
def initialize(type_id: nil
|
|
405
|
-
@path = "/markets/structures/#{structure_id}"
|
|
428
|
+
def initialize(region_id:, type_id: nil)
|
|
406
429
|
@path = "/markets/#{region_id}/orders"
|
|
407
430
|
@params = { order_type: :all }
|
|
408
431
|
@params[:type_id] = type_id if type_id.present?
|
data/lib/esi/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: esi
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.16
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Hiemstra
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-10-
|
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: oauth2
|