config_file_generator 1.0.3 → 1.0.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/config_file_generator.rb +1 -1
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdf04ec67c26d7e8a7752c2d9ef5401f4bad492f
4
- data.tar.gz: c0e1a90ed153e57a729e19433b58d4c7dfcbd516
3
+ metadata.gz: 89008280639f99077383e9c2a9f9c202cdc55775
4
+ data.tar.gz: 55db5c7f1b91c2b03649a8a96216aa7a949d34a4
5
5
  SHA512:
6
- metadata.gz: f0f581ac3ae740d7a097f1aca21deaebae79d11c973bb5eae3ffde84e611f722871be0c9de981525e1d6e3c6f6b09ba84172e751c9a49f4977bc8423aadcabb4
7
- data.tar.gz: 59103c6aa983d4f4f3685f0385964ce2ba1b9d3fb71af0e12808b3805b54ab18018df6b7f09b82c2b888d11d40854f324cbef9b279e277349060524e3c453153
6
+ metadata.gz: 945434c942977ab03f41cf387116cda328bdacd5213508a4e3855d4593570e687e31e457fbb6bce09c0f203068dd3a197410eaee4c10ccc398b31ddf06ca5887
7
+ data.tar.gz: 9a3574ec83a463980f608f506ae4ad849e4f1141ce6788eb86ecbfa71cab1e21477ba9d761dd705d3cd3bb876a1d9bf7cb587f3315e57b823025d8be6dbe1800
@@ -59,7 +59,7 @@ class ConfigFileGenerator
59
59
  def find_templates(template_path)
60
60
  if File.directory?(template_path)
61
61
  Dir["#{template_path}/**/*"].select do |file|
62
- File.file?(file) and ! file.include? 'vars.yml'
62
+ File.file?(file) and File.extname(file) == '.erb' and ! file.include? 'vars.yml'
63
63
  end
64
64
  elsif File.file?(template_path)
65
65
  [template_path]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: config_file_generator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Austin Curtis
@@ -10,8 +10,8 @@ bindir: bin
10
10
  cert_chain: []
11
11
  date: 2016-08-12 00:00:00.000000000 Z
12
12
  dependencies: []
13
- description: A simple tool to take *.yml.erb files, parse them with Ruby ERB, and
14
- generate *.yml files.
13
+ description: A simple tool to parse ERB-templated files and generate your text from
14
+ them.
15
15
  email: austin.curtis@wpengine.com
16
16
  executables: []
17
17
  extensions: []