drumherum 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,5 +1,5 @@
1
1
 
2
- == 0.1.2 2012-10-15
2
+ == 0.1.6 2012-10-15
3
3
  * smart_init integrated
4
4
 
5
5
  == 0.1.0 2012-10-15
data/Rakefile.rb CHANGED
@@ -3,15 +3,10 @@
3
3
  require 'drumherum'
4
4
  smart_init
5
5
  require 'version'
6
-
7
-
8
- Drumherum.project_name = File.dirname(__FILE__).split("/")[-1].strip # Name des Projekt-Stammverzeichnisses
9
- Drumherum.github_username = 'bklippstein'
10
-
11
6
  require 'rdoc/task'
12
7
  require 'drumherum/rake'
13
8
 
14
-
9
+ Drumherum.github_username = 'bklippstein'
15
10
 
16
11
 
17
12
 
@@ -1,17 +1,12 @@
1
1
  # ruby encoding: utf-8
2
2
 
3
- #== *Rake*
4
- #Beispiele siehe Rakefile.rb
5
- #* Methode remove_task, um Tasks überschreiben zu können
6
-
3
+ #== Rake
7
4
 
8
5
  # ----------------------------------------------------------------------------------------------
9
6
  # Rake initialisieren
10
7
  #
11
8
 
12
9
  require 'rake'
13
- #require 'rake/testtask'
14
-
15
10
 
16
11
 
17
12
 
@@ -248,10 +243,19 @@ desc 'VERSION of the current project'
248
243
  task :version do
249
244
 
250
245
  puts "\n#{Drumherum.project_name} (#{Drumherum.project_version})\n\n"
251
-
246
+
247
+ end
248
+
249
+
250
+ # Task :load_path
251
+ #
252
+ desc '$LOAD_PATH'
253
+ task :load_path do
254
+
252
255
  $LOAD_PATH.each do |path|
253
- puts path
256
+ puts path
254
257
  end
258
+
255
259
  end
256
260
 
257
261
 
@@ -3,9 +3,6 @@
3
3
 
4
4
  class String
5
5
 
6
- # ---------------------------------------------------------------------------------------------------------------------------------
7
- # :section: Operation
8
- #
9
6
 
10
7
  # Zeigt das Ergebnis eines Matches mit einer Regular Expression. Erleichtert das Entwickeln regulärer Ausdrücke.
11
8
  #
@@ -5,15 +5,14 @@ module Drumherum
5
5
 
6
6
 
7
7
  class << self
8
-
9
- def project_name=(pn)
10
- @project_name = pn
11
- end
12
-
13
-
8
+
14
9
  # Name of the actual project
15
10
  def project_name
16
- @project_name || 'Drumherum'
11
+ if @directory_main
12
+ @directory_main[-1].strip
13
+ else
14
+ raise "start smart_init first"
15
+ end
17
16
  end
18
17
 
19
18
 
@@ -48,7 +47,11 @@ module Drumherum
48
47
  @directory_main = mn
49
48
  end
50
49
 
51
- # The main directory (as array)
50
+ # The main directory (as array).
51
+ # main_dir = File.join(patharray)
52
+ # lib_dir = File.join(patharray, 'lib')
53
+ # test_dir = File.join(patharray, 'test')
54
+ #
52
55
  def directory_main
53
56
  @directory_main || []
54
57
  end
@@ -2,7 +2,6 @@
2
2
  require 'test/unit'
3
3
 
4
4
 
5
-
6
5
  class UnitTest < Test::Unit::TestCase # :nodoc:
7
6
 
8
7
  # Meldet den aktuell durchlaufenden Test
@@ -18,10 +17,6 @@ class UnitTest < Test::Unit::TestCase # :nodoc:
18
17
  end
19
18
  end
20
19
 
21
-
22
-
23
-
24
-
25
20
 
26
21
  end
27
22
 
data/lib/drumherum.rb CHANGED
@@ -1,14 +1,11 @@
1
1
  # ruby encoding: utf-8
2
2
  # ü
3
3
 
4
-
5
4
  require 'hoe'
6
5
  require 'rbconfig'
7
6
  require 'drumherum/smart_init' unless defined? SmartInit
8
7
 
9
8
 
10
-
11
-
12
9
  unless defined? WINDOWS
13
10
  WINDOWS = /djgpp|(cyg|ms|bcc)win|mingw/ =~ RUBY_PLATFORM ? RUBY_PLATFORM : false
14
11
  end
@@ -20,22 +17,6 @@ end
20
17
 
21
18
 
22
19
 
23
-
24
-
25
-
26
-
27
-
28
- if $0 == __FILE__
29
-
30
-
31
- puts Drumherum.project_version
32
-
33
- smart_init(__FILE__)
34
- $LOAD_PATH.each do |path|
35
- puts path
36
- end
37
-
38
- end
39
20
 
40
21
 
41
22
 
data/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
 
2
2
  module Drumherum
3
3
 
4
- VERSION = '0.1.5' # Drumherum-Version
4
+ VERSION = '0.1.6' # Drumherum-Version
5
5
 
6
6
 
7
7
  # puts "VERSION=#{VERSION}"
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.5
4
+ version: 0.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: