kojo 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/kojo/commands/config.rb +1 -1
- data/lib/kojo/commands/dir.rb +1 -1
- data/lib/kojo/commands/file.rb +1 -1
- data/lib/kojo/commands/to_json.rb +1 -1
- data/lib/kojo/config.rb +1 -1
- data/lib/kojo/extensions/yaml.rb +3 -4
- data/lib/kojo/front_matter_template.rb +1 -1
- data/lib/kojo/template.rb +1 -1
- data/lib/kojo/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa6bcd67142ce2bbde7f22e49d2884dd258046db5a786c4591ca9657cb697ab9
|
4
|
+
data.tar.gz: a72337674e2a3d8892f63f3705d87cf91723f93ade219ce87f5a8d1331ece91a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6e302b53329de878ca3a177f98a8e43d0f12b8b9be88093c2638515c0e514b6e60512a4e217a0896fbc29edaf15fc2f3bd45a05d992efa7e2dbc43f8d46c5475
|
7
|
+
data.tar.gz: ec8504461e7bb58bbd1782dcaa1113fc2fb49729463794995e10b7d67e36e2c475946acc0a34e5663726954c592a340a81a8bbb047f80465b4829d4b9db6baae
|
data/lib/kojo/commands/config.rb
CHANGED
data/lib/kojo/commands/dir.rb
CHANGED
data/lib/kojo/commands/file.rb
CHANGED
data/lib/kojo/config.rb
CHANGED
data/lib/kojo/extensions/yaml.rb
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
require 'yaml'
|
2
2
|
|
3
3
|
module YAML
|
4
|
+
# Make YAML.load behave the same in all Ruby versions
|
4
5
|
# ref: https://bugs.ruby-lang.org/issues/17866
|
5
|
-
|
6
|
-
|
7
|
-
rescue ArgumentError
|
8
|
-
YAML.load_file path
|
6
|
+
class << self
|
7
|
+
alias_method :load, :unsafe_load if YAML.respond_to? :unsafe_load
|
9
8
|
end
|
10
9
|
end
|
@@ -32,7 +32,7 @@ module Kojo
|
|
32
32
|
def read_file(file)
|
33
33
|
raise Kojo::NotFoundError, "File not found: #{file}" unless File.exist? file
|
34
34
|
|
35
|
-
config = YAML.
|
35
|
+
config = YAML.load_file file
|
36
36
|
content = File.read(file)[/^---\s*$\n(.*)/m, 1]
|
37
37
|
|
38
38
|
[config, content]
|
data/lib/kojo/template.rb
CHANGED
data/lib/kojo/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kojo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mister_bin
|
@@ -130,7 +130,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
130
130
|
- !ruby/object:Gem::Version
|
131
131
|
version: '0'
|
132
132
|
requirements: []
|
133
|
-
rubygems_version: 3.
|
133
|
+
rubygems_version: 3.3.3
|
134
134
|
signing_key:
|
135
135
|
specification_version: 4
|
136
136
|
summary: Configuration Ninja
|