rake-hooks 1.2.1 → 1.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/rake/hooks.rb +2 -5
- data/lib/rake/hooks/version.rb +1 -1
- data/rake-hooks.gemspec +1 -1
- metadata +7 -7
data/lib/rake/hooks.rb
CHANGED
@@ -22,8 +22,5 @@ module Rake::Hooks
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
-
if defined?(Rake::DSL)
|
26
|
-
|
27
|
-
else
|
28
|
-
include Rake::Hooks
|
29
|
-
end
|
25
|
+
Rake::DSL.send(:include, Rake::Hooks) if defined?(Rake::DSL)
|
26
|
+
include Rake::Hooks unless self.class.included_modules.include?(Rake::Hooks)
|
data/lib/rake/hooks/version.rb
CHANGED
data/rake-hooks.gemspec
CHANGED
@@ -17,7 +17,7 @@ Gem::Specification.new do |s|
|
|
17
17
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
18
18
|
s.require_paths = ["lib"]
|
19
19
|
|
20
|
-
s.add_runtime_dependency "rake"
|
20
|
+
s.add_runtime_dependency "rake"
|
21
21
|
|
22
22
|
s.add_development_dependency "bundler"
|
23
23
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-hooks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,22 +10,22 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2011-
|
13
|
+
date: 2011-12-01 00:00:00.000000000Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: rake
|
17
|
-
requirement: &
|
17
|
+
requirement: &2161352080 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ! '>='
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 0
|
22
|
+
version: '0'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *2161352080
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: bundler
|
28
|
-
requirement: &
|
28
|
+
requirement: &2161351440 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ! '>='
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *2161351440
|
37
37
|
description: Add after and before hooks to rake tasks. You can use "after :task do
|
38
38
|
... end" and "before :task do ... end".
|
39
39
|
email:
|