diacritics 0.0.5 → 0.0.6

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: 6dce2222cc44039074138a5bad8c19a7f8f4e5ec
4
- data.tar.gz: e1497d04a6141d1466325611c20f3ba3ff5d3c0a
3
+ metadata.gz: facd606d57308529da35cdeea042219e70a88ec2
4
+ data.tar.gz: 1fcea64ef946aa194b834ce17156bf7e1886d111
5
5
  SHA512:
6
- metadata.gz: 7c1ab640844f696417ac9368e88241db44db929817b65c20af82d7429a51b4467b34f16adbe18c107a16e93c7dc8397ada3a949bf5aa2b498def950ac8d39918
7
- data.tar.gz: 67d4a6507128e8529ef67023f55d1f9fa588c034ac6c3dd42d61678f2867c29fae8f66f364f45da9c5024a70db049e25802620cae85d4418690c76f38eb9414b
6
+ metadata.gz: efac42c8bb073dc2841a92d12db438bc0789a43abc3bfcafe06ea93aa8da3ed98fd1ee398e748ac67c606533b4ba31b619680daf16aaf2bdf61afaac61adcad5
7
+ data.tar.gz: a237f7b43fe9c1d7db6f03d4630c03162e17b7ff828ba9ca8e9d0bfa39e6d8a63d75e6e534bd7def37702300550a75d9503e001765e0c2f73f1dfc88731db77c
@@ -1,7 +1,11 @@
1
+ ## v0.0.6
2
+
3
+ * Fix `slug?` with diacritics characters
4
+
1
5
  ## v0.0.5
2
6
 
3
- * Check if the string is permanent?
4
- * Check if the string is slug? (only alphanumeric, - and _)
7
+ * Check if the string is `permanent?`
8
+ * Check if the string is `slug?` (only alphanumeric, - and _)
5
9
 
6
10
  ## v0.0.4
7
11
 
@@ -9,6 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ['Aleksander Malaszkiewicz', 'Agnieszka Matysek']
10
10
  spec.email = ['info@fractalsoft.org']
11
11
  spec.summary = %q{Support diacritics}
12
+ spec.description = %q{Support diacritics in String}
12
13
  spec.homepage = 'https://github.com/fractalsoft/diacritics'
13
14
  spec.license = 'MIT'
14
15
 
@@ -17,6 +18,6 @@ Gem::Specification.new do |spec|
17
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
19
  spec.require_paths = ['lib']
19
20
 
20
- spec.add_development_dependency 'bundler'
21
- spec.add_development_dependency 'rake'
21
+ spec.add_development_dependency 'bundler', '~> 1.6'
22
+ spec.add_development_dependency 'rake', '~> 0'
22
23
  end
@@ -23,7 +23,7 @@ module Diacritics
23
23
  end
24
24
 
25
25
  def slug?
26
- !match(/^[[:alnum:][_-]]+$/).nil?
26
+ return true if match(/^[[a-z_-]]+$/)
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.5'
4
+ VERSION = '0.0.6'
5
5
  end
@@ -524,5 +524,7 @@ describe Diacritics::String do
524
524
  it { expect('lorem]ipsum').not_to be_slug }
525
525
  it { expect('lorem{ipsum').not_to be_slug }
526
526
  it { expect('lorem}ipsum').not_to be_slug }
527
+ it { expect('Lorem-ipsum').not_to be_slug }
528
+ it { expect('łorem-ipsum').not_to be_slug }
527
529
  end
528
530
  end
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.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aleksander Malaszkiewicz
@@ -15,31 +15,31 @@ dependencies:
15
15
  name: bundler
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - ">="
18
+ - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0'
20
+ version: '1.6'
21
21
  type: :development
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
- - - ">="
25
+ - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0'
27
+ version: '1.6'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: rake
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
- - - ">="
32
+ - - "~>"
33
33
  - !ruby/object:Gem::Version
34
34
  version: '0'
35
35
  type: :development
36
36
  prerelease: false
37
37
  version_requirements: !ruby/object:Gem::Requirement
38
38
  requirements:
39
- - - ">="
39
+ - - "~>"
40
40
  - !ruby/object:Gem::Version
41
41
  version: '0'
42
- description:
42
+ description: Support diacritics in String
43
43
  email:
44
44
  - info@fractalsoft.org
45
45
  executables: