speakingurl-rails 6.0.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +8 -2
  3. data/lib/speakingurl.js +74 -3
  4. metadata +8 -8
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 959212a062fd3eaa9a9889c6850664f34432727d
4
- data.tar.gz: 617c2088f5c2003fce836b7e4eeaf90e6f229fee
3
+ metadata.gz: 01b43d569134ea257b7ef6792e563a807e56b765
4
+ data.tar.gz: 9d4d241bc47fad1f5331bc2e2f1a73d2805e6ee0
5
5
  SHA512:
6
- metadata.gz: 5c7146b9dea481488a1a96fc7cc76f0a2284af6ec5f87b9e1d15230956376c23950d7a05a5ee36b4f043cfbe1ff24d7b909a694a27c6757079531b631bb5063a
7
- data.tar.gz: b37acf71b67547ad3d56ef1b2e12ccac3d9fa7f84c7b5a8991ba36d9d9ce3496820b59ab9db7fb0ec1858ca6f39aee6a48adccc9fb8962123e9c2f1d95f1584f
6
+ metadata.gz: b2f17e4e8e576f411d1bad3b63f6daf376f388ba020ed375b165d192ea29a6bf5ed588083d83ae31cad217c03af9bec5e9afcb0f93866c80054d69feb0ad6e22
7
+ data.tar.gz: ef9787113e95dbd044bb52410e5b2f986c40e31e602fedb92be4055bde1885d4db0736924eedf363e6c24142f189c481642d5fc50d064d0777ca424b392d9b0c
data/README.md CHANGED
@@ -58,14 +58,14 @@ copy the file speakingurl.min.js to your script directory
58
58
  available versions:
59
59
 
60
60
  - [www.cdnjs.com/libraries/speakingurl/](http://cdnjs.com/libraries/speakingurl/)
61
- - use [//cdnjs.cloudflare.com/ajax/libs/speakingurl/6.0.0/speakingurl.min.js](https://cdnjs.cloudflare.com/ajax/libs/speakingurl/6.0.0/speakingurl.min.js)
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)
62
62
 
63
63
  #### [CDN/maxcdn](https://www.maxcdn.com/)
64
64
 
65
65
  available versions:
66
66
 
67
67
  - [www.jsdelivr.com/#!speakingurl](]http://www.jsdelivr.com/#!speakingurl)
68
- - use [//cdn.jsdelivr.net/speakingurl/6.0.0/speakingurl.min.js](https://cdn.jsdelivr.net/speakingurl/6.0.0/speakingurl.min.js)
68
+ - use [//cdn.jsdelivr.net/speakingurl/7.0.0/speakingurl.min.js](https://cdn.jsdelivr.net/speakingurl/7.0.0/speakingurl.min.js)
69
69
 
70
70
  Usage
71
71
  -----
@@ -86,6 +86,7 @@ Usage
86
86
  - 'az' // Azerbaijani\*
87
87
  - 'cs' // Czech
88
88
  - 'de' // German
89
+ - 'dv' // Divehi
89
90
  - 'en' // English
90
91
  - 'es' // Spanish
91
92
  - 'fr' // French
@@ -203,6 +204,11 @@ slug = getSlug("မြန်မာ သာဓက", {
203
204
  });
204
205
  console.log(slug); // Output: myanma-thadak
205
206
 
207
+ slug = getSlug('މިއަދަކީ ހދ ރީތި ދވހކވ', {
208
+ lang: 'dv'
209
+ });
210
+ console.log(slug); // Output: miadhakee hd reethi dvhkv
211
+
206
212
  slug = getSlug("Apple & Pear!", {
207
213
  lang: 'en' // lang: "en" is default, just to clarify
208
214
  });
@@ -261,6 +261,57 @@
261
261
  'Ů': 'U',
262
262
  'Ž': 'Z',
263
263
 
264
+ // Dhivehi
265
+ 'ހ': 'h',
266
+ 'ށ': 'sh',
267
+ 'ނ': 'n',
268
+ 'ރ': 'r',
269
+ 'ބ': 'b',
270
+ 'ޅ': 'lh',
271
+ 'ކ': 'k',
272
+ 'އ': 'a',
273
+ 'ވ': 'v',
274
+ 'މ': 'm',
275
+ 'ފ': 'f',
276
+ 'ދ': 'dh',
277
+ 'ތ': 'th',
278
+ 'ލ': 'l',
279
+ 'ގ': 'g',
280
+ 'ޏ': 'gn',
281
+ 'ސ': 's',
282
+ 'ޑ': 'd',
283
+ 'ޒ': 'z',
284
+ 'ޓ': 't',
285
+ 'ޔ': 'y',
286
+ 'ޕ': 'p',
287
+ 'ޖ': 'j',
288
+ 'ޗ': 'ch',
289
+ 'ޘ': 'tt',
290
+ 'ޙ': 'hh',
291
+ 'ޚ': 'kh',
292
+ 'ޛ': 'th',
293
+ 'ޜ': 'z',
294
+ 'ޝ': 'sh',
295
+ 'ޞ': 's',
296
+ 'ޟ': 'd',
297
+ 'ޠ': 't',
298
+ 'ޡ': 'z',
299
+ 'ޢ': 'a',
300
+ 'ޣ': 'gh',
301
+ 'ޤ': 'q',
302
+ 'ޥ': 'w',
303
+ 'ަ': 'a',
304
+ 'ާ': 'aa',
305
+ 'ި': 'i',
306
+ 'ީ': 'ee',
307
+ 'ު': 'u',
308
+ 'ޫ': 'oo',
309
+ 'ެ': 'e',
310
+ 'ޭ': 'ey',
311
+ 'ޮ': 'o',
312
+ 'ޯ': 'oa',
313
+ 'ް': '',
314
+
264
315
  // Greek
265
316
  'α': 'a',
266
317
  'β': 'v',
@@ -675,7 +726,10 @@
675
726
  */
676
727
  var lookAheadCharArray = [
677
728
  // burmese
678
- '်'
729
+ '်',
730
+
731
+ // Dhivehi
732
+ 'ް'
679
733
  ];
680
734
 
681
735
  /**
@@ -735,7 +789,11 @@
735
789
  'ဉ်': 'in',
736
790
  'ံ': 'an',
737
791
  'ိံ': 'ein',
738
- 'ုံ': 'on'
792
+ 'ုံ': 'on',
793
+
794
+ // Dhivehi
795
+ 'ައް': 'ah',
796
+ 'ަށް': 'ah',
739
797
  };
740
798
 
741
799
  /**
@@ -953,6 +1011,18 @@
953
1011
  '¤': 'Waehrung'
954
1012
  },
955
1013
 
1014
+ 'dv': {
1015
+ '∆': 'delta',
1016
+ '∞': 'kolunulaa',
1017
+ '♥': 'loabi',
1018
+ '&': 'aai',
1019
+ '|': 'noonee',
1020
+ '<': 'ah vure kuda',
1021
+ '>': 'ah vure bodu',
1022
+ '∑': 'jumula',
1023
+ '¤': 'faisaa'
1024
+ },
1025
+
956
1026
  'en': {
957
1027
  '∆': 'delta',
958
1028
  '∞': 'infinity',
@@ -1282,7 +1352,8 @@
1282
1352
 
1283
1353
  lastCharWasSymbol = false;
1284
1354
  lastCharWasDiatric = false;
1285
- } else if (ch in diatricMap) {
1355
+ } else
1356
+ if (ch in diatricMap) {
1286
1357
  diatricString += ch;
1287
1358
  ch = '';
1288
1359
  // end of string, put the whole meaningful word
metadata CHANGED
@@ -1,27 +1,27 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: speakingurl-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 7.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-08-15 00:00:00.000000000 Z
11
+ date: 2015-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ">="
24
+ - - '>='
25
25
  - !ruby/object:Gem::Version
26
26
  version: '3.1'
27
27
  description: Generate a slug – transliteration with a lot of options
@@ -31,8 +31,8 @@ executables: []
31
31
  extensions: []
32
32
  extra_rdoc_files: []
33
33
  files:
34
- - LICENSE
35
34
  - README.md
35
+ - LICENSE
36
36
  - lib/speakingurl-rails.rb
37
37
  - lib/speakingurl.js
38
38
  homepage: http://pid.github.io/speakingurl/
@@ -46,17 +46,17 @@ require_paths:
46
46
  - lib
47
47
  required_ruby_version: !ruby/object:Gem::Requirement
48
48
  requirements:
49
- - - ">="
49
+ - - '>='
50
50
  - !ruby/object:Gem::Version
51
51
  version: '0'
52
52
  required_rubygems_version: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - ">="
54
+ - - '>='
55
55
  - !ruby/object:Gem::Version
56
56
  version: '0'
57
57
  requirements: []
58
58
  rubyforge_project:
59
- rubygems_version: 2.4.5
59
+ rubygems_version: 2.0.14
60
60
  signing_key:
61
61
  specification_version: 4
62
62
  summary: Speakingurl for Rails asset pipeline