eve_app 0.1.17 → 0.1.18

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8747f67546e297b10b58125345694de36913d6eb
4
- data.tar.gz: 1d3b57c5860bab545f4392063891595ddbcf0c51
3
+ metadata.gz: 7203c356a686b1dd0f8db6dadf95141537b2bed0
4
+ data.tar.gz: 82ecc936ba511565271496644745b83fb646dafc
5
5
  SHA512:
6
- metadata.gz: ce12d933259a7d495d2ef54cb3fb8453044528019f4b500b91d79cc0b6aee32171f7c84c46e9b4ea61385a160e7c70e5ecd08088ef36d2745d7926ba44a84899
7
- data.tar.gz: 75c1a14cd57dab334462289925f4c94bbdc728d1e24908c2e23c856f605a7b2dcbce1555fbe90c8e22321596b6ccac060ac9525494bde11f7177066fd29d4cb1
6
+ metadata.gz: 5d26b4b2f75a524e2dc8d919ce36870118cbdc9e7c7eb56fdaf93ef4798a8a0f7b7921e4189b9d35f571342a773923c207abaddd83f449cfbe136a4a0c0411de
7
+ data.tar.gz: f4afac725f8d8d38595caf8ee3ffc3ff0c557b649245ac85bfd28443c1d91a39866ba2355e2f7cc46a4c02aaefc9a73acb1ad9510c1c06ccee76a3884e15978d
@@ -14,6 +14,7 @@ class EveApp::Type < EveApp::ApplicationRecord
14
14
 
15
15
  def kind
16
16
  case group_id
17
+ when *EveApp::Group::MINERAL then :mineral
17
18
  when *EveApp::Group::COMPONENTS then :component
18
19
  when *EveApp::Group::SUPER_CAPITALS then :supercapital
19
20
  when *EveApp::Group::CAPITALS then :capital
@@ -33,6 +34,10 @@ class EveApp::Type < EveApp::ApplicationRecord
33
34
  category_id == EveApp::Category::SHIP
34
35
  end
35
36
 
37
+ def mineral?
38
+ group_id == EveApp::Group::MINERAL
39
+ end
40
+
36
41
  def capital?
37
42
  EveApp::Group::CAPITALS.include?(group_id)
38
43
  end
@@ -1,3 +1,3 @@
1
1
  module EveApp
2
- VERSION = '0.1.17'
2
+ VERSION = '0.1.18'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eve_app
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.17
4
+ version: 0.1.18
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-11-06 00:00:00.000000000 Z
11
+ date: 2017-11-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails