set_git_hooks_dir 0.0.4 → 0.0.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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/my_plugin.rb +12 -0
  3. data/plugins.rb +1 -0
  4. metadata +3 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e77d66a804b24a22d22f89e99885367983d1f0540ca8a794ab845a43f6bf500b
4
- data.tar.gz: 8f9b4b9f3a1efbf7c879f66fc6c8d087ab2d848bec888879d12571039680215a
3
+ metadata.gz: 9ecfe46ec6b24151980cc378bd461c5ef42b8140588d7598c6c402e6bb8d7bb2
4
+ data.tar.gz: f4dfacf08113fad7e1336b5ad5f04570137ac8c2e46d6a1ef9084c90fd888223
5
5
  SHA512:
6
- metadata.gz: fdaab20fe057d93499e21720b39b9adaf455c23e7fae5f10e697d991e454a897f242ba8ca42fe106500c234d52c21f075bba31b3e6d78c917e8102b93e96a865
7
- data.tar.gz: 9a9eedc8e163a3a343059afb28088393d9524757ff551f53d13fa53c946ea32d4269caad0587396da360fc2c653d1da49b6621331b060c208cee097cc413f097
6
+ metadata.gz: cb04af55c0a6b0a5755405d8837c9c26f05e08e4f66efaddf7eb186d6fa7bc90bc250427896a2944c20ff7f13144b46df30331f94e26fdf9d008ddbd2fb0f5f5
7
+ data.tar.gz: 15f3fceb805fb2b461608a0e782441d78c79835fb75b8141fa23d35a6e813846aa5dce3818185af4b65698157de36dc947b4216b452aeb1b8955b52f6f4d3058
data/lib/my_plugin.rb ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'set_git_hooks_dir'
4
+
5
+ Bundler::Plugin.add_hook('after-install-all') do |deps|
6
+ puts 'Setting Git hooks from bundler plugin'
7
+ SetGitHooksDir.setup '.git-hooks'
8
+ end
9
+
10
+ puts 'Setting Git hooks from bundler plugin'
11
+ SetGitHooksDir.setup '.git-hooks'
12
+
data/plugins.rb ADDED
@@ -0,0 +1 @@
1
+ require 'my_plugin'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: set_git_hooks_dir
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - rhysd
@@ -17,8 +17,10 @@ executables: []
17
17
  extensions: []
18
18
  extra_rdoc_files: []
19
19
  files:
20
+ - lib/my_plugin.rb
20
21
  - lib/rubygems_plugin.rb
21
22
  - lib/set_git_hooks_dir.rb
23
+ - plugins.rb
22
24
  homepage: https://rubygems.org/gems/set_git_hooks_dir
23
25
  licenses:
24
26
  - MIT