summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Felgentreff <timfelgentreff@gmail.com>2011-08-09 14:16:05 -0700
committerTim Felgentreff <timfelgentreff@gmail.com>2011-08-09 14:16:05 -0700
commit7d9458ed616719e105bf347458195de1b87f2bb5 (patch)
tree29abd01ee40db16c8e3b5cb4b8abce3e75e1da39
parent2c3abbb6072843479b79c24c178b61ed9a551ea8 (diff)
downloadjson-7d9458ed616719e105bf347458195de1b87f2bb5.tar.gz
proper gemspecs, so we can use them in bundler
-rw-r--r--json-java.gemspec1
-rw-r--r--json.gemspec39
-rw-r--r--json_pure.gemspec35
3 files changed, 75 insertions, 0 deletions
diff --git a/json-java.gemspec b/json-java.gemspec
index 144f650..ee04f04 100644
--- a/json-java.gemspec
+++ b/json-java.gemspec
@@ -18,3 +18,4 @@ end
if $0 == __FILE__
Gem::Builder.new(spec).build
end
+spec
diff --git a/json.gemspec b/json.gemspec
new file mode 100644
index 0000000..a155d6f
--- /dev/null
+++ b/json.gemspec
@@ -0,0 +1,39 @@
+#! /usr/bin/env jruby
+require "rubygems"
+require 'rake/gempackagetask'
+require 'rbconfig'
+
+spec_ext = Gem::Specification.new do |s|
+ s.name = 'json'
+ s.version = File.read("VERSION").chomp
+ s.summary = 'JSON Implementation for Ruby'
+ s.description = "This is a JSON implementation as a Ruby extension in C."
+
+ s.files = FileList["**/*"].exclude(/CVS|pkg|tmp|coverage|Makefile|\.nfs\.|\.iml\Z/).exclude(/\.(so|bundle|o|class|#{RbConfig::CONFIG['DLEXT']})$/)
+
+ s.extensions = FileList['ext/**/extconf.rb']
+
+ s.require_path = 'ext/json/ext'
+ 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/json"
+ s.rubyforge_project = "json"
+end
+
+if $0 == __FILE__
+ Gem::Builder.new(spec_ext).build
+end
+spec_ext
diff --git a/json_pure.gemspec b/json_pure.gemspec
new file mode 100644
index 0000000..a55d202
--- /dev/null
+++ b/json_pure.gemspec
@@ -0,0 +1,35 @@
+#!/usr/bin/env ruby
+require 'rubygems'
+require 'rake/packagetask'
+require 'rbconfig'
+
+spec_pure = Gem::Specification.new do |s|
+ s.name = 'json_pure'
+ s.version = File.read("VERSION").chomp
+ s.summary = 'JSON Implementation for Ruby'
+ s.description = "This is a JSON implementation in pure Ruby."
+
+ s.files = FileList["**/*"].exclude(/CVS|pkg|tmp|coverage|Makefile|\.nfs\.|\.iml\Z/).exclude(/\.(so|bundle|o|class|#{RbConfig::CONFIG['DLEXT']})$/)
+
+ s.require_path = '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/json"
+ s.rubyforge_project = "json"
+end
+
+if $0 == __FILE__
+ Gem::Builder.new(spec_pure).build
+end
+spec_pure