-
-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Regexp.quote class method. Also: added Rakefile for testing and…
… set gem metadata.
- Loading branch information
Showing
6 changed files
with
136 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
mruby |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
MRUBY_CONFIG=File.expand_path(ENV["MRUBY_CONFIG"] || "build_config_sample.rb") | ||
|
||
file :mruby do | ||
sh "git clone --depth 1 git://github.com/mruby/mruby.git" | ||
end | ||
|
||
task :default => :test | ||
|
||
desc "compile binary" | ||
task :compile => :mruby do | ||
sh "cd mruby && MRUBY_CONFIG=#{MRUBY_CONFIG} rake all" | ||
end | ||
|
||
desc "test" | ||
task :test => :mruby do | ||
sh "cd mruby && MRUBY_CONFIG=#{MRUBY_CONFIG} rake test" | ||
end | ||
|
||
desc "cleanup" | ||
task :clean do | ||
sh "cd mruby && rake deep_clean" | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
MRuby::Build.new do |conf| | ||
toolchain :gcc | ||
|
||
conf.gem File.expand_path(File.dirname(__FILE__)) | ||
end | ||
|
||
MRuby::Build.new('test') do |conf| | ||
toolchain :gcc | ||
|
||
enable_debug | ||
#conf.enable_bintest | ||
conf.enable_test | ||
|
||
conf.gembox 'default' | ||
conf.gem File.expand_path(File.dirname(__FILE__)) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
MRuby::Gem::Specification.new('mruby-pcre-regexp') do |spec| | ||
spec.license = 'MIT' | ||
spec.authors = 'mattn' | ||
spec.authors = ['mattn', 'Tomasz Dabrowski'] | ||
spec.summary = 'PCRE Regexp module for mruby' | ||
spec.version = '0.2.0' | ||
|
||
spec.linker.libraries << ['pcre'] | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters