reg 0.4.6 → 0.4.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/reg.gemspec +1 -1
  2. data/reglogic.rb +4 -4
  3. metadata +58 -54
@@ -3,7 +3,7 @@ require 'rubygems'
3
3
  spec = Gem::Specification.new do |s|
4
4
  s.name = 'reg'
5
5
  s.rubyforge_project = 'reg'
6
- s.version = '0.4.6'
6
+ s.version = '0.4.7'
7
7
  s.summary = 'The reg pattern matching/replacement language'
8
8
  s.files = %w[item_thattest.rb regbackref.rb regknows.rb regtest.rb
9
9
  numberset.rb regbind.rb reglogic.rb regvar.rb
@@ -128,7 +128,7 @@ module Reg
128
128
  maybe_multiples(*regs)
129
129
  end
130
130
  def ===(obj)
131
- @regs.each {|reg| reg===obj and return obj }
131
+ @regs.each {|reg| reg===obj and return obj||true }
132
132
  return false
133
133
  end
134
134
 
@@ -154,8 +154,8 @@ module Reg
154
154
  maybe_multiples(*regs)
155
155
  end
156
156
  def ===(obj)
157
- @regs.each {|reg| @reg===obj or return false }
158
- return obj
157
+ @regs.each {|reg| reg===obj or return false }
158
+ return obj||true
159
159
  end
160
160
  def &(reg)
161
161
  newregs=@regs + ((self.class===reg)? reg.regs : [reg])
@@ -192,4 +192,4 @@ module Reg
192
192
 
193
193
  def subregs; @regs end
194
194
  end
195
- end
195
+ end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.11
2
+ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: reg
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.4.6
7
- date: 2005-11-18 00:00:00 -08:00
6
+ version: 0.4.7
7
+ date: 2006-10-30 00:00:00 -08:00
8
8
  summary: The reg pattern matching/replacement language
9
9
  require_paths:
10
- - "."
10
+ - .
11
11
  email:
12
12
  homepage:
13
13
  rubyforge_project: reg
@@ -18,66 +18,70 @@ bindir: bin
18
18
  has_rdoc: false
19
19
  required_ruby_version: !ruby/object:Gem::Version::Requirement
20
20
  requirements:
21
- -
22
- - ">"
23
- - !ruby/object:Gem::Version
24
- version: 0.0.0
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
25
24
  version:
26
25
  platform: ruby
27
26
  signing_key:
28
27
  cert_chain:
28
+ post_install_message:
29
29
  authors:
30
- - Caleb Clausen
30
+ - Caleb Clausen
31
31
  files:
32
- - item_thattest.rb
33
- - regbackref.rb
34
- - regknows.rb
35
- - regtest.rb
36
- - numberset.rb
37
- - regbind.rb
38
- - reglogic.rb
39
- - regvar.rb
40
- - COPYING
41
- - parser.txt
42
- - regcase.rb
43
- - reglookab.rb
44
- - README
45
- - regcore.rb
46
- - regold.rb
47
- - reg.gemspec
48
- - reggrid.csv
49
- - assert.rb
50
- - philosophy.txt
51
- - regdeferred.rb
52
- - regpath.rb
53
- - regposition.rb
54
- - trace.rb
55
- - calc.reg
56
- - reg.rb
57
- - regguide.txt
58
- - regprogress.rb
59
- - reghash.rb
60
- - regreplace.rb
61
- - forward_to.rb
62
- - regarray.rb
63
- - regarrayold.rb
64
- - regitem_that.rb
65
- - regsugar.rb
32
+ - item_thattest.rb
33
+ - regbackref.rb
34
+ - regknows.rb
35
+ - regtest.rb
36
+ - numberset.rb
37
+ - regbind.rb
38
+ - reglogic.rb
39
+ - regvar.rb
40
+ - COPYING
41
+ - parser.txt
42
+ - regcase.rb
43
+ - reglookab.rb
44
+ - README
45
+ - regcore.rb
46
+ - regold.rb
47
+ - reg.gemspec
48
+ - reggrid.csv
49
+ - assert.rb
50
+ - philosophy.txt
51
+ - regdeferred.rb
52
+ - regpath.rb
53
+ - regposition.rb
54
+ - trace.rb
55
+ - calc.reg
56
+ - reg.rb
57
+ - regguide.txt
58
+ - regprogress.rb
59
+ - reghash.rb
60
+ - regreplace.rb
61
+ - forward_to.rb
62
+ - regarray.rb
63
+ - regarrayold.rb
64
+ - regitem_that.rb
65
+ - regsugar.rb
66
66
  test_files: []
67
+
67
68
  rdoc_options: []
69
+
68
70
  extra_rdoc_files: []
71
+
69
72
  executables: []
73
+
70
74
  extensions: []
75
+
71
76
  requirements:
72
- - none
77
+ - none
73
78
  dependencies:
74
- - !ruby/object:Gem::Dependency
75
- name: cursor
76
- version_requirement:
77
- version_requirements: !ruby/object:Gem::Version::Requirement
78
- requirements:
79
- -
80
- - ">="
81
- - !ruby/object:Gem::Version
82
- version: "0.9"
83
- version:
79
+ - !ruby/object:Gem::Dependency
80
+ name: cursor
81
+ version_requirement:
82
+ version_requirements: !ruby/object:Gem::Version::Requirement
83
+ requirements:
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: "0.9"
87
+ version: