avo 1.18.0 → 1.19.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


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

Files changed (106) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -3
  3. data/Gemfile.lock +195 -169
  4. data/app/components/avo/fields/belongs_to_field/index_component.html.erb +1 -1
  5. data/app/components/avo/fields/belongs_to_field/show_component.html.erb +1 -1
  6. data/app/components/avo/fields/common/multiple_file_viewer_component.html.erb +1 -1
  7. data/app/components/avo/fields/common/single_file_viewer_component.html.erb +1 -2
  8. data/app/components/avo/fields/has_one_field/index_component.html.erb +1 -1
  9. data/app/components/avo/fields/has_one_field/show_component.html.erb +1 -1
  10. data/app/components/avo/fields/has_one_field/show_component.rb +6 -1
  11. data/app/components/avo/fields/index_component.rb +2 -2
  12. data/app/components/avo/fields/text_field/index_component.html.erb +5 -1
  13. data/app/components/avo/fields/text_field/show_component.html.erb +5 -1
  14. data/app/components/avo/fields/trix_field/edit_component.html.erb +1 -1
  15. data/app/components/avo/index/grid_item_component.html.erb +4 -4
  16. data/app/components/avo/index/resource_controls_component.html.erb +1 -1
  17. data/app/components/avo/index/resource_controls_component.rb +23 -7
  18. data/app/components/avo/index/resource_table_component.html.erb +1 -1
  19. data/app/components/avo/panel_component.rb +3 -4
  20. data/app/components/avo/resource_component.rb +5 -1
  21. data/app/components/avo/views/resource_edit_component.html.erb +2 -2
  22. data/app/components/avo/views/resource_edit_component.rb +3 -3
  23. data/app/components/avo/views/resource_index_component.html.erb +2 -8
  24. data/app/components/avo/views/resource_index_component.rb +7 -15
  25. data/app/components/avo/views/resource_new_component.html.erb +2 -2
  26. data/app/components/avo/views/resource_new_component.rb +6 -2
  27. data/app/components/avo/views/resource_show_component.html.erb +5 -4
  28. data/app/components/avo/views/resource_show_component.rb +11 -6
  29. data/app/controllers/avo/actions_controller.rb +1 -1
  30. data/app/controllers/avo/application_controller.rb +4 -77
  31. data/app/controllers/avo/attachments_controller.rb +3 -2
  32. data/app/controllers/avo/base_controller.rb +28 -21
  33. data/app/controllers/avo/home_controller.rb +5 -1
  34. data/app/controllers/avo/relations_controller.rb +3 -3
  35. data/app/controllers/avo/search_controller.rb +1 -1
  36. data/app/helpers/avo/application_helper.rb +12 -0
  37. data/app/helpers/avo/resources_helper.rb +1 -1
  38. data/app/helpers/avo/url_helpers.rb +77 -0
  39. data/app/packs/entrypoints/application.css +1 -0
  40. data/app/packs/entrypoints/application.js +7 -0
  41. data/app/packs/js/controllers/loading_button_controller.js +22 -0
  42. data/app/packs/stylesheets/components/status.css +22 -15
  43. data/app/packs/stylesheets/spinner.css +49 -0
  44. data/app/views/avo/actions/show.html.erb +2 -2
  45. data/app/views/avo/base/_actions.html.erb +3 -3
  46. data/app/views/avo/base/_filters.html.erb +1 -1
  47. data/app/views/avo/home/failed_to_load.html.erb +3 -0
  48. data/app/views/avo/partials/_failed_state.html.erb +16 -0
  49. data/app/views/avo/partials/_paginator.html.erb +2 -2
  50. data/app/views/avo/partials/_profile_dropdown.html.erb +7 -5
  51. data/app/views/avo/relations/new.html.erb +0 -2
  52. data/app/views/avo/sidebar/_sidebar.html.erb +1 -1
  53. data/app/views/kaminari/_page.html.erb +1 -1
  54. data/config/routes.rb +7 -5
  55. data/db/factories.rb +9 -0
  56. data/lib/avo/app.rb +12 -12
  57. data/lib/avo/base_action.rb +9 -1
  58. data/lib/avo/base_resource.rb +41 -8
  59. data/lib/avo/configuration.rb +4 -0
  60. data/lib/avo/fields/base_field.rb +8 -2
  61. data/lib/avo/fields/files_field.rb +0 -2
  62. data/lib/avo/fields/has_and_belongs_to_many_field.rb +1 -19
  63. data/lib/avo/fields/has_base_field.rb +35 -0
  64. data/lib/avo/fields/has_many_field.rb +1 -19
  65. data/lib/avo/fields/has_one_field.rb +3 -19
  66. data/lib/avo/fields/text_field.rb +2 -0
  67. data/lib/avo/services/authorization_service.rb +8 -4
  68. data/lib/avo/version.rb +1 -1
  69. data/lib/generators/avo/templates/locales/avo.en.yml +2 -0
  70. data/public/avo-packs/css/{application-f9191617.css → application-c3b50b28.css} +54 -12
  71. data/public/avo-packs/css/application-c3b50b28.css.br +0 -0
  72. data/public/avo-packs/css/{application-f9191617.css.gz → application-c3b50b28.css.gz} +0 -0
  73. data/public/avo-packs/css/application-c3b50b28.css.map +1 -0
  74. data/public/avo-packs/css/application-c3b50b28.css.map.br +0 -0
  75. data/public/avo-packs/css/application-c3b50b28.css.map.gz +0 -0
  76. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js +2 -0
  77. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.br +0 -0
  78. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.gz +0 -0
  79. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map +1 -0
  80. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.br +0 -0
  81. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.gz +0 -0
  82. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js +26 -0
  83. data/public/avo-packs/js/{application-cc89f096028eb1d4d971.js.LICENSE.txt → application-6fc968cfa52976c4582b.js.LICENSE.txt} +0 -0
  84. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.br +0 -0
  85. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.gz +0 -0
  86. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map +1 -0
  87. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.br +0 -0
  88. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.gz +0 -0
  89. data/public/avo-packs/manifest.json +21 -21
  90. metadata +28 -22
  91. data/public/avo-packs/css/application-f9191617.css.br +0 -0
  92. data/public/avo-packs/css/application-f9191617.css.map +0 -1
  93. data/public/avo-packs/css/application-f9191617.css.map.br +0 -0
  94. data/public/avo-packs/css/application-f9191617.css.map.gz +0 -0
  95. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js +0 -2
  96. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.br +0 -0
  97. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.gz +0 -0
  98. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map +0 -1
  99. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.br +0 -0
  100. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.gz +0 -0
  101. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js +0 -26
  102. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.br +0 -0
  103. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.gz +0 -0
  104. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map +0 -1
  105. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.br +0 -0
  106. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.gz +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f0537914efac67cf9b88d78b687484938f146e5e0941fbace1a7d8fb507c115f
4
- data.tar.gz: 15e9f8ebdf9b38aaf727154852f9ebf03d56447fc1d47dfa6fab9131557df4ee
3
+ metadata.gz: fe6f8fd6152562419ea4552e39ad441375f04932f9c3e15d4a46562d815a85a3
4
+ data.tar.gz: 87a5b8936878970adb4be91743166f4fb33105d13110e517848dc865eb606157
5
5
  SHA512:
6
- metadata.gz: 5d862bdd263cc44b4e0832e2aeb8bbd3a086a8dd7f8eb9d730401bf5fe809aec7aef021fd449fe7251f75c79648a62c3454c6554bf01948db58f03e974c4a165
7
- data.tar.gz: ba4787b27586038cfce9d08f7bac3e9143a81c38f978b2c5aa32a48d32bbcf0aee9383e87154f24f243dab74b959a5d33cbc435115a8e39e4660879a69048945
6
+ metadata.gz: 65b14a78a7f769504202072693f7b5f648a798989d7e74e7aad0d4909d610cd2ffc4092a39fbe69d8cabdc7ffb69b0d350fac3cb93951f6dc27db9ffd5678ca0
7
+ data.tar.gz: ca87e17c0fcb5aeee675aee252fa1d872aedab05109981410198376c77b8d79e8159d566bb2db9f0fec1952c1c098113a45fa1e8cbb5fc321c4864f0e80ba57a
data/Gemfile CHANGED
@@ -15,7 +15,7 @@ gemspec
15
15
  # gem 'byebug', group: [:development, :test]
16
16
 
17
17
  # Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker
18
- gem "webpacker", "6.0.0.beta.6"
18
+ gem "webpacker", "6.0.0.rc.2"
19
19
 
20
20
  gem "countries"
21
21
 
@@ -91,7 +91,7 @@ group :test do
91
91
  gem "rspec-rails", "~> 4.0.0"
92
92
  gem "rails-controller-testing"
93
93
  # Adds support for Capybara system testing and selenium driver
94
- gem "capybara", ">= 2.15"
94
+ gem "capybara", "3.36"
95
95
  gem "selenium-webdriver"
96
96
  # Easy installation and use of web drivers to run system tests with browsers
97
97
  gem "webdrivers"
@@ -131,4 +131,6 @@ gem 'ransack'
131
131
 
132
132
  gem 'friendly_id', '~> 5.4.0'
133
133
 
134
- gem "aws-sdk-s3", require: false
134
+ gem 'aws-sdk-s3', require: false
135
+
136
+ gem 'net-smtp', require: false
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- avo (1.18.0)
4
+ avo (1.19.0)
5
5
  active_link_to
6
6
  addressable
7
7
  breadcrumbs_on_rails
@@ -20,40 +20,40 @@ PATH
20
20
  GEM
21
21
  remote: https://rubygems.org/
22
22
  specs:
23
- actioncable (6.1.3.2)
24
- actionpack (= 6.1.3.2)
25
- activesupport (= 6.1.3.2)
23
+ actioncable (6.1.4.4)
24
+ actionpack (= 6.1.4.4)
25
+ activesupport (= 6.1.4.4)
26
26
  nio4r (~> 2.0)
27
27
  websocket-driver (>= 0.6.1)
28
- actionmailbox (6.1.3.2)
29
- actionpack (= 6.1.3.2)
30
- activejob (= 6.1.3.2)
31
- activerecord (= 6.1.3.2)
32
- activestorage (= 6.1.3.2)
33
- activesupport (= 6.1.3.2)
28
+ actionmailbox (6.1.4.4)
29
+ actionpack (= 6.1.4.4)
30
+ activejob (= 6.1.4.4)
31
+ activerecord (= 6.1.4.4)
32
+ activestorage (= 6.1.4.4)
33
+ activesupport (= 6.1.4.4)
34
34
  mail (>= 2.7.1)
35
- actionmailer (6.1.3.2)
36
- actionpack (= 6.1.3.2)
37
- actionview (= 6.1.3.2)
38
- activejob (= 6.1.3.2)
39
- activesupport (= 6.1.3.2)
35
+ actionmailer (6.1.4.4)
36
+ actionpack (= 6.1.4.4)
37
+ actionview (= 6.1.4.4)
38
+ activejob (= 6.1.4.4)
39
+ activesupport (= 6.1.4.4)
40
40
  mail (~> 2.5, >= 2.5.4)
41
41
  rails-dom-testing (~> 2.0)
42
- actionpack (6.1.3.2)
43
- actionview (= 6.1.3.2)
44
- activesupport (= 6.1.3.2)
42
+ actionpack (6.1.4.4)
43
+ actionview (= 6.1.4.4)
44
+ activesupport (= 6.1.4.4)
45
45
  rack (~> 2.0, >= 2.0.9)
46
46
  rack-test (>= 0.6.3)
47
47
  rails-dom-testing (~> 2.0)
48
48
  rails-html-sanitizer (~> 1.0, >= 1.2.0)
49
- actiontext (6.1.3.2)
50
- actionpack (= 6.1.3.2)
51
- activerecord (= 6.1.3.2)
52
- activestorage (= 6.1.3.2)
53
- activesupport (= 6.1.3.2)
49
+ actiontext (6.1.4.4)
50
+ actionpack (= 6.1.4.4)
51
+ activerecord (= 6.1.4.4)
52
+ activestorage (= 6.1.4.4)
53
+ activesupport (= 6.1.4.4)
54
54
  nokogiri (>= 1.8.5)
55
- actionview (6.1.3.2)
56
- activesupport (= 6.1.3.2)
55
+ actionview (6.1.4.4)
56
+ activesupport (= 6.1.4.4)
57
57
  builder (~> 3.1)
58
58
  erubi (~> 1.4)
59
59
  rails-dom-testing (~> 2.0)
@@ -61,22 +61,22 @@ GEM
61
61
  active_link_to (1.0.5)
62
62
  actionpack
63
63
  addressable
64
- activejob (6.1.3.2)
65
- activesupport (= 6.1.3.2)
64
+ activejob (6.1.4.4)
65
+ activesupport (= 6.1.4.4)
66
66
  globalid (>= 0.3.6)
67
- activemodel (6.1.3.2)
68
- activesupport (= 6.1.3.2)
69
- activerecord (6.1.3.2)
70
- activemodel (= 6.1.3.2)
71
- activesupport (= 6.1.3.2)
72
- activestorage (6.1.3.2)
73
- actionpack (= 6.1.3.2)
74
- activejob (= 6.1.3.2)
75
- activerecord (= 6.1.3.2)
76
- activesupport (= 6.1.3.2)
67
+ activemodel (6.1.4.4)
68
+ activesupport (= 6.1.4.4)
69
+ activerecord (6.1.4.4)
70
+ activemodel (= 6.1.4.4)
71
+ activesupport (= 6.1.4.4)
72
+ activestorage (6.1.4.4)
73
+ actionpack (= 6.1.4.4)
74
+ activejob (= 6.1.4.4)
75
+ activerecord (= 6.1.4.4)
76
+ activesupport (= 6.1.4.4)
77
77
  marcel (~> 1.0.0)
78
- mini_mime (~> 1.0.2)
79
- activesupport (6.1.3.2)
78
+ mini_mime (>= 1.1.0)
79
+ activesupport (6.1.4.4)
80
80
  concurrent-ruby (~> 1.0, >= 1.0.2)
81
81
  i18n (>= 1.6, < 2)
82
82
  minitest (>= 5.1)
@@ -84,104 +84,114 @@ GEM
84
84
  zeitwerk (~> 2.3)
85
85
  addressable (2.8.0)
86
86
  public_suffix (>= 2.0.2, < 5.0)
87
- appraisal (2.4.0)
87
+ appraisal (2.4.1)
88
88
  bundler
89
89
  rake
90
90
  thor (>= 0.14.0)
91
91
  ast (2.4.2)
92
- aws-eventstream (1.1.1)
93
- aws-partitions (1.465.0)
94
- aws-sdk-core (3.114.1)
92
+ aws-eventstream (1.2.0)
93
+ aws-partitions (1.547.0)
94
+ aws-sdk-core (3.125.2)
95
95
  aws-eventstream (~> 1, >= 1.0.2)
96
- aws-partitions (~> 1, >= 1.239.0)
96
+ aws-partitions (~> 1, >= 1.525.0)
97
97
  aws-sigv4 (~> 1.1)
98
98
  jmespath (~> 1.0)
99
- aws-sdk-kms (1.43.0)
100
- aws-sdk-core (~> 3, >= 3.112.0)
99
+ aws-sdk-kms (1.53.0)
100
+ aws-sdk-core (~> 3, >= 3.125.0)
101
101
  aws-sigv4 (~> 1.1)
102
- aws-sdk-s3 (1.95.1)
103
- aws-sdk-core (~> 3, >= 3.112.0)
102
+ aws-sdk-s3 (1.111.1)
103
+ aws-sdk-core (~> 3, >= 3.125.0)
104
104
  aws-sdk-kms (~> 1)
105
- aws-sigv4 (~> 1.1)
106
- aws-sigv4 (1.2.3)
105
+ aws-sigv4 (~> 1.4)
106
+ aws-sigv4 (1.4.0)
107
107
  aws-eventstream (~> 1, >= 1.0.2)
108
108
  bcrypt (3.1.16)
109
109
  bindex (0.8.1)
110
110
  bootsnap (1.9.3)
111
111
  msgpack (~> 1.0)
112
- breadcrumbs_on_rails (4.0.0)
113
- rails (>= 5.0)
112
+ breadcrumbs_on_rails (4.1.0)
113
+ railties (>= 5.0)
114
114
  builder (3.2.4)
115
- bump (0.9.0)
115
+ bump (0.10.0)
116
116
  byebug (11.1.3)
117
- capybara (3.33.0)
117
+ capybara (3.36.0)
118
118
  addressable
119
+ matrix
119
120
  mini_mime (>= 0.1.3)
120
121
  nokogiri (~> 1.8)
121
122
  rack (>= 1.6.0)
122
123
  rack-test (>= 0.6.3)
123
- regexp_parser (~> 1.5)
124
+ regexp_parser (>= 1.5, < 3.0)
124
125
  xpath (~> 3.2)
125
- childprocess (3.0.0)
126
+ childprocess (4.1.0)
126
127
  concurrent-ruby (1.1.9)
127
- countries (3.1.0)
128
- i18n_data (~> 0.11.0)
128
+ countries (4.1.3)
129
+ i18n_data (~> 0.15.0)
129
130
  sixarm_ruby_unaccent (~> 1.1)
130
- unicode_utils (~> 1.4)
131
- crack (0.4.4)
131
+ crack (0.4.5)
132
+ rexml
132
133
  crass (1.0.6)
133
- database_cleaner (1.8.5)
134
+ database_cleaner (2.0.1)
135
+ database_cleaner-active_record (~> 2.0.0)
136
+ database_cleaner-active_record (2.0.1)
137
+ activerecord (>= 5.a)
138
+ database_cleaner-core (~> 2.0.0)
139
+ database_cleaner-core (2.0.1)
134
140
  devise (4.8.1)
135
141
  bcrypt (~> 3.0)
136
142
  orm_adapter (~> 0.1)
137
143
  railties (>= 4.1.0)
138
144
  responders
139
145
  warden (~> 1.2.3)
140
- diff-lcs (1.4.4)
141
- docile (1.3.2)
146
+ diff-lcs (1.5.0)
147
+ digest (3.1.0)
148
+ docile (1.4.0)
142
149
  dotenv (2.7.6)
143
150
  dotenv-rails (2.7.6)
144
151
  dotenv (= 2.7.6)
145
152
  railties (>= 3.2)
146
153
  erubi (1.10.0)
147
- factory_bot (6.1.0)
154
+ factory_bot (6.2.0)
148
155
  activesupport (>= 5.0.0)
149
- factory_bot_rails (6.1.0)
150
- factory_bot (~> 6.1.0)
156
+ factory_bot_rails (6.2.0)
157
+ factory_bot (~> 6.2.0)
151
158
  railties (>= 5.0.0)
152
- faker (2.14.0)
159
+ faker (2.19.0)
153
160
  i18n (>= 1.6, < 2)
154
- ffi (1.15.0)
161
+ ffi (1.15.5)
155
162
  friendly_id (5.4.2)
156
163
  activerecord (>= 4.0.0)
157
- fuubar (2.5.0)
164
+ fuubar (2.5.1)
158
165
  rspec-core (~> 3.0)
159
166
  ruby-progressbar (~> 1.4)
160
- gem-release (2.1.1)
161
- globalid (0.4.2)
162
- activesupport (>= 4.2.0)
167
+ gem-release (2.2.2)
168
+ globalid (1.0.0)
169
+ activesupport (>= 5.0)
163
170
  hashdiff (1.0.1)
164
171
  hotwire-rails (0.1.3)
165
172
  rails (>= 6.0.0)
166
173
  stimulus-rails
167
174
  turbo-rails
168
- httparty (0.18.1)
175
+ httparty (0.20.0)
169
176
  mime-types (~> 3.0)
170
177
  multi_xml (>= 0.5.2)
171
178
  i18n (1.8.11)
172
179
  concurrent-ruby (~> 1.0)
173
- i18n_data (0.11.0)
180
+ i18n_data (0.15.0)
181
+ simple_po_parser (~> 1.1)
174
182
  image_processing (1.12.1)
175
183
  mini_magick (>= 4.9.5, < 5)
176
184
  ruby-vips (>= 2.0.17, < 3)
177
- iso (0.3.0)
185
+ io-wait (0.2.1)
186
+ iso (0.4.0)
178
187
  i18n
179
- jbuilder (2.10.1)
188
+ jbuilder (2.11.5)
189
+ actionview (>= 5.0.0)
180
190
  activesupport (>= 5.0.0)
181
- jmespath (1.4.0)
191
+ jmespath (1.5.0)
182
192
  launchy (2.5.0)
183
193
  addressable (~> 2.7)
184
- listen (3.5.1)
194
+ listen (3.7.0)
185
195
  rb-fsevent (~> 0.10, >= 0.10.3)
186
196
  rb-inotify (~> 0.9, >= 0.9.10)
187
197
  loofah (2.13.0)
@@ -189,57 +199,65 @@ GEM
189
199
  nokogiri (>= 1.5.9)
190
200
  mail (2.7.1)
191
201
  mini_mime (>= 0.1.1)
192
- manifester (0.1.7)
202
+ manifester (0.1.8)
193
203
  rails (>= 6.0)
194
204
  zeitwerk
195
- marcel (1.0.1)
196
- meta-tags (2.14.0)
197
- actionpack (>= 3.2.0, < 6.2)
205
+ marcel (1.0.2)
206
+ matrix (0.4.2)
207
+ meta-tags (2.16.0)
208
+ actionpack (>= 3.2.0, < 7.1)
198
209
  method_source (1.0.0)
199
- mime-types (3.3.1)
210
+ mime-types (3.4.1)
200
211
  mime-types-data (~> 3.2015)
201
- mime-types-data (3.2021.0225)
212
+ mime-types-data (3.2022.0105)
202
213
  mini_magick (4.11.0)
203
- mini_mime (1.0.3)
204
- mini_portile2 (2.6.1)
214
+ mini_mime (1.1.2)
215
+ mini_portile2 (2.7.1)
205
216
  minitest (5.15.0)
206
217
  msgpack (1.4.2)
207
218
  multi_xml (0.6.0)
219
+ net-protocol (0.1.2)
220
+ io-wait
221
+ timeout
222
+ net-smtp (0.3.1)
223
+ digest
224
+ net-protocol
225
+ timeout
208
226
  nio4r (2.5.8)
209
- nokogiri (1.12.5)
210
- mini_portile2 (~> 2.6.1)
227
+ nokogiri (1.13.1)
228
+ mini_portile2 (~> 2.7.0)
211
229
  racc (~> 1.4)
212
230
  orm_adapter (0.5.0)
213
- pagy (5.6.10)
214
- parallel (1.20.1)
215
- parser (3.0.0.0)
231
+ pagy (5.7.3)
232
+ parallel (1.21.0)
233
+ parser (3.1.0.0)
216
234
  ast (~> 2.4.1)
217
235
  pg (1.2.3)
218
236
  public_suffix (4.0.6)
219
- puma (5.5.1)
237
+ puma (5.5.2)
220
238
  nio4r (~> 2.0)
221
- pundit (2.1.0)
239
+ pundit (2.1.1)
222
240
  activesupport (>= 3.0.0)
223
241
  racc (1.6.0)
224
242
  rack (2.2.3)
225
- rack-proxy (0.6.5)
243
+ rack-proxy (0.7.2)
226
244
  rack
227
245
  rack-test (1.1.0)
228
246
  rack (>= 1.0, < 3)
229
- rails (6.1.3.2)
230
- actioncable (= 6.1.3.2)
231
- actionmailbox (= 6.1.3.2)
232
- actionmailer (= 6.1.3.2)
233
- actionpack (= 6.1.3.2)
234
- actiontext (= 6.1.3.2)
235
- actionview (= 6.1.3.2)
236
- activejob (= 6.1.3.2)
237
- activemodel (= 6.1.3.2)
238
- activerecord (= 6.1.3.2)
239
- activestorage (= 6.1.3.2)
240
- activesupport (= 6.1.3.2)
247
+ rails (6.1.4.4)
248
+ actioncable (= 6.1.4.4)
249
+ actionmailbox (= 6.1.4.4)
250
+ actionmailer (= 6.1.4.4)
251
+ actionpack (= 6.1.4.4)
252
+ actiontext (= 6.1.4.4)
253
+ actionview (= 6.1.4.4)
254
+ activejob (= 6.1.4.4)
255
+ activemodel (= 6.1.4.4)
256
+ activerecord (= 6.1.4.4)
257
+ activestorage (= 6.1.4.4)
258
+ activesupport (= 6.1.4.4)
241
259
  bundler (>= 1.15.0)
242
- railties (= 6.1.3.2)
260
+ railties (= 6.1.4.4)
243
261
  sprockets-rails (>= 2.0.0)
244
262
  rails-controller-testing (1.0.5)
245
263
  actionpack (>= 5.0.1.rc1)
@@ -250,63 +268,63 @@ GEM
250
268
  nokogiri (>= 1.6)
251
269
  rails-html-sanitizer (1.4.2)
252
270
  loofah (~> 2.3)
253
- railties (6.1.3.2)
254
- actionpack (= 6.1.3.2)
255
- activesupport (= 6.1.3.2)
271
+ railties (6.1.4.4)
272
+ actionpack (= 6.1.4.4)
273
+ activesupport (= 6.1.4.4)
256
274
  method_source
257
- rake (>= 0.8.7)
275
+ rake (>= 0.13)
258
276
  thor (~> 1.0)
259
277
  rainbow (3.0.0)
260
278
  rake (13.0.6)
261
- ransack (2.4.2)
279
+ ransack (2.5.0)
262
280
  activerecord (>= 5.2.4)
263
281
  activesupport (>= 5.2.4)
264
282
  i18n
265
- rb-fsevent (0.10.4)
283
+ rb-fsevent (0.11.0)
266
284
  rb-inotify (0.10.1)
267
285
  ffi (~> 1.0)
268
- regexp_parser (1.8.1)
286
+ regexp_parser (2.2.0)
269
287
  responders (3.0.1)
270
288
  actionpack (>= 5.0)
271
289
  railties (>= 5.0)
272
290
  rexml (3.2.5)
273
- rspec-core (3.9.2)
274
- rspec-support (~> 3.9.3)
275
- rspec-expectations (3.9.2)
291
+ rspec-core (3.10.1)
292
+ rspec-support (~> 3.10.0)
293
+ rspec-expectations (3.10.1)
276
294
  diff-lcs (>= 1.2.0, < 2.0)
277
- rspec-support (~> 3.9.0)
278
- rspec-mocks (3.9.1)
295
+ rspec-support (~> 3.10.0)
296
+ rspec-mocks (3.10.2)
279
297
  diff-lcs (>= 1.2.0, < 2.0)
280
- rspec-support (~> 3.9.0)
281
- rspec-rails (4.0.1)
298
+ rspec-support (~> 3.10.0)
299
+ rspec-rails (4.0.2)
282
300
  actionpack (>= 4.2)
283
301
  activesupport (>= 4.2)
284
302
  railties (>= 4.2)
285
- rspec-core (~> 3.9)
286
- rspec-expectations (~> 3.9)
287
- rspec-mocks (~> 3.9)
288
- rspec-support (~> 3.9)
289
- rspec-support (3.9.3)
290
- rubocop (1.11.0)
303
+ rspec-core (~> 3.10)
304
+ rspec-expectations (~> 3.10)
305
+ rspec-mocks (~> 3.10)
306
+ rspec-support (~> 3.10)
307
+ rspec-support (3.10.3)
308
+ rubocop (1.24.1)
291
309
  parallel (~> 1.10)
292
310
  parser (>= 3.0.0.0)
293
311
  rainbow (>= 2.2.2, < 4.0)
294
312
  regexp_parser (>= 1.8, < 3.0)
295
313
  rexml
296
- rubocop-ast (>= 1.2.0, < 2.0)
314
+ rubocop-ast (>= 1.15.1, < 2.0)
297
315
  ruby-progressbar (~> 1.7)
298
316
  unicode-display_width (>= 1.4.0, < 3.0)
299
- rubocop-ast (1.4.1)
300
- parser (>= 2.7.1.5)
301
- rubocop-performance (1.10.1)
302
- rubocop (>= 0.90.0, < 2.0)
317
+ rubocop-ast (1.15.1)
318
+ parser (>= 3.0.1.1)
319
+ rubocop-performance (1.13.1)
320
+ rubocop (>= 1.7.0, < 2.0)
303
321
  rubocop-ast (>= 0.4.0)
304
- ruby-debug-ide (0.7.2)
322
+ ruby-debug-ide (0.7.3)
305
323
  rake (>= 0.8.1)
306
- ruby-progressbar (1.10.1)
307
- ruby-vips (2.1.0)
324
+ ruby-progressbar (1.11.0)
325
+ ruby-vips (2.1.4)
308
326
  ffi (~> 1.12)
309
- rubyzip (2.3.0)
327
+ rubyzip (2.3.2)
310
328
  sass-rails (6.0.0)
311
329
  sassc-rails (~> 2.1, >= 2.1.1)
312
330
  sassc (2.4.0)
@@ -317,69 +335,76 @@ GEM
317
335
  sprockets (> 3.0)
318
336
  sprockets-rails
319
337
  tilt
320
- selenium-webdriver (3.142.7)
321
- childprocess (>= 0.5, < 4.0)
338
+ selenium-webdriver (4.1.0)
339
+ childprocess (>= 0.5, < 5.0)
340
+ rexml (~> 3.2, >= 3.2.5)
322
341
  rubyzip (>= 1.2.2)
323
342
  semantic_range (3.0.0)
324
- simplecov (0.19.0)
343
+ simple_po_parser (1.1.5)
344
+ simplecov (0.21.2)
325
345
  docile (~> 1.1)
326
346
  simplecov-html (~> 0.11)
327
- simplecov-cobertura (1.4.1)
328
- simplecov (~> 0.8)
347
+ simplecov_json_formatter (~> 0.1)
348
+ simplecov-cobertura (2.1.0)
349
+ rexml
350
+ simplecov (~> 0.19)
329
351
  simplecov-html (0.12.3)
352
+ simplecov_json_formatter (0.1.3)
330
353
  sixarm_ruby_unaccent (1.2.0)
331
- spring (2.1.1)
354
+ spring (4.0.0)
332
355
  spring-commands-rspec (1.0.4)
333
356
  spring (>= 0.9.1)
334
357
  sprockets (4.0.2)
335
358
  concurrent-ruby (~> 1.0)
336
359
  rack (> 1, < 3)
337
- sprockets-rails (3.2.2)
338
- actionpack (>= 4.0)
339
- activesupport (>= 4.0)
360
+ sprockets-rails (3.4.2)
361
+ actionpack (>= 5.2)
362
+ activesupport (>= 5.2)
340
363
  sprockets (>= 3.0.0)
341
- standard (1.0.4)
342
- rubocop (= 1.11.0)
343
- rubocop-performance (= 1.10.1)
344
- stimulus-rails (0.2.3)
345
- rails (>= 6.0.0)
346
- test-prof (0.12.2)
347
- thor (1.1.0)
364
+ standard (1.6.0)
365
+ rubocop (= 1.24.1)
366
+ rubocop-performance (= 1.13.1)
367
+ stimulus-rails (1.0.2)
368
+ railties (>= 6.0.0)
369
+ test-prof (1.0.7)
370
+ thor (1.2.1)
348
371
  tilt (2.0.10)
349
- turbo-rails (0.5.9)
350
- rails (>= 6.0.0)
372
+ timeout (0.2.0)
373
+ turbo-rails (1.0.0)
374
+ actionpack (>= 6.0.0)
375
+ railties (>= 6.0.0)
351
376
  tzinfo (2.0.4)
352
377
  concurrent-ruby (~> 1.0)
353
- unicode-display_width (2.0.0)
354
- unicode_utils (1.4.0)
355
- view_component (2.33.0)
356
- activesupport (>= 5.0.0, < 7.0)
378
+ unicode-display_width (2.1.0)
379
+ view_component (2.47.0)
380
+ activesupport (>= 5.0.0, < 8.0)
381
+ method_source (~> 1.0)
357
382
  warden (1.2.9)
358
383
  rack (>= 2.0.9)
359
- web-console (4.1.0)
384
+ web-console (4.2.0)
360
385
  actionview (>= 6.0.0)
361
386
  activemodel (>= 6.0.0)
362
387
  bindex (>= 0.4.0)
363
388
  railties (>= 6.0.0)
364
- webdrivers (4.4.1)
389
+ webdrivers (5.0.0)
365
390
  nokogiri (~> 1.6)
366
391
  rubyzip (>= 1.3.0)
367
- selenium-webdriver (>= 3.0, < 4.0)
368
- webmock (3.9.3)
369
- addressable (>= 2.3.6)
392
+ selenium-webdriver (~> 4.0)
393
+ webmock (3.14.0)
394
+ addressable (>= 2.8.0)
370
395
  crack (>= 0.3.2)
371
396
  hashdiff (>= 0.4.0, < 2.0.0)
372
- webpacker (6.0.0.beta.6)
397
+ webpacker (6.0.0.rc.2)
373
398
  activesupport (>= 5.2)
374
399
  rack-proxy (>= 0.6.1)
375
400
  railties (>= 5.2)
376
401
  semantic_range (>= 2.3.0)
377
- websocket-driver (0.7.4)
402
+ websocket-driver (0.7.5)
378
403
  websocket-extensions (>= 0.1.0)
379
404
  websocket-extensions (0.1.5)
380
405
  xpath (3.2.0)
381
406
  nokogiri (~> 1.8)
382
- zeitwerk (2.5.2)
407
+ zeitwerk (2.5.3)
383
408
 
384
409
  PLATFORMS
385
410
  ruby
@@ -395,7 +420,7 @@ DEPENDENCIES
395
420
  breadcrumbs_on_rails
396
421
  bump
397
422
  byebug
398
- capybara (>= 2.15)
423
+ capybara (= 3.36)
399
424
  countries
400
425
  database_cleaner
401
426
  devise
@@ -414,6 +439,7 @@ DEPENDENCIES
414
439
  listen (>= 3.5.1)
415
440
  manifester
416
441
  meta-tags
442
+ net-smtp
417
443
  pg (>= 0.18, < 2.0)
418
444
  puma (~> 5.5.1)
419
445
  pundit
@@ -435,8 +461,8 @@ DEPENDENCIES
435
461
  web-console (>= 3.3.0)
436
462
  webdrivers
437
463
  webmock
438
- webpacker (= 6.0.0.beta.6)
464
+ webpacker (= 6.0.0.rc.2)
439
465
  zeitwerk (~> 2.3)
440
466
 
441
467
  BUNDLED WITH
442
- 2.2.32
468
+ 2.3.5
@@ -1,3 +1,3 @@
1
1
  <%= index_field_wrapper field: @field do %>
2
- <%= link_to @field.label, helpers.resource_path(@field.value) %>
2
+ <%= link_to @field.label, helpers.resource_path(model: @field.value, resource: @field.target_resource) %>
3
3
  <% end %>
@@ -1,3 +1,3 @@
1
1
  <%= show_field_wrapper field: @field, index: @index do %>
2
- <%= link_to @field.label, helpers.resource_path(@field.value, via_resource_class: @resource.model_class, via_resource_id: @resource.model.id) %>
2
+ <%= link_to @field.label, helpers.resource_path(model: @field.value, resource: @field.target_resource, via_resource_class: @resource.model_class, via_resource_id: @resource.model.id) %>
3
3
  <% end %>
@@ -23,7 +23,7 @@
23
23
  </div>
24
24
  <div>
25
25
  <% if @resource.authorization.authorize_action(:delete_attachments?, raise_exception: false) %>
26
- <%= a_link "#{Avo::App.root_path}/resources/#{@resource.model.model_name.route_key}/#{@resource.model.id}/active_storage_attachments/#{@id}/#{@file.id}", color: :red, variant: :outlined, size: :xs, class: 'text-center', 'data-turbo-frame': 'destroy_attachment_form', data: { confirm: t('avo.are_you_sure')} do %>
26
+ <%= a_link "#{@resource.record_path}/active_storage_attachments/#{@id}/#{@file.id}", color: :red, variant: :outlined, size: :xs, class: 'text-center', 'data-turbo-frame': 'destroy_attachment_form', data: { confirm: t('avo.are_you_sure')} do %>
27
27
  <%= helpers.svg 'trash' %> <span class="hidden lg:block lg:flex-1"><%= t 'avo.delete_file', item: @file.filename %></span>
28
28
  <% end %>
29
29
  <% end %>
@@ -23,8 +23,7 @@
23
23
  </div>
24
24
  <div>
25
25
  <% if @resource.authorization.authorize_action(:delete_attachments?, raise_exception: false) %>
26
- <%= a_link "#{Avo::App.root_path}/resources/#{@resource.model.model_name.route_key}/#{@resource.model.id
27
- }/active_storage_attachments/#{@id}/#{@file.blob_id}", color: :red, variant: :outlined, size: :md, class: '', 'data-turbo-frame': 'destroy_attachment_form', data: { confirm: t('avo.are_you_sure')} do %>
26
+ <%= a_link "#{@resource.record_path}/active_storage_attachments/#{@id}/#{@file.blob_id}", color: :red, variant: :outlined, size: :md, class: '', 'data-turbo-frame': 'destroy_attachment_form', data: { confirm: t('avo.are_you_sure')} do %>
28
27
  <%= helpers.svg 'trash' %> <%= t 'avo.delete_file', item: @file.filename %>
29
28
  <% end %>
30
29
  <% end %>
@@ -1,3 +1,3 @@
1
1
  <%= index_field_wrapper field: @field do %>
2
- <%= link_to @field.label, helpers.resource_path(@field.value) %>
2
+ <%= link_to @field.label, helpers.resource_path(model: @field.value, resource: @field.target_resource) %>
3
3
  <% end %>