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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a759acbd50e83cfbc4294f476ca21048c42286fb
4
- data.tar.gz: 91df79cf3188f78777c1495002445c540e60d031
3
+ metadata.gz: 2b070afc9f31b4d758cffb81730c1cf2f66c8f77
4
+ data.tar.gz: 0172f9196c6f4207143e8c18a8b2dfa5d159f761
5
5
  SHA512:
6
- metadata.gz: e699be1f95b5075a45b4b8b54fc1e1ea1c418c32e88e1a202e9659d4e5e1ec4dfa3bfd00ef803ff79555d858cb1acd831e767249381cae6a3dda4748905e3465
7
- data.tar.gz: fbe654d6c318cbc133c7a43d60614a800135d093b62a3524eeaa26747f60e33183e108475925961e5048b8e754683f35a2a8560b38e50a2ec50c26217a0f863f
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(' - ') if valid?
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
@@ -1,3 +1,3 @@
1
1
  module SIPP
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sipp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Buslaev