drumherum 0.1.5 → 0.1.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/History.txt +1 -1
- data/Rakefile.rb +1 -6
- data/lib/drumherum/rake.rb +12 -8
- data/lib/drumherum/regexp.rb +0 -3
- data/lib/drumherum/smart_init.rb +11 -8
- data/lib/drumherum/unit_test.rb +0 -5
- data/lib/drumherum.rb +0 -19
- data/version.rb +1 -1
- metadata +1 -1
    
        data/History.txt
    CHANGED
    
    
    
        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 |  | 
    
        data/lib/drumherum/rake.rb
    CHANGED
    
    | @@ -1,17 +1,12 @@ | |
| 1 1 | 
             
            # ruby encoding: utf-8
         | 
| 2 2 |  | 
| 3 | 
            -
            #==  | 
| 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 | 
            -
             | 
| 256 | 
            +
                puts path
         | 
| 254 257 | 
             
              end       
         | 
| 258 | 
            +
              
         | 
| 255 259 | 
             
            end
         | 
| 256 260 |  | 
| 257 261 |  | 
    
        data/lib/drumherum/regexp.rb
    CHANGED
    
    | @@ -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 | 
             
              # 
         | 
    
        data/lib/drumherum/smart_init.rb
    CHANGED
    
    | @@ -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 | 
            -
                  @ | 
| 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      
         | 
    
        data/lib/drumherum/unit_test.rb
    CHANGED
    
    
    
        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