srgs 1.0.3 → 1.1.0

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: 52c29a9661b2d319f94b030b63998f9265afd6e9
4
- data.tar.gz: d17689a29cd45fc9e5fb1b40cb70ce8f458d559d
3
+ metadata.gz: 4a304b9bfb2b120c57cbe7dd99b7179977710c1a
4
+ data.tar.gz: 0c35bb3cda3c92dd5ae013eabbcd99e84be7cfaa
5
5
  SHA512:
6
- metadata.gz: 2153e4bfdee13a21abfbcaea860d4c41922d7f4e8d125148bdc58973f4fe58ced7b2b3dc74867813d72eadc22c542c1586fb23b565dbc661d4eae44b9ea5ca4f
7
- data.tar.gz: 81cb4cdfc6549be0b91f2dd053831cd80a161a5f7447285c508b4647d1a0c106dfd0a316a4d54cca0fb96ff4f305accaa2eccbe254ed002525b4ad49e6b1b4b8
6
+ metadata.gz: ca3e9c966d092072440400e95ac8875bc92e7b4c96212d1726fd85cda4bc6e7459ed4cbc9b72cd00ba01fbc949947fdab5be495c21503cbfa2719c499ae01073
7
+ data.tar.gz: e676bd401a1f1c5c06001c51c7c2d9191f542280427db473e8a50a755b534852096d980956c06f1d070b0bc51bcbfacc73ba1bb5fad642190aa1ff96915672cf
@@ -61,6 +61,10 @@ module Srgs
61
61
  @grammar.current_level << Item.new(RuleRef.new(name, args[:special]))
62
62
  end
63
63
 
64
+ def reference_wildcard
65
+ @grammar.current_level << RuleRef.new(nil, 'GARBAGE')
66
+ end
67
+
64
68
  def tag(text)
65
69
  @grammar.current_level << Tag.new(text)
66
70
  end
@@ -4,7 +4,7 @@ module Srgs
4
4
  attr_accessor :uri, :special
5
5
 
6
6
  def initialize(rule, special=nil)
7
- @uri = "##{rule}"
7
+ @uri = "##{rule}" unless rule.nil? or rule.empty?
8
8
  @special =special
9
9
  end
10
10
 
@@ -101,7 +101,8 @@ module Srgs
101
101
  end
102
102
 
103
103
  def rule_ref(rule_ref, xml)
104
- att = { uri: rule_ref.uri }
104
+ att = {}
105
+ set(:uri, att, rule_ref.uri)
105
106
  set(:special, att, rule_ref.special)
106
107
  xml.ruleref(att)
107
108
  end
@@ -1,3 +1,3 @@
1
1
  module Srgs
2
- VERSION = "1.0.3"
2
+ VERSION = "1.1.0"
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.3
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kristenmills