kojo 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -2
- data/lib/kojo/collection.rb +3 -1
- data/lib/kojo/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 25c101bd252d7f7193d4d7eddad538945e7d0baaec2e3ee979c68f02616e661f
|
4
|
+
data.tar.gz: 6183debd6556f157f5995f408e61d7634b6474263d54094fce7d9f6a3b440106
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c914b9e6cb19e274e23b8dd59b37b06315a8790949cd0f91c09967275381a5dd1305892ed5afdc9d0d51868db284567fe8e6504f0675b6ab7162beb3fec9fc0
|
7
|
+
data.tar.gz: bdb59bc7cf7cd74fedbf791fc4fb297f72e7a9f7bc2b6285f6853ac0d21eed5e32378873ab21935e280e6df2cabaf4993f5f6ccb4d0a8a9f102260012d99346d
|
data/README.md
CHANGED
@@ -6,7 +6,7 @@ Kojo Configuration Ninja
|
|
6
6
|
==================================================
|
7
7
|
|
8
8
|
[![Gem Version](https://badge.fury.io/rb/kojo.svg)](https://badge.fury.io/rb/kojo)
|
9
|
-
[![Build Status](https://
|
9
|
+
[![Build Status](https://github.com/DannyBen/kojo/workflows/Test/badge.svg)](https://github.com/DannyBen/kojo/actions?query=workflow%3ATest)
|
10
10
|
[![Maintainability](https://api.codeclimate.com/v1/badges/f24566ad04b5054a2251/maintainability)](https://codeclimate.com/github/DannyBen/kojo/maintainability)
|
11
11
|
|
12
12
|
|
@@ -246,7 +246,7 @@ end
|
|
246
246
|
template = Kojo::FrontMatterTemplate.new 'examples/single/Dockerfile'
|
247
247
|
params = { version: '0.1.1' }
|
248
248
|
|
249
|
-
|
249
|
+
template.render params do |path, content|
|
250
250
|
# code to handle results here
|
251
251
|
end
|
252
252
|
```
|
data/lib/kojo/collection.rb
CHANGED
@@ -38,7 +38,9 @@ module Kojo
|
|
38
38
|
raise Kojo::NotFoundError, "Directory not found: #{dir}" unless Dir.exist? dir
|
39
39
|
raise Kojo::NotFoundError, "Directory is empty: #{dir}" if Dir.empty? dir
|
40
40
|
|
41
|
-
@files = Dir
|
41
|
+
@files = Dir.glob("#{dir}/**/*", File::FNM_DOTMATCH)
|
42
|
+
.reject { |f| File.directory? f }
|
43
|
+
.sort
|
42
44
|
end
|
43
45
|
end
|
44
46
|
end
|
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.3.
|
4
|
+
version: 0.3.5
|
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: 2020-
|
11
|
+
date: 2020-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mister_bin
|