jsonl 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cb31a2fce198f33bc0b3854b25fcc708f96542a8
4
- data.tar.gz: 00353e72a8d745ac240a9d91bfafc0cfe69ab801
3
+ metadata.gz: 261c558bdb2a9f3053641296a87025a77c164f3b
4
+ data.tar.gz: 2d7982b7db41f9bc1ce39a608fe657a5c7572ec4
5
5
  SHA512:
6
- metadata.gz: 6bcf3730883a15d3fca1fd402cbbae7a8489f7f74d079a3344fbbc37a71ac6806c5018400916bdde6ea75ed76e92427c8f20eb117d696c3f6a7cd71d27399039
7
- data.tar.gz: 6a8735da12bb6b8995e075b8443b6e3f63ce086da6ea109399f683b01824719a695f0fe5c490e6d6c6cb0ced934feee90c5ba3db6c7351b506355b88e3cd0eb3
6
+ metadata.gz: bfe65a6c6b55c2f29c2c46cee40a57cdb2ce7d62d5ea33d7b226e34f6b2c76bde8203081fdadc6b054df433be8e4ce2da1657ee6d257261bce2fea18265cef8f
7
+ data.tar.gz: 11df7ee6f4b2b1ed1ed8a6afc56f06e66836d3afaf54c10196b45a4c81323d2481bf15a9e0a28318c9f97f249aa20c9972defa5ae3fbb12c26029a01da7d0e09
@@ -0,0 +1 @@
1
+ pkg/
@@ -1,4 +1,14 @@
1
1
  require 'jsonl/version'
2
+ require 'json'
2
3
 
3
4
  module JSONL
5
+ module_function
6
+
7
+ def parse(source, opts = {})
8
+ parsed = []
9
+ source.each_line do |line|
10
+ parsed << JSON.parse(line, opts)
11
+ end
12
+ parsed
13
+ end
4
14
  end
@@ -1,3 +1,3 @@
1
1
  module JSONL
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jsonl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - kami-zh
@@ -59,6 +59,7 @@ executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
61
61
  files:
62
+ - ".gitignore"
62
63
  - Gemfile
63
64
  - LICENSE.txt
64
65
  - README.md