Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Fetching contributors…
Cannot retrieve contributors at this time
38 lines (33 sloc) 1.37 KB
require 'rake'
require 'rake/clean'
require 'rake/gempackagetask'
require 'rake/testtask'
require_relative 'lib/json/stream/version'
spec = do |s| = "json-stream"
s.version = JSON::Stream::VERSION ="%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.homepage = ""
s.authors = ["David Graham"]
s.files = FileList['[A-Z]*', "{lib}/**/*"]
s.require_path = "lib"
s.test_files = FileList["{test}/**/*test.rb"]
s.required_ruby_version = '>= 1.9.1'
end do |pkg|
pkg.need_tar = true
end do |test|
test.pattern = 'test/**/*_test.rb'
test.warning = true
task :default => [:clobber, :test, :gem]
Jump to Line
Something went wrong with that request. Please try again.