diacritics 0.0.7 → 0.0.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/Gemfile +1 -3
- data/Guardfile +2 -2
- data/README.md +0 -1
- data/lib/diacritics/alphabet.rb +3 -3
- data/lib/diacritics/version.rb +1 -1
- data/spec/diacritics/string_spec.rb +13 -0
- data/spec/spec_helper.rb +0 -2
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 819a11d5ad9fab59051154e2238802053e7df6bb
|
4
|
+
data.tar.gz: 1873d3de563547dd0888fd89ffdba0137f3a23c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44a90379ff5c310542bcbdb0de8bfaff5e2afdf666e1bd012aca1042f28b6b311fa5692d46f10528de81eab38158db9cc7b2486855cb0d4fd8566bd27ada400b
|
7
|
+
data.tar.gz: babe37ae10a720370805663be0cedd30894592f8e6959a61ffe49e22c75e60e7c03b65de380c5bb69f3a58ca1b4ee30e38f3bde1f1c87f375195cbea32984464
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.2
|
1
|
+
2.2
|
data/Gemfile
CHANGED
data/Guardfile
CHANGED
@@ -3,11 +3,11 @@ guard 'bundler' do
|
|
3
3
|
watch(/^.+\.gemspec/)
|
4
4
|
end
|
5
5
|
|
6
|
-
guard :rspec do
|
6
|
+
guard :rspec, cmd: 'bundle exec rspec' do
|
7
7
|
watch(%r{^spec/.+_spec\.rb$})
|
8
8
|
watch(%r{^lib/(.+)\.rb$}) do |array|
|
9
9
|
name = array.last
|
10
10
|
"spec/#{name}_spec.rb"
|
11
11
|
end
|
12
|
-
watch('spec/spec_helper.rb')
|
12
|
+
watch('spec/spec_helper.rb') { 'spec' }
|
13
13
|
end
|
data/README.md
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
[![Build Status](https://travis-ci.org/fractalsoft/diacritics.png)](https://travis-ci.org/fractalsoft/diacritics)
|
4
4
|
[![Dependency Status](https://gemnasium.com/fractalsoft/diacritics.png)](https://gemnasium.com/fractalsoft/diacritics)
|
5
5
|
[![Coverage Status](https://coveralls.io/repos/fractalsoft/diacritics/badge.png)](https://coveralls.io/r/fractalsoft/diacritics)
|
6
|
-
[![Code Climate](https://codeclimate.com/repos/5284c9f156b1021a6e016740/badges/030f7f569aa0fa54ea66/gpa.png)](https://codeclimate.com/repos/5284c9f156b1021a6e016740/feed)
|
7
6
|
[![Stories in Ready](https://badge.waffle.io/fractalsoft/diacritics.png)](http://waffle.io/fractalsoft/diacritics)
|
8
7
|
[![endorse](https://api.coderwall.com/torrocus/endorsecount.png)](https://coderwall.com/torrocus)
|
9
8
|
|
data/lib/diacritics/alphabet.rb
CHANGED
@@ -96,9 +96,9 @@ module Diacritics
|
|
96
96
|
|
97
97
|
def fr
|
98
98
|
{ # French
|
99
|
-
downcase: %w(à é è ê ô),
|
100
|
-
upcase: %w(À É È Ê Ô),
|
101
|
-
permanent: %w(a e e e o)
|
99
|
+
downcase: %w(à â é è ë ê ï î ô ù û ü ÿ ç œ æ),
|
100
|
+
upcase: %w(À Â É È Ë Ê Ï Î Ô Ù Û Ü Ÿ Ç Œ Æ),
|
101
|
+
permanent: %w(a a e e e e i i o u u ue y c oe ae)
|
102
102
|
}
|
103
103
|
end
|
104
104
|
|
data/lib/diacritics/version.rb
CHANGED
@@ -503,6 +503,19 @@ describe Diacritics::String do
|
|
503
503
|
end
|
504
504
|
end
|
505
505
|
|
506
|
+
context do
|
507
|
+
it_behaves_like 'word processing' do
|
508
|
+
subject { 'Dès Noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !' }
|
509
|
+
let(:result) do
|
510
|
+
[
|
511
|
+
'dès noël où un zéphyr haï me vêt de glaçons würmiens je dîne d’exquis rôtis de bœuf au kir à l’aÿ d’âge mûr & cætera !',
|
512
|
+
'DÈS NOËL OÙ UN ZÉPHYR HAÏ ME VÊT DE GLAÇONS WÜRMIENS JE DÎNE D’EXQUIS RÔTIS DE BŒUF AU KIR À L’AŸ D’ÂGE MÛR & CÆTERA !',
|
513
|
+
'des-noel-ou-un-zephyr-hai-me-vet-de-glacons-wuermiens-je-dine-d’exquis-rotis-de-boeuf-au-kir-a-l’ay-d’age-mur-&-caetera-!'
|
514
|
+
]
|
515
|
+
end
|
516
|
+
end
|
517
|
+
end
|
518
|
+
|
506
519
|
context do
|
507
520
|
it { expect('lorem-ipsum').to be_slug }
|
508
521
|
it { expect('lorem_ipsum').to be_slug }
|
data/spec/spec_helper.rb
CHANGED
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.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aleksander Malaszkiewicz
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-11-29 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
93
|
rubyforge_project:
|
94
|
-
rubygems_version: 2.4.
|
94
|
+
rubygems_version: 2.4.8
|
95
95
|
signing_key:
|
96
96
|
specification_version: 4
|
97
97
|
summary: Support diacritics
|