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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/esi/calls.rb +26 -3
  3. data/lib/esi/version.rb +1 -1
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35daf8f82e0413127bfc36abe1df42ad475f1372
4
- data.tar.gz: 184ba21d26d4dfd4a4aa802ff4bae16f56e4a957
3
+ metadata.gz: 73cbcd135ad400abf7b1a97762d8c8b9b0fd12f4
4
+ data.tar.gz: 2885d29337baf908e2e1f2204234b6b6f5d2b347
5
5
  SHA512:
6
- metadata.gz: fbdd04b3dd502356e86f90a94da41efd9fd9dd91b24d9d6a7c050e50e607a5c2ebd6115d50b735ac5f2f26b4289275a829051940f022c727f2b48907ef18fd9d
7
- data.tar.gz: 96cbd892a7545a9c10e5d1e457d4c64ce4274a145b98f5670e1298e88046f55d8aa4d0d59b30524e5f3fc97bcd7a8604e77faeba89573f9a71f8e1a51657700e
6
+ metadata.gz: edc6f1ec57905e18a97f7fa77da68e27e534dcaec9a8acc259f93692697dffa741259c3633d944e47c17f733e4c78d4e89e556bc94a4d57ef9ac919cc8d436dd
7
+ data.tar.gz: 75dc712c9d73593acbe8db5ffbf167ac240732bf21ae0c1c8fbbd1226febc807027c1ed08bc2105fe368ebafa339aec410a6d9cda254581eae657dbb25be5a82
@@ -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(type_id:, region_id: Region::FORGE)
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, structure_id: nil, region_id: Region::FORGE)
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?
@@ -1,3 +1,3 @@
1
1
  module Esi
2
- VERSION = "0.1.15"
2
+ VERSION = "0.1.16"
3
3
  end
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.15
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-25 00:00:00.000000000 Z
11
+ date: 2017-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oauth2