Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 43 lines (34 sloc) 1.476 kB
2f4539c @dgraham Initial commit.
authored
1 require 'rake'
2 require 'rake/clean'
3 require 'rake/gempackagetask'
4 require 'rake/testtask'
51737a2 @dgraham Move VERSION constant to version.rb for Rakefile to use.
authored
5 require_relative 'lib/json/stream/version'
2f4539c @dgraham Initial commit.
authored
6
bb33ca8 @dgraham Don't alter $LOAD_PATH for require statements.
authored
7 spec = Gem::Specification.new do |s|
ac02ac9 @dgraham Add rake as a development dependency.
authored
8 s.name = "json-stream"
2f4539c @dgraham Initial commit.
authored
9 s.version = JSON::Stream::VERSION
ac02ac9 @dgraham Add rake as a development dependency.
authored
10 s.date = Time.now.strftime("%Y-%m-%d")
11
12 s.summary = "A streaming JSON parser that generates SAX-like events."
2f4539c @dgraham Initial commit.
authored
13 s.description = "A finite state machine based JSON parser that generates events
14 for each state change. This allows us to stream both the JSON document into
bb33ca8 @dgraham Don't alter $LOAD_PATH for require statements.
authored
15 memory and the parsed object graph out of memory to some other process. This
16 is much like an XML SAX parser that generates events during parsing. There is
2f4539c @dgraham Initial commit.
authored
17 no requirement for the document nor the object graph to be fully buffered in
bb33ca8 @dgraham Don't alter $LOAD_PATH for require statements.
authored
18 memory. This is best suited for huge JSON documents that won't fit in memory.
2f4539c @dgraham Initial commit.
authored
19 For example, streaming and processing large map/reduce views from Apache CouchDB."
ac02ac9 @dgraham Add rake as a development dependency.
authored
20
21 s.authors = ["David Graham"]
22 s.email = ["david.malcom.graham@gmail.com"]
23 s.homepage = "http://dgraham.github.com/json-stream/"
24
25 s.files = FileList['[A-Z]*', "{lib}/**/*"]
26 s.test_files = FileList["{test}/**/*test.rb"]
2f4539c @dgraham Initial commit.
authored
27 s.require_path = "lib"
ac02ac9 @dgraham Add rake as a development dependency.
authored
28
29 s.add_development_dependency "rake"
96665b2 @dgraham Update minimum required Ruby version to 1.9.2 to avoid 1.9.1 bugs.
authored
30 s.required_ruby_version = '>= 1.9.2'
2f4539c @dgraham Initial commit.
authored
31 end
bb33ca8 @dgraham Don't alter $LOAD_PATH for require statements.
authored
32
2f4539c @dgraham Initial commit.
authored
33 Rake::GemPackageTask.new(spec) do |pkg|
ac02ac9 @dgraham Add rake as a development dependency.
authored
34 pkg.need_tar = true
bb33ca8 @dgraham Don't alter $LOAD_PATH for require statements.
authored
35 end
2f4539c @dgraham Initial commit.
authored
36
37 Rake::TestTask.new(:test) do |test|
38 test.pattern = 'test/**/*_test.rb'
39 test.warning = true
40 end
41
42 task :default => [:clobber, :test, :gem]
Something went wrong with that request. Please try again.