motor-admin 0.4.0 → 0.4.3

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: ca54cd5d999594ce72fba85a996c63bb99ef87cb58dddd02f91af2c97e8d9508
4
- data.tar.gz: 26c2f9525f0324a30a1ae241a466e85cce271434a2b2d29f144387f01486d712
3
+ metadata.gz: 7d3a3e923ca22e7fdf83117a4b7c0bd380ffb345f747d99de9eecceb171ceabc
4
+ data.tar.gz: fb8239b1a4177781480dc59014c525aa84731eb9baaf63edb72072a81698fbd4
5
5
  SHA512:
6
- metadata.gz: 97ade114c8bedf11dcf2586ec76fd629efd7517b4319e32fe3ce23a3c6e38f8e179e233e0fc202147785b9b0e9d3757af0064eadfb0eb84a177ce87f63b646ce
7
- data.tar.gz: ccd281c10b4950741da0ecca8d3a9e1296186a8d96fb7db04b41e16809064dbed7334f0c0250f56779ae1fed660da9572c8abc0aa8dfc137684b551126176ce0
6
+ metadata.gz: 2effaa91317c2c4b48fbaf9008c4e006419c31e7266effe444ade006a7928b0c436596eeac20510a995b5c194ebbb66ce12edef1acb4c062a3bdef66fb35a5e6
7
+ data.tar.gz: 002f44a7671b4fc529d7973cf66ef533eb00b1a7603b2d788a81f93f48daa0db56aa76f7040571901423352e29956b15b11116948d5f1fb9cb598cf7e2f04590
data/README.md CHANGED
@@ -6,10 +6,10 @@
6
6
 
7
7
  Low-code Admin panel and Business intelligence Rails engine **(no DSL - configurable from the UI)**.
8
8
 
9
- 🤓 [Demo App](https://motor-admin.herokuapp.com/demo) | 👀 [Features overview](https://www.youtube.com/watch?v=ngVoci8Hll4&list=PLu7llEMh0KcOkR3Uy_RJT0cXPZQKAYVsq&index=1) | ⭐ [Pro](https://www.getmotoradmin.com/ruby-on-rails)
9
+ 🤓 [Demo App](https://app.getmotoradmin.com/demo/) | 👀 [Features overview](https://www.youtube.com/watch?v=ngVoci8Hll4&list=PLu7llEMh0KcOkR3Uy_RJT0cXPZQKAYVsq&index=1) | ⭐ [Pro](https://www.getmotoradmin.com/ruby-on-rails)
10
10
  </div>
11
11
 
12
- [![Admin Panel](https://user-images.githubusercontent.com/5418788/119318538-1f30e300-bc82-11eb-94a4-107c31c93b13.png)](https://motor-admin.herokuapp.com/demo)
12
+ [![Admin Panel](https://user-images.githubusercontent.com/5418788/119318538-1f30e300-bc82-11eb-94a4-107c31c93b13.png)](https://app.getmotoradmin.com/demo/)
13
13
 
14
14
  ## Installation
15
15
  Add this line to your application's Gemfile:
@@ -109,7 +109,7 @@ Queries can include embedded variables via `{{variable}}` syntax ([mustache](htt
109
109
 
110
110
  ![motor-visualization](https://user-images.githubusercontent.com/5418788/119264625-a2075e80-bbec-11eb-986c-6106dd6e47ce.png)
111
111
 
112
- Data from the SQL query can be represented as: [table](https://motor-admin.herokuapp.com/demo/queries/12), [number](https://motor-admin.herokuapp.com/demo/queries/6), [line chart](https://motor-admin.herokuapp.com/demo/queries/3), [bar chart](https://motor-admin.herokuapp.com/demo/queries/1), [pie chart](https://motor-admin.herokuapp.com/demo/queries/9), [funnel](https://motor-admin.herokuapp.com/demo/queries/7), [markdown](https://motor-admin.herokuapp.com/demo/queries/8)
112
+ Data from the SQL query can be represented as: table, number, line chart, bar chart, pie chart, funnel, markdown.
113
113
 
114
114
  ### Dashboards
115
115
 
@@ -64,7 +64,7 @@ module Motor
64
64
 
65
65
  def execute
66
66
  resource_preferences = Motor::Resource.find_by(name: @resource.class.name.underscore).preferences
67
- resource_action = resource_preferences[:actions].find { |a| a[:preferences][:method_name] == params[:method] }
67
+ resource_action = resource_preferences[:actions].find { |a| a.dig(:preferences, :method_name) == params[:method] }
68
68
 
69
69
  authorize!(resource_action[:name].to_sym, @resource)
70
70
 
@@ -8,7 +8,7 @@ module Motor
8
8
  def self.audited(*args)
9
9
  default_class = Audited.audit_class
10
10
 
11
- Audited.audit_class = Motor::Audit
11
+ Audited.audit_class = 'Motor::Audit'
12
12
 
13
13
  super
14
14
  ensure
@@ -56,7 +56,7 @@ module Motor
56
56
  def define_audited_class(klass)
57
57
  default_audit_class = Audited.audit_class
58
58
 
59
- Audited.audit_class = Motor::Audit
59
+ Audited.audit_class = 'Motor::Audit'
60
60
 
61
61
  klass.audited
62
62
 
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.4.0'
4
+ VERSION = '0.4.3'
5
5
  end
@@ -3964,9 +3964,9 @@
3964
3964
  "images/layers-2x.png": "images/layers-2x.png",
3965
3965
  "images/layers.png": "images/layers.png",
3966
3966
  "images/marker-icon.png": "images/marker-icon.png",
3967
- "main-99bab2664944ee03d10f.css.gz": "main-99bab2664944ee03d10f.css.gz",
3968
- "main-99bab2664944ee03d10f.js.LICENSE.txt": "main-99bab2664944ee03d10f.js.LICENSE.txt",
3969
- "main-99bab2664944ee03d10f.js.gz": "main-99bab2664944ee03d10f.js.gz",
3970
- "main.css": "main-99bab2664944ee03d10f.css",
3971
- "main.js": "main-99bab2664944ee03d10f.js"
3967
+ "main-ef8d17c17507c8301bda.css.gz": "main-ef8d17c17507c8301bda.css.gz",
3968
+ "main-ef8d17c17507c8301bda.js.LICENSE.txt": "main-ef8d17c17507c8301bda.js.LICENSE.txt",
3969
+ "main-ef8d17c17507c8301bda.js.gz": "main-ef8d17c17507c8301bda.js.gz",
3970
+ "main.css": "main-ef8d17c17507c8301bda.css",
3971
+ "main.js": "main-ef8d17c17507c8301bda.js"
3972
3972
  }
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.4.0
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pete Matsyburka
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-11-20 00:00:00.000000000 Z
11
+ date: 2022-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ar_lazy_preload
@@ -2235,8 +2235,8 @@ files:
2235
2235
  - ui/dist/images/layers-2x.png
2236
2236
  - ui/dist/images/layers.png
2237
2237
  - ui/dist/images/marker-icon.png
2238
- - ui/dist/main-99bab2664944ee03d10f.css.gz
2239
- - ui/dist/main-99bab2664944ee03d10f.js.gz
2238
+ - ui/dist/main-ef8d17c17507c8301bda.css.gz
2239
+ - ui/dist/main-ef8d17c17507c8301bda.js.gz
2240
2240
  - ui/dist/manifest.json
2241
2241
  homepage:
2242
2242
  licenses: