thematic 0.0.4 → 0.0.5
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.
- checksums.yaml +4 -4
 - data/lib/thematic/tasks/thematic.rake +16 -9
 - data/lib/thematic/version.rb +1 -1
 - metadata +1 -1
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA1:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 20d3831020ae50fe7a0c770df9af882292784bb5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: b78bfc5b91e179e16678b7bd4b9869353afcd0ce
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: ab42c49b65dc9e55e6751c390db13d031c43ccd638f20607d7891f60aed513075331f3b3470d3224f0c8791900bb0b88ea185713aa5d63bb43d86cb8df296717
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: fa2f9da6136dcbf84000fc27e4a7ce12327cdac05aa9994e98b34278c5ea633165850c789d728f641fb9b624aa85ceee7094662a074825b3fb13c101cf43be79
         
     | 
| 
         @@ -22,12 +22,16 @@ namespace :thematic do 
     | 
|
| 
       22 
22 
     | 
    
         
             
                tempfile = File.open("file.tmp", 'w')
         
     | 
| 
       23 
23 
     | 
    
         
             
                f.each do |line|
         
     | 
| 
       24 
24 
     | 
    
         
             
                  if line =~/^*= require_tree ./ #we want to insert new require statements above this line
         
     | 
| 
       25 
     | 
    
         
            -
                    Dir. 
     | 
| 
       26 
     | 
    
         
            -
             
     | 
| 
       27 
     | 
    
         
            -
             
     | 
| 
       28 
     | 
    
         
            -
             
     | 
| 
      
 25 
     | 
    
         
            +
                    files_to_copy = Dir[ File.join(copy_from_path, '**', '*') ]
         
     | 
| 
      
 26 
     | 
    
         
            +
             
     | 
| 
      
 27 
     | 
    
         
            +
                    files_to_copy.each do |filepath|
         
     | 
| 
      
 28 
     | 
    
         
            +
                      unless File.directory?(filepath)
         
     | 
| 
      
 29 
     | 
    
         
            +
                        filename = filepath.split("/").last
         
     | 
| 
      
 30 
     | 
    
         
            +
                        copy(filepath, "vendor/assets/stylesheets/#{theme_subfolder}/") 
         
     | 
| 
      
 31 
     | 
    
         
            +
                        tempfile << " *= require #{theme_subfolder}/#{filename.gsub('.css', '')}\n"
         
     | 
| 
       29 
32 
     | 
    
         
             
                      end
         
     | 
| 
       30 
33 
     | 
    
         
             
                    end
         
     | 
| 
      
 34 
     | 
    
         
            +
             
         
     | 
| 
       31 
35 
     | 
    
         
             
                  end
         
     | 
| 
       32 
36 
     | 
    
         
             
                  tempfile << line
         
     | 
| 
       33 
37 
     | 
    
         
             
                end
         
     | 
| 
         @@ -49,11 +53,14 @@ namespace :thematic do 
     | 
|
| 
       49 
53 
     | 
    
         | 
| 
       50 
54 
     | 
    
         
             
                tempfile = File.open("file.tmp", 'w')
         
     | 
| 
       51 
55 
     | 
    
         
             
                f.each do |line|
         
     | 
| 
       52 
     | 
    
         
            -
                  if line =~/^\/\/= require_tree ./ #we want to insert new require statements above 
     | 
| 
       53 
     | 
    
         
            -
                    Dir. 
     | 
| 
       54 
     | 
    
         
            -
             
     | 
| 
       55 
     | 
    
         
            -
             
     | 
| 
       56 
     | 
    
         
            -
             
     | 
| 
      
 56 
     | 
    
         
            +
                  if line =~/^\/\/= require_tree ./ #we want to insert new require statements above  
         
     | 
| 
      
 57 
     | 
    
         
            +
                    files_to_copy = Dir[ File.join(copy_from_path, '**', '*') ]
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
                    files_to_copy.each do |filepath|
         
     | 
| 
      
 60 
     | 
    
         
            +
                      unless File.directory?(filepath)
         
     | 
| 
      
 61 
     | 
    
         
            +
                        filename = filepath.split("/").last
         
     | 
| 
      
 62 
     | 
    
         
            +
                        copy(filepath, "vendor/assets/javascripts/#{theme_subfolder}/") 
         
     | 
| 
      
 63 
     | 
    
         
            +
                        tempfile << "//= require #{theme_subfolder}/#{filename.gsub('.js', '')}\n"
         
     | 
| 
       57 
64 
     | 
    
         
             
                      end
         
     | 
| 
       58 
65 
     | 
    
         
             
                    end
         
     | 
| 
       59 
66 
     | 
    
         
             
                  end
         
     | 
    
        data/lib/thematic/version.rb
    CHANGED