bindy 0.0.2 → 0.0.3

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: 93a8d234b78c67c34b225d41485360843621cbfa
4
- data.tar.gz: 2d7085724da8c7c56b11ce6fde2db90f66ee1404
3
+ metadata.gz: 6490af3e06014b76edef51e39d09174586b6f343
4
+ data.tar.gz: 480b76ff73c5623d6c74f475d7b048a3d61c9c69
5
5
  SHA512:
6
- metadata.gz: 41d424c54474052f5b46bc95edb1569b1eec62e312c27517f72b7361af6397d7cbbd27c4d95032cc9375e57c6c1679edf94e5d55f74c7b009f36ae2e4746429c
7
- data.tar.gz: a4edb27d4a48052ab523cfbb567481cc6380cda06b103a6cf541f32ccb62a19cdd0f89f2649c9b864d12ad1c75bfe7a4ae66ba64a422c315d8a75e43d7ed13a2
6
+ metadata.gz: 21a67be2837f3674bd00e791f04ce01f410d6b3bac17e4b748f81e51ba22da1836deb732577c825c13bd1847700ad5c3fceba6ea8acecbd10c5ae14537917bcd
7
+ data.tar.gz: 07cd9b13be0152ac0d259fd8452fe3039ccb157bf0ce698e83e438df8b87bde621b97c56deec1e312741e178700fdda682cd13f0b330f4a483934dee8ed71fb9
@@ -4,7 +4,7 @@ module Bindy
4
4
 
5
5
  attr_reader :variables
6
6
 
7
- def initialize(variables)
7
+ def initialize(variables={})
8
8
  @variables = variables
9
9
  end
10
10
 
@@ -261,11 +261,11 @@ module Bindy
261
261
 
262
262
  s0, i0 = [], index
263
263
  loop do
264
- if has_terminal?(@regexps[gr = '\A[a-z\\_]'] ||= Regexp.new(gr), :regexp, index)
264
+ if has_terminal?(@regexps[gr = '\A[a-z0-9\\_]'] ||= Regexp.new(gr), :regexp, index)
265
265
  r1 = true
266
266
  @index += 1
267
267
  else
268
- terminal_parse_failure('[a-z\\_]')
268
+ terminal_parse_failure('[a-z0-9\\_]')
269
269
  r1 = nil
270
270
  end
271
271
  if r1
@@ -16,7 +16,7 @@ module Bindy
16
16
  end
17
17
 
18
18
  rule identifier
19
- [a-z\_]+
19
+ [a-z0-9\_]+
20
20
  end
21
21
 
22
22
  rule value
@@ -1,3 +1,3 @@
1
1
  module Bindy
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bindy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gabriel Naiman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-21 00:00:00.000000000 Z
11
+ date: 2015-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: treetop