diff options
author | Florian Frank <flori@ping.de> | 2011-04-26 09:17:19 -0700 |
---|---|---|
committer | Florian Frank <flori@ping.de> | 2011-04-26 09:17:19 -0700 |
commit | 7f707e7bda54d1de617d76842b37431c520fec80 (patch) | |
tree | 3c2faa5f1b4fe2a88a8aa770ee826820f183d430 /json.gemspec | |
parent | 514d791dd8602ad1d70d45a824927aafe44e838c (diff) | |
parent | a592f7ef0af4cf54fa5dad536cc0203d4084c781 (diff) | |
download | json-7f707e7bda54d1de617d76842b37431c520fec80.tar.gz |
Merged pull request #69 from jonleighton/master.
If a custom :object_class is given, the C extension should not use rb_hash_aset - it should call the object's []= method instead.
Diffstat (limited to 'json.gemspec')
-rw-r--r-- | json.gemspec | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/json.gemspec b/json.gemspec new file mode 100644 index 0000000..0a8e210 --- /dev/null +++ b/json.gemspec @@ -0,0 +1,31 @@ +require File.dirname(__FILE__) + '/constants' + +Gem::Specification.new do |s| + s.name = 'json' + s.version = PKG_VERSION + s.summary = PKG_TITLE + s.description = "This is a JSON implementation as a Ruby extension in C." + + s.files = PKG_FILES + + s.extensions = Dir.glob('ext/**/extconf.rb') + + s.require_path = EXT_ROOT_DIR + s.require_paths << 'ext' + s.require_paths << 'lib' + + s.bindir = "bin" + s.executables = [ "edit_json.rb", "prettify_json.rb" ] + s.default_executable = "edit_json.rb" + + s.has_rdoc = true + s.extra_rdoc_files << 'README' + s.rdoc_options << + '--title' << 'JSON implemention for Ruby' << '--main' << 'README' + s.test_files.concat Dir['./tests/test_*.rb'] + + s.author = "Florian Frank" + s.email = "flori@ping.de" + s.homepage = "http://flori.github.com/#{PKG_NAME}" + s.rubyforge_project = "json" +end |