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 +4 -4
- data/app/models/eve_app/type.rb +5 -0
- data/lib/eve_app/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: 7203c356a686b1dd0f8db6dadf95141537b2bed0
|
4
|
+
data.tar.gz: 82ecc936ba511565271496644745b83fb646dafc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d26b4b2f75a524e2dc8d919ce36870118cbdc9e7c7eb56fdaf93ef4798a8a0f7b7921e4189b9d35f571342a773923c207abaddd83f449cfbe136a4a0c0411de
|
7
|
+
data.tar.gz: f4afac725f8d8d38595caf8ee3ffc3ff0c557b649245ac85bfd28443c1d91a39866ba2355e2f7cc46a4c02aaefc9a73acb1ad9510c1c06ccee76a3884e15978d
|
data/app/models/eve_app/type.rb
CHANGED
@@ -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
|
data/lib/eve_app/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2017-11-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|