diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-04-01 11:55:45 +0100 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-04-01 12:14:45 +0100 |
commit | a592f7ef0af4cf54fa5dad536cc0203d4084c781 (patch) | |
tree | 3c2faa5f1b4fe2a88a8aa770ee826820f183d430 | |
parent | dbd6343217ab77c37948d1202541ae33076155ab (diff) | |
download | json-a592f7ef0af4cf54fa5dad536cc0203d4084c781.tar.gz |
Add the constants.rb file to the gemspec ignore list, and don't echo the stdout when detecting the ragel binaries
-rw-r--r-- | constants.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/constants.rb b/constants.rb index 1e15aef..c4046d6 100644 --- a/constants.rb +++ b/constants.rb @@ -5,7 +5,7 @@ PKG_NAME = 'json' PKG_TITLE = 'JSON Implementation for Ruby' PKG_VERSION = File.read('VERSION').chomp PKG_FILES = Dir.glob("**/**").reject { |file| - file =~ /CVS|pkg|tmp|coverage|Makefile|\.nfs\.|\.iml\Z/ || + file =~ /CVS|pkg|tmp|coverage|constants|Makefile|\.nfs\.|\.iml\Z/ || file =~ /\.(so|bundle|o|class|#{CONFIG['DLEXT']})$/ } @@ -27,5 +27,5 @@ JAVA_CLASSES = [] JRUBY_PARSER_JAR = File.expand_path("lib/json/ext/parser.jar") JRUBY_GENERATOR_JAR = File.expand_path("lib/json/ext/generator.jar") -RAGEL_CODEGEN = %w[rlcodegen rlgen-cd ragel].find { |c| system(c, '-v') } -RAGEL_DOTGEN = %w[rlgen-dot rlgen-cd ragel].find { |c| system(c, '-v') } +RAGEL_CODEGEN = %w[rlcodegen rlgen-cd ragel].find { |c| `which #{c}` != "" } +RAGEL_DOTGEN = %w[rlgen-dot rlgen-cd ragel].find { |c| `which #{c}` != "" } |