diacritics 0.0.6 → 0.0.7

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: facd606d57308529da35cdeea042219e70a88ec2
4
- data.tar.gz: 1fcea64ef946aa194b834ce17156bf7e1886d111
3
+ metadata.gz: 790c7a62db240702b5574fe7b21fa3ade5d2ca49
4
+ data.tar.gz: 10f8db37215b990c65b5d8331686882e8894aa4b
5
5
  SHA512:
6
- metadata.gz: efac42c8bb073dc2841a92d12db438bc0789a43abc3bfcafe06ea93aa8da3ed98fd1ee398e748ac67c606533b4ba31b619680daf16aaf2bdf61afaac61adcad5
7
- data.tar.gz: a237f7b43fe9c1d7db6f03d4630c03162e17b7ff828ba9ca8e9d0bfa39e6d8a63d75e6e534bd7def37702300550a75d9503e001765e0c2f73f1dfc88731db77c
6
+ metadata.gz: a618bed035dd4ce41f4d6ae9f3877dd556a69b270608eaadbef98bc76ce65c555646d2dddca7a7c8f7dff9596f12c4f2f45d968fbdbd8d4513131c31706966ea
7
+ data.tar.gz: 309b864293e68dba1b88ac3eb69dde1291e3610ec76f13b95bd9322e8bc7e63c9690111d14917ea050f258b289ec9f3eb6931159508492cf73648151280aac4e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v0.0.7
2
+
3
+ * Fix `slug?` with digitals
4
+
1
5
  ## v0.0.6
2
6
 
3
7
  * Fix `slug?` with diacritics characters
@@ -23,7 +23,7 @@ module Diacritics
23
23
  end
24
24
 
25
25
  def slug?
26
- return true if match(/^[[a-z_-]]+$/)
26
+ return true if match(/^[[a-z\d_-]]+$/)
27
27
  end
28
28
  end
29
29
  end
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # Gem version
3
3
  module Diacritics
4
- VERSION = '0.0.6'
4
+ VERSION = '0.0.7'
5
5
  end
@@ -506,6 +506,7 @@ describe Diacritics::String do
506
506
  context do
507
507
  it { expect('lorem-ipsum').to be_slug }
508
508
  it { expect('lorem_ipsum').to be_slug }
509
+ it { expect('lorem0ipsum').to be_slug }
509
510
  it { expect('lorem!ipsum').not_to be_slug }
510
511
  it { expect('lorem#ipsum').not_to be_slug }
511
512
  it { expect('lorem$ipsum').not_to be_slug }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: diacritics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksander Malaszkiewicz