bake 0.21.0 → 0.22.0

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
  SHA256:
3
- metadata.gz: a486a2d684d8417098b550d477c23b52d9ee41e364bdb3eba4abe94a34b7e4bb
4
- data.tar.gz: d6ed531b2cb2aa138d3eef54eaef5d082a6b119b5d320bb77cb72c2bc360b802
3
+ metadata.gz: 4376cc74741d1bd58cb18e02c7d249f01cf0db254ab1476f95a1001e37a3872a
4
+ data.tar.gz: 45accbd429c7f9ab27f53d5565b8c7ec0f2c2a13ccf47db67d21c1936673b4d6
5
5
  SHA512:
6
- metadata.gz: 77e365e561d39182941954d48fbafb0b85dafd7e7392b5edb5c254052483437729d1d4207355fae156daeac2c10e06c56c9da7dbad8d98eab7d0c32f4b9d5607
7
- data.tar.gz: d8a8ffbafbc2797d96026921c77ae99e6b00a719cd66291d36067db1ec72d3c0c9031dc069c20b18ac50fa6841177a07b5303f4367c6aabb01f373babee71783
6
+ metadata.gz: fc7a172d7df26ce899a22ed14119f290ded9b9d85c7dc55ff4114ea7f942a1affe47cee8c21a5d85ab0d3baf31f71b799c9f506a5ebc405b310d19250b6d9d43
7
+ data.tar.gz: 186aedc6fa76d2d194b3f37686980daf7a8c389247f899dc8aaf6d1a0db98eeccb9b003c1cda04c3f596a04cb8c8a42aa21b3fad40e9fad5fa39bd6f84865a10
checksums.yaml.gz.sig CHANGED
Binary file
data/bake/input.rb CHANGED
@@ -3,8 +3,28 @@
3
3
  # Released under the MIT License.
4
4
  # Copyright, 2022-2024, by Samuel Williams.
5
5
 
6
+ class NDJSON
7
+ def self.parse(file)
8
+ new(file)
9
+ end
10
+
11
+ def initialize(file)
12
+ @file = file
13
+ end
14
+
15
+ def each
16
+ return to_enum unless block_given?
17
+
18
+ @file.each_line do |line|
19
+ yield JSON.parse(line)
20
+ end
21
+ end
22
+ end
23
+
24
+ # Parse input files in various formats.
6
25
  FORMATS = {
7
26
  json: ->(file){require 'json'; JSON.parse(file.read)},
27
+ ndjson: ->(file){require 'json'; NDJSON.parse(file)},
8
28
  yaml: ->(file){require 'yaml'; YAML.load(file.read)},
9
29
  }
10
30
 
data/lib/bake/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2020-2024, by Samuel Williams.
5
5
 
6
6
  module Bake
7
- VERSION = "0.21.0"
7
+ VERSION = "0.22.0"
8
8
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,12 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bake
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.21.0
4
+ version: 0.22.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  - Olle Jonsson
9
- autorequire:
10
9
  bindir: bin
11
10
  cert_chain:
12
11
  - |
@@ -38,7 +37,7 @@ cert_chain:
38
37
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
38
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
39
  -----END CERTIFICATE-----
41
- date: 2024-08-21 00:00:00.000000000 Z
40
+ date: 2025-02-14 00:00:00.000000000 Z
42
41
  dependencies:
43
42
  - !ruby/object:Gem::Dependency
44
43
  name: bigdecimal
@@ -68,8 +67,6 @@ dependencies:
68
67
  - - "~>"
69
68
  - !ruby/object:Gem::Version
70
69
  version: '2.1'
71
- description:
72
- email:
73
70
  executables:
74
71
  - bake
75
72
  extensions: []
@@ -117,7 +114,6 @@ metadata:
117
114
  documentation_uri: https://ioquatix.github.io/bake/
118
115
  funding_uri: https://github.com/sponsors/ioquatix/
119
116
  source_code_uri: https://github.com/ioquatix/bake.git
120
- post_install_message:
121
117
  rdoc_options: []
122
118
  require_paths:
123
119
  - lib
@@ -132,8 +128,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
128
  - !ruby/object:Gem::Version
133
129
  version: '0'
134
130
  requirements: []
135
- rubygems_version: 3.5.11
136
- signing_key:
131
+ rubygems_version: 3.6.2
137
132
  specification_version: 4
138
133
  summary: A replacement for rake with a simpler syntax.
139
134
  test_files: []
metadata.gz.sig CHANGED
Binary file