activeadmin 4.0.0.beta17 → 4.0.0.beta18
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/UPGRADING.md +9 -4
 - data/lib/active_admin/router.rb +5 -5
 - data/lib/active_admin/version.rb +1 -1
 - data/vendor/bundle/offense.rb +1 -0
 - metadata +3 -2
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: b49e0fb31e91581e8e596bc290f16d61ca571de10819180593aff275af5d123f
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 32af2d9b9d3594945e7dc50f8d7ffe4e83ff95f1a5667ae155f193ef5ab1a807
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: df08dcdc5efdb3937460d48306aa6314e2a29a581bace1b7d2566a0e3f6614c95dcec5b52c54ca4d081abb2ad78ae55747b3a8c20c5e4a6f4a226952e280c365
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: f06d90165c82d019d9f298e88415f6c309e0178adb8a075526925d37e043c04b9851e037e36f2a44ce549a64637722ad825e228fa78332ca4ca2385fd1e31bf2
         
     | 
    
        data/UPGRADING.md
    CHANGED
    
    | 
         @@ -7,7 +7,7 @@ ActiveAdmin v4 uses Tailwind CSS v3 (with an upgrade to v4 coming soon). It has 
     | 
|
| 
       7 
7 
     | 
    
         | 
| 
       8 
8 
     | 
    
         
             
            These instructions assume the `cssbundling-rails` and `importmap-rails` gems are already installed and you have run their install commands in your app. If you haven't done so, please do before continuing.
         
     | 
| 
       9 
9 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
            Update your `Gemfile` with `gem "activeadmin", "4.0.0. 
     | 
| 
      
 10 
     | 
    
         
            +
            Update your `Gemfile` with `gem "activeadmin", "4.0.0.beta18"` and then run `gem install activeadmin --pre`.
         
     | 
| 
       11 
11 
     | 
    
         | 
| 
       12 
12 
     | 
    
         
             
            Now, run `rails generate active_admin:assets` to replace the old assets with the new files.
         
     | 
| 
       13 
13 
     | 
    
         | 
| 
         @@ -198,7 +198,8 @@ Note that `@post` can also be used here but make sure to call `authorize!` on it 
     | 
|
| 
       198 
198 
     | 
    
         | 
| 
       199 
199 
     | 
    
         
             
            This release includes several locale changes. Please [review the en.yml locale](https://github.com/activeadmin/activeadmin/blob/master/config/locales/en.yml) for the latest translations.
         
     | 
| 
       200 
200 
     | 
    
         | 
| 
       201 
     | 
    
         
            -
            -  
     | 
| 
      
 201 
     | 
    
         
            +
            - Removed keys: `dashboard_welcome`, `dropdown_actions`, `main_content` and `unsupported_browser`.
         
     | 
| 
      
 202 
     | 
    
         
            +
            - New keys: `toggle_dark_mode`, `toggle_main_navigation_menu`, `toggle_section`, and `toggle_user_menu` have been added.
         
     | 
| 
       202 
203 
     | 
    
         
             
            - The `active_admin.pagination` keys have been rewritten to be less verbose and include new entries: next and previous.
         
     | 
| 
       203 
204 
     | 
    
         | 
| 
       204 
205 
     | 
    
         
             
              ```diff
         
     | 
| 
         @@ -231,6 +232,10 @@ This release includes several locale changes. Please [review the en.yml locale]( 
     | 
|
| 
       231 
232 
     | 
    
         
             
            - The value for the `status_tag.unset` key has changed from "No" to "Unknown".
         
     | 
| 
       232 
233 
     | 
    
         
             
            - The `comments.title_content` text has been updated with an "All " prefix.
         
     | 
| 
       233 
234 
     | 
    
         
             
            - The `comments.delete_confirmation` text has been fixed to use singular form.
         
     | 
| 
      
 235 
     | 
    
         
            +
            - The `batch_actions.succesfully_destroyed` key has been renamed to fix a typo.
         
     | 
| 
      
 236 
     | 
    
         
            +
             
     | 
| 
      
 237 
     | 
    
         
            +
              ```diff
         
     | 
| 
      
 238 
     | 
    
         
            +
              - succesfully_destroyed:
         
     | 
| 
      
 239 
     | 
    
         
            +
              + successfully_destroyed:
         
     | 
| 
      
 240 
     | 
    
         
            +
              ```
         
     | 
| 
       234 
241 
     | 
    
         
             
            - Inconsistent use of login/sign-in related terms so text now uses "Sign in", Sign out", and "Sign up" throughout.
         
     | 
| 
       235 
     | 
    
         
            -
            - The `toggle_dark_mode`, `toggle_main_navigation_menu`, `toggle_section`, and `toggle_user_menu` keys have been added.
         
     | 
| 
       236 
     | 
    
         
            -
            - The `batch_actions.succesfully_destroyed` key has been renamed to `batch_actions.successfully_destroyed` to fix a typo.
         
     | 
    
        data/lib/active_admin/router.rb
    CHANGED
    
    | 
         @@ -21,7 +21,7 @@ module ActiveAdmin 
     | 
|
| 
       21 
21 
     | 
    
         
             
                    if namespace.root?
         
     | 
| 
       22 
22 
     | 
    
         
             
                      router.root namespace.root_to_options.merge(to: namespace.root_to)
         
     | 
| 
       23 
23 
     | 
    
         
             
                    else
         
     | 
| 
       24 
     | 
    
         
            -
                      router.namespace namespace.name, namespace.route_options.dup do
         
     | 
| 
      
 24 
     | 
    
         
            +
                      router.namespace namespace.name, **namespace.route_options.dup do
         
     | 
| 
       25 
25 
     | 
    
         
             
                        router.root namespace.root_to_options.merge(to: namespace.root_to, as: :root)
         
     | 
| 
       26 
26 
     | 
    
         
             
                      end
         
     | 
| 
       27 
27 
     | 
    
         
             
                    end
         
     | 
| 
         @@ -65,7 +65,7 @@ module ActiveAdmin 
     | 
|
| 
       65 
65 
     | 
    
         | 
| 
       66 
66 
     | 
    
         
             
                def page_routes(config)
         
     | 
| 
       67 
67 
     | 
    
         
             
                  page = config.underscored_resource_name
         
     | 
| 
       68 
     | 
    
         
            -
                  router.get "/#{page}"  
     | 
| 
      
 68 
     | 
    
         
            +
                  router.get "/#{page}", to: "#{page}#index"
         
     | 
| 
       69 
69 
     | 
    
         
             
                  config.page_actions.each do |action|
         
     | 
| 
       70 
70 
     | 
    
         
             
                    Array.wrap(action.http_verb).each do |verb|
         
     | 
| 
       71 
71 
     | 
    
         
             
                      build_route(verb, "/#{page}/#{action.name}" => "#{page}##{action.name}")
         
     | 
| 
         @@ -91,8 +91,8 @@ module ActiveAdmin 
     | 
|
| 
       91 
91 
     | 
    
         
             
                  build_route(action.http_verb, action.name)
         
     | 
| 
       92 
92 
     | 
    
         
             
                end
         
     | 
| 
       93 
93 
     | 
    
         | 
| 
       94 
     | 
    
         
            -
                def build_route(verbs,  
     | 
| 
       95 
     | 
    
         
            -
                  Array.wrap(verbs).each { |verb| router.send(verb,  
     | 
| 
      
 94 
     | 
    
         
            +
                def build_route(verbs, ...)
         
     | 
| 
      
 95 
     | 
    
         
            +
                  Array.wrap(verbs).each { |verb| router.send(verb, ...) }
         
     | 
| 
       96 
96 
     | 
    
         
             
                end
         
     | 
| 
       97 
97 
     | 
    
         | 
| 
       98 
98 
     | 
    
         
             
                def define_belongs_to_routes(config)
         
     | 
| 
         @@ -107,7 +107,7 @@ module ActiveAdmin 
     | 
|
| 
       107 
107 
     | 
    
         
             
                end
         
     | 
| 
       108 
108 
     | 
    
         | 
| 
       109 
109 
     | 
    
         
             
                def define_namespace(config)
         
     | 
| 
       110 
     | 
    
         
            -
                  router.namespace config.namespace.name, config.namespace.route_options.dup do
         
     | 
| 
      
 110 
     | 
    
         
            +
                  router.namespace config.namespace.name, **config.namespace.route_options.dup do
         
     | 
| 
       111 
111 
     | 
    
         
             
                    define_routes(config)
         
     | 
| 
       112 
112 
     | 
    
         
             
                  end
         
     | 
| 
       113 
113 
     | 
    
         
             
                end
         
     | 
    
        data/lib/active_admin/version.rb
    CHANGED
    
    
| 
         @@ -0,0 +1 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            puts "Ciao"
         
     | 
    
        metadata
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: activeadmin
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 4.0.0. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 4.0.0.beta18
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Charles Maresh
         
     | 
| 
         @@ -375,6 +375,7 @@ files: 
     | 
|
| 
       375 
375 
     | 
    
         
             
            - lib/generators/active_admin/resource/templates/resource.rb.erb
         
     | 
| 
       376 
376 
     | 
    
         
             
            - lib/generators/active_admin/views_generator.rb
         
     | 
| 
       377 
377 
     | 
    
         
             
            - plugin.js
         
     | 
| 
      
 378 
     | 
    
         
            +
            - vendor/bundle/offense.rb
         
     | 
| 
       378 
379 
     | 
    
         
             
            - vendor/javascript/flowbite.js
         
     | 
| 
       379 
380 
     | 
    
         
             
            - vendor/javascript/rails_ujs_esm.js
         
     | 
| 
       380 
381 
     | 
    
         
             
            homepage: https://activeadmin.info
         
     | 
| 
         @@ -403,7 +404,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement 
     | 
|
| 
       403 
404 
     | 
    
         
             
                - !ruby/object:Gem::Version
         
     | 
| 
       404 
405 
     | 
    
         
             
                  version: '0'
         
     | 
| 
       405 
406 
     | 
    
         
             
            requirements: []
         
     | 
| 
       406 
     | 
    
         
            -
            rubygems_version: 3. 
     | 
| 
      
 407 
     | 
    
         
            +
            rubygems_version: 3.6.9
         
     | 
| 
       407 
408 
     | 
    
         
             
            specification_version: 4
         
     | 
| 
       408 
409 
     | 
    
         
             
            summary: Active Admin is a Ruby on Rails plugin for generating administration style
         
     | 
| 
       409 
410 
     | 
    
         
             
              interfaces. It abstracts common business application patterns to make it simple
         
     |