@@ -2,33 +2,32 @@ require 'rake'
2
2
require 'rake/clean'
3
3
require 'rake/gempackagetask'
4
4
require 'rake/testtask'
5
- require File . join ( File . expand_path ( File . dirname ( __FILE__ ) ) , 'lib' , ' json' , ' stream')
5
+ require_relative 'lib/ json/ stream'
6
6
7
- spec = Gem ::Specification . new do |s |
7
+ spec = Gem ::Specification . new do |s |
8
8
s . name = "json-stream"
9
9
s . version = JSON ::Stream ::VERSION
10
10
s . date = Time . now . strftime ( "%Y-%m-%d" )
11
11
s . summary = "A streaming JSON parser that generates SAX-like events."
12
12
s . description = "A finite state machine based JSON parser that generates events
13
13
for each state change. This allows us to stream both the JSON document into
14
- memory and the parsed object graph out of memory to some other process. This
15
- is much like an XML SAX parser that generates events during parsing. There is
14
+ memory and the parsed object graph out of memory to some other process. This
15
+ is much like an XML SAX parser that generates events during parsing. There is
16
16
no requirement for the document nor the object graph to be fully buffered in
17
- memory. This is best suited for huge JSON documents that won't fit in memory.
17
+ memory. This is best suited for huge JSON documents that won't fit in memory.
18
18
For example, streaming and processing large map/reduce views from Apache CouchDB."
19
19
20
20
s . homepage = "http://github.com/dgraham/json-stream"
21
21
s . authors = [ "David Graham" ]
22
- s . files = FileList [ 'LICENSE ' , 'README' , 'Rakefile' , "{lib}/**/*" ] . to_a
22
+ s . files = FileList [ '[A-Z]* ' , "{lib}/**/*" ]
23
23
s . require_path = "lib"
24
- s . test_files = FileList [ "{test}/**/*test.rb" ] . to_a
25
- s . has_rdoc = true
24
+ s . test_files = FileList [ "{test}/**/*test.rb" ]
26
25
s . required_ruby_version = '>= 1.9.1'
27
26
end
28
-
27
+
29
28
Rake ::GemPackageTask . new ( spec ) do |pkg |
30
29
pkg . need_tar = true
31
- end
30
+ end
32
31
33
32
Rake ::TestTask . new ( :test ) do |test |
34
33
test . pattern = 'test/**/*_test.rb'
0 commit comments