Skip to content

Commit

Permalink
Merge branch 'release/0.3.3' into develop
Browse files Browse the repository at this point in the history
  • Loading branch information
benlangfeld committed Dec 16, 2011
2 parents 99ce9fc + a448bb0 commit aa5dc1c
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,3 +1,7 @@
# 0.3.3
* Allow `SSML::Element.import` and `GRXML::Element.import` to take a string as well as a Nokogiri::XML::Node
* Allow importing GRXML/SSML documents via their respective modules (eg `RubySpeech::GRXML.import '<grammar ... />'`)

# 0.3.2 # 0.3.2
* Fix inheriting an `SSML::Speak`'s language. Previously an imported `<speak/>` would end up with a `lang` attribute in addition to `xml:lang`, and `xml:lang` would have the default value (`en-US`). This required a Niceogiri dependency update. * Fix inheriting an `SSML::Speak`'s language. Previously an imported `<speak/>` would end up with a `lang` attribute in addition to `xml:lang`, and `xml:lang` would have the default value (`en-US`). This required a Niceogiri dependency update.


Expand Down
4 changes: 4 additions & 0 deletions lib/ruby_speech/grxml.rb
Expand Up @@ -21,5 +21,9 @@ def self.draw(attributes = {}, &block)
grammar << block_return if block_return.is_a?(String) grammar << block_return if block_return.is_a?(String)
end end
end end

def self.import(other)
Element.import other
end
end # GRXML end # GRXML
end # RubySpeech end # RubySpeech
4 changes: 4 additions & 0 deletions lib/ruby_speech/ssml.rb
Expand Up @@ -21,5 +21,9 @@ def self.draw(&block)
speak << block_return if block_return.is_a?(String) speak << block_return if block_return.is_a?(String)
end end
end end

def self.import(other)
Element.import other
end
end # SSML end # SSML
end # RubySpeech end # RubySpeech
2 changes: 1 addition & 1 deletion lib/ruby_speech/version.rb
@@ -1,3 +1,3 @@
module RubySpeech module RubySpeech
VERSION = "0.3.2" VERSION = "0.3.3"
end end
2 changes: 1 addition & 1 deletion spec/ruby_speech/grxml_spec.rb
Expand Up @@ -229,7 +229,7 @@ module RubySpeech
GRXML::Grammar.new.tap { |doc| doc << rule }.to_s GRXML::Grammar.new.tap { |doc| doc << rule }.to_s
end end


let(:import) { GRXML::Element.import document } let(:import) { GRXML.import document }


subject { import } subject { import }


Expand Down
2 changes: 1 addition & 1 deletion spec/ruby_speech/ssml_spec.rb
Expand Up @@ -238,7 +238,7 @@ module RubySpeech
SSML::Speak.new.tap { |doc| doc << voice }.to_s SSML::Speak.new.tap { |doc| doc << voice }.to_s
end end


let(:import) { SSML::Element.import document } let(:import) { SSML.import document }


subject { import } subject { import }


Expand Down

0 comments on commit aa5dc1c

Please sign in to comment.