diacritics 0.0.7 → 0.0.8

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: 790c7a62db240702b5574fe7b21fa3ade5d2ca49
4
- data.tar.gz: 10f8db37215b990c65b5d8331686882e8894aa4b
3
+ metadata.gz: 819a11d5ad9fab59051154e2238802053e7df6bb
4
+ data.tar.gz: 1873d3de563547dd0888fd89ffdba0137f3a23c1
5
5
  SHA512:
6
- metadata.gz: a618bed035dd4ce41f4d6ae9f3877dd556a69b270608eaadbef98bc76ce65c555646d2dddca7a7c8f7dff9596f12c4f2f45d968fbdbd8d4513131c31706966ea
7
- data.tar.gz: 309b864293e68dba1b88ac3eb69dde1291e3610ec76f13b95bd9322e8bc7e63c9690111d14917ea050f258b289ec9f3eb6931159508492cf73648151280aac4e
6
+ metadata.gz: 44a90379ff5c310542bcbdb0de8bfaff5e2afdf666e1bd012aca1042f28b6b311fa5692d46f10528de81eab38158db9cc7b2486855cb0d4fd8566bd27ada400b
7
+ data.tar.gz: babe37ae10a720370805663be0cedd30894592f8e6959a61ffe49e22c75e60e7c03b65de380c5bb69f3a58ca1b4ee30e38f3bde1f1c87f375195cbea32984464
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.0
1
+ 2.2
data/Gemfile CHANGED
@@ -4,9 +4,7 @@ gemspec
4
4
 
5
5
  group :development, :test do
6
6
  gem 'coveralls', require: false
7
- gem 'codeclimate-test-reporter', require: false
8
- gem 'rspec', '~> 3.0.0'
9
- gem 'reek'
7
+ gem 'rspec', '~> 3.4.0'
10
8
  gem 'guard'
11
9
  gem 'guard-bundler'
12
10
  gem 'guard-rspec'
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') { 'spec' }
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
 
@@ -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
 
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # Gem version
3
3
  module Diacritics
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.8'
5
5
  end
@@ -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
@@ -4,8 +4,6 @@ require 'coveralls'
4
4
  Coveralls.wear!
5
5
  require 'simplecov'
6
6
  SimpleCov.start
7
- require 'codeclimate-test-reporter'
8
- CodeClimate::TestReporter.start
9
7
 
10
8
  RSpec.configure do |config|
11
9
  config.run_all_when_everything_filtered = true
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.7
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-04-02 00:00:00.000000000 Z
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.5
94
+ rubygems_version: 2.4.8
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Support diacritics