administrate-field-jsonb 0.4.1 → 0.4.2
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 +5 -5
- data/README.md +9 -0
- data/administrate-field-jsonb.gemspec +1 -1
- data/app/assets/javascripts/administrate-field-jsonb/components/accordion.js +2 -2
- data/app/assets/javascripts/administrate-field-jsonb/components/editor.js +3 -3
- data/app/assets/javascripts/administrate-field-jsonb/components/viewer.js +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz: '
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: '00360160780ad78be533891d768702812fbb1dde867179a3e29ec4a5c642fa0a'
|
|
4
|
+
data.tar.gz: 488b361fffa40de1517a2ca7c9e9b526b02212b54bef930faf4463b37d3c86f4
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: c987c1cb1269330ccec85f0ddd61562bc8e7bb1f68ad9bb643475a9e127082ff2e676b1e9608df901c0961316b1b69e501571f300e102eaf96579eeefac8241f
|
|
7
|
+
data.tar.gz: 7b864d81e23944aa57e9fd7330877610d582b36732d0d41df3ea21144a70bd6d6bd7e74936a815033e0025fc54549653f8880244c340a406f8cfaabce61c2a7f
|
data/README.md
CHANGED
|
@@ -18,6 +18,15 @@ And then execute:
|
|
|
18
18
|
bundle
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
+
If you are using asset pipeline, add the following lines to your `manifest.js`:
|
|
22
|
+
|
|
23
|
+
```js
|
|
24
|
+
//= link administrate-field-jsonb/application.css
|
|
25
|
+
//= link administrate-field-jsonb/application.js
|
|
26
|
+
```
|
|
27
|
+
|
|
28
|
+
The manifest file is at `app/assets/config` by default.
|
|
29
|
+
|
|
21
30
|
## Usage
|
|
22
31
|
|
|
23
32
|
```ruby
|
|
@@ -2,7 +2,7 @@ $LOAD_PATH.push File.expand_path('lib', __dir__)
|
|
|
2
2
|
|
|
3
3
|
Gem::Specification.new do |gem|
|
|
4
4
|
gem.name = 'administrate-field-jsonb'
|
|
5
|
-
gem.version = '0.4.
|
|
5
|
+
gem.version = '0.4.2'
|
|
6
6
|
gem.authors = ['Sergey Volkov', 'Codica']
|
|
7
7
|
gem.email = ['sergvolkov.codica@gmail.com']
|
|
8
8
|
gem.homepage = 'https://github.com/codica2/administrate-field-jsonb'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
$(function
|
|
2
|
-
$(".administrate-field-jsonb-accordion").each(function
|
|
1
|
+
$(document).on(typeof Turbolinks === 'undefined' ? 'ready' : 'turbolinks:load', function() {
|
|
2
|
+
$(".administrate-field-jsonb-accordion").each(function() {
|
|
3
3
|
$(this).click(function() {
|
|
4
4
|
$(this).toggleClass("administrate-field-jsonb-active").next().toggle();
|
|
5
5
|
});
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
$(function
|
|
1
|
+
$(document).on(typeof Turbolinks === 'undefined' ? 'ready' : 'turbolinks:load', function() {
|
|
2
2
|
let editor, updatedJson;
|
|
3
|
-
$('.administrate-jsoneditor').each(function
|
|
3
|
+
$('.administrate-jsoneditor').each(function(index) {
|
|
4
4
|
|
|
5
5
|
let $current = $(this).find("textarea");
|
|
6
6
|
|
|
@@ -14,7 +14,7 @@ $(function () {
|
|
|
14
14
|
|
|
15
15
|
$current.val(JSON.stringify(updatedJson));
|
|
16
16
|
},
|
|
17
|
-
onError: function
|
|
17
|
+
onError: function(err) {
|
|
18
18
|
alert(err.toString());
|
|
19
19
|
},
|
|
20
20
|
navigationBar: false,
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: administrate-field-jsonb
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sergey Volkov
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2020-08-03 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: administrate
|
|
@@ -113,8 +113,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
113
113
|
- !ruby/object:Gem::Version
|
|
114
114
|
version: '0'
|
|
115
115
|
requirements: []
|
|
116
|
-
|
|
117
|
-
rubygems_version: 2.6.14
|
|
116
|
+
rubygems_version: 3.0.3
|
|
118
117
|
signing_key:
|
|
119
118
|
specification_version: 4
|
|
120
119
|
summary: JSONb field plugin for Administrate
|