power_stencil 0.4.12 → 0.4.13

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
  SHA1:
3
- metadata.gz: 1f0cd3595adda0996cd964ee0a4a8f7c07ebb27e
4
- data.tar.gz: 0b60844a7c8bcae8b410a0a0db76137f80cc04c5
3
+ metadata.gz: fca238f33a9bf3e40e4bd67f206222a9948aec3b
4
+ data.tar.gz: a37bc631b2dd484ce178e92fad3e111d2ae71baf
5
5
  SHA512:
6
- metadata.gz: 8de37294748189b813890f137b72bd0f42eb179038ec790a12a4df0c4005c0f498e3fd7b62f40f8bc96a2845a78a0dcf4175d38d1b41f4aa77531dfc3fa92ce2
7
- data.tar.gz: a76e25e2d10d5c314a1da7fd3918a9da1bdb9fda88a886c2074736c2d69a30a4f1b534826441e966040ae744f0f3b797a3c32d00edcc8b357ce58cde625111d5
6
+ metadata.gz: 56677a6eca4255ee646b98f5dfb719130f2d83cf50a63b3060fca00780f17a998087c96c11d5b94f2f12e1a375884ef322fd62abb6a95132a15a77a79ad6935f
7
+ data.tar.gz: ab78a10d95e5ee949a4044d733c381cc38707da75f02bb494e1a6705c5420f86a52cab285062849163a6b7c60a3e7500e6bf76cd2c80a7cada67d666d14b0b4d
@@ -71,6 +71,8 @@
71
71
 
72
72
  # Files matching particular patterns can be changed on the fly
73
73
  :file_renaming_patterns:
74
+ # Specific .gitignore file for Windows
75
+ ^(.+)\.zzzgitignore\.erb$: '\1.gitignore'
74
76
  # Erb files
75
77
  ^(.+)\.erb$: '\1'
76
78
 
@@ -0,0 +1,12 @@
1
+ PowerStencil plugins
2
+ ====================
3
+
4
+
5
+ In this directory, you can define project specific local plugins.
6
+ You should create them using the `PowerStencil` command-line.
7
+
8
+ $ power_stencil new-plugin myplugin
9
+
10
+ __It is strongly advised to keep this directory under source control__
11
+
12
+ This should be the PowerStencil default behaviour.
@@ -1,12 +1,10 @@
1
- PowerStencil project templates
2
- ==============================
1
+ PowerStencil project templates templates
2
+ ========================================
3
3
 
4
4
 
5
- In this directory, you can define project specific templates for entities
6
- defined locally in this project.
5
+ In this directory, you can define project specific templates for entity types defined locally in this project.
7
6
 
8
- Templates can be a whole tree structure in a directory named from the entity
9
- type of entities you defined in `entity_definitions` folder that are `buildable`.
7
+ Templates can be a whole tree structure in a directory named from the entity type of entities you defined in `entity_definitions` folder that are `buildable`.
10
8
 
11
9
  __It is strongly advised to keep this directory under source control__
12
10
 
@@ -59,7 +59,7 @@ module PowerStencil
59
59
  unless files_not_to_rename.ignore_file? src_file
60
60
  config[:file_renaming_patterns].each do |regexp_str, replacement|
61
61
  regexp = Regexp.new regexp_str
62
- next if (dest_file =~ regexp).nil?
62
+ next if (src_file =~ regexp).nil?
63
63
  dest_file = dest_file.gsub regexp, replacement
64
64
  break
65
65
  end
@@ -12,7 +12,7 @@ module PowerStencil
12
12
  # Dir.glob_with_ignore_file ignore_file, base_dir, *glob_args, &block
13
13
  file_pattern = "#{source}/**/*"
14
14
  res = {}
15
- Dir.glob_with_ignore_file ignore_files_pattern, source, file_pattern, File::FNM_DOTMATCH do |original_file|
15
+ Dir.glob_with_ignore_file(ignore_files_pattern, source, file_pattern, File::FNM_DOTMATCH).sort.each do |original_file|
16
16
  logger.debug "Processing '#{original_file}'"
17
17
  res[original_file] = destination_file(original_file, source, destination)
18
18
  if block_given?
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.4.12'.freeze
2
+ VERSION = '0.4.13'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_stencil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.12
4
+ version: 0.4.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Briais
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-28 00:00:00.000000000 Z
11
+ date: 2019-10-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -171,18 +171,19 @@ files:
171
171
  - etc/templates/plugin_definition/spec/spec_helper.rb
172
172
  - etc/templates/plugin_definition/spec/{entity}_spec.rb
173
173
  - etc/templates/project/.copy_ignore
174
- - etc/templates/project/.gitignore.erb
175
174
  - etc/templates/project/.ps_project/entities/.gitkeep
176
175
  - etc/templates/project/.ps_project/entities/README.md
177
176
  - etc/templates/project/.ps_project/entity_definitions/.gitkeep
178
177
  - etc/templates/project/.ps_project/entity_definitions/README.md
179
178
  - etc/templates/project/.ps_project/personal-config.yaml
180
179
  - etc/templates/project/.ps_project/plugins/.gitkeep
180
+ - etc/templates/project/.ps_project/plugins/README.md
181
181
  - etc/templates/project/.ps_project/templates-templates/.gitkeep
182
182
  - etc/templates/project/.ps_project/templates-templates/README.md
183
183
  - etc/templates/project/.ps_project/user_entities/.gitkeep
184
184
  - etc/templates/project/.ps_project/user_entities/README.md
185
185
  - etc/templates/project/.ps_project/versioned-config.yaml
186
+ - etc/templates/project/.zzzgitignore.erb
186
187
  - etc/templates/simple_exec/main.sh
187
188
  - exe/power_stencil
188
189
  - lib/power_stencil.rb
@@ -258,7 +259,7 @@ metadata:
258
259
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
259
260
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
260
261
  homepage_uri: https://powerstencil.brizone.org/
261
- post_install_message: "\nThank you for installing PowerStencil 0.4.12 !\nFrom the
262
+ post_install_message: "\nThank you for installing PowerStencil 0.4.13 !\nFrom the
262
263
  command line you can run `power_stencil --help`\nIf your shell is not completing
263
264
  the command:\n If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial
264
265
  Website : https://powerstencil.brizone.org/\nFull documentation here :