summaryrefslogtreecommitdiff
path: root/constants.rb
diff options
context:
space:
mode:
authorFlorian Frank <flori@ping.de>2011-05-11 16:53:22 +0200
committerFlorian Frank <flori@ping.de>2011-05-11 16:53:22 +0200
commit7a3ef9de9e27c405a834ceb1dbfb94d4bcd2f01f (patch)
treebe07c8b2d5cf65086fad7b56a09c2145cd5c8478 /constants.rb
parentddbcc16d016f07aafe92873185dd95dd5d32aa12 (diff)
downloadjson-7a3ef9de9e27c405a834ceb1dbfb94d4bcd2f01f.tar.gz
Revert "Put the json and json_pure gemspecs in standalone .gemspec files so that they can be used by Bundler"
This reverts commit dbd6343217ab77c37948d1202541ae33076155ab. Conflicts: json.gemspec json_pure.gemspec
Diffstat (limited to 'constants.rb')
-rw-r--r--constants.rb31
1 files changed, 0 insertions, 31 deletions
diff --git a/constants.rb b/constants.rb
deleted file mode 100644
index 1e15aef..0000000
--- a/constants.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-require 'rbconfig'
-include Config
-
-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 =~ /\.(so|bundle|o|class|#{CONFIG['DLEXT']})$/
- }
-
-EXT_ROOT_DIR = 'ext/json/ext'
-EXT_PARSER_DIR = "#{EXT_ROOT_DIR}/parser"
-EXT_PARSER_DL = "#{EXT_PARSER_DIR}/parser.#{CONFIG['DLEXT']}"
-RAGEL_PATH = "#{EXT_PARSER_DIR}/parser.rl"
-EXT_PARSER_SRC = "#{EXT_PARSER_DIR}/parser.c"
-PKG_FILES << EXT_PARSER_SRC
-EXT_GENERATOR_DIR = "#{EXT_ROOT_DIR}/generator"
-EXT_GENERATOR_DL = "#{EXT_GENERATOR_DIR}/generator.#{CONFIG['DLEXT']}"
-EXT_GENERATOR_SRC = "#{EXT_GENERATOR_DIR}/generator.c"
-
-JAVA_DIR = "java/src/json/ext"
-JAVA_RAGEL_PATH = "#{JAVA_DIR}/Parser.rl"
-JAVA_PARSER_SRC = "#{JAVA_DIR}/Parser.java"
-JAVA_SOURCES = Dir.glob("#{JAVA_DIR}/*.java")
-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') }