srgs 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/srgs/dsl.rb +1 -1
- data/lib/srgs/grammar_builder.rb +5 -1
- data/lib/srgs/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11427469daf0138bcee8940476817a59795e94b4
|
4
|
+
data.tar.gz: 2dee9400e173605943be165458fff749b02df6c5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 66e55b92d117c7b46cb722b0f373b6828e7adcad1132a7df7f69e3bc3acb29d7ed0866e07443def4ec746a95da0d0dadb46ab9a6d2dde88c62021b22162c351f
|
7
|
+
data.tar.gz: 324530f3b886948a870d4907443c2ec2650a0740a2c84da23eacfd533ccf7b66c156b08a14aae6c88f033cbeaeb96538b094edc4c0c4cdac9e785f4abc31a17b
|
data/lib/srgs/dsl.rb
CHANGED
data/lib/srgs/grammar_builder.rb
CHANGED
@@ -5,7 +5,11 @@ module Srgs
|
|
5
5
|
|
6
6
|
def build(grammar)
|
7
7
|
builder = Nokogiri::XML::Builder.new do |xml|
|
8
|
-
xml.grammar
|
8
|
+
xml.grammar(:'xml:lang' => "en-US",
|
9
|
+
root: grammar.root,
|
10
|
+
xmlns:"http://www.w3.org/2001/06/grammar",
|
11
|
+
version: "1.0",
|
12
|
+
:'tag-format' => "semantics/1.0") do
|
9
13
|
lexicon(grammar.lexicon, xml) unless grammar.lexicon.nil?
|
10
14
|
grammar.metas.each do |meta|
|
11
15
|
meta(meta, xml)
|
data/lib/srgs/version.rb
CHANGED