kyanite 0.5.4 → 0.5.5
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +3 -0
- data/Manifest.txt +1 -0
- data/lib/kyanite.rb +1 -1
- data/lib/kyanite/operation/rake.rb +40 -0
- metadata +2 -1
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
@@ -37,6 +37,7 @@ lib/kyanite/numeric/integer.rb
|
|
37
37
|
lib/kyanite/numeric/numeric.rb
|
38
38
|
lib/kyanite/operation.rb
|
39
39
|
lib/kyanite/operation/call_tracker.rb
|
40
|
+
lib/kyanite/operation/rake.rb
|
40
41
|
lib/kyanite/operation/regexp.rb
|
41
42
|
lib/kyanite/operation/unit_test.rb
|
42
43
|
lib/kyanite/optimizer.rb
|
data/lib/kyanite.rb
CHANGED
@@ -0,0 +1,40 @@
|
|
1
|
+
# ruby encoding: utf-8
|
2
|
+
|
3
|
+
#== *Rake*
|
4
|
+
#Beispiele siehe Rakefile.rb
|
5
|
+
#* Methode remove_task, um Tasks überschreiben zu können
|
6
|
+
|
7
|
+
|
8
|
+
# ----------------------------------------------------------------------------------------------
|
9
|
+
# Rake initialisieren
|
10
|
+
#
|
11
|
+
|
12
|
+
require 'rake'
|
13
|
+
#require 'rake/testtask'
|
14
|
+
|
15
|
+
|
16
|
+
|
17
|
+
|
18
|
+
# ----------------------------------------------------------------------------------------------
|
19
|
+
# Ergänzung: Alte Tasks entfernen
|
20
|
+
# sonst kann man sie nämlich nicht überschreiben!
|
21
|
+
# Beispiel: remove_task 'test:plugins'
|
22
|
+
# Quelle: http://matthewbass.com/2007/03/07/overriding-existing-rake-tasks/
|
23
|
+
# dies hier stimmt nicht: http://www.dcmanges.com/blog/modifying-rake-tasks
|
24
|
+
|
25
|
+
Rake::TaskManager.class_eval do
|
26
|
+
def remove_task(task_name)
|
27
|
+
@tasks.delete(task_name.to_s)
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def remove_task(task_name)
|
32
|
+
Rake.application.remove_task(task_name)
|
33
|
+
end
|
34
|
+
|
35
|
+
|
36
|
+
|
37
|
+
|
38
|
+
|
39
|
+
|
40
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kyanite
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.5
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -141,6 +141,7 @@ files:
|
|
141
141
|
- lib/kyanite/numeric/numeric.rb
|
142
142
|
- lib/kyanite/operation.rb
|
143
143
|
- lib/kyanite/operation/call_tracker.rb
|
144
|
+
- lib/kyanite/operation/rake.rb
|
144
145
|
- lib/kyanite/operation/regexp.rb
|
145
146
|
- lib/kyanite/operation/unit_test.rb
|
146
147
|
- lib/kyanite/optimizer.rb
|