power_stencil 0.7.2 → 0.7.3

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: 1f2f1b74e85edac12e51c2d02482f15f06e58e89
4
- data.tar.gz: b346762e7dc8314ea998fac76f1df8fa6a08ca5e
3
+ metadata.gz: 07cb1da6d0d487660a6a1b0a4b45f000bed06803
4
+ data.tar.gz: 888e3ff4b8761391b10fff68e5e9a4de7b9f291e
5
5
  SHA512:
6
- metadata.gz: 9facec67f2da0cbaebd9117326bf5544497e23d2981b07565763ab7d36950b93fd8d3ff87cc09016e52c79707da2a982e06cf899d1a23682f80895b960d927ab
7
- data.tar.gz: 1d6b61bde1d41cd5baa82b50d56b0225979dd79b09fabce5aae4e378004cadf5795db8ad570677b3fc01e50ad787d03c51e1985dbca4cc93cfd220764a26b2bf
6
+ metadata.gz: 3d0e89bbacfa337bf250da42d4c4bc44140ca48c6d8c63bcefe65747f31736bf8dac053d7cc5186c0475a87fa2cf85045b6e6dd742f4596ff11592d120fc31be
7
+ data.tar.gz: 3b6db134b4c51e5c8906210c942953ebb9480b4ba720eb25e55364a2eeb6890ddc044a11832d85c8ec1654d16e26dac1e585a50e3c6dee5260f8f29c0ba3d0a7
@@ -4,4 +4,4 @@
4
4
  echo "Nothing to do... Easy task..."
5
5
 
6
6
  # Return 0 if the build succeeds
7
- exit 0
7
+ exit 0
@@ -12,6 +12,8 @@ module PowerStencil
12
12
  &block)
13
13
  return yield if git.nil?
14
14
 
15
+ original_path = Dir.pwd
16
+ Dir.chdir project_root
15
17
  status_before_action = git.status
16
18
  yield
17
19
  status_after_action = git.status
@@ -50,6 +52,8 @@ module PowerStencil
50
52
 
51
53
  git.commit action_message
52
54
  puts_and_logs 'All changes introduced have been committed.'
55
+ ensure
56
+ Dir.chdir original_path
53
57
  end
54
58
 
55
59
  private
@@ -1,3 +1,3 @@
1
1
  module PowerStencil
2
- VERSION = '0.7.2'.freeze
2
+ VERSION = '0.7.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: power_stencil
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2
4
+ version: 0.7.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Laurent Briais
@@ -291,7 +291,7 @@ metadata:
291
291
  documentation_uri: https://gitlab.com/tools4devops/power_stencil/blob/master/README.md
292
292
  source_code_uri: https://gitlab.com/tools4devops/power_stencil
293
293
  homepage_uri: https://powerstencil.brizone.org/
294
- post_install_message: "\nThank you for installing PowerStencil 0.7.2 !\nFrom the command
294
+ post_install_message: "\nThank you for installing PowerStencil 0.7.3 !\nFrom the command
295
295
  line you can run `power_stencil --help`\nIf your shell is not completing the command:\n
296
296
  \ If you use rbenv: `rbenv rehash`\n If you use zsh : `rehash`\n\nOfficial Website
297
297
  \ : https://powerstencil.brizone.org/\nFull documentation here : https://gitlab.com/tools4devops/power_stencil/blob/master/README.md\nFeel