eve_app 0.1.13 → 0.1.14
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 +7 -5
- data/lib/eve_app/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b880bd02e4781d4893e1000a79542c6feb665ac1
|
4
|
+
data.tar.gz: d9a4bc5751186a1eb125b766c027f72c11c88cbe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e68ec7554973f322be2a4b73c218412bda025aaf37b93a5d6fe7a9e4ecf22c2247e7720401946b988e4c9c880ed317404e66eed95e9898a68abf019833e04d8
|
7
|
+
data.tar.gz: 0d5a7312d85c9ea5b8c660c5fe58c0e0dbc7ad1ac9f57b304bac6b19c817881a249e39f550ce2fadfb33c7346632976aeb7189d62293145d7d5d3ff6f1f73ab5
|
data/app/models/eve_app/type.rb
CHANGED
@@ -61,21 +61,23 @@ class EveApp::Type < EveApp::ApplicationRecord
|
|
61
61
|
|
62
62
|
def sort_index
|
63
63
|
case category_id
|
64
|
+
when EveApp::Category::ASTEROID
|
65
|
+
[market_group_name, base_price].join('-')
|
64
66
|
when EveApp::Category::SHIP
|
65
|
-
|
67
|
+
1000
|
66
68
|
when EveApp::Category::MODULE
|
67
69
|
case market_group_root_id
|
68
70
|
when EveApp::MarketGroup::SHIP_MODIFICATIONS
|
69
|
-
|
71
|
+
1500
|
70
72
|
else
|
71
|
-
|
73
|
+
1100
|
72
74
|
end
|
73
75
|
when EveApp::Category::CHARGE
|
74
76
|
case market_group_id
|
75
77
|
when EveApp::MarketGroup::NANITE_PASTE
|
76
|
-
|
78
|
+
1300
|
77
79
|
else
|
78
|
-
|
80
|
+
1200
|
79
81
|
end
|
80
82
|
when EveApp::Category::DRONE then 1500
|
81
83
|
else 2000
|
data/lib/eve_app/version.rb
CHANGED