ruby_speech 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml ADDED
@@ -0,0 +1,14 @@
1
+ rvm:
2
+ - 1.9.2
3
+ - rbx
4
+ - rbx-2.0
5
+ - jruby
6
+ - ruby-head
7
+
8
+ notifications:
9
+ irc: "irc.freenode.org#adhearsion-dev"
10
+
11
+ branches:
12
+ only:
13
+ - master
14
+ - develop
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.1.4
2
+ Bugfix: Speak#+ now returns a brand new Speak rather than modifying the original object
3
+ Bugfix: Speak#+ now re-sets the namespace on child elements to ensure no default namespace prefix is added
4
+
1
5
  # 0.1.3
2
6
  Bugfix: Strings included via the DSL (both as a block return value and by calling #string) are now properly escaped
3
7
 
@@ -8,7 +8,7 @@ module RubySpeech
8
8
  class Speak < Element
9
9
  include XML::Language
10
10
 
11
- VALID_CHILD_TYPES = [Nokogiri::XML::Element, String, Break, Emphasis, Prosody, SayAs, Voice].freeze
11
+ VALID_CHILD_TYPES = [String, Break, Emphasis, Prosody, SayAs, Voice].freeze
12
12
 
13
13
  ##
14
14
  # Create a new SSML speak root element
@@ -52,8 +52,10 @@ module RubySpeech
52
52
  end
53
53
 
54
54
  def +(other)
55
- other.children.each { |child| self << child }
56
- self
55
+ self.class.new(:base_uri => base_uri).tap do |new_speak|
56
+ new_speak.children = self.children + other.children
57
+ new_speak.children.each { |c| c.namespace = new_speak.namespace }
58
+ end
57
59
  end
58
60
 
59
61
  def eql?(o)
@@ -1,3 +1,3 @@
1
1
  module RubySpeech
2
- VERSION = "0.1.3"
2
+ VERSION = "0.1.4"
3
3
  end
data/ruby_speech.gemspec CHANGED
@@ -24,7 +24,7 @@ Gem::Specification.new do |s|
24
24
  s.add_development_dependency %q<bundler>, ["~> 1.0.0"]
25
25
  s.add_development_dependency %q<rspec>, ["~> 2.3.0"]
26
26
  s.add_development_dependency %q<ci_reporter>, [">= 1.6.3"]
27
- s.add_development_dependency %q<yard>, ["~> 0.6.0"]
27
+ s.add_development_dependency %q<yard>, ["~> 0.7.0"]
28
28
  s.add_development_dependency %q<rake>, [">= 0"]
29
29
  s.add_development_dependency %q<mocha>, [">= 0"]
30
30
  s.add_development_dependency %q<i18n>, [">= 0"]
@@ -141,7 +141,9 @@ module RubySpeech
141
141
  expected_concat << Voice.new(:name => 'frank', :content => "Hi, I'm Frank")
142
142
  expected_concat << Voice.new(:name => 'millie', :content => "Hi, I'm Millie")
143
143
 
144
- (speak1 + speak2).should == expected_concat
144
+ concat = (speak1 + speak2)
145
+ concat.should == expected_concat
146
+ concat.to_s.should_not include('default')
145
147
  end
146
148
  end # Speak
147
149
  end # SSML
metadata CHANGED
@@ -1,163 +1,126 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: ruby_speech
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 3
9
- version: 0.1.3
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Ben Langfeld
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2011-07-10 00:00:00 +01:00
12
+ date: 2011-08-06 00:00:00.000000000 +01:00
18
13
  default_executable:
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
21
16
  name: niceogiri
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
17
+ requirement: &2157192140 !ruby/object:Gem::Requirement
24
18
  none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- segments:
29
- - 0
30
- - 0
31
- - 4
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
32
22
  version: 0.0.4
33
23
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: activesupport
37
24
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
25
+ version_requirements: *2157192140
26
+ - !ruby/object:Gem::Dependency
27
+ name: activesupport
28
+ requirement: &2157191620 !ruby/object:Gem::Requirement
39
29
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- segments:
44
- - 3
45
- - 0
46
- - 7
30
+ requirements:
31
+ - - ! '>='
32
+ - !ruby/object:Gem::Version
47
33
  version: 3.0.7
48
34
  type: :runtime
49
- version_requirements: *id002
50
- - !ruby/object:Gem::Dependency
51
- name: bundler
52
35
  prerelease: false
53
- requirement: &id003 !ruby/object:Gem::Requirement
36
+ version_requirements: *2157191620
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ requirement: &2157191140 !ruby/object:Gem::Requirement
54
40
  none: false
55
- requirements:
41
+ requirements:
56
42
  - - ~>
57
- - !ruby/object:Gem::Version
58
- segments:
59
- - 1
60
- - 0
61
- - 0
43
+ - !ruby/object:Gem::Version
62
44
  version: 1.0.0
63
45
  type: :development
64
- version_requirements: *id003
65
- - !ruby/object:Gem::Dependency
66
- name: rspec
67
46
  prerelease: false
68
- requirement: &id004 !ruby/object:Gem::Requirement
47
+ version_requirements: *2157191140
48
+ - !ruby/object:Gem::Dependency
49
+ name: rspec
50
+ requirement: &2157190660 !ruby/object:Gem::Requirement
69
51
  none: false
70
- requirements:
52
+ requirements:
71
53
  - - ~>
72
- - !ruby/object:Gem::Version
73
- segments:
74
- - 2
75
- - 3
76
- - 0
54
+ - !ruby/object:Gem::Version
77
55
  version: 2.3.0
78
56
  type: :development
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: ci_reporter
82
57
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
58
+ version_requirements: *2157190660
59
+ - !ruby/object:Gem::Dependency
60
+ name: ci_reporter
61
+ requirement: &2157190180 !ruby/object:Gem::Requirement
84
62
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- segments:
89
- - 1
90
- - 6
91
- - 3
63
+ requirements:
64
+ - - ! '>='
65
+ - !ruby/object:Gem::Version
92
66
  version: 1.6.3
93
67
  type: :development
94
- version_requirements: *id005
95
- - !ruby/object:Gem::Dependency
96
- name: yard
97
68
  prerelease: false
98
- requirement: &id006 !ruby/object:Gem::Requirement
69
+ version_requirements: *2157190180
70
+ - !ruby/object:Gem::Dependency
71
+ name: yard
72
+ requirement: &2157183900 !ruby/object:Gem::Requirement
99
73
  none: false
100
- requirements:
74
+ requirements:
101
75
  - - ~>
102
- - !ruby/object:Gem::Version
103
- segments:
104
- - 0
105
- - 6
106
- - 0
107
- version: 0.6.0
76
+ - !ruby/object:Gem::Version
77
+ version: 0.7.0
108
78
  type: :development
109
- version_requirements: *id006
110
- - !ruby/object:Gem::Dependency
111
- name: rake
112
79
  prerelease: false
113
- requirement: &id007 !ruby/object:Gem::Requirement
80
+ version_requirements: *2157183900
81
+ - !ruby/object:Gem::Dependency
82
+ name: rake
83
+ requirement: &2157183320 !ruby/object:Gem::Requirement
114
84
  none: false
115
- requirements:
116
- - - ">="
117
- - !ruby/object:Gem::Version
118
- segments:
119
- - 0
120
- version: "0"
85
+ requirements:
86
+ - - ! '>='
87
+ - !ruby/object:Gem::Version
88
+ version: '0'
121
89
  type: :development
122
- version_requirements: *id007
123
- - !ruby/object:Gem::Dependency
124
- name: mocha
125
90
  prerelease: false
126
- requirement: &id008 !ruby/object:Gem::Requirement
91
+ version_requirements: *2157183320
92
+ - !ruby/object:Gem::Dependency
93
+ name: mocha
94
+ requirement: &2157182760 !ruby/object:Gem::Requirement
127
95
  none: false
128
- requirements:
129
- - - ">="
130
- - !ruby/object:Gem::Version
131
- segments:
132
- - 0
133
- version: "0"
96
+ requirements:
97
+ - - ! '>='
98
+ - !ruby/object:Gem::Version
99
+ version: '0'
134
100
  type: :development
135
- version_requirements: *id008
136
- - !ruby/object:Gem::Dependency
137
- name: i18n
138
101
  prerelease: false
139
- requirement: &id009 !ruby/object:Gem::Requirement
102
+ version_requirements: *2157182760
103
+ - !ruby/object:Gem::Dependency
104
+ name: i18n
105
+ requirement: &2157182140 !ruby/object:Gem::Requirement
140
106
  none: false
141
- requirements:
142
- - - ">="
143
- - !ruby/object:Gem::Version
144
- segments:
145
- - 0
146
- version: "0"
107
+ requirements:
108
+ - - ! '>='
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
147
111
  type: :development
148
- version_requirements: *id009
112
+ prerelease: false
113
+ version_requirements: *2157182140
149
114
  description: Prepare SSML and GRXML documents with ease
150
- email:
115
+ email:
151
116
  - ben@langfeld.me
152
117
  executables: []
153
-
154
118
  extensions: []
155
-
156
119
  extra_rdoc_files: []
157
-
158
- files:
120
+ files:
159
121
  - .gitignore
160
122
  - .rspec
123
+ - .travis.yml
161
124
  - CHANGELOG.md
162
125
  - Gemfile
163
126
  - LICENSE.md
@@ -191,36 +154,29 @@ files:
191
154
  has_rdoc: true
192
155
  homepage: https://github.com/benlangfeld/ruby_speech
193
156
  licenses: []
194
-
195
157
  post_install_message:
196
158
  rdoc_options: []
197
-
198
- require_paths:
159
+ require_paths:
199
160
  - lib
200
- required_ruby_version: !ruby/object:Gem::Requirement
161
+ required_ruby_version: !ruby/object:Gem::Requirement
201
162
  none: false
202
- requirements:
203
- - - ">="
204
- - !ruby/object:Gem::Version
205
- segments:
206
- - 0
207
- version: "0"
208
- required_rubygems_version: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ! '>='
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ required_rubygems_version: !ruby/object:Gem::Requirement
209
168
  none: false
210
- requirements:
211
- - - ">="
212
- - !ruby/object:Gem::Version
213
- segments:
214
- - 0
215
- version: "0"
169
+ requirements:
170
+ - - ! '>='
171
+ - !ruby/object:Gem::Version
172
+ version: '0'
216
173
  requirements: []
217
-
218
174
  rubyforge_project: ruby_speech
219
- rubygems_version: 1.3.7
175
+ rubygems_version: 1.6.2
220
176
  signing_key:
221
177
  specification_version: 3
222
178
  summary: A ruby library for TTS & ASR document preparation
223
- test_files:
179
+ test_files:
224
180
  - spec/ruby_speech/ssml/break_spec.rb
225
181
  - spec/ruby_speech/ssml/emphasis_spec.rb
226
182
  - spec/ruby_speech/ssml/prosody_spec.rb