rails_admin 3.0.0.rc4 → 3.0.0

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.

Potentially problematic release.


This version of rails_admin might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e9316454f8142d78f5723f035c4dae4d4c1e43b1a4f67b9fe3382a46fac7a3a7
4
- data.tar.gz: 42019837af600e34a153786615addcc21c1709bdffb78f96dddfd322ad54d5d6
3
+ metadata.gz: a20d0a9cc9b7702c63e5e92918ac89f986b2d3d1e666539fd0c16562508bdf85
4
+ data.tar.gz: 7d5784f25b6a16c0d2a05b827a8bc9990da28d056d34b2569ea628910088ae89
5
5
  SHA512:
6
- metadata.gz: 57095a84c563d2b37d54a03ec88a412b32438c7ff0653075380fe86669c9d19206219b896d3827f931f1a1f98434e98b9209ec2fb2a5735f98410fff758cf6a8
7
- data.tar.gz: 2d3f9afaaef4ebe8a69793ba8e4da469ee5ea91e1821aa2d82f91884165354a79d0b8b5b08d0988f04584eef4f0aebff985006043ace64e8814c434789f65ffb
6
+ metadata.gz: ea7b4265126ff76473d461cd0630feb1a4e3ad71476d2843577a25fdaea53fed0ca57b06b55dbe63615f5004151796b346f9bca2492ff71175d44faffbe24c38
7
+ data.tar.gz: 58fb832bd8e1e7c124e79eabd01393da73217714e0b52a32ea215ef1e1b2d4f33390928ed15686eeed983446d74a914ac947cd709bd67180799bf8bd9017bc4a
data/README.md CHANGED
@@ -14,12 +14,6 @@
14
14
 
15
15
  RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data.
16
16
 
17
- ## Announcements
18
-
19
- ### [Action required] Security issue
20
-
21
- **RailsAdmin 2.0.1, 2.0.0 and up to 1.4.2 have been reported to have XSS vulnerability.** We strongly recommend that you upgrade RailsAdmin to 2.0.2 (and higher) or 1.4.3 as soon as possible, if you are on those versions. See [d72090ec](https://github.com/railsadminteam/rails_admin/commit/d72090ec6a07c3b9b7b48ab50f3d405f91ff4375) for the detail.
22
-
23
17
  ## Getting started
24
18
 
25
19
  - Check out [the docs][docs].
@@ -45,7 +39,7 @@ RailsAdmin is a Rails engine that provides an easy-to-use interface for managing
45
39
 
46
40
  ## Installation
47
41
 
48
- 1. On your gemfile: `gem 'rails_admin', ['>= 3.0.0.rc4', '< 4']`
42
+ 1. On your gemfile: `gem 'rails_admin', '~> 3.0'`
49
43
  2. Run `bundle install`
50
44
  3. Run `rails g rails_admin:install`
51
45
  4. Provide a namespace for the routes when asked
@@ -32,7 +32,7 @@
32
32
  <% selected = (sort == property_name) %>
33
33
  <% sort_direction = (sort_reverse ? "headerSortUp" : "headerSortDown" if selected) %>
34
34
  <% sort_location = send(path_method, params.except("sort_reverse").merge(model_name: @abstract_model.to_param, sort: property_name).merge(selected && sort_reverse != "true" ? {sort_reverse: "true"} : {})) %>
35
- <th class="header <%= column[:css_class] %> <%= sort_direction if selected %>">
35
+ <th class="header <%= column[:css_class] %> <%= sort_direction if selected %>" data-href="<%= sort_location %>">
36
36
  <%= column[:link_text] %>
37
37
  </th>
38
38
  <% end %>
@@ -3,7 +3,7 @@ module RailsAdmin
3
3
  MAJOR = 3
4
4
  MINOR = 0
5
5
  PATCH = 0
6
- PRE = 'rc4'.freeze
6
+ PRE = nil
7
7
 
8
8
  class << self
9
9
  # @return [String]
data/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rails_admin",
3
- "version": "3.0.0-rc4",
3
+ "version": "3.0.0",
4
4
  "description": "RailsAdmin is a Rails engine that provides an easy-to-use interface for managing your data.",
5
5
  "homepage": "https://github.com/railsadminteam/rails_admin",
6
6
  "license": "MIT",
@@ -114,10 +114,15 @@ import I18n from "./i18n";
114
114
  event.preventDefault();
115
115
  $("#filters_box").html("");
116
116
  $("hr.filters_box").hide();
117
- $(this).parent().siblings("input[type='search']").val("");
117
+ $(this).siblings("input[type='search']").val("");
118
118
  $(this).parents("form").submit();
119
119
  });
120
120
 
121
+ $(document).on("click", "th.header", function (event) {
122
+ event.preventDefault();
123
+ window.Turbo.visit($(this).data("href"));
124
+ });
125
+
121
126
  $(document).on(
122
127
  "click",
123
128
  "#fields_to_export label input#check_all",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.rc4
4
+ version: 3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Michaels-Ober
@@ -12,7 +12,7 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2022-03-13 00:00:00.000000000 Z
15
+ date: 2022-03-21 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
18
  name: activemodel-serializers-xml
@@ -460,9 +460,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
460
460
  version: 2.6.0
461
461
  required_rubygems_version: !ruby/object:Gem::Requirement
462
462
  requirements:
463
- - - ">"
463
+ - - ">="
464
464
  - !ruby/object:Gem::Version
465
- version: 1.3.1
465
+ version: 1.8.11
466
466
  requirements: []
467
467
  rubygems_version: 3.2.32
468
468
  signing_key: