speakingurl-rails 7.0.0 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 01b43d569134ea257b7ef6792e563a807e56b765
4
- data.tar.gz: 9d4d241bc47fad1f5331bc2e2f1a73d2805e6ee0
3
+ metadata.gz: 80a5d90dc2121d7a22a8fa9f3290a9c695e41846
4
+ data.tar.gz: 3b0a6fd735897d77b783ebdc7dd86116db65fce1
5
5
  SHA512:
6
- metadata.gz: b2f17e4e8e576f411d1bad3b63f6daf376f388ba020ed375b165d192ea29a6bf5ed588083d83ae31cad217c03af9bec5e9afcb0f93866c80054d69feb0ad6e22
7
- data.tar.gz: ef9787113e95dbd044bb52410e5b2f986c40e31e602fedb92be4055bde1885d4db0736924eedf363e6c24142f189c481642d5fc50d064d0777ca424b392d9b0c
6
+ metadata.gz: 9b2057154d5750e3092169e32c9f4f82bbb3c9b0dd072607eaa2dfd7f1b6a5ca505f4e3e80f2a9eedd485486a5973aabc0adfb89e8d6ae937f75580b208d6ec9
7
+ data.tar.gz: 88b1d404373217e5bf59e0932053a96ccafec264ac1da91ecc7e33ea70a2210fcf68482a8880148e4483db936fc4e8e9d4f24c5675ee494ec60106ad06bfba91
data/README.md CHANGED
@@ -3,7 +3,6 @@ SpeakingURL
3
3
 
4
4
  [![Build Status](https://travis-ci.org/pid/speakingurl.png)](https://travis-ci.org/pid/speakingurl) [![NPM version](https://badge.fury.io/js/speakingurl.png)](http://badge.fury.io/js/speakingurl) [![Bower version](https://badge.fury.io/bo/speakingurl.svg)](http://badge.fury.io/bo/speakingurl) [![Gem Version](https://badge.fury.io/rb/speakingurl-rails.svg)](http://badge.fury.io/rb/speakingurl-rails) [![Gitter](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/pid/speakingurl?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge) [![Flattr](http://api.flattr.com/button/flattr-badge-large.png)](http://flattr.com/thing/1418477/pidspeakingurl-on-GitHub)
5
5
 
6
- [![Package Quality](http://npm.packagequality.com/badge/speakingurl.png)](http://packagequality.com/#?package=speakingurl)
7
6
 
8
7
  ====================================================================================================================================================================================================================================================================================================================================================
9
8
 
@@ -58,14 +57,14 @@ copy the file speakingurl.min.js to your script directory
58
57
  available versions:
59
58
 
60
59
  - [www.cdnjs.com/libraries/speakingurl/](http://cdnjs.com/libraries/speakingurl/)
61
- - use [//cdnjs.cloudflare.com/ajax/libs/speakingurl/7.0.0/speakingurl.min.js](https://cdnjs.cloudflare.com/ajax/libs/speakingurl/7.0.0/speakingurl.min.js)
60
+ - use [//cdnjs.cloudflare.com/ajax/libs/speakingurl/8.0.0/speakingurl.min.js](https://cdnjs.cloudflare.com/ajax/libs/speakingurl/8.0.0/speakingurl.min.js)
62
61
 
63
62
  #### [CDN/maxcdn](https://www.maxcdn.com/)
64
63
 
65
64
  available versions:
66
65
 
67
66
  - [www.jsdelivr.com/#!speakingurl](]http://www.jsdelivr.com/#!speakingurl)
68
- - use [//cdn.jsdelivr.net/speakingurl/7.0.0/speakingurl.min.js](https://cdn.jsdelivr.net/speakingurl/7.0.0/speakingurl.min.js)
67
+ - use [//cdn.jsdelivr.net/speakingurl/8.0.0/speakingurl.min.js](https://cdn.jsdelivr.net/speakingurl/8.0.0/speakingurl.min.js)
69
68
 
70
69
  Usage
71
70
  -----
@@ -79,7 +78,7 @@ Usage
79
78
  - `options` {object}
80
79
 
81
80
  - `separator` {string} default: '-'
82
- - char that replace the whitespaces
81
+ - char that replaces the whitespaces
83
82
  - `lang` {string} default: 'en' // ISO 639-1 Codes
84
83
  - language specific transliteration (
85
84
  - 'ar' // Arabic
@@ -5,7 +5,8 @@ module Speakingurl
5
5
  class Railtie < ::Rails::Railtie
6
6
  initializer "speakingurl_rails.append_path", :group => :all do |app|
7
7
  speakingurl_path = File.expand_path('../', __FILE__)
8
- app.assets.prepend_path(speakingurl_path.to_s)
8
+ sprockets_env = app.assets || app.config.assets # sprockets-rails 3.x attaches this at a different config
9
+ sprockets_env.prepend_path(speakingurl_path.to_s)
9
10
  end
10
11
  end
11
12
  end
@@ -458,7 +458,9 @@
458
458
  'ţ': 't',
459
459
  'Ţ': 'T',
460
460
 
461
- // Russian
461
+ // Russian https://en.wikipedia.org/wiki/Romanization_of_Russian
462
+ // ICAO
463
+
462
464
  'а': 'a',
463
465
  'б': 'b',
464
466
  'в': 'v',
@@ -469,7 +471,7 @@
469
471
  'ж': 'zh',
470
472
  'з': 'z',
471
473
  'и': 'i',
472
- 'й': 'j',
474
+ 'й': 'i',
473
475
  'к': 'k',
474
476
  'л': 'l',
475
477
  'м': 'm',
@@ -481,7 +483,7 @@
481
483
  'т': 't',
482
484
  'у': 'u',
483
485
  'ф': 'f',
484
- 'х': 'h',
486
+ 'х': 'kh',
485
487
  'ц': 'c',
486
488
  'ч': 'ch',
487
489
  'ш': 'sh',
@@ -502,7 +504,7 @@
502
504
  'Ж': 'Zh',
503
505
  'З': 'Z',
504
506
  'И': 'I',
505
- 'Й': 'J',
507
+ 'Й': 'I',
506
508
  'К': 'K',
507
509
  'Л': 'L',
508
510
  'М': 'M',
@@ -514,7 +516,7 @@
514
516
  'Т': 'T',
515
517
  'У': 'U',
516
518
  'Ф': 'F',
517
- 'Х': 'H',
519
+ 'Х': 'Kh',
518
520
  'Ц': 'C',
519
521
  'Ч': 'Ch',
520
522
  'Ш': 'Sh',
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakingurl-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.0
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Droste
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-17 00:00:00.000000000 Z
11
+ date: 2015-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties