cocoapods-githooks 1.0.0 → 1.0.1

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: 00d290ee9274f9d94db696792a2b736bb0c31d1948bb7275a4c379f0e8b312ea
4
- data.tar.gz: c94852249fb94606b262cac250e2199c30a3f6f13406bb75faa7916c10e58f2a
3
+ metadata.gz: 8d66ffc5ad32dab33a9332720bec1a060c713d332ad7f83939eb15afa537d587
4
+ data.tar.gz: 4deeec2ae5b2751bf489418669df2ac1e485bf02e797d09f6bbefb771024cf27
5
5
  SHA512:
6
- metadata.gz: cad1059aa58609deab6f503ef067c58e9c7b665f923379e312430f4d6a9528bd35f1b60c1f689cae1e8bbef21e582fdcd8ba7b733567b9a6ee2ec1c55686c83e
7
- data.tar.gz: 43c222a508551bd33f3c85abb84a8eaa9aa856a17bdccdc3e86f9f940f8118ffdc042cef29212de7d861cf82a3024b7a9684f3d14317437828e74169ecb1295a
6
+ metadata.gz: 1f379dec163dddcc9c9a1eff30f26c04c940c5c78bfbe79df8b47ff38e7213b2661735cb1e7ef52ea661a9ef2875aa672debc77e98f77eec1cb5bfa251967909
7
+ data.tar.gz: 3a32457c6c5eedbfdecbcf30276fb83393a7cdaf02f292a89af27383b91ab660cfa263f9419dada2e49c1120449807b23f4c1181d0ee9f0a3857eb41c09300ee
@@ -1,3 +1,3 @@
1
1
  module CocoapodsGitHooks
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
@@ -5,6 +5,10 @@ module CocoapodsGitHooks
5
5
  class GitHooksSynctool
6
6
  def sync
7
7
  Pod::UI.puts "Synchronizing git hooks"
8
+ if !File.directory?(".git")
9
+ Pod::UI.puts "It is not a git repository, aborting"
10
+ return
11
+ end
8
12
  if !File.directory?(".git-hooks")
9
13
  Pod::UI.puts ".git-hooks directory not found, nothing to sync"
10
14
  return
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cocoapods-githooks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vlad Korzun