trestle 0.9.7 → 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (45) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/rspec.yml +4 -2
  3. data/.gitignore +4 -0
  4. data/README.md +1 -1
  5. data/app/assets/bundle/trestle/bundle.css +4 -4
  6. data/app/assets/bundle/trestle/bundle.js +12 -26
  7. data/app/controllers/concerns/trestle/controller/toolbars.rb +1 -1
  8. data/app/controllers/concerns/trestle/resource/controller/actions.rb +5 -5
  9. data/app/controllers/concerns/trestle/resource/controller/redirection.rb +5 -3
  10. data/app/controllers/trestle/admin_controller.rb +4 -0
  11. data/app/helpers/trestle/card_helper.rb +2 -2
  12. data/app/helpers/trestle/navigation_helper.rb +3 -1
  13. data/app/helpers/trestle/toolbars_helper.rb +1 -1
  14. data/app/views/trestle/flash/_flash.html.erb +1 -1
  15. data/app/views/trestle/resource/_scopes.html.erb +1 -1
  16. data/config/locales/vi.yml +1 -1
  17. data/frontend/css/components/_fields.scss +1 -0
  18. data/frontend/css/components/_toolbars.scss +1 -19
  19. data/frontend/css/core/_mixins.scss +1 -4
  20. data/frontend/css/layout/_content.scss +1 -1
  21. data/frontend/js/components/tabs.js +1 -1
  22. data/lib/generators/trestle/install/install_generator.rb +6 -2
  23. data/lib/generators/trestle/install/templates/_custom.css +8 -0
  24. data/lib/trestle/adapters/active_record_adapter.rb +1 -1
  25. data/lib/trestle/admin/builder.rb +7 -0
  26. data/lib/trestle/admin.rb +12 -6
  27. data/lib/trestle/configurable.rb +2 -2
  28. data/lib/trestle/debug_errors.rb +24 -0
  29. data/lib/trestle/form/automatic.rb +3 -1
  30. data/lib/trestle/hook/helpers.rb +1 -1
  31. data/lib/trestle/navigation/group.rb +1 -2
  32. data/lib/trestle/navigation/item.rb +2 -2
  33. data/lib/trestle/reloader.rb +2 -11
  34. data/lib/trestle/resource/builder.rb +1 -8
  35. data/lib/trestle/resource.rb +2 -2
  36. data/lib/trestle/scopes/block.rb +7 -7
  37. data/lib/trestle/scopes/definition.rb +2 -2
  38. data/lib/trestle/scopes/scope.rb +4 -0
  39. data/lib/trestle/version.rb +1 -1
  40. data/lib/trestle.rb +5 -0
  41. data/package.json +1 -1
  42. data/trestle.gemspec +7 -7
  43. data/webpack.config.js +8 -1
  44. data/yarn.lock +1444 -2603
  45. metadata +23 -21
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04bc9348c7fc661e106f5735111f2c80ccfcf7200d38a3920e6175c029c237c7
4
- data.tar.gz: d01512738c4301cff441e987b8190467795b4a9bd0ddc957eb290e8ed51481a2
3
+ metadata.gz: ec5f7a6fff714c1440d95c1e8e24394cef955e54a5997113a4a494c693891ba4
4
+ data.tar.gz: 74a1190a4941740d10d88d70f96fc73dc4ee2d6a2ad4f930edb2af8ba88d0a75
5
5
  SHA512:
6
- metadata.gz: 0c332cbcc95b02d31c9b4ec178b1fe00d18a071368bfe22fd23ebdce02b702a5d75783b77796687d0a6fa5bf83d0be6d32687f0853721eb3130e37bbd49c93ec
7
- data.tar.gz: 8d691b0b934314623f9b94e4d5b706952fd1fadd3819e3f13633a8f10b2a644377d6c5923f4676f13f33694de1843e3268cea5c1787a88ad1117b68235eba327
6
+ metadata.gz: 86830f6464eb845e0599966caebede926c5bdd9e3ab43968a5d1eb872671d7750d8b53f45f44c3fd35a201999afbf86f0efcf600bd2f4c6789177d7eaa87e261
7
+ data.tar.gz: 846436a0010e40b34df119185affe1f85b188e177d3b202c349cd13695dd2a8756d1a00fbbb5a5ed09ee90b95d9ee4a0c360a4e7811f3eae48f60efada1ffeb9
@@ -7,7 +7,7 @@ jobs:
7
7
  strategy:
8
8
  fail-fast: false
9
9
  matrix:
10
- gemfile: [ rails-5.0, rails-5.1, rails-5.2, rails-6.0, rails-6.1 ]
10
+ gemfile: [ rails-5.2, rails-6.0, rails-6.1 ]
11
11
  ruby: [ '2.7' ]
12
12
  include:
13
13
  - gemfile: rails-6.1
@@ -16,11 +16,13 @@ jobs:
16
16
  ruby: '2.7'
17
17
  - gemfile: rails-7.0
18
18
  ruby: '3.0'
19
+ - gemfile: rails-7.1
20
+ ruby: '3.2'
19
21
  runs-on: ubuntu-latest
20
22
  env:
21
23
  BUNDLE_GEMFILE: ${{ github.workspace }}/gemfiles/${{ matrix.gemfile }}.gemfile
22
24
  steps:
23
- - uses: actions/checkout@v3
25
+ - uses: actions/checkout@v4
24
26
  - uses: ruby/setup-ruby@v1
25
27
  with:
26
28
  ruby-version: ${{ matrix.ruby }}
data/.gitignore CHANGED
@@ -9,10 +9,14 @@
9
9
  /spec/reports/
10
10
  /tmp/
11
11
  /sandbox/db/*.sqlite3
12
+ /sandbox/db/*.sqlite3-shm
13
+ /sandbox/db/*.sqlite3-wal
12
14
  /sandbox/*.sqlite3-journal
13
15
  /sandbox/log/*.log
14
16
  /sandbox/tmp/
15
17
  /spec/dummy/db/*.sqlite3
18
+ /spec/dummy/db/*.sqlite3-shm
19
+ /spec/dummy/db/*.sqlite3-wal
16
20
  /spec/dummy/*.sqlite3-journal
17
21
  /spec/dummy/log/*.log
18
22
  /spec/dummy/tmp/*
data/README.md CHANGED
@@ -5,7 +5,7 @@
5
5
  # Trestle
6
6
 
7
7
  [![RubyGem](https://img.shields.io/gem/v/trestle.svg?style=flat&colorB=4065a9)](https://rubygems.org/gems/trestle)
8
- [![Build Status](https://img.shields.io/github/workflow/status/TrestleAdmin/trestle/RSpec?style=flat)](https://github.com/TrestleAdmin/trestle/actions)
8
+ [![Build Status](https://img.shields.io/github/actions/workflow/status/TrestleAdmin/trestle/rspec.yml?style=flat)](https://github.com/TrestleAdmin/trestle/actions)
9
9
  [![Coveralls](https://img.shields.io/coveralls/TrestleAdmin/trestle.svg?style=flat)](https://coveralls.io/github/TrestleAdmin/trestle)
10
10
  [![Code Climate](https://api.codeclimate.com/v1/badges/c529a7a9c500ed81baed/maintainability)](https://codeclimate.com/github/TrestleAdmin/trestle)
11
11