activeadmin 2.13.0 → 2.13.1
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of activeadmin might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/CHANGELOG.md +11 -0
- data/docs/Gemfile.lock +1 -1
- data/lib/active_admin/application.rb +4 -4
- data/lib/active_admin/namespace.rb +2 -2
- data/lib/active_admin/version.rb +1 -1
- data/lib/active_admin.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0b3beb756b607b196f72d4ec4a4b173867021bb2eba03d183797165810a526b5
|
4
|
+
data.tar.gz: bed4421fc6a28f2ff0bee9659a76bfd680b9432c74d290753c62392c3a7048d3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11cce1d23fb4519f394ef13930716fabe39e6d7654f5c4424c887fe54e6d56225700155ae59187ad42a6551d9bcf17f95652c08d234ddafb5ba2d4fb5e444a09
|
7
|
+
data.tar.gz: 452592e57f8fe9f16e683a2f54b9dc7fdd717d1ec2db909710a07cfb74dda5d8f7a0efda515b439555470381da020e75b2d4dfe328a8b52bc436b2f94371525b
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,13 @@
|
|
2
2
|
|
3
3
|
## Unreleased
|
4
4
|
|
5
|
+
## 2.13.1 [☰](https://github.com/activeadmin/activeadmin/compare/v2.13.0..v2.13.1)
|
6
|
+
|
7
|
+
### Bug Fixes
|
8
|
+
|
9
|
+
* Honor load paths order when loading admin files. [#7488] by [@tf]
|
10
|
+
* Fix passing expected hash payload argument. [#7487] by [@ispyropoulos]
|
11
|
+
|
5
12
|
## 2.13.0 [☰](https://github.com/activeadmin/activeadmin/compare/v2.12.0..v2.13.0)
|
6
13
|
|
7
14
|
### Documentation
|
@@ -789,6 +796,8 @@ Please check [0-6-stable] for previous changes.
|
|
789
796
|
[#7475]: https://github.com/activeadmin/activeadmin/pull/7475
|
790
797
|
[#7476]: https://github.com/activeadmin/activeadmin/pull/7476
|
791
798
|
[#7479]: https://github.com/activeadmin/activeadmin/pull/7479
|
799
|
+
[#7487]: https://github.com/activeadmin/activeadmin/pull/7487
|
800
|
+
[#7488]: https://github.com/activeadmin/activeadmin/pull/7488
|
792
801
|
|
793
802
|
[@1000ship]: https://github.com/1000ship
|
794
803
|
[@5t111111]: https://github.com/5t111111
|
@@ -836,6 +845,7 @@ Please check [0-6-stable] for previous changes.
|
|
836
845
|
[@innparusu95]: https://github.com/innparusu95
|
837
846
|
[@ionut998]: https://github.com/ionut998
|
838
847
|
[@irmela]: https://github.com/irmela
|
848
|
+
[@ispyropoulos]: https://github.com/ispyropoulos
|
839
849
|
[@Ivanov-Anton]: https://github.com/Ivanov-Anton
|
840
850
|
[@jasl]: https://github.com/jasl
|
841
851
|
[@javawizard]: https://github.com/javawizard
|
@@ -894,6 +904,7 @@ Please check [0-6-stable] for previous changes.
|
|
894
904
|
[@stereoscott]: https://github.com/stereoscott
|
895
905
|
[@tagliala]: https://github.com/tagliala
|
896
906
|
[@taralbass]: https://github.com/taralbass
|
907
|
+
[@tf]: https://github.com/tf
|
897
908
|
[@tiagotex]: https://github.com/tiagotex
|
898
909
|
[@timoschilling]: https://github.com/timoschilling
|
899
910
|
[@TimPetricola]: https://github.com/TimPetricola
|
data/docs/Gemfile.lock
CHANGED
@@ -76,7 +76,7 @@ module ActiveAdmin
|
|
76
76
|
|
77
77
|
namespace = namespaces[name.to_sym] ||= begin
|
78
78
|
namespace = Namespace.new(self, name)
|
79
|
-
ActiveSupport::Notifications.instrument ActiveAdmin::Namespace::RegisterEvent, namespace
|
79
|
+
ActiveSupport::Notifications.instrument ActiveAdmin::Namespace::RegisterEvent, { active_admin_namespace: namespace }
|
80
80
|
namespace
|
81
81
|
end
|
82
82
|
|
@@ -112,10 +112,10 @@ module ActiveAdmin
|
|
112
112
|
# To reload everything simply call `ActiveAdmin.unload!`
|
113
113
|
def load!
|
114
114
|
unless loaded?
|
115
|
-
ActiveSupport::Notifications.instrument BeforeLoadEvent, self # before_load hook
|
115
|
+
ActiveSupport::Notifications.instrument BeforeLoadEvent, { active_admin_application: self } # before_load hook
|
116
116
|
files.each { |file| load file } # load files
|
117
117
|
namespace(default_namespace) # init AA resources
|
118
|
-
ActiveSupport::Notifications.instrument AfterLoadEvent, self # after_load hook
|
118
|
+
ActiveSupport::Notifications.instrument AfterLoadEvent, { active_admin_application: self } # after_load hook
|
119
119
|
@@loaded = true
|
120
120
|
end
|
121
121
|
end
|
@@ -126,7 +126,7 @@ module ActiveAdmin
|
|
126
126
|
|
127
127
|
# Returns ALL the files to be loaded
|
128
128
|
def files
|
129
|
-
load_paths.flatten.compact.uniq.flat_map { |path| Dir["#{path}/**/*.rb"] }
|
129
|
+
load_paths.flatten.compact.uniq.flat_map { |path| Dir["#{path}/**/*.rb"].sort }
|
130
130
|
end
|
131
131
|
|
132
132
|
# Creates all the necessary routes for the ActiveAdmin configurations
|
@@ -60,7 +60,7 @@ module ActiveAdmin
|
|
60
60
|
settings.respond_to?(method) ? settings.send(method, *args) : super
|
61
61
|
end
|
62
62
|
|
63
|
-
# Register a resource into this namespace. The
|
63
|
+
# Register a resource into this namespace. The preferred method to access this is to
|
64
64
|
# use the global registration ActiveAdmin.register which delegates to the proper
|
65
65
|
# namespace instance.
|
66
66
|
def register(resource_class, options = {}, &block)
|
@@ -72,7 +72,7 @@ module ActiveAdmin
|
|
72
72
|
reset_menu!
|
73
73
|
|
74
74
|
# Dispatch a registration event
|
75
|
-
ActiveSupport::Notifications.instrument ActiveAdmin::Resource::RegisterEvent, config
|
75
|
+
ActiveSupport::Notifications.instrument ActiveAdmin::Resource::RegisterEvent, { active_admin_resource: config }
|
76
76
|
|
77
77
|
# Return the config
|
78
78
|
config
|
data/lib/active_admin/version.rb
CHANGED
data/lib/active_admin.rb
CHANGED
@@ -113,7 +113,7 @@ module ActiveAdmin
|
|
113
113
|
private
|
114
114
|
|
115
115
|
def wrap_block_for_active_support_notifications block
|
116
|
-
proc { |_name, _start, _finish, _id, payload| block.call payload }
|
116
|
+
proc { |_name, _start, _finish, _id, payload| block.call payload[:active_admin_application] }
|
117
117
|
end
|
118
118
|
|
119
119
|
end
|
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: 2.13.
|
4
|
+
version: 2.13.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Charles Maresh
|
@@ -15,7 +15,7 @@ authors:
|
|
15
15
|
autorequire:
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
|
-
date: 2022-05-
|
18
|
+
date: 2022-05-20 00:00:00.000000000 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: arbre
|
@@ -578,7 +578,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
578
578
|
- !ruby/object:Gem::Version
|
579
579
|
version: '0'
|
580
580
|
requirements: []
|
581
|
-
rubygems_version: 3.3.
|
581
|
+
rubygems_version: 3.3.7
|
582
582
|
signing_key:
|
583
583
|
specification_version: 4
|
584
584
|
summary: Active Admin is a Ruby on Rails plugin for generating administration style
|