awestruct 0.1.4 → 0.1.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.
| 
         @@ -11,7 +11,7 @@ module Awestruct 
     | 
|
| 
       11 
11 
     | 
    
         
             
                  end
         
     | 
| 
       12 
12 
     | 
    
         | 
| 
       13 
13 
     | 
    
         
             
                  def run
         
     | 
| 
       14 
     | 
    
         
            -
                    cmd = "rsync - 
     | 
| 
      
 14 
     | 
    
         
            +
                    cmd = "rsync -r -l -i --no-p --no-g --chmod=Dg+s,ug+w--delete #{@site_path} #{@host}:#{@path}"
         
     | 
| 
       15 
15 
     | 
    
         
             
                    puts "running #{cmd}"
         
     | 
| 
       16 
16 
     | 
    
         
             
                    Open3.popen3( cmd ) do |stdin, stdout, stderr| 
         
     | 
| 
       17 
17 
     | 
    
         
             
                      stdin.close
         
     | 
| 
         @@ -17,6 +17,16 @@ module Awestruct 
     | 
|
| 
       17 
17 
     | 
    
         
             
                    page.title  = @title
         
     | 
| 
       18 
18 
     | 
    
         
             
                    page.tags = site.send( "#{@tagged_items_property}_tags" ) || []
         
     | 
| 
       19 
19 
     | 
    
         
             
                    site.pages << page
         
     | 
| 
      
 20 
     | 
    
         
            +
                    site.send( "#{@tagged_items_property}_tag_cloud=", LazyPage.new( page ) )
         
     | 
| 
      
 21 
     | 
    
         
            +
                  end
         
     | 
| 
      
 22 
     | 
    
         
            +
                end
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
      
 24 
     | 
    
         
            +
                class LazyPage
         
     | 
| 
      
 25 
     | 
    
         
            +
                  def initialize(page)
         
     | 
| 
      
 26 
     | 
    
         
            +
                    @page = page
         
     | 
| 
      
 27 
     | 
    
         
            +
                  end
         
     | 
| 
      
 28 
     | 
    
         
            +
                  def to_s
         
     | 
| 
      
 29 
     | 
    
         
            +
                    @page.content
         
     | 
| 
       20 
30 
     | 
    
         
             
                  end
         
     | 
| 
       21 
31 
     | 
    
         
             
                end
         
     | 
| 
       22 
32 
     | 
    
         
             
              end
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,13 +1,13 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: awestruct
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              hash:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 17
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 1
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 5
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.1.5
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Bob McWhirter
         
     | 
| 
         @@ -15,7 +15,7 @@ autorequire: 
     | 
|
| 
       15 
15 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       16 
16 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       17 
17 
     | 
    
         | 
| 
       18 
     | 
    
         
            -
            date: 2011-02- 
     | 
| 
      
 18 
     | 
    
         
            +
            date: 2011-02-22 00:00:00 -05:00
         
     | 
| 
       19 
19 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       20 
20 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       21 
21 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     |