kojo 0.3.4 → 0.3.5

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
  SHA256:
3
- metadata.gz: b135236a60c6021df034236a28118c5184ce87dc6a029eabf154be2afb282baa
4
- data.tar.gz: 9cb63fdc1dc1134c5e59ebe25f1c90b755c5df86fb48763f55a985b689c166b4
3
+ metadata.gz: 25c101bd252d7f7193d4d7eddad538945e7d0baaec2e3ee979c68f02616e661f
4
+ data.tar.gz: 6183debd6556f157f5995f408e61d7634b6474263d54094fce7d9f6a3b440106
5
5
  SHA512:
6
- metadata.gz: 7eb027521703e1e3856b31c8fe18c749ccd0ef9ac05abbd3cb1aa812827fc9ee56e330418664d347cc89422da34e6387f1f2913f56e39584b78e625c533e89e9
7
- data.tar.gz: 93f80e96e9c4272844d7fba22626d7565c871b18841f6bf4080a5cdf52b476577e8c3f6ab7c04d0c8e9fb933f43c70f1b45753f5011f5294008a609a5493b094
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://travis-ci.com/DannyBen/kojo.svg?branch=master)](https://travis-ci.com/DannyBen/kojo)
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
- result = template.render params do |path, content|
249
+ template.render params do |path, content|
250
250
  # code to handle results here
251
251
  end
252
252
  ```
@@ -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["#{dir}/**/*"].reject { |f| File.directory? f }.sort
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
@@ -1,3 +1,3 @@
1
1
  module Kojo
2
- VERSION = "0.3.4"
2
+ VERSION = "0.3.5"
3
3
  end
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
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-01-20 00:00:00.000000000 Z
11
+ date: 2020-02-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mister_bin