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 CHANGED
@@ -1,6 +1,6 @@
1
1
 
2
2
  == 0.1.2 2012-10-15
3
- * smart_load_path integrated
3
+ * smart_init integrated
4
4
 
5
5
  == 0.1.0 2012-10-15
6
6
  * Initial public release
data/Manifest.txt CHANGED
@@ -7,9 +7,9 @@ Rakefile.rb
7
7
  README.txt
8
8
  lib/drumherum.rb
9
9
  lib/drumherum/call_tracker.rb
10
- lib/drumherum/kernel.rb
11
10
  lib/drumherum/rake.rb
12
11
  lib/drumherum/regexp.rb
12
+ lib/drumherum/smart_init.rb
13
13
  lib/drumherum/unit_test.rb
14
14
  test/_start_all.rb
15
15
 
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 DrumherumKernel
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
- # smart_load_path
12
+ # smart_init
13
13
  # end
14
14
  # require 'mygemproject'
15
15
  #
16
- def smart_load_path(__file__ = nil)
16
+ def smart_init(__file__ = nil)
17
17
  __file__ = caller[0] unless __file__
18
18
  dir_caller =File.dirname(__file__)
19
19
 
20
- #puts "smart_load_path " + dir_caller
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 DrumherumKernel
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
- smart_load_path
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/kernel' unless defined? DrumherumKernel
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.2' # Drumherum
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
- smart_load_path(__FILE__)
91
+ smart_init(__FILE__)
92
92
  $LOAD_PATH.each do |path|
93
93
  puts path
94
94
  end
data/test/_start_all.rb CHANGED
@@ -6,7 +6,7 @@
6
6
 
7
7
  if $0 == __FILE__
8
8
  require 'drumherum'
9
- smart_load_path
9
+ smart_init
10
10
  end
11
11
 
12
12
 
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.2
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