turbo-ruby 0.1.0 → 0.1.1
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/turbo/elements/turbo_stream.rb +4 -1
 - data/lib/turbo/elements/turbo_stream.rb~ +4 -1
 - data/lib/turbo/ruby/version.rb +1 -1
 - data/lib/turbo/ruby/version.rb~ +7 -0
 - data/lib/turbo/ruby.rb +0 -1
 - data/lib/turbo/ruby.rb~ +0 -1
 - metadata +2 -15
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 977a0a70114d93c308038623e3662d9c5711c9c9ce6e0a669dca583f2ee76947
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c322604e0d3be6ef087a1d920a6a128e0621d5bb2973f5c933da7d321c251a52
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 83256ece116deda441764effbf1576ac47df4ce461971653f5cc2d2f598e8bf056fd0fb77b0514996da204d513f002d553a7ea6c8998ef6ebf81ef2bcb794ba0
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 8234a01ed77707670eb90629593ada83a499fa8bf98a39a015a4e7ea01f2ec4bfee9ad5bf73c878426e24ce72c4f1619ac835cd8d969c8918f60d47b681cae89
         
     | 
| 
         @@ -7,7 +7,6 @@ module Turbo 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
                  def initialize(view_context: nil, action: nil, target: nil, content: nil, allow_inferred_rendering: true,
         
     | 
| 
       9 
9 
     | 
    
         
             
                                 attributes: {}, **rendering, &block)
         
     | 
| 
       10 
     | 
    
         
            -
                    super
         
     | 
| 
       11 
10 
     | 
    
         
             
                    @view_context = view_context
         
     | 
| 
       12 
11 
     | 
    
         
             
                    @action = action
         
     | 
| 
       13 
12 
     | 
    
         
             
                    @target = target
         
     | 
| 
         @@ -52,6 +51,10 @@ module Turbo 
     | 
|
| 
       52 
51 
     | 
    
         
             
                    record = possible_record
         
     | 
| 
       53 
52 
     | 
    
         
             
                    @view_context.render(partial: record, formats: :html)
         
     | 
| 
       54 
53 
     | 
    
         
             
                  end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
                  def to_html
         
     | 
| 
      
 56 
     | 
    
         
            +
                    call
         
     | 
| 
      
 57 
     | 
    
         
            +
                  end
         
     | 
| 
       55 
58 
     | 
    
         
             
                end
         
     | 
| 
       56 
59 
     | 
    
         
             
              end
         
     | 
| 
       57 
60 
     | 
    
         
             
            end
         
     | 
| 
         @@ -7,7 +7,6 @@ module Turbo 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
                  def initialize(view_context: nil, action: nil, target: nil, content: nil, allow_inferred_rendering: true,
         
     | 
| 
       9 
9 
     | 
    
         
             
                                 attributes: {}, **rendering, &block)
         
     | 
| 
       10 
     | 
    
         
            -
                    super
         
     | 
| 
       11 
10 
     | 
    
         
             
                    @view_context = view_context
         
     | 
| 
       12 
11 
     | 
    
         
             
                    @action = action
         
     | 
| 
       13 
12 
     | 
    
         
             
                    @target = target
         
     | 
| 
         @@ -52,6 +51,10 @@ module Turbo 
     | 
|
| 
       52 
51 
     | 
    
         
             
                    record = possible_record
         
     | 
| 
       53 
52 
     | 
    
         
             
                    @view_context.render(partial: record, formats: :html)
         
     | 
| 
       54 
53 
     | 
    
         
             
                  end
         
     | 
| 
      
 54 
     | 
    
         
            +
             
     | 
| 
      
 55 
     | 
    
         
            +
                  def to_html
         
     | 
| 
      
 56 
     | 
    
         
            +
                    call
         
     | 
| 
      
 57 
     | 
    
         
            +
                  end
         
     | 
| 
       55 
58 
     | 
    
         
             
                end
         
     | 
| 
       56 
59 
     | 
    
         
             
              end
         
     | 
| 
       57 
60 
     | 
    
         
             
            end
         
     | 
    
        data/lib/turbo/ruby/version.rb
    CHANGED
    
    
    
        data/lib/turbo/ruby.rb
    CHANGED
    
    
    
        data/lib/turbo/ruby.rb~
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: turbo-ruby
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.1
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Marco Roth
         
     | 
| 
         @@ -24,20 +24,6 @@ dependencies: 
     | 
|
| 
       24 
24 
     | 
    
         
             
                - - "~>"
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
26 
     | 
    
         
             
                    version: '1.0'
         
     | 
| 
       27 
     | 
    
         
            -
            - !ruby/object:Gem::Dependency
         
     | 
| 
       28 
     | 
    
         
            -
              name: phlex-rails
         
     | 
| 
       29 
     | 
    
         
            -
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
       30 
     | 
    
         
            -
                requirements:
         
     | 
| 
       31 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       32 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       33 
     | 
    
         
            -
                    version: '0.4'
         
     | 
| 
       34 
     | 
    
         
            -
              type: :runtime
         
     | 
| 
       35 
     | 
    
         
            -
              prerelease: false
         
     | 
| 
       36 
     | 
    
         
            -
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       37 
     | 
    
         
            -
                requirements:
         
     | 
| 
       38 
     | 
    
         
            -
                - - "~>"
         
     | 
| 
       39 
     | 
    
         
            -
                  - !ruby/object:Gem::Version
         
     | 
| 
       40 
     | 
    
         
            -
                    version: '0.4'
         
     | 
| 
       41 
27 
     | 
    
         
             
            description: Turbo helpers without the requirement for Rails
         
     | 
| 
       42 
28 
     | 
    
         
             
            email:
         
     | 
| 
       43 
29 
     | 
    
         
             
            - marco.roth@intergga.ch
         
     | 
| 
         @@ -58,6 +44,7 @@ files: 
     | 
|
| 
       58 
44 
     | 
    
         
             
            - lib/turbo/ruby/helpers.rb
         
     | 
| 
       59 
45 
     | 
    
         
             
            - lib/turbo/ruby/helpers.rb~
         
     | 
| 
       60 
46 
     | 
    
         
             
            - lib/turbo/ruby/version.rb
         
     | 
| 
      
 47 
     | 
    
         
            +
            - lib/turbo/ruby/version.rb~
         
     | 
| 
       61 
48 
     | 
    
         
             
            homepage: https://github.com/marcoroth/turbo-ruby
         
     | 
| 
       62 
49 
     | 
    
         
             
            licenses:
         
     | 
| 
       63 
50 
     | 
    
         
             
            - MIT
         
     |