masterview_gem_pack 0.2.3 → 0.2.4
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/CHANGELOG +5 -0
 - data/TODO +23 -11
 - metadata +5 -5
 
    
        data/CHANGELOG
    CHANGED
    
    | 
         @@ -1,3 +1,8 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            0.2.4
         
     | 
| 
      
 2 
     | 
    
         
            +
            Added interactive render to admin pages with example templates
         
     | 
| 
      
 3 
     | 
    
         
            +
            Fixed problem where apache2 with scgi was failing to initialize MasterView
         
     | 
| 
      
 4 
     | 
    
         
            +
            Updated documentation.
         
     | 
| 
      
 5 
     | 
    
         
            +
             
     | 
| 
       1 
6 
     | 
    
         
             
            0.2.3 - July 5th, 2006
         
     | 
| 
       2 
7 
     | 
    
         
             
            Change default development settings for enable_admin_pages = true and enable_view_rhtml = true, remains false in production.
         
     | 
| 
       3 
8 
     | 
    
         
             
            Change generated message in files to indicate that list.html controls layout and _messages, while new.html controls _form...
         
     | 
    
        data/TODO
    CHANGED
    
    | 
         @@ -36,14 +36,26 @@ 
     | 
|
| 
       36 
36 
     | 
    
         
             
            DSL for creating directives
         
     | 
| 
       37 
37 
     | 
    
         
             
            maybe something like
         
     | 
| 
       38 
38 
     | 
    
         | 
| 
       39 
     | 
    
         
            -
            event : 
     | 
| 
       40 
     | 
    
         
            -
              #  
     | 
| 
       41 
     | 
    
         
            -
               
     | 
| 
       42 
     | 
    
         
            -
               
     | 
| 
       43 
     | 
    
         
            -
               
     | 
| 
       44 
     | 
    
         
            -
               
     | 
| 
       45 
     | 
    
         
            -
               
     | 
| 
       46 
     | 
    
         
            -
               
     | 
| 
       47 
     | 
    
         
            -
               
     | 
| 
       48 
     | 
    
         
            -
             
     | 
| 
       49 
     | 
    
         
            -
             
     | 
| 
      
 39 
     | 
    
         
            +
            event :stag do |e|
         
     | 
| 
      
 40 
     | 
    
         
            +
              # these read args consecutively out of parse(attr_value)
         
     | 
| 
      
 41 
     | 
    
         
            +
              e.attr_arg :object, :quote_if => true
         
     | 
| 
      
 42 
     | 
    
         
            +
              e.attr_arg :foo { |t| t.upcase } # modifying case of foo
         
     | 
| 
      
 43 
     | 
    
         
            +
              e.attr_arg :link_name { self.content } #overriding with different value
         
     | 
| 
      
 44 
     | 
    
         
            +
              e.attr_arg :options, :optional => {} # specify that is optional but provide default if it is needed 
         
     | 
| 
      
 45 
     | 
    
         
            +
              e.attr_arg :html_options, :merge_common => true, :merge => [:size, :rows] # merge in common and specified attributes
         
     | 
| 
      
 46 
     | 
    
         
            +
              
         
     | 
| 
      
 47 
     | 
    
         
            +
              a = a+1 # do some other logic
         
     | 
| 
      
 48 
     | 
    
         
            +
             
     | 
| 
      
 49 
     | 
    
         
            +
              old_content = e.content # retrieving content of tag
         
     | 
| 
      
 50 
     | 
    
         
            +
              e.content = 'foo' # resetting content of tag
         
     | 
| 
      
 51 
     | 
    
         
            +
              yield_contents = e.yield()
         
     | 
| 
      
 52 
     | 
    
         
            +
             
     | 
| 
      
 53 
     | 
    
         
            +
              e.erb_code_render 'a = a + 1' # render <% a = a + 1 %>
         
     | 
| 
      
 54 
     | 
    
         
            +
              e.erb_content_render 'text_area' args(:object, :foo, :link_name, :options, :html_options) # render <%= %>, args handles joining the args with comma, and also takes into account if last args are not empty that other args are either provided also or defaulted.
         
     | 
| 
      
 55 
     | 
    
         
            +
             
     | 
| 
      
 56 
     | 
    
         
            +
              e.render 'direct render' # direct render as is
         
     | 
| 
      
 57 
     | 
    
         
            +
            end
         
     | 
| 
      
 58 
     | 
    
         
            +
             
     | 
| 
      
 59 
     | 
    
         
            +
            - default generate to *.rhtml if nothing is specified
         
     | 
| 
      
 60 
     | 
    
         
            +
             
     | 
| 
      
 61 
     | 
    
         
            +
              
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -3,8 +3,8 @@ rubygems_version: 0.8.11 
     | 
|
| 
       3 
3 
     | 
    
         
             
            specification_version: 1
         
     | 
| 
       4 
4 
     | 
    
         
             
            name: masterview_gem_pack
         
     | 
| 
       5 
5 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       6 
     | 
    
         
            -
              version: 0.2. 
     | 
| 
       7 
     | 
    
         
            -
            date: 2006-07- 
     | 
| 
      
 6 
     | 
    
         
            +
              version: 0.2.4
         
     | 
| 
      
 7 
     | 
    
         
            +
            date: 2006-07-26 00:00:00 -05:00
         
     | 
| 
       8 
8 
     | 
    
         
             
            summary: A (x)html friendly template engine for rails with the power of layouts, and partials. This gem package includes the other masterview gems for easy installation
         
     | 
| 
       9 
9 
     | 
    
         
             
            require_paths: 
         
     | 
| 
       10 
10 
     | 
    
         
             
            - .
         
     | 
| 
         @@ -54,7 +54,7 @@ dependencies: 
     | 
|
| 
       54 
54 
     | 
    
         
             
                requirements: 
         
     | 
| 
       55 
55 
     | 
    
         
             
                - - ">="
         
     | 
| 
       56 
56 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       57 
     | 
    
         
            -
                    version: 0.2. 
     | 
| 
      
 57 
     | 
    
         
            +
                    version: 0.2.4
         
     | 
| 
       58 
58 
     | 
    
         
             
                version: 
         
     | 
| 
       59 
59 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       60 
60 
     | 
    
         
             
              name: masterview_generator
         
     | 
| 
         @@ -63,7 +63,7 @@ dependencies: 
     | 
|
| 
       63 
63 
     | 
    
         
             
                requirements: 
         
     | 
| 
       64 
64 
     | 
    
         
             
                - - ">="
         
     | 
| 
       65 
65 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       66 
     | 
    
         
            -
                    version: 0.2. 
     | 
| 
      
 66 
     | 
    
         
            +
                    version: 0.2.4
         
     | 
| 
       67 
67 
     | 
    
         
             
                version: 
         
     | 
| 
       68 
68 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
       69 
69 
     | 
    
         
             
              name: masterview_plugin_generator
         
     | 
| 
         @@ -72,5 +72,5 @@ dependencies: 
     | 
|
| 
       72 
72 
     | 
    
         
             
                requirements: 
         
     | 
| 
       73 
73 
     | 
    
         
             
                - - ">="
         
     | 
| 
       74 
74 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       75 
     | 
    
         
            -
                    version: 0.2. 
     | 
| 
      
 75 
     | 
    
         
            +
                    version: 0.2.4
         
     | 
| 
       76 
76 
     | 
    
         
             
                version: 
         
     |