shelvit 0.1.0 → 0.1.1

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
  SHA256:
3
- metadata.gz: 58aa74adaf6b3a993685766b542d585be5b509202ff5e4105633177fbdc3a3cb
4
- data.tar.gz: bf60e279e9ae6dc7c7367c3867cb866254230886757437364e56f2163fecd11d
3
+ metadata.gz: f76d72b80e115b29a79df7a56d9327aa68ac0032b983c8fd71305d0d6aaf7f82
4
+ data.tar.gz: 8cf00b3d7c1fc5bd6994c72f6a06b14b51a81a2a410b6ef8871268db7b8a2bb8
5
5
  SHA512:
6
- metadata.gz: 453d636e6a95004b8c3fdca293885bdfb4ccad61e4f382ae07a7f7bb57cc2156060988279b01fbae11ee1d4f3555e986b3ac4b56244e747c52230ba410ea909e
7
- data.tar.gz: eb909c145ba7e185d0fe6cc562f3be8d94f4d2d5c29873bdde0bcc90de48ad488ee4a3652a0d32d5b64be024ac507215d2fb7979d3eccbfecccaa13e43ab4f96
6
+ metadata.gz: 119abf5fbc34d366b082454ab5de5696e1283c4b0879545f78a652710f0015b59c8d43ca904b3b6aab4462b64efc1be90734c4a4a8cf564aeec44ff4c5b0bcd3
7
+ data.tar.gz: d519dc0b56fe8b8bdc3217a2bec7f83a4911f4679cc64d63a231926f28ab68d64c038f4b3c55842e0c7e65356d50238c7d9a4447e48bc564d32588cf6a75d3bb
data/.rubocop.yml CHANGED
@@ -3,3 +3,7 @@ AllCops:
3
3
 
4
4
  Layout/LineLength:
5
5
  Max: 120
6
+
7
+ Metrics/BlockLength:
8
+ Exclude:
9
+ - 'spec/**/*'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shelvit (0.1.0)
4
+ shelvit (0.1.1)
5
5
  lcsort (~> 0.9)
6
6
 
7
7
  GEM
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class Shelvit
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.1'
5
5
  end
data/lib/shelvit.rb CHANGED
@@ -7,6 +7,8 @@ class Shelvit
7
7
  LOWER_MAP = ('a'..'z').to_a.zip(('00'..'26').to_a).to_h
8
8
 
9
9
  def self.normalize(call_number)
10
+ return if call_number.nil?
11
+
10
12
  Lcsort.normalize(call_number) || Lcsort.normalize(cleaned(call_number))
11
13
  end
12
14
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shelvit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Wead