ghundle 0.0.2 → 0.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
  SHA1:
3
- metadata.gz: bd51259b0ad3f91bf4ac2a51ee626477b325c19f
4
- data.tar.gz: ccf45d5d461a0911f5b00a64de1b0a3bd7555a41
3
+ metadata.gz: b9670195fa73ba4c7d5126633f352b8493bad392
4
+ data.tar.gz: 69e0ddad09af2efa1b2b3b1a6151abac37381992
5
5
  SHA512:
6
- metadata.gz: 4ad0bcfadce7edbcf088b0f0914fe26cdcb95873210f585662cec2750eb2f9ecbd6f0ef837d638af1ce2ca735b74c83144fe0df528d05954fa4ed0c1f12ab3f5
7
- data.tar.gz: d4d9b6d863969ef095188bbf221bf7fd9928a16723115bd28509e444f97e3646813047338456d22ccfbdad8ad159fd4995347ed22333cb1cb1cd6bd54ebf1a09
6
+ metadata.gz: 23807c16a4c5ab2ab75c6edd167d5d221b06b0f86d17858294c9038e3943d6a6d49437570dd06f16c43294d0481022ad614bbfa322bad4b8c095b8a80e5542b8
7
+ data.tar.gz: e579e118e1005cf85fd95e77a183eb8b9062b201afa2df2b3f320cf512e1b17565d806b2ac609f693f09ffe901d6a0b81d3e463319be55b2555e6eed20ea3cb8
data/README.md CHANGED
@@ -1,4 +1,8 @@
1
- *This project is not completely done yet and the API is still in flux.*
1
+ # Ghundle
2
+
3
+ A package manager for git hooks.
4
+
5
+ *Note: This project is not completely "ready" yet and the API is still in flux.*
2
6
 
3
7
  ## Usage
4
8
 
@@ -26,7 +30,7 @@ List all available hooks:
26
30
  - description: Runs a `bundle install` on every merge (this includes pulls).
27
31
 
28
32
  <hook-name>
29
- - type: <type>
33
+ - types: <type1>, <type2>, ...
30
34
  - description: <description>
31
35
 
32
36
  List all hooks, installed in the project:
@@ -51,7 +55,7 @@ Uninstall a hook:
51
55
  $ ghundle uninstall ruby-bundler
52
56
  $ ghundle uninstall <hook-name>
53
57
 
54
- Run a hook manually (it would need some arguments to work, see `man ghundle`):
58
+ Run a hook manually (it would need some arguments to work, see `man githooks`):
55
59
 
56
60
  $ ghundle run rails-migrations <args>
57
61
 
@@ -13,7 +13,15 @@ module Ghundle
13
13
  hook = Hook.new(Source::Local.new(hook_path))
14
14
 
15
15
  say "Running hook #{hook.name}"
16
+
17
+ Signal.trap('INT') do
18
+ say "Ctrl+C caught, aborting"
19
+ exit
20
+ end
21
+
16
22
  hook.run(*args[1 .. -1])
23
+
24
+ Signal.trap('INT', 'DEFAULT')
17
25
  end
18
26
  end
19
27
  end
@@ -1,3 +1,3 @@
1
1
  module Ghundle
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ghundle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Radev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-14 00:00:00.000000000 Z
11
+ date: 2013-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rainbow
@@ -88,7 +88,8 @@ files:
88
88
  - LICENSE
89
89
  - README.md
90
90
  homepage: http://github.com/AndrewRadev/ghundle
91
- licenses: []
91
+ licenses:
92
+ - MIT
92
93
  metadata: {}
93
94
  post_install_message:
94
95
  rdoc_options: []
@@ -106,7 +107,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
107
  version: 1.3.6
107
108
  requirements: []
108
109
  rubyforge_project:
109
- rubygems_version: 2.0.3
110
+ rubygems_version: 2.0.5
110
111
  signing_key:
111
112
  specification_version: 4
112
113
  summary: A package manager for git hooks