sipp 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sipp/code.rb +3 -1
- data/lib/sipp/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: 2b070afc9f31b4d758cffb81730c1cf2f66c8f77
|
4
|
+
data.tar.gz: 0172f9196c6f4207143e8c18a8b2dfa5d159f761
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4f1dd007f766d6ec94dc27e07ee3f5115974a09547b4875bbe13f4625685234d378c34a9df427d25ac63e55895e64db9f0b880ed0a9631e8ea519b12c4ef5ee4
|
7
|
+
data.tar.gz: ad55e279ed148f69b247afe77300d7d75bfc216720677662a5676a0db9521e6b36eb9bdd75b735e3826a2d651faac05e929b8a2ac46b55eec9b2c370d4f9b6c1
|
data/lib/sipp/code.rb
CHANGED
@@ -103,7 +103,9 @@ module SIPP
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def to_s
|
106
|
-
[category, type, transmission_drive, fuel_ac].join(' - ')
|
106
|
+
[category, type, transmission_drive, fuel_ac].map{|c| c.nil? ? '#N/A' : c}.join(' - ')
|
107
|
+
rescue CodeError, CategoryError, TypeError, TransmissionDriveError, FuelACError
|
108
|
+
''
|
107
109
|
end
|
108
110
|
|
109
111
|
private
|
data/lib/sipp/version.rb
CHANGED