motor-admin 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7adc26b7ddd5925fb9fd1aebcb3c39fd34e82641f53f379e524df989630533de
4
- data.tar.gz: 59de79e99d4694a42cfebdf58bdad6cb1e486bdb12a13d726829949e7e7791ce
3
+ metadata.gz: f43566e0fd7cd93d18edae286ca0f138bba3ed0f0d531264d0ad29579f704306
4
+ data.tar.gz: e3b2860cd08bdad0eb465b71fb6963f53203117b11871a9b2ced77b086780376
5
5
  SHA512:
6
- metadata.gz: da9f42328e648604b9adf63124e5c1d6d5f0a3e78d554bede10acdafef4bd14711b2404e5cc89b9d10db093637a9c9cb83af829f33d69dea94550016f80426ea
7
- data.tar.gz: 3f3cb870e4126692d2e9e1edc584dc01c458b57bb9d805e90ddb9446d02b2b594368607d07d1f1b529ad66490749e7eb7a2bab78495f681d5889a045fc9c99f5
6
+ metadata.gz: 8adc5697b41a7427c67e66b6024995431b630b787a41eacbed0501d2ccac8b815b10536eb7becf96dc7033ee76bdb49dc1decd481bcdaa95b2b7c8f75f50f96d
7
+ data.tar.gz: 0dfc8b287097a5ff8c9e0b640625b53eddaa1ea302f674caa65f9a5e044c49b073d9d0c932ba5ffc0e8986d66640216fce785b1bb85332f4c3173bccb575cdb3
data/README.md CHANGED
@@ -49,6 +49,8 @@ Everything in the admin panel can be configured using the intuitive settings UI,
49
49
 
50
50
  Data displayed on the resource page can be completely customized via [SQL queries](#sql-queries) and [dashboards](#dashboards) attached to the resource as a tab. Usually, queries used to display resource data should contain `{{resource_name_id}}` [variable](#sql-queries).
51
51
 
52
+ [Learn more about resource customizations](https://github.com/omohokcoj/motor-admin/blob/master/guides/customizing_resource_table.md)
53
+
52
54
  ### Custom Actions
53
55
 
54
56
  ![Custom actions](https://user-images.githubusercontent.com/5418788/119266132-3c1dd580-bbf2-11eb-9666-09e1640eaf7b.png)
@@ -75,8 +77,9 @@ end
75
77
 
76
78
  ![Custom form](https://user-images.githubusercontent.com/5418788/119264008-1391dd80-bbea-11eb-9f14-cb405e77fb60.png)
77
79
 
78
- Values from the form fields can be used in API path via `{field_name}` syntax: `/api/some-endpoint/{resource_id}/apply`.<br>
79
- [Learn more about custom forms builder](https://github.com/omohokcoj/motor-admin/blob/master/guides/building_custom_forms.md).
80
+ Values from the form fields can be used in API path via `{field_name}` syntax: `/api/some-endpoint/{resource_id}/apply`.
81
+
82
+ [Learn more about custom forms builder](https://github.com/omohokcoj/motor-admin/blob/master/guides/building_custom_forms.md)
80
83
 
81
84
  ### SQL Queries
82
85
 
@@ -287,8 +287,6 @@ module Motor
287
287
  { includes: validator.send(:delimiter) }
288
288
  when ActiveRecord::Validations::PresenceValidator
289
289
  { required: true }
290
- when ActiveModel::Validations::FormatValidator
291
- { format: JsRegex.new(options[:with]).to_h.slice(:source, :options) }
292
290
  when ActiveRecord::Validations::LengthValidator
293
291
  { length: normalize_length_validation_options(options) }
294
292
  when ActiveModel::Validations::NumericalityValidator
data/lib/motor/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Motor
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
data/lib/motor.rb CHANGED
@@ -4,7 +4,6 @@ require 'concurrent/executor/fixed_thread_pool'
4
4
  require 'concurrent/timer_task'
5
5
  require 'cancancan'
6
6
  require 'ar_lazy_preload'
7
- require 'js_regex'
8
7
  require 'fugit'
9
8
  require 'csv'
10
9
  require 'active_record/filter'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: motor-admin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-09-06 00:00:00.000000000 Z
11
+ date: 2021-09-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-filter
@@ -80,20 +80,6 @@ dependencies:
80
80
  - - "~>"
81
81
  - !ruby/object:Gem::Version
82
82
  version: '1.0'
83
- - !ruby/object:Gem::Dependency
84
- name: js_regex
85
- requirement: !ruby/object:Gem::Requirement
86
- requirements:
87
- - - "~>"
88
- - !ruby/object:Gem::Version
89
- version: '3.0'
90
- type: :runtime
91
- prerelease: false
92
- version_requirements: !ruby/object:Gem::Requirement
93
- requirements:
94
- - - "~>"
95
- - !ruby/object:Gem::Version
96
- version: '3.0'
97
83
  - !ruby/object:Gem::Dependency
98
84
  name: rails
99
85
  requirement: !ruby/object:Gem::Requirement