avo 1.18.1 → 1.19.1.pre.1

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 (107) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +5 -3
  3. data/Gemfile.lock +198 -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 +30 -23
  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 +15 -4
  61. data/lib/avo/fields/has_and_belongs_to_many_field.rb +1 -19
  62. data/lib/avo/fields/has_base_field.rb +35 -0
  63. data/lib/avo/fields/has_many_field.rb +1 -19
  64. data/lib/avo/fields/has_one_field.rb +3 -19
  65. data/lib/avo/fields/key_value_field.rb +4 -4
  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 +12 -3
  70. data/lib/generators/avo/templates/locales/avo.ro.yml +7 -0
  71. data/public/avo-packs/css/{application-f9191617.css → application-c3b50b28.css} +54 -12
  72. data/public/avo-packs/css/application-c3b50b28.css.br +0 -0
  73. data/public/avo-packs/css/{application-f9191617.css.gz → application-c3b50b28.css.gz} +0 -0
  74. data/public/avo-packs/css/application-c3b50b28.css.map +1 -0
  75. data/public/avo-packs/css/application-c3b50b28.css.map.br +0 -0
  76. data/public/avo-packs/css/application-c3b50b28.css.map.gz +0 -0
  77. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js +2 -0
  78. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.br +0 -0
  79. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.gz +0 -0
  80. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map +1 -0
  81. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.br +0 -0
  82. data/public/avo-packs/js/actioncable-7119dbc1a908641fb263.chunk.js.map.gz +0 -0
  83. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js +26 -0
  84. data/public/avo-packs/js/{application-cc89f096028eb1d4d971.js.LICENSE.txt → application-6fc968cfa52976c4582b.js.LICENSE.txt} +0 -0
  85. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.br +0 -0
  86. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.gz +0 -0
  87. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map +1 -0
  88. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.br +0 -0
  89. data/public/avo-packs/js/application-6fc968cfa52976c4582b.js.map.gz +0 -0
  90. data/public/avo-packs/manifest.json +21 -21
  91. metadata +30 -24
  92. data/public/avo-packs/css/application-f9191617.css.br +0 -0
  93. data/public/avo-packs/css/application-f9191617.css.map +0 -1
  94. data/public/avo-packs/css/application-f9191617.css.map.br +0 -0
  95. data/public/avo-packs/css/application-f9191617.css.map.gz +0 -0
  96. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js +0 -2
  97. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.br +0 -0
  98. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.gz +0 -0
  99. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map +0 -1
  100. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.br +0 -0
  101. data/public/avo-packs/js/219-9aa2b689f44613118203.chunk.js.map.gz +0 -0
  102. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js +0 -26
  103. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.br +0 -0
  104. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.gz +0 -0
  105. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map +0 -1
  106. data/public/avo-packs/js/application-cc89f096028eb1d4d971.js.map.br +0 -0
  107. 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: 46ae39b5c77496f7ebfc4da3404f2d7a5a906cb4098fa174b2b1b37c7ad07dde
4
- data.tar.gz: 1769e6b5c3b2db3d45cc40985a1fb098b7fc8514c42be1317769312571c0c302
3
+ metadata.gz: e19673d01d04cba52b2ca527f91296c4b4398a0c7c3dcc7a3ebe1fbd77305e4c
4
+ data.tar.gz: ee63a98ed8f24bdd3baa5f7e43e0822e9e1b339f2f4779917965274a91cacf94
5
5
  SHA512:
6
- metadata.gz: 61a8c1c00aba9bd9673be393add7b9d6b18efca2006ca2527299231fe152e5e0cdf0f2ee1f7f2f889afb5dc9726a29963b13d2b5be451387d96e30dc8f0d06e0
7
- data.tar.gz: e195465f471e4c9cd37bb5e2db31711ee1f9101f7dd5095da752acb6f4a76a818bccac7552434c545f108726c96139fb45f15113b57c3649e7807292f6fe6586
6
+ metadata.gz: b2ea94f80529026b416ee860806a893585f8697453f2f144b22feb1f1b3eab7acdded6ea311949079fd5dc11c2bc99165c23fc4b73bf4c231bf56207ae3ed947
7
+ data.tar.gz: 438f26330cf7ded3ec531fac77056d2946c51ec20c3ddadb94a3ff0e8299292bd305eb285e68a403050f42eea14c71213ec15f30799999cbaf45fa742158f94b
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.1)
4
+ avo (1.19.1.pre.1)
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,68 @@ 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)
229
+ racc (~> 1.4)
230
+ nokogiri (1.13.1-x86_64-linux)
211
231
  racc (~> 1.4)
212
232
  orm_adapter (0.5.0)
213
- pagy (5.6.10)
214
- parallel (1.20.1)
215
- parser (3.0.0.0)
233
+ pagy (5.9.3)
234
+ activesupport
235
+ parallel (1.21.0)
236
+ parser (3.1.0.0)
216
237
  ast (~> 2.4.1)
217
238
  pg (1.2.3)
218
239
  public_suffix (4.0.6)
219
- puma (5.5.1)
240
+ puma (5.5.2)
220
241
  nio4r (~> 2.0)
221
- pundit (2.1.0)
242
+ pundit (2.1.1)
222
243
  activesupport (>= 3.0.0)
223
244
  racc (1.6.0)
224
245
  rack (2.2.3)
225
- rack-proxy (0.6.5)
246
+ rack-proxy (0.7.2)
226
247
  rack
227
248
  rack-test (1.1.0)
228
249
  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)
250
+ rails (6.1.4.4)
251
+ actioncable (= 6.1.4.4)
252
+ actionmailbox (= 6.1.4.4)
253
+ actionmailer (= 6.1.4.4)
254
+ actionpack (= 6.1.4.4)
255
+ actiontext (= 6.1.4.4)
256
+ actionview (= 6.1.4.4)
257
+ activejob (= 6.1.4.4)
258
+ activemodel (= 6.1.4.4)
259
+ activerecord (= 6.1.4.4)
260
+ activestorage (= 6.1.4.4)
261
+ activesupport (= 6.1.4.4)
241
262
  bundler (>= 1.15.0)
242
- railties (= 6.1.3.2)
263
+ railties (= 6.1.4.4)
243
264
  sprockets-rails (>= 2.0.0)
244
265
  rails-controller-testing (1.0.5)
245
266
  actionpack (>= 5.0.1.rc1)
@@ -250,63 +271,63 @@ GEM
250
271
  nokogiri (>= 1.6)
251
272
  rails-html-sanitizer (1.4.2)
252
273
  loofah (~> 2.3)
253
- railties (6.1.3.2)
254
- actionpack (= 6.1.3.2)
255
- activesupport (= 6.1.3.2)
274
+ railties (6.1.4.4)
275
+ actionpack (= 6.1.4.4)
276
+ activesupport (= 6.1.4.4)
256
277
  method_source
257
- rake (>= 0.8.7)
278
+ rake (>= 0.13)
258
279
  thor (~> 1.0)
259
280
  rainbow (3.0.0)
260
281
  rake (13.0.6)
261
- ransack (2.4.2)
282
+ ransack (2.5.0)
262
283
  activerecord (>= 5.2.4)
263
284
  activesupport (>= 5.2.4)
264
285
  i18n
265
- rb-fsevent (0.10.4)
286
+ rb-fsevent (0.11.0)
266
287
  rb-inotify (0.10.1)
267
288
  ffi (~> 1.0)
268
- regexp_parser (1.8.1)
289
+ regexp_parser (2.2.0)
269
290
  responders (3.0.1)
270
291
  actionpack (>= 5.0)
271
292
  railties (>= 5.0)
272
293
  rexml (3.2.5)
273
- rspec-core (3.9.2)
274
- rspec-support (~> 3.9.3)
275
- rspec-expectations (3.9.2)
294
+ rspec-core (3.10.1)
295
+ rspec-support (~> 3.10.0)
296
+ rspec-expectations (3.10.1)
276
297
  diff-lcs (>= 1.2.0, < 2.0)
277
- rspec-support (~> 3.9.0)
278
- rspec-mocks (3.9.1)
298
+ rspec-support (~> 3.10.0)
299
+ rspec-mocks (3.10.2)
279
300
  diff-lcs (>= 1.2.0, < 2.0)
280
- rspec-support (~> 3.9.0)
281
- rspec-rails (4.0.1)
301
+ rspec-support (~> 3.10.0)
302
+ rspec-rails (4.0.2)
282
303
  actionpack (>= 4.2)
283
304
  activesupport (>= 4.2)
284
305
  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)
306
+ rspec-core (~> 3.10)
307
+ rspec-expectations (~> 3.10)
308
+ rspec-mocks (~> 3.10)
309
+ rspec-support (~> 3.10)
310
+ rspec-support (3.10.3)
311
+ rubocop (1.24.1)
291
312
  parallel (~> 1.10)
292
313
  parser (>= 3.0.0.0)
293
314
  rainbow (>= 2.2.2, < 4.0)
294
315
  regexp_parser (>= 1.8, < 3.0)
295
316
  rexml
296
- rubocop-ast (>= 1.2.0, < 2.0)
317
+ rubocop-ast (>= 1.15.1, < 2.0)
297
318
  ruby-progressbar (~> 1.7)
298
319
  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)
320
+ rubocop-ast (1.15.1)
321
+ parser (>= 3.0.1.1)
322
+ rubocop-performance (1.13.1)
323
+ rubocop (>= 1.7.0, < 2.0)
303
324
  rubocop-ast (>= 0.4.0)
304
- ruby-debug-ide (0.7.2)
325
+ ruby-debug-ide (0.7.3)
305
326
  rake (>= 0.8.1)
306
- ruby-progressbar (1.10.1)
307
- ruby-vips (2.1.0)
327
+ ruby-progressbar (1.11.0)
328
+ ruby-vips (2.1.4)
308
329
  ffi (~> 1.12)
309
- rubyzip (2.3.0)
330
+ rubyzip (2.3.2)
310
331
  sass-rails (6.0.0)
311
332
  sassc-rails (~> 2.1, >= 2.1.1)
312
333
  sassc (2.4.0)
@@ -317,69 +338,76 @@ GEM
317
338
  sprockets (> 3.0)
318
339
  sprockets-rails
319
340
  tilt
320
- selenium-webdriver (3.142.7)
321
- childprocess (>= 0.5, < 4.0)
341
+ selenium-webdriver (4.1.0)
342
+ childprocess (>= 0.5, < 5.0)
343
+ rexml (~> 3.2, >= 3.2.5)
322
344
  rubyzip (>= 1.2.2)
323
345
  semantic_range (3.0.0)
324
- simplecov (0.19.0)
346
+ simple_po_parser (1.1.5)
347
+ simplecov (0.21.2)
325
348
  docile (~> 1.1)
326
349
  simplecov-html (~> 0.11)
327
- simplecov-cobertura (1.4.1)
328
- simplecov (~> 0.8)
350
+ simplecov_json_formatter (~> 0.1)
351
+ simplecov-cobertura (2.1.0)
352
+ rexml
353
+ simplecov (~> 0.19)
329
354
  simplecov-html (0.12.3)
355
+ simplecov_json_formatter (0.1.3)
330
356
  sixarm_ruby_unaccent (1.2.0)
331
- spring (2.1.1)
357
+ spring (4.0.0)
332
358
  spring-commands-rspec (1.0.4)
333
359
  spring (>= 0.9.1)
334
360
  sprockets (4.0.2)
335
361
  concurrent-ruby (~> 1.0)
336
362
  rack (> 1, < 3)
337
- sprockets-rails (3.2.2)
338
- actionpack (>= 4.0)
339
- activesupport (>= 4.0)
363
+ sprockets-rails (3.4.2)
364
+ actionpack (>= 5.2)
365
+ activesupport (>= 5.2)
340
366
  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)
367
+ standard (1.6.0)
368
+ rubocop (= 1.24.1)
369
+ rubocop-performance (= 1.13.1)
370
+ stimulus-rails (1.0.2)
371
+ railties (>= 6.0.0)
372
+ test-prof (1.0.7)
373
+ thor (1.2.1)
348
374
  tilt (2.0.10)
349
- turbo-rails (0.5.9)
350
- rails (>= 6.0.0)
375
+ timeout (0.2.0)
376
+ turbo-rails (1.0.0)
377
+ actionpack (>= 6.0.0)
378
+ railties (>= 6.0.0)
351
379
  tzinfo (2.0.4)
352
380
  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)
381
+ unicode-display_width (2.1.0)
382
+ view_component (2.47.0)
383
+ activesupport (>= 5.0.0, < 8.0)
384
+ method_source (~> 1.0)
357
385
  warden (1.2.9)
358
386
  rack (>= 2.0.9)
359
- web-console (4.1.0)
387
+ web-console (4.2.0)
360
388
  actionview (>= 6.0.0)
361
389
  activemodel (>= 6.0.0)
362
390
  bindex (>= 0.4.0)
363
391
  railties (>= 6.0.0)
364
- webdrivers (4.4.1)
392
+ webdrivers (5.0.0)
365
393
  nokogiri (~> 1.6)
366
394
  rubyzip (>= 1.3.0)
367
- selenium-webdriver (>= 3.0, < 4.0)
368
- webmock (3.9.3)
369
- addressable (>= 2.3.6)
395
+ selenium-webdriver (~> 4.0)
396
+ webmock (3.14.0)
397
+ addressable (>= 2.8.0)
370
398
  crack (>= 0.3.2)
371
399
  hashdiff (>= 0.4.0, < 2.0.0)
372
- webpacker (6.0.0.beta.6)
400
+ webpacker (6.0.0.rc.2)
373
401
  activesupport (>= 5.2)
374
402
  rack-proxy (>= 0.6.1)
375
403
  railties (>= 5.2)
376
404
  semantic_range (>= 2.3.0)
377
- websocket-driver (0.7.4)
405
+ websocket-driver (0.7.5)
378
406
  websocket-extensions (>= 0.1.0)
379
407
  websocket-extensions (0.1.5)
380
408
  xpath (3.2.0)
381
409
  nokogiri (~> 1.8)
382
- zeitwerk (2.5.2)
410
+ zeitwerk (2.5.3)
383
411
 
384
412
  PLATFORMS
385
413
  ruby
@@ -395,7 +423,7 @@ DEPENDENCIES
395
423
  breadcrumbs_on_rails
396
424
  bump
397
425
  byebug
398
- capybara (>= 2.15)
426
+ capybara (= 3.36)
399
427
  countries
400
428
  database_cleaner
401
429
  devise
@@ -414,6 +442,7 @@ DEPENDENCIES
414
442
  listen (>= 3.5.1)
415
443
  manifester
416
444
  meta-tags
445
+ net-smtp
417
446
  pg (>= 0.18, < 2.0)
418
447
  puma (~> 5.5.1)
419
448
  pundit
@@ -435,8 +464,8 @@ DEPENDENCIES
435
464
  web-console (>= 3.3.0)
436
465
  webdrivers
437
466
  webmock
438
- webpacker (= 6.0.0.beta.6)
467
+ webpacker (= 6.0.0.rc.2)
439
468
  zeitwerk (~> 2.3)
440
469
 
441
470
  BUNDLED WITH
442
- 2.2.32
471
+ 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 %>