ruby-boost-regex 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.document +5 -0
- data/.gitignore +4 -0
- data/LICENSE +20 -0
- data/README.markdown +105 -0
- data/Rakefile +53 -0
- data/VERSION +1 -0
- data/benchmark/benchmark.rb +71 -0
- data/benchmark/fasta.input +2500 -0
- data/ext/ruby-boost-regex/extconf.rb +5 -0
- data/ext/ruby-boost-regex/regexp.cpp +340 -0
- data/lib/ruby-boost-regex.rb +3 -0
- data/lib/ruby-boost-regex/ruby-parts.rb +25 -0
- data/spec/ruby-boost-regex_spec.rb +299 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +22 -0
- metadata +105 -0
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
2
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
3
|
+
require 'ruby-boost-regex'
|
4
|
+
require 'ruby-boost-regex/BoostRegexHook'
|
5
|
+
require 'spec'
|
6
|
+
require 'spec/autorun'
|
7
|
+
|
8
|
+
Spec::Matchers.define :have_flag do |flag|
|
9
|
+
match do |bitmask|
|
10
|
+
bitmask & flag > 0
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
Spec::Matchers.define :match do |string|
|
15
|
+
match do |regexp|
|
16
|
+
regexp.match(string) != nil
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
Spec::Runner.configure do |config|
|
21
|
+
|
22
|
+
end
|
metadata
ADDED
@@ -0,0 +1,105 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ruby-boost-regex
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 1
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
version: 1.0.0
|
10
|
+
platform: ruby
|
11
|
+
authors:
|
12
|
+
- Michael Edgar
|
13
|
+
autorequire:
|
14
|
+
bindir: bin
|
15
|
+
cert_chain: []
|
16
|
+
|
17
|
+
date: 2010-04-06 00:00:00 -04:00
|
18
|
+
default_executable:
|
19
|
+
dependencies:
|
20
|
+
- !ruby/object:Gem::Dependency
|
21
|
+
name: rspec
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
requirements:
|
25
|
+
- - ">="
|
26
|
+
- !ruby/object:Gem::Version
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 2
|
30
|
+
- 9
|
31
|
+
version: 1.2.9
|
32
|
+
type: :development
|
33
|
+
version_requirements: *id001
|
34
|
+
- !ruby/object:Gem::Dependency
|
35
|
+
name: lorem
|
36
|
+
prerelease: false
|
37
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
+
requirements:
|
39
|
+
- - ">="
|
40
|
+
- !ruby/object:Gem::Version
|
41
|
+
segments:
|
42
|
+
- 0
|
43
|
+
- 1
|
44
|
+
- 2
|
45
|
+
version: 0.1.2
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id002
|
48
|
+
description: Provides a complete drop-in replacement for Regexp based on the C++ Boost library's Regex class. Enables access to a wide variety of configuration flags that Boost uses.
|
49
|
+
email: michael.j.edgar@dartmouth.edu
|
50
|
+
executables: []
|
51
|
+
|
52
|
+
extensions:
|
53
|
+
- ext/ruby-boost-regex/extconf.rb
|
54
|
+
extra_rdoc_files:
|
55
|
+
- LICENSE
|
56
|
+
- README.markdown
|
57
|
+
files:
|
58
|
+
- .document
|
59
|
+
- .gitignore
|
60
|
+
- LICENSE
|
61
|
+
- README.markdown
|
62
|
+
- Rakefile
|
63
|
+
- VERSION
|
64
|
+
- benchmark/benchmark.rb
|
65
|
+
- benchmark/fasta.input
|
66
|
+
- ext/ruby-boost-regex/extconf.rb
|
67
|
+
- ext/ruby-boost-regex/regexp.cpp
|
68
|
+
- lib/ruby-boost-regex.rb
|
69
|
+
- lib/ruby-boost-regex/ruby-parts.rb
|
70
|
+
- spec/ruby-boost-regex_spec.rb
|
71
|
+
- spec/spec.opts
|
72
|
+
- spec/spec_helper.rb
|
73
|
+
has_rdoc: true
|
74
|
+
homepage: http://github.com/michaeledgar/ruby-boost-regex
|
75
|
+
licenses: []
|
76
|
+
|
77
|
+
post_install_message:
|
78
|
+
rdoc_options:
|
79
|
+
- --charset=UTF-8
|
80
|
+
require_paths:
|
81
|
+
- lib
|
82
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - ">="
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
segments:
|
87
|
+
- 0
|
88
|
+
version: "0"
|
89
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - ">="
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
segments:
|
94
|
+
- 0
|
95
|
+
version: "0"
|
96
|
+
requirements: []
|
97
|
+
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 1.3.6
|
100
|
+
signing_key:
|
101
|
+
specification_version: 3
|
102
|
+
summary: Wraps Boost.Regex in a Ruby binding
|
103
|
+
test_files:
|
104
|
+
- spec/ruby-boost-regex_spec.rb
|
105
|
+
- spec/spec_helper.rb
|