oj-array_parser 0.1.0 → 0.2.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a42bc2f0ac88011add947603ae4cf1aa84d1a2de
4
- data.tar.gz: 5e3d806c5a6e95e91433bfcf34d98010b0c6effd
3
+ metadata.gz: 6608f01109fc14dced50cb0c0f0541912c901b6f
4
+ data.tar.gz: 8aefb7ed7d919eab84df7e90cc83a61d09112dae
5
5
  SHA512:
6
- metadata.gz: 7cde536b241cba2ea1055546274f3fdfc30aa0121d228a249ad75cedf3e80dcacfc679d0e96fba4461d514b76c683a72091c5a275b40e9b2b67657ddbc260ec7
7
- data.tar.gz: 91662818d7e3b456b527584a93a2222912d7f66efda6a62d3c951ce67fb38602e9454a9a81922770f06c93c9105e0fed06b8489ac0c28c97fe993f2051d6cf40
6
+ metadata.gz: 199c58c77fff3aad257f66f229c691c816da1ce932d0fcdf8a3fcfa1d29b815d523f1c7b5f91586caae7e89deb108bc441fa619bf3e6c780a1bbdacd0bbf57ec
7
+ data.tar.gz: 7f033a6b23ce10b0ed5598ee4acd406927ee41ed657bbc481110ed20809eb025e2c27f9f4b9a82e8e4d2db9dcbdeb958bcdb5bcdd160f3360dfbc29f23598b3a
@@ -5,11 +5,14 @@ module Oj
5
5
  class ParserError < StandardError
6
6
  end
7
7
 
8
- def self.enumerator(string_or_io)
8
+ # @param [String, IO] string_or_io json to parse
9
+ # @param [Hash] options parsing options to pass to Oj, see http://www.ohler.com/oj/#label-Options
10
+ # @return [Enumerator] yields parsed top-level entries in the read json document
11
+ def self.enumerator(string_or_io, options = {})
9
12
  Enumerator.new do |yielder|
10
13
  parser = new { |value| yielder << value }
11
14
 
12
- Oj.sc_parse(parser, string_or_io)
15
+ Oj.sc_parse(parser, string_or_io, options)
13
16
  end
14
17
  end
15
18
 
@@ -1,6 +1,5 @@
1
1
  module Oj
2
2
  class ArrayParser
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
6
-
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oj-array_parser
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jamie English
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-01-17 00:00:00.000000000 Z
11
+ date: 2016-02-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: oj