psplugin_releases 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: 22e3ab67fed0b34ee0ae66ed54ed7f01da963633
4
- data.tar.gz: 19d0e294ed6971940c5139d15a9638662c734a9f
3
+ metadata.gz: 49cb291beb2fce10e6bca5c7d1eb19c97cc34f94
4
+ data.tar.gz: e0b408fc5d224dfb3f6006e082089904cce12d58
5
5
  SHA512:
6
- metadata.gz: 71c8bc0b0af3c3e26114beaef1cb96d823e0156906dad54bf58a0e7b8813ef46e9f6422b02961edc224cedd7e1892dd970369e8ec13e5608fdab7c2e7223ff10
7
- data.tar.gz: 898b806e77b9dc3dda6a472ff79b5dbc950e65d0a75db06ad433a0555e8ee9e453648ccbb3fb340cd55f66c268f0fb699d4c9de325cbd07764116df20d7ce48b
6
+ metadata.gz: 46ef8876fba5936deaf232b021a27a0c96273f97c8693d0671d8cc2becfc17ecda35ee1652d63c49c82271b3800d76bd0b2a1801765a6bec13e26830c6b6c63f
7
+ data.tar.gz: 7fd4e5fba522e2203cd36a02fb7c46c140d7a5244e69480b07f4d4b3793058aaa006d7a838e72f4aa042d97c57c7aafb883604982fecc9378c7c88216eaf0ed0
@@ -0,0 +1,11 @@
1
+ image: "ruby:2.3"
2
+
3
+ before_script:
4
+ - gem install bundler --no-document
5
+ - bundle install --jobs $(nproc) "${FLAGS[@]}"
6
+ - git config --global user.email "noone@nowhere.org"
7
+ - git config --global user.name "Testman"
8
+
9
+ rspec:
10
+ script:
11
+ - bundle exec rspec
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  Releases
2
2
  ========
3
3
 
4
- [![Gem Version](https://badge.fury.io/rb/psplugin_releases.svg)](https://rubygems.org/gems/psplugin_releases) [![Pipeline status](https://gitlab.com/tools4devops/psplugins/psplugin_releases/badges/master/pipeline.svg)](https://gitlab.com/tools4devops/psplugins/psplugin_releases/commits/master)
4
+ [![Gem Version](https://badge.fury.io/rb/psplugin_releases.svg)](https://rubygems.org/gems/psplugin_releases) [![Pipeline status](https://gitlab.com/tools4devops/psplugins/releases/badges/master/pipeline.svg)](https://gitlab.com/tools4devops/psplugins/releases/commits/master)
5
5
 
6
6
  [PowerStencil] is the Swiss-army knife templating workflow for developers and ops.
7
7
 
@@ -73,7 +73,7 @@ You can then use the information provided by the `release` within your build tem
73
73
 
74
74
  There is no external dependency for this plugin.
75
75
 
76
- # Plugin capabilities
76
+ # Plugin capabilities
77
77
 
78
78
  This plugin provides the following features:
79
79
 
@@ -13,9 +13,13 @@
13
13
  # classes should expose an `execute` method.
14
14
  :processors: null
15
15
 
16
+ # This is the name of the method called __instead__ of standard file detemplatization. This method has
17
+ # to be a module method in the `plugin_module` module.
18
+ :generate_build_files: null
19
+
16
20
  # This is the name of the method called after the files are detemplatized. This method has
17
21
  # to be a module method in the `plugin_module` module.
18
- :build: null
22
+ :post_build: null
19
23
 
20
24
  # If a dsl module is declared it will be injected in the DSL available in the shell or templates
21
25
  :dsl:
@@ -4,15 +4,5 @@ require 'releases/dsl/releases_dsl'
4
4
 
5
5
  module Releases
6
6
 
7
- def self.post_build_hook(built_entity, generated_files_path)
8
- # This is an example of what you could do after files are generated, ie pretty much anything...
9
- case built_entity.type
10
- when :releases_entity
11
- generated_file = File.join generated_files_path, 'message.txt'
12
- puts File.readlines(generated_file)
13
- else
14
- raise PowerStencil::Error, 'Plugin releases doesnt know how handle the build of a releases_entity entity type !'
15
- end
16
- end
17
7
 
18
8
  end
@@ -1,3 +1,3 @@
1
1
  module Releases
2
- VERSION = '0.1.1'.freeze
2
+ VERSION = '0.1.2'.freeze
3
3
  end
@@ -44,5 +44,5 @@ Gem::Specification.new do |spec|
44
44
  spec.add_development_dependency 'bundler'
45
45
  spec.add_development_dependency 'rake', '~> 10.0'
46
46
  spec.add_development_dependency 'rspec', '~> 3.0'
47
- spec.add_development_dependency 'power_stencil', '~> 0.9.0'
47
+ spec.add_development_dependency 'power_stencil', '~> 0.9.4'
48
48
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: psplugin_releases
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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-11-11 00:00:00.000000000 Z
11
+ date: 2019-11-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: 0.9.0
61
+ version: 0.9.4
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: 0.9.0
68
+ version: 0.9.4
69
69
  description: Release provides entities to manage releases, ie consistent sets of ...
70
70
  something.
71
71
  email:
@@ -75,6 +75,7 @@ extensions: []
75
75
  extra_rdoc_files: []
76
76
  files:
77
77
  - ".gitignore"
78
+ - ".gitlab-ci.yml"
78
79
  - ".rspec"
79
80
  - ".travis.yml"
80
81
  - CODE_OF_CONDUCT.md