srgs 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/srgs/elements/item.rb +2 -1
- data/lib/srgs/grammar_builder.rb +2 -0
- data/lib/srgs/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9f8d7b7261150f779271b46747725695f7f7db6f
|
4
|
+
data.tar.gz: d6127b54a7182f7d272cb5fc2887cefc10477ed9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4911df2a96527af8fe7b632e53723d9aaed1cc4232772d1189b7087ac0cd4e459a5932a3e1c059a3df6c6acfa9fb550d48d9c0c6287c9e227df5fdc41728c81
|
7
|
+
data.tar.gz: ec8ca2c254e19811e88d8980a3387cc1cb54d690f2aeea16f5f802101d05b1ee130bfe14740e6cf3e66b06650a3fa039a7eb4b3f5e6fb4961082c4baaf5c08ce
|
data/lib/srgs/elements/item.rb
CHANGED
@@ -4,7 +4,8 @@ module Srgs
|
|
4
4
|
attr_accessor :elements, :repeat, :repeat_prob, :weight
|
5
5
|
|
6
6
|
def initialize(element = '', repeat=nil, repeat_prob = nil, weight = nil)
|
7
|
-
@elements = [
|
7
|
+
@elements = []
|
8
|
+
@elements << element unless element == ''
|
8
9
|
@repeat = repeat
|
9
10
|
@repeat_prob = repeat_prob
|
10
11
|
@weight = weight
|
data/lib/srgs/grammar_builder.rb
CHANGED
data/lib/srgs/version.rb
CHANGED
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.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- kristenmills
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|