Skip to content


Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: fa94e0c222
Fetching contributors…

Cannot retrieve contributors at this time

43 lines (34 sloc) 1.476 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.authors = ["David Graham"] = [""]
s.homepage = ""
s.files = FileList['[A-Z]*', "{lib}/**/*"]
s.test_files = FileList["{test}/**/*test.rb"]
s.require_path = "lib"
s.add_development_dependency "rake"
s.required_ruby_version = '>= 1.9.2'
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.