bool 1.0.16-x86-mingw32 → 1.0.18-x86-mingw32

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: 4ae7784a4a55dc5a44251c17d2424780effd2250
4
- data.tar.gz: b13e41e5b5582e24c57cd18a3aaeae3e9d5f8030
3
+ metadata.gz: b66f68c8da7663c5da957f68e51ff532f10a17a6
4
+ data.tar.gz: 5394dd16086cc8bf6a1f9530d790c56330d40526
5
5
  SHA512:
6
- metadata.gz: fccfdc764c229b461e92220efe9fcc1fb92d298f0bfa0edf7bf31d4a9338eae1663b953471fe6baf2a51ae43421e645042d0cdcaace7e53249dcd683fc04337f
7
- data.tar.gz: bb97dfe9252c6ea1c7f957450686aaaa07af063b549bbfdd75beeee9ea1505cc5f36657b7da5bd0cf51d15dde2e46ab6b0feca902195b3468286e5cc27e981f5
6
+ metadata.gz: 01bd9d9abc912990e5aace43eb011ffaedd12d2a4e11eb295fb4e07a7a3d26181419332ac3be36cb2a64253c7f706da7588fa8e15459b74eca0b24a9846a5925
7
+ data.tar.gz: 4c5937dce8ca91c450ae32a66534c02da0f1da78b3524106afb2bbc90bc574038973c9a424d3d3fc84c91201e0df3c31f05044de8923a3187dceb748cb22becc
data/lib/bool.rb CHANGED
@@ -7,11 +7,11 @@ require 'bool/renderer'
7
7
 
8
8
  module Bool
9
9
  class SyntaxError < StandardError
10
- attr_reader :token
10
+ attr_reader :first_line, :first_column, :last_line, :last_column
11
11
 
12
- def initialize(message, token)
12
+ def initialize(message, first_line, first_column, last_line, last_column)
13
13
  super(message)
14
- @token = token
14
+ @first_line, @first_column, @last_line, @last_column = first_line, first_column, last_line, last_column
15
15
  end
16
16
  end
17
17
 
@@ -21,7 +21,7 @@ module Bool
21
21
  parser = Java::Bool::Parser.new(lexer)
22
22
  parser.buildAst()
23
23
  rescue => e
24
- raise SyntaxError.new(e.message, e.token)
24
+ raise SyntaxError.new(e.message, e.first_line, e.first_column, e.last_line, e.last_column)
25
25
  end
26
26
  module_function(:parse)
27
27
  else
data/lib/bool/ast.rb CHANGED
@@ -3,10 +3,10 @@ module Bool
3
3
  # AST classes defined in bool_ext.jar
4
4
  else
5
5
  class Token
6
- attr_reader :value, :first_line, :last_line, :first_column, :last_column
6
+ attr_reader :value, :first_line, :first_column, :last_line, :last_column
7
7
 
8
- def initialize(value, first_line, last_line, first_column, last_column)
9
- @value, @first_line, @last_line, @first_column, @last_column = value, first_line, last_line, first_column, last_column
8
+ def initialize(value, first_line, first_column, last_line, last_column)
9
+ @value, @first_line, @first_column, @last_line, @last_column = value, first_line, first_column, last_line, last_column
10
10
  end
11
11
  end
12
12
 
data/lib/bool_ext.so CHANGED
Binary file
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bool
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.16
4
+ version: 1.0.18
5
5
  platform: x86-mingw32
6
6
  authors:
7
7
  - Aslak Hellesøy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-04-15 00:00:00.000000000 Z
11
+ date: 2013-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ~>
32
32
  - !ruby/object:Gem::Version
33
- version: 1.3.0
33
+ version: 1.3.5
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: 1.3.0
40
+ version: 1.3.5
41
41
  description:
42
42
  email:
43
43
  executables: []
@@ -68,8 +68,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version: '0'
69
69
  requirements: []
70
70
  rubyforge_project:
71
- rubygems_version: 2.0.0
71
+ rubygems_version: 2.0.3
72
72
  signing_key:
73
73
  specification_version: 4
74
74
  summary: Boolean expression evaluator
75
75
  test_files: []
76
+ has_rdoc: