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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 170a59df9471df04e568a2ae1cc4dab8ff58c28fd28a6861a5e87ba596a4e913
4
- data.tar.gz: ff345b66e5c18bc94b2a9394d0a633ebe12cce3f7c94b5119ece2b54bcf86836
3
+ metadata.gz: 0b3beb756b607b196f72d4ec4a4b173867021bb2eba03d183797165810a526b5
4
+ data.tar.gz: bed4421fc6a28f2ff0bee9659a76bfd680b9432c74d290753c62392c3a7048d3
5
5
  SHA512:
6
- metadata.gz: 558b34213e3a1af076814008a337ed3d7a66fa328c33bb460020f28595f4e4898e815752dde54c8b41ab6fa687989e7c4d0d8cd58113e736bdafe3943b3c3026
7
- data.tar.gz: bb0f39fecd17ef5bb0063aaa64cf2ee2684fa52b19faf7b2e37fc273484554ad97a686972f5d5baa02cbd8d785efd9de384769e86b2083f5a2a6c591381d573d
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
@@ -232,7 +232,7 @@ GEM
232
232
  jekyll-seo-tag (~> 2.1)
233
233
  minitest (5.15.0)
234
234
  multipart-post (2.1.1)
235
- nokogiri (1.13.4)
235
+ nokogiri (1.13.6)
236
236
  mini_portile2 (~> 2.8.0)
237
237
  racc (~> 1.4)
238
238
  octokit (4.22.0)
@@ -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"] }.sort
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 preffered method to access this is to
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
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module ActiveAdmin
3
- VERSION = "2.13.0"
3
+ VERSION = "2.13.1"
4
4
  end
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.0
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-07 00:00:00.000000000 Z
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.13
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