Browse files

Add rake as a development dependency.

  • Loading branch information...
1 parent bd92e96 commit ac02ac9ef6792344ca3c7f1b67b039140ae97887 @dgraham committed Apr 28, 2011
Showing with 14 additions and 9 deletions.
  1. +14 −9 Rakefile
View
23 Rakefile
@@ -5,28 +5,33 @@ require 'rake/testtask'
require_relative 'lib/json/stream/version'
spec = Gem::Specification.new do |s|
- s.name = "json-stream"
+ s.name = "json-stream"
s.version = JSON::Stream::VERSION
- s.date = Time.now.strftime("%Y-%m-%d")
- s.summary = "A streaming JSON parser that generates SAX-like events."
+ s.date = Time.now.strftime("%Y-%m-%d")
+
+ s.summary = "A streaming JSON parser that generates SAX-like events."
s.description = "A finite state machine based JSON parser that generates events
for each state change. This allows us to stream both the JSON document into
memory and the parsed object graph out of memory to some other process. This
is much like an XML SAX parser that generates events during parsing. There is
no requirement for the document nor the object graph to be fully buffered in
memory. This is best suited for huge JSON documents that won't fit in memory.
For example, streaming and processing large map/reduce views from Apache CouchDB."
- s.email = "david.malcom.graham@gmail.com"
- s.homepage = "http://dgraham.github.com/json-stream/"
- s.authors = ["David Graham"]
- s.files = FileList['[A-Z]*', "{lib}/**/*"]
+
+ s.authors = ["David Graham"]
+ s.email = ["david.malcom.graham@gmail.com"]
+ s.homepage = "http://dgraham.github.com/json-stream/"
+
+ s.files = FileList['[A-Z]*', "{lib}/**/*"]
+ s.test_files = FileList["{test}/**/*test.rb"]
s.require_path = "lib"
- s.test_files = FileList["{test}/**/*test.rb"]
+
+ s.add_development_dependency "rake"
s.required_ruby_version = '>= 1.9.1'
end
Rake::GemPackageTask.new(spec) do |pkg|
- pkg.need_tar = true
+ pkg.need_tar = true
end
Rake::TestTask.new(:test) do |test|

0 comments on commit ac02ac9

Please sign in to comment.