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 +4 -4
- data/CHANGELOG.md +6 -2
- data/diacritics.gemspec +3 -2
- data/lib/diacritics/string.rb +1 -1
- data/lib/diacritics/version.rb +1 -1
- data/spec/diacritics/string_spec.rb +2 -0
- metadata +8 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: facd606d57308529da35cdeea042219e70a88ec2
|
|
4
|
+
data.tar.gz: 1fcea64ef946aa194b834ce17156bf7e1886d111
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: efac42c8bb073dc2841a92d12db438bc0789a43abc3bfcafe06ea93aa8da3ed98fd1ee398e748ac67c606533b4ba31b619680daf16aaf2bdf61afaac61adcad5
|
|
7
|
+
data.tar.gz: a237f7b43fe9c1d7db6f03d4630c03162e17b7ff828ba9ca8e9d0bfa39e6d8a63d75e6e534bd7def37702300550a75d9503e001765e0c2f73f1dfc88731db77c
|
data/CHANGELOG.md
CHANGED
|
@@ -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
|
|
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
|
|
data/diacritics.gemspec
CHANGED
|
@@ -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
|
data/lib/diacritics/string.rb
CHANGED
data/lib/diacritics/version.rb
CHANGED
|
@@ -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.
|
|
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: '
|
|
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: '
|
|
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:
|