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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: '016868c28cd126c1217bed6c8f2efe95322e5505'
4
- data.tar.gz: 8c39f90fcbbda6711cd8df1fa4335155b2c37153
2
+ SHA256:
3
+ metadata.gz: '00360160780ad78be533891d768702812fbb1dde867179a3e29ec4a5c642fa0a'
4
+ data.tar.gz: 488b361fffa40de1517a2ca7c9e9b526b02212b54bef930faf4463b37d3c86f4
5
5
  SHA512:
6
- metadata.gz: 0ac43093244dc82f4a54443b510de3ed26831be95a33f43ba3d15827fd1c0a4c55c8063ec9caad4842f07e0388bf54b02e9cb497fafa98b8dc640c09a77a47bf
7
- data.tar.gz: d827c6cb1a50b581c0757cdadb68a56ba5fd888cf7a626a30cd62ca72b1a4a953d4a71c8cc133fda363fadd78b5b38f01b7770baa77307fef207b55e4b06834f
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.1'
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 (index) {
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 (err) {
17
+ onError: function(err) {
18
18
  alert(err.toString());
19
19
  },
20
20
  navigationBar: false,
@@ -1,4 +1,4 @@
1
- $(function () {
1
+ $(document).on(typeof Turbolinks === 'undefined' ? 'ready' : 'turbolinks:load', function() {
2
2
  let viewer;
3
3
  $('.administrate-jsoneditor-viewer').each(function (index) {
4
4
 
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.1
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: 2019-10-30 00:00:00.000000000 Z
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
- rubyforge_project:
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