jugyo-ifchanged 0.1.1 → 1.0.0

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.
data/README.rdoc CHANGED
@@ -4,7 +4,7 @@ http://github.com/jugyo/ifchanged
4
4
 
5
5
  == DESCRIPTION:
6
6
 
7
- If files changed, do something.
7
+ Do it, if changed to files.
8
8
 
9
9
  == SYNOPSIS:
10
10
 
@@ -12,5 +12,34 @@ If files changed, do something.
12
12
 
13
13
  == INSTALL:
14
14
 
15
+ sudo gem install ifchanged
16
+
17
+ or
18
+
15
19
  gem source -a http://gems.github.com
16
20
  sudo gem install jugyo-ifchanged
21
+
22
+ == LICENSE:
23
+
24
+ (The MIT License)
25
+
26
+ Copyright (c) 2008-2009 jugyo
27
+
28
+ Permission is hereby granted, free of charge, to any person obtaining
29
+ a copy of this software and associated documentation files (the
30
+ 'Software'), to deal in the Software without restriction, including
31
+ without limitation the rights to use, copy, modify, merge, publish,
32
+ distribute, sublicense, and/or sell copies of the Software, and to
33
+ permit persons to whom the Software is furnished to do so, subject to
34
+ the following conditions:
35
+
36
+ The above copyright notice and this permission notice shall be
37
+ included in all copies or substantial portions of the Software.
38
+
39
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
40
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
41
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
42
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
43
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
44
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
45
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -78,7 +78,11 @@ module IfChanged
78
78
 
79
79
  def call_hooks(pathnames = [])
80
80
  @hooks.each do |hook|
81
- hook.call(pathnames.map{|i| i.to_s})
81
+ begin
82
+ hook.call(pathnames.map{|i| i.to_s})
83
+ rescue => e
84
+ handle_error(e)
85
+ end
82
86
  end
83
87
  end
84
88
 
@@ -1,5 +1,5 @@
1
1
  # -*- coding: utf-8 -*-
2
2
 
3
3
  module IfChanged
4
- VERSION = '0.1.1'
4
+ VERSION = '1.0.0'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jugyo-ifchanged
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - jugyo