json-stream 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/LICENSE +1 -1
  2. data/Rakefile +9 -10
  3. data/lib/json/stream.rb +4 -7
  4. metadata +8 -20
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2010 David Graham
1
+ Copyright (c) 2010-2011 David Graham
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining a copy
4
4
  of this software and associated documentation files (the "Software"), to deal
data/Rakefile CHANGED
@@ -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
  s.email = "david.malcom.graham@gmail.com"
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'
@@ -1,15 +1,12 @@
1
1
  # encoding: UTF-8
2
2
 
3
- $:.unshift File.dirname(__FILE__) unless
4
- $:.include?(File.dirname(__FILE__))
5
-
6
3
  require 'stringio'
7
- require 'stream/buffer'
8
- require 'stream/builder'
9
- require 'stream/parser'
4
+ require 'json/stream/buffer'
5
+ require 'json/stream/builder'
6
+ require 'json/stream/parser'
10
7
 
11
8
  module JSON
12
9
  module Stream
13
- VERSION = "0.1.0"
10
+ VERSION = "0.1.1"
14
11
  end
15
12
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json-stream
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 0
9
- version: 0.1.0
4
+ prerelease:
5
+ version: 0.1.1
10
6
  platform: ruby
11
7
  authors:
12
8
  - David Graham
@@ -14,17 +10,16 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-08-03 00:00:00 -06:00
18
- default_executable:
13
+ date: 2011-04-21 00:00:00 Z
19
14
  dependencies: []
20
15
 
21
16
  description: |-
22
17
  A finite state machine based JSON parser that generates events
23
18
  for each state change. This allows us to stream both the JSON document into
24
- memory and the parsed object graph out of memory to some other process. This
25
- is much like an XML SAX parser that generates events during parsing. There is
19
+ memory and the parsed object graph out of memory to some other process. This
20
+ is much like an XML SAX parser that generates events during parsing. There is
26
21
  no requirement for the document nor the object graph to be fully buffered in
27
- memory. This is best suited for huge JSON documents that won't fit in memory.
22
+ memory. This is best suited for huge JSON documents that won't fit in memory.
28
23
  For example, streaming and processing large map/reduce views from Apache CouchDB.
29
24
  email: david.malcom.graham@gmail.com
30
25
  executables: []
@@ -35,8 +30,8 @@ extra_rdoc_files: []
35
30
 
36
31
  files:
37
32
  - LICENSE
38
- - README
39
33
  - Rakefile
34
+ - README
40
35
  - lib/json/stream/buffer.rb
41
36
  - lib/json/stream/builder.rb
42
37
  - lib/json/stream/parser.rb
@@ -44,7 +39,6 @@ files:
44
39
  - test/buffer_test.rb
45
40
  - test/builder_test.rb
46
41
  - test/parser_test.rb
47
- has_rdoc: true
48
42
  homepage: http://github.com/dgraham/json-stream
49
43
  licenses: []
50
44
 
@@ -58,23 +52,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
58
52
  requirements:
59
53
  - - ">="
60
54
  - !ruby/object:Gem::Version
61
- segments:
62
- - 1
63
- - 9
64
- - 1
65
55
  version: 1.9.1
66
56
  required_rubygems_version: !ruby/object:Gem::Requirement
67
57
  none: false
68
58
  requirements:
69
59
  - - ">="
70
60
  - !ruby/object:Gem::Version
71
- segments:
72
- - 0
73
61
  version: "0"
74
62
  requirements: []
75
63
 
76
64
  rubyforge_project:
77
- rubygems_version: 1.3.7
65
+ rubygems_version: 1.7.2
78
66
  signing_key:
79
67
  specification_version: 3
80
68
  summary: A streaming JSON parser that generates SAX-like events.