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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 36ca218a8938ba13a38b4582a2fa757635d07ff4
4
- data.tar.gz: 63925ebfa4aaa9697b61a165c4fc9abf1e774207
3
+ metadata.gz: 11427469daf0138bcee8940476817a59795e94b4
4
+ data.tar.gz: 2dee9400e173605943be165458fff749b02df6c5
5
5
  SHA512:
6
- metadata.gz: 2b399f5f039aed7127c50f50f239240e80d731ddbc9de36d9fa18fe2c5361bcef39b1b948432e95f16c21f9bedb2f8fdb35ed5d192721b75c1da6e2f5cd35597
7
- data.tar.gz: aeb17f9b4c653d77f0976dcf6aeda9df9a3190b06f780d3c19ea7abfdf839c39ccd4685669ce3be544d420b3a752cf935d0043a5685f3c174eda3ad5895d2a0c
6
+ metadata.gz: 66e55b92d117c7b46cb722b0f373b6828e7adcad1132a7df7f69e3bc3acb29d7ed0866e07443def4ec746a95da0d0dadb46ab9a6d2dde88c62021b22162c351f
7
+ data.tar.gz: 324530f3b886948a870d4907443c2ec2650a0740a2c84da23eacfd533ccf7b66c156b08a14aae6c88f033cbeaeb96538b094edc4c0c4cdac9e785f4abc31a17b
data/lib/srgs/dsl.rb CHANGED
@@ -6,7 +6,7 @@ module Srgs
6
6
  end
7
7
 
8
8
  def grammar(root, &block)
9
- @grammar = Grammar.new 'root'
9
+ @grammar = Grammar.new root
10
10
  instance_eval &block
11
11
  @grammar.current_level = nil
12
12
  puts Srgs.build(@grammar)
@@ -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 do
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
@@ -1,3 +1,3 @@
1
1
  module Srgs
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: srgs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kristenmills