evestatic 0.0.43 → 0.0.44

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 525beb0c63a4b4472ada302f2f4daf3f5e0396c7
4
- data.tar.gz: 294469db592ea2e908e599620b7abfc26261f0f8
3
+ metadata.gz: 7b34513d5f6c5ee93eb6b1fd609add55eaea3049
4
+ data.tar.gz: 969ea70bc1a0263e7e05f1f37fd041549911ed5f
5
5
  SHA512:
6
- metadata.gz: 4fc60bc9a43d210dc15ac23873b4b8f85a11df0984b5d8adb899621f50199fb62630129f414a2bcbe44cd065655195efb4d5f95859a8fc5c83f1119e999e1f3d
7
- data.tar.gz: b910b31235fe4260bed5072effee1937c7eaae261ea33236d2b31cab17b71a868d6f20a51329bb73e7dbce3ae846ce88d3e4e039032e559f1f5cc2b5f96a3b48
6
+ metadata.gz: f0d8a57818aa7b8490115f13b27aaa342590f3b042e5240d1054e162fb559cf17e70336a1f50b3fc51b9ea1019f52db9f9037e925b7bd6405960983de4f7698e
7
+ data.tar.gz: b7a1236122a4422822323e6ffb29239d359d708a9f3e07d2ee14cbd520c4e3ca32ae13229d770c99d3e94971c95f1ca64dc42a4c4f58204cde19314457b34a5c
@@ -3,7 +3,7 @@ require 'csv'
3
3
  module Evestatic
4
4
  class Station
5
5
 
6
- attr_accessor :station_id, :station_name
6
+ attr_accessor :station_id, :station_name, :solarsystem_id, :region_id
7
7
 
8
8
  @@stations = {}
9
9
 
@@ -14,7 +14,7 @@ module Evestatic
14
14
  def self.load_from_file(path)
15
15
  begin
16
16
  CSV.foreach(path, {col_sep: ";", headers: true}) do |row|
17
- @@stations[row[0].to_i] = self.new(row[0].to_i, row[11])
17
+ @@stations[row[0].to_i] = self.new(row[0].to_i, row[11], row[9].to_i, row[10].to_i)
18
18
  end
19
19
  rescue CSV::MalformedCSVError
20
20
  #trololol do nothing, we have all data, dont care if the newlines are windows mess or whatever
@@ -42,9 +42,11 @@ module Evestatic
42
42
  @@stations.values.collect { |v| v if v.station_name.include? name }.compact
43
43
  end
44
44
 
45
- def initialize(station_id, station_name)
45
+ def initialize(station_id, station_name,solarsystem_id,region_id)
46
46
  self.station_id = station_id
47
47
  self.station_name = station_name
48
+ self.solarsystem_id = solarsystem_id
49
+ self.region_id = region_id
48
50
  end
49
51
 
50
52
  load!
@@ -1,4 +1,4 @@
1
1
  module Evestatic
2
- VERSION = "0.0.43"
2
+ VERSION = "0.0.44"
3
3
  EVEVERSION = "Odyssey1.1"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evestatic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.43
4
+ version: 0.0.44
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marv Cool
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-29 00:00:00.000000000 Z
11
+ date: 2013-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler