fonemas 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- OTZlZGNhZmEzYzllN2MxYmYwMGQ4ODIzNjRjNTcwMmQzODI2ZGEyMQ==
4
+ M2UyZDY4OGM5NTc4ZjViMDBhMGIxZTU4M2Q3Y2NjNzhkNzVmYWY3MQ==
5
5
  data.tar.gz: !binary |-
6
- MDNmMjNhNjAwNTczNTdmNWRlNzExMmFhNGI1YjlkNDc0Y2ZmZjExOA==
6
+ NDVmMTdjYzc4ZjQ0Y2U5Mzc3NGZjOGI1ZmU3NWU2OTAyYjAyMjc2Yg==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjkyNDVhZDNlYWE2YmQ4MWRmM2MwOTU3ZTlmOGI2NjllMDE2N2I3MGUwNGIz
10
- MzIxZDcwNTFhODBiOTJmMDg0MGVjYzliOWI0MjRhMTU0MWU4Njg5ZmZmYWEx
11
- YjNlMWJiMDI4MTc2M2IwNGVhZTY0MmZjMWVjODE3NTQ2NTFiMzU=
9
+ M2YyMjA1MGU1N2EyZWE3NjY2NTQ4MmQxNThlNDAwOTkyMDBiMjdjMjU0NGVk
10
+ ZTIzMjdkMDE0YWY4NGJhYjY3MGYyOGUwODM1YmFkNzZiMWMyNTFkMGU3ZWEy
11
+ ZWVmYjQzMmFiNDU4NzFmZjRiNjViNWVhZmNhMjlhNWExOGNiNTI=
12
12
  data.tar.gz: !binary |-
13
- M2ZjMTNmMjAxOTc3ZDVlMDhkMWU5MGIwNzAyMWQ1ZGUxMzFmOTU0ZTVkNmJh
14
- NzhiZTU1MzNmOTMxODllZWZhNDk2YTRkNTk5YmIxYzFkYjZjYTNlMjA0ZWEw
15
- YjAzNGM2ZDNmNmJjNWY2ZDcyY2NjZTQxMjFiMWNiZmQ1YTZkNGE=
13
+ ODNiOTJkY2Q1NDU3NjY1ZTJhY2YxMzFjMjYyNTUyZTkwOWYwNWFlODBjOGRj
14
+ ZWZkNDFiYmE1ZjdkMjYxNjE5NjM3NDY4ZGUyZTk2MDM1MmNiZTc2MDhjZmY1
15
+ MjI4YmIxMTg3OWE4Y2Q5ODUzZjlkMjAzZWVjMGMxMmEyZDYwMzk=
@@ -32,12 +32,17 @@ words = words.uniq
32
32
  for i in words
33
33
  fonemas = Fonemas.fonemas(i)
34
34
  count = 0
35
- for f in fonemas
36
- if count > 0
37
- puts "#{i}(#{count})\t#{f}"
38
- else
39
- puts "#{i}\t#{f}"
35
+ begin
36
+ for f in fonemas
37
+ if count > 0
38
+ puts "#{i}(#{count})\t#{f}"
39
+ else
40
+ puts "#{i}\t#{f}"
41
+ end
42
+ count += 1
40
43
  end
41
- count += 1
44
+ rescue
45
+ puts "error al procesar fonemas para #{i}"
46
+ exit
42
47
  end
43
48
  end
@@ -1,3 +1,3 @@
1
1
  module Fonemas
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
@@ -25,6 +25,7 @@ describe Fonemas do
25
25
  Fonemas.fonemas('obvio').should include('oo b i o')
26
26
  Fonemas.fonemas('guerra').should_not include('ee rr a')
27
27
  Fonemas.fonemas('d').should_not include('')
28
+ Fonemas.fonemas('dé').should include('d ee')
28
29
 
29
30
 
30
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fonemas
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Bahamondez Honores