facebox-render 0.9.0 → 0.9.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.
- data/History.txt +3 -0
 - data/README.txt +7 -7
 - data/Rakefile +1 -1
 - data/lib/facebox_render.rb +1 -1
 - metadata +3 -3
 
    
        data/History.txt
    CHANGED
    
    
    
        data/README.txt
    CHANGED
    
    | 
         @@ -2,17 +2,15 @@ Author:: Wen-Tien Chang(mailto:ihower@handlino.com) 
     | 
|
| 
       2 
2 
     | 
    
         
             
            Copyright:: Copyright (c) 2008 Handlino Inc.
         
     | 
| 
       3 
3 
     | 
    
         
             
            Licensed under the MIT: http://www.opensource.org/licenses/mit-license.php
         
     | 
| 
       4 
4 
     | 
    
         | 
| 
       5 
     | 
    
         
            -
             
     | 
| 
      
 5 
     | 
    
         
            +
            == Description ==
         
     | 
| 
       6 
6 
     | 
    
         
             
            FaceboxRender plugin let you use lightbox seamlessly using Facebox library.
         
     | 
| 
       7 
7 
     | 
    
         
             
            http://handlino.com/blog/2008/02/26/57/
         
     | 
| 
       8 
8 
     | 
    
         | 
| 
       9 
     | 
    
         
            -
             
     | 
| 
       10 
     | 
    
         
            -
             *  
     | 
| 
       11 
     | 
    
         
            -
             *  
     | 
| 
       12 
     | 
    
         
            -
             * gem unpack facebox-render
         
     | 
| 
      
 9 
     | 
    
         
            +
            == Install ==
         
     | 
| 
      
 10 
     | 
    
         
            +
             * download from http://github.com/ihower/facebox-render/
         
     | 
| 
      
 11 
     | 
    
         
            +
             * uncompress to /vendor/plugins/facebox_render
         
     | 
| 
       13 
12 
     | 
    
         | 
| 
       14 
     | 
    
         
            -
             
     | 
| 
       15 
     | 
    
         
            -
            You must install Facebox first(see http://famspam.com/facebox/).
         
     | 
| 
      
 13 
     | 
    
         
            +
             Note that you must install Facebox first(see http://famspam.com/facebox/).
         
     | 
| 
       16 
14 
     | 
    
         | 
| 
       17 
15 
     | 
    
         
             
             1.Download jQuery (or you can try to install http://ennerchi.com/projects/jrails to replace Prototype library totally)
         
     | 
| 
       18 
16 
     | 
    
         
             
             2.Download facebox
         
     | 
| 
         @@ -21,6 +19,8 @@ You must install Facebox first(see http://famspam.com/facebox/). 
     | 
|
| 
       21 
19 
     | 
    
         
             
             5.Copy facebox all image files to /public/facebox/
         
     | 
| 
       22 
20 
     | 
    
         
             
             6.Config your layout (stylesheet_link_tag and javascript_include_tag) to add these js,css files
         
     | 
| 
       23 
21 
     | 
    
         | 
| 
      
 22 
     | 
    
         
            +
            = USAGE =
         
     | 
| 
      
 23 
     | 
    
         
            +
             
     | 
| 
       24 
24 
     | 
    
         
             
            == Helper ==
         
     | 
| 
       25 
25 
     | 
    
         
             
            We have facebox_link_to helper (it's will launch loading facebox first, send ajax request second)
         
     | 
| 
       26 
26 
     | 
    
         
             
            or you can use link_to_remote, form_remote_tag...etc Ajax helper.
         
     | 
    
        data/Rakefile
    CHANGED
    
    | 
         @@ -3,7 +3,7 @@ 
     | 
|
| 
       3 
3 
     | 
    
         
             
            require 'rubygems'
         
     | 
| 
       4 
4 
     | 
    
         
             
            require 'hoe'
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
     | 
    
         
            -
            Hoe.new('facebox-render', '0.9. 
     | 
| 
      
 6 
     | 
    
         
            +
            Hoe.new('facebox-render', '0.9.5') do |p|
         
     | 
| 
       7 
7 
     | 
    
         
             
               p.rubyforge_name = 'facebox-render' # if different than lowercase project name
         
     | 
| 
       8 
8 
     | 
    
         
             
               p.developer('Wen-Tien Chang', 'ihower@handlino.com')
         
     | 
| 
       9 
9 
     | 
    
         
             
            end
         
     | 
    
        data/lib/facebox_render.rb
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            module FaceboxRender
         
     | 
| 
       2 
2 
     | 
    
         | 
| 
       3 
3 
     | 
    
         
             
              def render_to_facebox( options = {} )
         
     | 
| 
       4 
     | 
    
         
            -
                options[:template] = "#{ 
     | 
| 
      
 4 
     | 
    
         
            +
                options[:template] = "#{default_template_name}.html.erb" if options.empty?
         
     | 
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
                action_string = render_to_string(:action => options[:action], :layout => false) if options[:action]
         
     | 
| 
       7 
7 
     | 
    
         
             
                template_string = render_to_string(:template => options[:template], :layout => false) if options[:template]
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification 
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: facebox-render
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version 
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.9. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.9.5
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors: 
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Wen-Tien Chang
         
     | 
| 
         @@ -9,7 +9,7 @@ autorequire: 
     | 
|
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
     | 
    
         
            -
            date: 2008- 
     | 
| 
      
 12 
     | 
    
         
            +
            date: 2008-06-02 00:00:00 +08:00
         
     | 
| 
       13 
13 
     | 
    
         
             
            default_executable: 
         
     | 
| 
       14 
14 
     | 
    
         
             
            dependencies: 
         
     | 
| 
       15 
15 
     | 
    
         
             
            - !ruby/object:Gem::Dependency 
         
     | 
| 
         @@ -19,7 +19,7 @@ dependencies: 
     | 
|
| 
       19 
19 
     | 
    
         
             
                requirements: 
         
     | 
| 
       20 
20 
     | 
    
         
             
                - - ">="
         
     | 
| 
       21 
21 
     | 
    
         
             
                  - !ruby/object:Gem::Version 
         
     | 
| 
       22 
     | 
    
         
            -
                    version: 1.5. 
     | 
| 
      
 22 
     | 
    
         
            +
                    version: 1.5.3
         
     | 
| 
       23 
23 
     | 
    
         
             
                version: 
         
     | 
| 
       24 
24 
     | 
    
         
             
            description: ""
         
     | 
| 
       25 
25 
     | 
    
         
             
            email: 
         
     |