gocd_pre_push 2.0.2 → 2.0.3

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: '068dfd81a70a73f9c5860b97c0fffa8733c618c821ede35e6066ce953f9f15a9'
4
- data.tar.gz: 07bbab7cdd314531a216317578b40ecb91b6861c7a3a28f5818a7b9973b35e2a
3
+ metadata.gz: 6f2c92271319ef5146bba8d65f34d89763319655c1ed1806c46e8992c52756f1
4
+ data.tar.gz: d659e9a0c5065c5b6461d233183227f5e335a80930f703a1c06f147e7481b21b
5
5
  SHA512:
6
- metadata.gz: 04fda6da6f5eeaf9f8c8a3627f364b6ababeb989ced6d6d1445fa8b8ca45bf54a54cccde6c6f6d15ec5a67c0acfebc1f651c1b9921c190e5837939b911cde458
7
- data.tar.gz: 64a0345f570fc64205d437efbe7ddfe01e8a1a0386459fe5392fd57dbbb97d97bf30e71cc1bafc73f487306718be604cf1ea8d4e37034220d77dd774ca39c7bf
6
+ metadata.gz: 32df4e0abe5b4c28e3629acbd0621e414deacad25998314ff6d82453249582932411684e6f14bcd1d39d047f40dbd29e4bbed0efe02d12eef5802c90e37c8984
7
+ data.tar.gz: eaca591bc8ee87a8591665b341a9ab992407a93613ad033e564682cc40cf12377c35f67b20aeb6a283655c2c7d08b9a73e720f768bf9aed5694589c957a6a892
@@ -3,11 +3,6 @@ lib = File.expand_path('../lib', __FILE__)
3
3
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require_relative './lib/gocd_pre_push/version.rb'
5
5
 
6
- Gem.pre_install do |installer|
7
- require "gocd_pre_push"
8
- GOCD_PRE_PUSH::Linker.new.symlink_git_hooks
9
- end
10
-
11
6
  Gem::Specification.new do |s|
12
7
  s.name = 'gocd_pre_push'
13
8
  s.version = GOCD_PRE_PUSH::VERSION
@@ -5,6 +5,7 @@ module GOCD_PRE_PUSH
5
5
  include GOCD_PRE_PUSH::PrettyPrinter
6
6
 
7
7
  def symlink_git_hooks
8
+ print_info "Running symlink_git_hooks..."
8
9
  return unless File.exists?('./hooks')
9
10
 
10
11
  print_info "Creating symlink ./.git/hooks => hooks"
@@ -1,3 +1,3 @@
1
1
  module GOCD_PRE_PUSH
2
- VERSION = '2.0.2'
2
+ VERSION = '2.0.3'
3
3
  end
@@ -0,0 +1,7 @@
1
+ require 'rubygems'
2
+ require 'bundler'
3
+ require_relative 'gocd_pre_push/linker'
4
+
5
+ Gem.post_install do |installer|
6
+ GOCD_PRE_PUSH::Linker.new.symlink_git_hooks
7
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gocd_pre_push
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ajit Singh
@@ -60,6 +60,7 @@ files:
60
60
  - lib/gocd_pre_push/linker.rb
61
61
  - lib/gocd_pre_push/pretty_printer.rb
62
62
  - lib/gocd_pre_push/version.rb
63
+ - lib/rubygems_plugin.rb
63
64
  - spec/gocd_pre_push/build_informer_spec.rb
64
65
  - spec/gocd_pre_push/build_officer_spec.rb
65
66
  - spec/gocd_pre_push/gocd_server_spec.rb