motor-admin 0.1.22 → 0.1.23

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a18eff1eb9149993c711610be8362de1818ae5abf9759cf06118d92cffb00c7b
4
- data.tar.gz: 7cded1f7b12bcc38c10d0abe7df42bf66a412720cd884190d604ba70698d5fdd
3
+ metadata.gz: ccffdfd1c91afe7ad8001f3e25a42362a7a115393f21a3cb3a525cc529837fae
4
+ data.tar.gz: 62de61940b13775579b6c625e1ac78b163ba515417dba49e3d065d9118d33a67
5
5
  SHA512:
6
- metadata.gz: 69a7380433550939c6efe7e7a7fb3b5aa7f4ba3d3adc3403c281579f86d7ab2b48c1767aadb059e4e58100cd12ae67a4df349a1d19bab65832421bc32bf57ea8
7
- data.tar.gz: 34121a44946d91e89054c6cad50051af5c658e75660e0ba6ac64b77f394337f6d3ac4cbb3a03bb815c3ff6c6ed03b8f9023865fefe186bb1d02e80af68d7f732
6
+ metadata.gz: a5e7082907efa6ab87b89ee7dbc27b313813b5b04a1ec78c8eaab0839419df53a0664243d84600aab3654320bf5be2a19cc3c0bf7032440ef50d010b8c094df6
7
+ data.tar.gz: 52d7122dafc07fa90a77cd0917d24bdddc8611e372208828be52d157e42fc31551e8bb570944ff8d2edae3f1778e65a0fa8a5cbf473588c964b0b89366e150bb
@@ -21,7 +21,8 @@ module Motor
21
21
  'text' => 'string',
22
22
  'citext' => 'string',
23
23
  'jsonb' => 'json',
24
- 'timestamp' => 'datetime'
24
+ 'timestamp' => 'datetime',
25
+ 'money' => 'currency'
25
26
  }.freeze
26
27
 
27
28
  module_function
@@ -90,6 +90,7 @@ module Motor
90
90
  default_value: default_attrs[column.name],
91
91
  validators: fetch_validators(model, column.name),
92
92
  reference: nil,
93
+ format: {},
93
94
  virtual: false
94
95
  }
95
96
  end.compact
@@ -122,6 +123,7 @@ module Motor
122
123
  access_type: ref.belongs_to? || is_attachment ? ColumnAccessTypes::READ_WRITE : ColumnAccessTypes::READ_ONLY,
123
124
  default_value: default_attrs[column_name],
124
125
  validators: fetch_validators(model, column_name),
126
+ format: {},
125
127
  reference: {
126
128
  name: name,
127
129
  model_name: ref.klass.name.underscore,
@@ -31,7 +31,7 @@ module Motor
31
31
  model[:associations],
32
32
  configs[:associations],
33
33
  {},
34
- ->(_action) { true }
34
+ ->(_) { true }
35
35
  )
36
36
 
37
37
  updated_model[:columns] = merge_by_name(
@@ -4,7 +4,7 @@ module Motor
4
4
  module BuildSchema
5
5
  module PersistResourceConfigs
6
6
  RESOURCE_ATTRS = %w[display_name visible].freeze
7
- COLUMN_ATTRS = %w[name display_name column_type access_type default_value virtual].freeze
7
+ COLUMN_ATTRS = %w[name display_name column_type access_type default_value virtual format].freeze
8
8
  ASSOCIATION_ATTRS = %w[name display_name visible].freeze
9
9
  SCOPE_ATTRS = %w[name display_name scope_type preferences visible].freeze
10
10
  ACTION_ATTRS = %w[name display_name action_type preferences visible].freeze
@@ -14,6 +14,7 @@ module Motor
14
14
  access_type: 'read_write',
15
15
  default_value: nil,
16
16
  reference: nil,
17
+ format: {},
17
18
  validators: []
18
19
  }.with_indifferent_access
19
20
 
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.1.22'
4
+ VERSION = '0.1.23'
5
5
  end
@@ -5,9 +5,9 @@
5
5
  "fonts/ionicons.ttf?v=3.0.0-alpha.3": "fonts/ionicons.ttf",
6
6
  "fonts/ionicons.woff2?v=3.0.0-alpha.3": "fonts/ionicons.woff2",
7
7
  "fonts/ionicons.woff?v=3.0.0-alpha.3": "fonts/ionicons.woff",
8
- "main-25b3270c536d4f5d15b5.css.gz": "main-25b3270c536d4f5d15b5.css.gz",
9
- "main-25b3270c536d4f5d15b5.js.LICENSE.txt": "main-25b3270c536d4f5d15b5.js.LICENSE.txt",
10
- "main-25b3270c536d4f5d15b5.js.gz": "main-25b3270c536d4f5d15b5.js.gz",
11
- "main.css": "main-25b3270c536d4f5d15b5.css",
12
- "main.js": "main-25b3270c536d4f5d15b5.js"
8
+ "main-a32a143c00ba97ad5bf9.css.gz": "main-a32a143c00ba97ad5bf9.css.gz",
9
+ "main-a32a143c00ba97ad5bf9.js.LICENSE.txt": "main-a32a143c00ba97ad5bf9.js.LICENSE.txt",
10
+ "main-a32a143c00ba97ad5bf9.js.gz": "main-a32a143c00ba97ad5bf9.js.gz",
11
+ "main.css": "main-a32a143c00ba97ad5bf9.css",
12
+ "main.js": "main-a32a143c00ba97ad5bf9.js"
13
13
  }
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.1.22
4
+ version: 0.1.23
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-05-04 00:00:00.000000000 Z
11
+ date: 2021-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord-filter
@@ -213,8 +213,8 @@ files:
213
213
  - lib/motor/ui_configs.rb
214
214
  - lib/motor/version.rb
215
215
  - ui/dist/fonts/ionicons.woff2
216
- - ui/dist/main-25b3270c536d4f5d15b5.css.gz
217
- - ui/dist/main-25b3270c536d4f5d15b5.js.gz
216
+ - ui/dist/main-a32a143c00ba97ad5bf9.css.gz
217
+ - ui/dist/main-a32a143c00ba97ad5bf9.js.gz
218
218
  - ui/dist/manifest.json
219
219
  homepage:
220
220
  licenses: