phonology 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -18,7 +18,7 @@ module Phonology
18
18
  if arg.kind_of? String
19
19
  @sounds = arg.split('').map {|letter| Sound.new(letter)}
20
20
  else
21
- @sounds = arg.to_a
21
+ @sounds = [arg].flatten.compact
22
22
  end
23
23
  end
24
24
 
@@ -12,7 +12,7 @@ module Phonology
12
12
  end
13
13
 
14
14
  def to_a
15
- [onset.to_a, rime.to_a].flatten
15
+ [onset.to_a, rime.map(&:to_a)].flatten
16
16
  end
17
17
 
18
18
  def valid?
@@ -59,4 +59,4 @@ module Phonology
59
59
  onset.empty? && nucleus.empty? && coda.empty?
60
60
  end
61
61
  end
62
- end
62
+ end
@@ -1,3 +1,3 @@
1
1
  module Phonology
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phonology
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
5
4
  prerelease: false
6
5
  segments:
7
6
  - 0
8
7
  - 0
9
- - 7
10
- version: 0.0.7
8
+ - 8
9
+ version: 0.0.8
11
10
  platform: ruby
12
11
  authors:
13
12
  - Norman Clarke
@@ -15,7 +14,7 @@ autorequire:
15
14
  bindir: bin
16
15
  cert_chain: []
17
16
 
18
- date: 2010-07-09 00:00:00 -03:00
17
+ date: 2010-07-10 00:00:00 -03:00
19
18
  default_executable:
20
19
  dependencies: []
21
20
 
@@ -61,7 +60,6 @@ required_ruby_version: !ruby/object:Gem::Requirement
61
60
  requirements:
62
61
  - - ">="
63
62
  - !ruby/object:Gem::Version
64
- hash: 3
65
63
  segments:
66
64
  - 0
67
65
  version: "0"
@@ -70,7 +68,6 @@ required_rubygems_version: !ruby/object:Gem::Requirement
70
68
  requirements:
71
69
  - - ">="
72
70
  - !ruby/object:Gem::Version
73
- hash: 3
74
71
  segments:
75
72
  - 0
76
73
  version: "0"