taggingform 0.0.0 → 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.
- data/Gemfile +2 -0
 - data/lib/taggingform/helper.rb +6 -5
 - data/taggingform.gemspec +1 -1
 - metadata +1 -1
 
    
        data/Gemfile
    CHANGED
    
    
    
        data/lib/taggingform/helper.rb
    CHANGED
    
    | 
         @@ -1,13 +1,14 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
            module  
     | 
| 
      
 1 
     | 
    
         
            +
            module TaggingForm
         
     | 
| 
       2 
2 
     | 
    
         
             
              module Helper
         
     | 
| 
       3 
     | 
    
         
            -
                 
     | 
| 
      
 3 
     | 
    
         
            +
                
         
     | 
| 
      
 4 
     | 
    
         
            +
                def tadding_tag(name, content = nil, options = {})
         
     | 
| 
       4 
5 
     | 
    
         
             
                  id = sanitize_to_id(name)
         
     | 
| 
       5 
6 
     | 
    
         
             
                  input_html = { :id => id }.merge(options.delete(:input_html) || {})
         
     | 
| 
       6 
7 
     | 
    
         
             
                  output = ActiveSupport::SafeBuffer.new
         
     | 
| 
       7 
8 
     | 
    
         
             
                  output << text_area_tag(name, content, input_html)
         
     | 
| 
       8 
9 
     | 
    
         
             
                end
         
     | 
| 
       9 
10 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
                def  
     | 
| 
      
 11 
     | 
    
         
            +
                def tadding(name, method, options = {})
         
     | 
| 
       11 
12 
     | 
    
         
             
                  input_html = (options.delete(:input_html) || {})
         
     | 
| 
       12 
13 
     | 
    
         
             
                  hash = input_html.stringify_keys
         
     | 
| 
       13 
14 
     | 
    
         
             
                  instance_tag = ActionView::Base::InstanceTag.new(name, method, self, options.delete(:object))
         
     | 
| 
         @@ -19,8 +20,8 @@ module RailsKindeditor 
     | 
|
| 
       19 
20 
     | 
    
         
             
              end
         
     | 
| 
       20 
21 
     | 
    
         | 
| 
       21 
22 
     | 
    
         
             
              module Builder
         
     | 
| 
       22 
     | 
    
         
            -
                def  
     | 
| 
       23 
     | 
    
         
            -
                  @template.send(" 
     | 
| 
      
 23 
     | 
    
         
            +
                def tadding(method, options = {})
         
     | 
| 
      
 24 
     | 
    
         
            +
                  @template.send("tadding", @object_name, method, objectify_options(options))
         
     | 
| 
       24 
25 
     | 
    
         
             
                end
         
     | 
| 
       25 
26 
     | 
    
         
             
              end
         
     | 
| 
       26 
27 
     | 
    
         
             
            end
         
     | 
    
        data/taggingform.gemspec
    CHANGED
    
    | 
         @@ -5,7 +5,7 @@ require "taggingform/version" 
     | 
|
| 
       5 
5 
     | 
    
         | 
| 
       6 
6 
     | 
    
         
             
            Gem::Specification.new do |gem|
         
     | 
| 
       7 
7 
     | 
    
         
             
              gem.name        = 'taggingform'
         
     | 
| 
       8 
     | 
    
         
            -
              gem.version     = '0.0. 
     | 
| 
      
 8 
     | 
    
         
            +
              gem.version     = '0.0.5'
         
     | 
| 
       9 
9 
     | 
    
         
             
              gem.date        = '2013-04-16'
         
     | 
| 
       10 
10 
     | 
    
         
             
              gem.summary     = "a plugin with jquery plug tagging!"
         
     | 
| 
       11 
11 
     | 
    
         
             
              gem.description = "a plugin with jquery plug tagging http://aehlke.github.io/tag-it/"
         
     |