mensa 0.6.18 → 0.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/.shipkit.yml +1 -1
- data/CHANGELOG.md +39 -1
- data/Gemfile.lock +1 -1
- data/README.md +109 -15
- data/app/components/mensa/row_action/component.html.erb +2 -1
- data/app/tables/mensa/base.rb +12 -12
- data/app/tables/mensa/column.rb +18 -3
- data/app/tables/mensa/config/column_dsl.rb +2 -1
- data/app/tables/mensa/filter.rb +46 -3
- data/app/tables/mensa/scope.rb +3 -0
- data/lib/mensa/configuration.rb +4 -1
- data/lib/mensa/testing.rb +11 -10
- data/lib/mensa/verifier/result.rb +33 -11
- data/lib/mensa/verifier.rb +466 -64
- data/lib/mensa/version.rb +1 -1
- data/lib/tasks/mensa.rake +2 -2
- metadata +1 -1
data/lib/mensa/version.rb
CHANGED
data/lib/tasks/mensa.rake
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
namespace :mensa do
|
|
2
|
-
desc "Verify a Mensa table against the database, e.g. mensa:verify[users] (context: USER_ID=, ACCOUNT_ID=, PARAMS='{...}')"
|
|
2
|
+
desc "Verify a Mensa table against the database, e.g. mensa:verify[users] (context: USER_ID=, ACCOUNT_ID=, PARAMS='{...}', STRICT=1 fails on warnings)"
|
|
3
3
|
task :verify, [:table] => :environment do |_task, args|
|
|
4
4
|
abort "Usage: bin/rails \"mensa:verify[table_name]\"" if args[:table].blank?
|
|
5
5
|
|
|
6
6
|
exit(1) unless Mensa::Verifier.run(args[:table])
|
|
7
7
|
end
|
|
8
8
|
|
|
9
|
-
desc "Verify all Mensa tables in app/tables against the database (context: USER_ID=, ACCOUNT_ID=, PARAMS='{...}')"
|
|
9
|
+
desc "Verify all Mensa tables in app/tables against the database (context: USER_ID=, ACCOUNT_ID=, PARAMS='{...}', STRICT=1 fails on warnings)"
|
|
10
10
|
task verify_all: :environment do
|
|
11
11
|
exit(1) unless Mensa::Verifier.run
|
|
12
12
|
end
|