set_git_hooks_dir 0.0.3 → 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 628ac9f7e59269b49092a696bf6857cb5c8d8c1cfccd3a20a7da0766bccede6f
4
- data.tar.gz: 742e6b55034ca9c6435e3568d178f27e611eb584261935005d5eea08690812dc
3
+ metadata.gz: 9ecfe46ec6b24151980cc378bd461c5ef42b8140588d7598c6c402e6bb8d7bb2
4
+ data.tar.gz: f4dfacf08113fad7e1336b5ad5f04570137ac8c2e46d6a1ef9084c90fd888223
5
5
  SHA512:
6
- metadata.gz: ca5e8cfdf65aca651ba475825e78139b5facd61ee86ce1d2eb54d630b72f622c3dae83e34ddf164b733c740453687dad894ae99f7c5040d0a1c813cc277e5259
7
- data.tar.gz: 7cc63b4f18469454d03275235224ba875a52683ae81b5b8817e2d2c57d62453ec3114f97c4bf77572c2cbd44fa4074a8ac112757f84167f442af99fc55baff4e
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
+
@@ -4,5 +4,6 @@ require 'rubygems'
4
4
  require_relative 'set_git_hooks_dir'
5
5
 
6
6
  Gem.pre_install do
7
+ puts 'Setting Git hooks from rubygems plugin'
7
8
  SetGitHooksDir.setup '.git-hooks'
8
9
  end
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.3
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