fonemas 0.0.15 → 0.0.16
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 +8 -8
- data/lib/fonemas.rb +10 -2
- data/lib/fonemas/version.rb +1 -1
- data/spec/fonemas/fonema_spec.rb +1 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ODU5ZGIxZTYwNTI0Y2QwZWE0OTIzNzAyZjgwMTk4NmRiMWZiMDhhNg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODBjNjViN2M3OWIzY2MxYWQxZmI0YzExODVhZGViMjI4ODRjMDA0Yg==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MmI5OGZiMDRmYmEyYjBjZWNlNjgwYzA1OGRlZGVkZjRmMzBhZjM3ZDU5NzYx
|
10
|
+
NDRmNzNiODE0YTE0MmU0OTRlNWZiMzc0YjY3YmM4NTUxN2RiZWQ4NzE4NWNk
|
11
|
+
Zjc5MjVjNjEzNzBkYzkyYjNhNDdmZGZiZGUzNDRkZGVmYzhhNWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YTE1ZjY5Yzg5NzBhZmRkODUyZjZiNjlmNDMyNjkwMDg1ZjIzMjU5NzA5YmZj
|
14
|
+
NTBjMDQ0Mjc0ZDgyNjE2MTljZjc5OGI5ZDM4NmVhYmU0MjE4Yjk5ZmExNGFm
|
15
|
+
MTY1YjUzODUxNzU0YzcxYjg2OWJhNTNhMmJiNDIzMjAwMTMxYjY=
|
data/lib/fonemas.rb
CHANGED
@@ -345,11 +345,19 @@ module Fonemas
|
|
345
345
|
if c.class.name == 'Array'
|
346
346
|
output = []
|
347
347
|
for j in c
|
348
|
-
|
348
|
+
if j == ''
|
349
|
+
output << generateFonemas(fonema,i+1,current)
|
350
|
+
else
|
351
|
+
output << generateFonemas(fonema,i+1,current + [j])
|
352
|
+
end
|
349
353
|
end
|
350
354
|
return output
|
351
355
|
else
|
352
|
-
|
356
|
+
if c == ''
|
357
|
+
return generateFonemas(fonema,i+1,current)
|
358
|
+
else
|
359
|
+
return generateFonemas(fonema,i+1,current + [c])
|
360
|
+
end
|
353
361
|
end
|
354
362
|
|
355
363
|
end
|
data/lib/fonemas/version.rb
CHANGED
data/spec/fonemas/fonema_spec.rb
CHANGED
@@ -10,6 +10,7 @@ describe Fonemas do
|
|
10
10
|
Fonemas.fonemas('bondad').should include('b o n D aa d')
|
11
11
|
Fonemas.fonemas('gestión').should include('j e s t i oo n')
|
12
12
|
Fonemas.fonemas('abstraer').should include('a B s t r a ee r')
|
13
|
+
Fonemas.fonemas('presidida').should include('p r e s i ii d a')
|
13
14
|
|
14
15
|
for i in Fonemas.fonemas('adskribir')
|
15
16
|
i.should end_with('ii r')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fonemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Manuel Bahamondez Honores
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-06-
|
11
|
+
date: 2013-06-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|