isorun 0.1.9-arm64-darwin → 0.1.10-arm64-darwin
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/app/helpers/isorun/app_helper.rb +8 -2
 - data/app/helpers/isorun/vite_app_helper.rb +9 -3
 - data/ext/isorun/Cargo.toml +1 -1
 - data/lib/isorun/2.7/isorun.bundle +0 -0
 - data/lib/isorun/3.0/isorun.bundle +0 -0
 - data/lib/isorun/3.1/isorun.bundle +0 -0
 - data/lib/isorun/3.2/isorun.bundle +0 -0
 - data/lib/isorun/version.rb +1 -1
 - metadata +2 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: 8500ad6077f9dd90991581e56e19f00b4ec5c7b740342d88e84f3a5f77587ef5
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 44e38cf5a0eaffeeeec54852e1af7600d63af31e2f89f3828362de87c797e326
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9595bdc80fcfa5ddb881110c0be58745c8e2cf1dc02ca696972ad99f98062c2a9af0824ea43bc73cff0093046bd6c53406ccf498c68051be5e33caca8ed008ff
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: d75c541a4253bf22b6326b9978e972f7aaa8d18fbb734caaa53271c4da9347e24ec99fe7e294dfd5954aa2de927fd938fdcdcd95cd635bfc2efc116bc18a78f2
         
     | 
| 
         @@ -14,10 +14,13 @@ module Isorun 
     | 
|
| 
       14 
14 
     | 
    
         
             
                #   </body>
         
     | 
| 
       15 
15 
     | 
    
         
             
                #   </html>
         
     | 
| 
       16 
16 
     | 
    
         
             
                #
         
     | 
| 
      
 17 
     | 
    
         
            +
                # @see https://api.rubyonrails.org/v5.1/classes/ActionView/Helpers/TagHelper.html#method-i-tag
         
     | 
| 
       17 
18 
     | 
    
         
             
                # @param id [String] An ID representing both, the asset bundle, and by
         
     | 
| 
       18 
19 
     | 
    
         
             
                #   convention, the target node (e.g. `<div id="my_app">`)
         
     | 
| 
      
 20 
     | 
    
         
            +
                # @param [Hash] options All valid tag options can also passed as options
         
     | 
| 
      
 21 
     | 
    
         
            +
                #   to this method
         
     | 
| 
       19 
22 
     | 
    
         
             
                # @return [String]
         
     | 
| 
       20 
     | 
    
         
            -
                def isorun_app(id) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
         
     | 
| 
      
 23 
     | 
    
         
            +
                def isorun_app(id, options = nil) # rubocop:disable Metrics/AbcSize, Metrics/MethodLength
         
     | 
| 
       21 
24 
     | 
    
         
             
                  ActiveSupport::Notifications.instrument "start.render.isorun", { ts: Time.current }
         
     | 
| 
       22 
25 
     | 
    
         | 
| 
       23 
26 
     | 
    
         
             
                  module_path = Isorun.config.module_resolver.call(id)
         
     | 
| 
         @@ -43,7 +46,10 @@ module Isorun 
     | 
|
| 
       43 
46 
     | 
    
         
             
                  end
         
     | 
| 
       44 
47 
     | 
    
         | 
| 
       45 
48 
     | 
    
         
             
                  html = if ssr_html.present?
         
     | 
| 
       46 
     | 
    
         
            -
                            
     | 
| 
      
 49 
     | 
    
         
            +
                           options ||= {}
         
     | 
| 
      
 50 
     | 
    
         
            +
                           options[:id] = id
         
     | 
| 
      
 51 
     | 
    
         
            +
             
     | 
| 
      
 52 
     | 
    
         
            +
                           tag.div(**options) do
         
     | 
| 
       47 
53 
     | 
    
         
             
                             ssr_html.html_safe # rubocop:disable Rails/OutputSafety
         
     | 
| 
       48 
54 
     | 
    
         
             
                           end
         
     | 
| 
       49 
55 
     | 
    
         
             
                         else
         
     | 
| 
         @@ -15,10 +15,13 @@ module Isorun 
     | 
|
| 
       15 
15 
     | 
    
         
             
                #   </body>
         
     | 
| 
       16 
16 
     | 
    
         
             
                #   </html>
         
     | 
| 
       17 
17 
     | 
    
         
             
                #
         
     | 
| 
       18 
     | 
    
         
            -
                # @ 
     | 
| 
      
 18 
     | 
    
         
            +
                # @see https://api.rubyonrails.org/v5.1/classes/ActionView/Helpers/TagHelper.html#method-i-tag
         
     | 
| 
      
 19 
     | 
    
         
            +
                # @param [String] id An ID representing both, the asset bundle, and by
         
     | 
| 
       19 
20 
     | 
    
         
             
                #   convention, the target node (e.g. `<div id="my_app">`)
         
     | 
| 
      
 21 
     | 
    
         
            +
                # @param [Hash] options All valid tag options can also passed as options
         
     | 
| 
      
 22 
     | 
    
         
            +
                #   to this method
         
     | 
| 
       20 
23 
     | 
    
         
             
                # @return [String]
         
     | 
| 
       21 
     | 
    
         
            -
                def isorun_vite_app(id 
     | 
| 
      
 24 
     | 
    
         
            +
                def isorun_vite_app(id, options = nil)
         
     | 
| 
       22 
25 
     | 
    
         
             
                  ActiveSupport::Notifications.instrument "start.render.isorun", { ts: Time.current }
         
     | 
| 
       23 
26 
     | 
    
         | 
| 
       24 
27 
     | 
    
         
             
                  # if id has a file extension, we extract the extension and reduce the ID
         
     | 
| 
         @@ -49,7 +52,10 @@ module Isorun 
     | 
|
| 
       49 
52 
     | 
    
         
             
                  end
         
     | 
| 
       50 
53 
     | 
    
         | 
| 
       51 
54 
     | 
    
         
             
                  html = if ssr_html.present?
         
     | 
| 
       52 
     | 
    
         
            -
                            
     | 
| 
      
 55 
     | 
    
         
            +
                           options ||= {}
         
     | 
| 
      
 56 
     | 
    
         
            +
                           options[:id] = id
         
     | 
| 
      
 57 
     | 
    
         
            +
             
     | 
| 
      
 58 
     | 
    
         
            +
                           tag.div(**options) do
         
     | 
| 
       53 
59 
     | 
    
         
             
                             ssr_html.html_safe # rubocop:disable Rails/OutputSafety
         
     | 
| 
       54 
60 
     | 
    
         
             
                           end
         
     | 
| 
       55 
61 
     | 
    
         
             
                         else
         
     | 
    
        data/ext/isorun/Cargo.toml
    CHANGED
    
    
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
| 
         Binary file 
     | 
    
        data/lib/isorun/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: isorun
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 0.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.10
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: arm64-darwin
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Hannes Moser
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2023- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2023-02-03 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: railties
         
     |