srgs 1.1.0 → 1.1.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: 4a304b9bfb2b120c57cbe7dd99b7179977710c1a
4
- data.tar.gz: 0c35bb3cda3c92dd5ae013eabbcd99e84be7cfaa
3
+ metadata.gz: 09ae8fd3d93e778bc847e99628ed5fa18f8bc4de
4
+ data.tar.gz: 10789e99188adf73abcf14d6043fe5435838db79
5
5
  SHA512:
6
- metadata.gz: ca3e9c966d092072440400e95ac8875bc92e7b4c96212d1726fd85cda4bc6e7459ed4cbc9b72cd00ba01fbc949947fdab5be495c21503cbfa2719c499ae01073
7
- data.tar.gz: e676bd401a1f1c5c06001c51c7c2d9191f542280427db473e8a50a755b534852096d980956c06f1d070b0bc51bcbfacc73ba1bb5fad642190aa1ff96915672cf
6
+ metadata.gz: a0cac0904476a5ff583ffb258b26e9fa185e26d6acc544fbd3ac68be996f90feb972fcbcc7224fcd7d745c6731b114ea0626751d8c48cc64908cf47f51c50e66
7
+ data.tar.gz: 748ced379529b9838cfb94c8f7946408aaff79f6334f505923fc91a875176df026758a1e1eda2916d1270dedae05b95d707fc0af56a69b8f769bbbca39ed0a60
@@ -4,7 +4,7 @@ module Srgs
4
4
  attr_accessor :uri, :special
5
5
 
6
6
  def initialize(rule, special=nil)
7
- @uri = "##{rule}" unless rule.nil? or rule.empty?
7
+ @uri = rule unless rule.nil? or rule.empty?
8
8
  @special =special
9
9
  end
10
10
 
@@ -41,6 +41,8 @@ module Srgs
41
41
  tag(element, xml)
42
42
  when String
43
43
  text(element, xml)
44
+ when OneOf
45
+ one_of(element, xml)
44
46
  else
45
47
  raise "Can't add #{element.class} to item."
46
48
  end
@@ -1,3 +1,3 @@
1
1
  module Srgs
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: srgs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kristenmills
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-26 00:00:00.000000000 Z
11
+ date: 2014-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler