sipp 0.1.7 → 0.1.8

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: 950a78c54189d24a5d4a9159c2c83d74647b867b
4
- data.tar.gz: 3a25d2e6be0a30821d1473db85ae7b31048cd2af
3
+ metadata.gz: f19fbec80dadd3c4c7d351ad605666722a7f628c
4
+ data.tar.gz: fde3f3ccec2ac4c43bc0c345f7ddc26004435e60
5
5
  SHA512:
6
- metadata.gz: a12870aa3d1ee2edba06d09015d08a9b708ab23c61cbafc62293f253f8a4217f87af052b2a41aeb3ff415fe126237364e08580bdd01a67c0037ae4ec48c965f4
7
- data.tar.gz: 87a73c7cd626016cb6e473584d3ca2c0ad04e564089c785b79d7cf58064b46fa5252eaf59051eab50931aacac4fc24179d448968ce5c820dcb4f6036dea02adb
6
+ metadata.gz: 5043f858559c2019a89b2795ec381617a172d5aebe78bf32d9543a463a8c991d237c7f775acf611515aac7eaac9df26abd4bd78aa4b750ea05a00ad9aa0e476a
7
+ data.tar.gz: 6dd7d7fd130c6607cfbc0b93c49b554ca4610930403992c3a730d110f10af5368295608ca78c04e6efe42754c14fd1ee34464a15430da68013840675d6e53e37
data/lib/sipp/extended.rb CHANGED
@@ -5,6 +5,11 @@ module SIPP
5
5
  include ExtendedDictionary
6
6
 
7
7
  def self.generate(capabilities)
8
+ capabilities = capabilities.inject({}) do |caps, (k, v)|
9
+ val = v.respond_to?(:to_sym) ? v.to_sym : v
10
+ caps[k&.to_sym] = val
11
+ caps
12
+ end
8
13
  category = CATEGORY[capabilities[:category]]
9
14
  type = TYPE[capabilities[:type]]
10
15
  transmission = TRANSMISSION[capabilities[:transmission]]
data/lib/sipp/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module SIPP
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/sipp.gemspec CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
10
10
  spec.email = ["max@buslaev.net"]
11
11
 
12
12
  spec.summary = %q{SIPP aka ACRISS code dictionary}
13
- spec.description = %q{Translates car SIPP codes into something meaningful}
13
+ spec.description = %q{Translates car SIPP/ACRISS codes into something meaningful}
14
14
  spec.homepage = "https://github.com/austerlitz/sipp"
15
15
  spec.license = "MIT"
16
16
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sipp
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Buslaev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-18 00:00:00.000000000 Z
11
+ date: 2022-11-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -80,7 +80,7 @@ dependencies:
80
80
  - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
- description: Translates car SIPP codes into something meaningful
83
+ description: Translates car SIPP/ACRISS codes into something meaningful
84
84
  email:
85
85
  - max@buslaev.net
86
86
  executables: []