drumherum 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +1 -1
- data/Manifest.txt +1 -1
- data/Rakefile.rb +3 -0
- data/lib/drumherum/{kernel.rb → smart_init.rb} +6 -6
- data/lib/drumherum.rb +3 -3
- data/test/_start_all.rb +1 -1
- metadata +2 -2
data/History.txt
CHANGED
data/Manifest.txt
CHANGED
data/Rakefile.rb
CHANGED
@@ -1,10 +1,13 @@
|
|
1
1
|
# ruby encoding: utf-8
|
2
|
+
|
2
3
|
if $:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
4
|
#puts 'Path schon aktuell'
|
4
5
|
else
|
5
6
|
$:.unshift(File.dirname(__FILE__))
|
6
7
|
end
|
7
8
|
|
9
|
+
puts "Hallo"
|
10
|
+
|
8
11
|
require 'kyanite/smart_load_path'
|
9
12
|
smart_load_path
|
10
13
|
require 'drumherum'
|
@@ -2,22 +2,22 @@
|
|
2
2
|
# ü
|
3
3
|
|
4
4
|
|
5
|
-
module
|
5
|
+
module SmartInit
|
6
6
|
|
7
7
|
# Vereinfacht die require-Statements in den Tests bei der Entwicklung von Libraries.
|
8
8
|
# Beim lokalen Aufruf eines einzelnen Tests wird die lokale Version der Library verwendet, nicht die installierte gem.
|
9
9
|
# Verwendung:
|
10
10
|
# if $0 == __FILE__
|
11
11
|
# require 'drumherum'
|
12
|
-
#
|
12
|
+
# smart_init
|
13
13
|
# end
|
14
14
|
# require 'mygemproject'
|
15
15
|
#
|
16
|
-
def
|
16
|
+
def smart_init(__file__ = nil)
|
17
17
|
__file__ = caller[0] unless __file__
|
18
18
|
dir_caller =File.dirname(__file__)
|
19
19
|
|
20
|
-
#puts "
|
20
|
+
#puts "smart_init " + dir_caller
|
21
21
|
|
22
22
|
patharray = dir_caller.split('/')
|
23
23
|
patharray = dir_caller.split("\\") if patharray.size == 1
|
@@ -40,7 +40,7 @@ module DrumherumKernel
|
|
40
40
|
end # module
|
41
41
|
|
42
42
|
class Object
|
43
|
-
include
|
43
|
+
include SmartInit
|
44
44
|
end
|
45
45
|
|
46
46
|
|
@@ -51,7 +51,7 @@ if $0 == __FILE__
|
|
51
51
|
|
52
52
|
# pp RUBYDIR
|
53
53
|
|
54
|
-
|
54
|
+
smart_init
|
55
55
|
$LOAD_PATH.each do |path|
|
56
56
|
puts path
|
57
57
|
end
|
data/lib/drumherum.rb
CHANGED
@@ -10,7 +10,7 @@ end
|
|
10
10
|
|
11
11
|
require 'hoe'
|
12
12
|
require 'rbconfig'
|
13
|
-
require 'drumherum/
|
13
|
+
require 'drumherum/smart_init' unless defined? DrumherumKernel
|
14
14
|
|
15
15
|
unless defined? WINDOWS
|
16
16
|
WINDOWS = /djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM ? RUBY_PLATFORM : false
|
@@ -27,7 +27,7 @@ end
|
|
27
27
|
module Drumherum
|
28
28
|
|
29
29
|
|
30
|
-
VERSION = '0.1.
|
30
|
+
VERSION = '0.1.3' # Drumherum
|
31
31
|
|
32
32
|
|
33
33
|
class << self
|
@@ -88,7 +88,7 @@ if $0 == __FILE__
|
|
88
88
|
|
89
89
|
puts Drumherum.project_version
|
90
90
|
|
91
|
-
|
91
|
+
smart_init(__FILE__)
|
92
92
|
$LOAD_PATH.each do |path|
|
93
93
|
puts path
|
94
94
|
end
|
data/test/_start_all.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: drumherum
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -63,9 +63,9 @@ files:
|
|
63
63
|
- README.txt
|
64
64
|
- lib/drumherum.rb
|
65
65
|
- lib/drumherum/call_tracker.rb
|
66
|
-
- lib/drumherum/kernel.rb
|
67
66
|
- lib/drumherum/rake.rb
|
68
67
|
- lib/drumherum/regexp.rb
|
68
|
+
- lib/drumherum/smart_init.rb
|
69
69
|
- lib/drumherum/unit_test.rb
|
70
70
|
- test/_start_all.rb
|
71
71
|
- .gemtest
|