activeadmin_json_editor 0.0.6 → 0.0.8
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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +2 -2
- data/activeadmin_json_editor.gemspec +3 -3
- data/lib/activeadmin/json_editor/version.rb +1 -1
- data/lib/activeadmin/resource_dsl.rb +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 4036721f3c26404f59a2b36e50632dd8a85e94d5
|
|
4
|
+
data.tar.gz: 0dfd5bfd0811e29eb78399524c7f6ba4df4ff659
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 41363b3431736d8827852f33bf6991d7a6cd39e7564718fb74467ce8a799fd6abfbe5fe654ac703c79e72a87ccd72778e3b086f5ec3fe59a652b5ac88951daa1
|
|
7
|
+
data.tar.gz: 28946eed4c1839dd13dbd47de99de0336bafe50171ea80cf60953322899e06e8e5b91aa45d118362d4d2ce6355aaea281b17a82cff145b4ddaadc350438a5bc5
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
|
@@ -9,7 +9,7 @@ Data shown by using jsoneditor.js from http://jsoneditoronline.org
|
|
|
9
9
|
|
|
10
10
|
Add this line to your application's Gemfile:
|
|
11
11
|
|
|
12
|
-
gem 'activeadmin_json_editor', '~> 0.0.
|
|
12
|
+
gem 'activeadmin_json_editor', '~> 0.0.8'
|
|
13
13
|
|
|
14
14
|
And then execute:
|
|
15
15
|
|
|
@@ -48,7 +48,7 @@ end
|
|
|
48
48
|
|
|
49
49
|
## Contributing
|
|
50
50
|
|
|
51
|
-
1. Fork it ( http://github.com/
|
|
51
|
+
1. Fork it ( http://github.com/allanbreyes/activeadmin_json_editor/fork )
|
|
52
52
|
2. Create your feature branch (`git checkout -b my-new-feature`)
|
|
53
53
|
3. Commit your changes (`git commit -am 'Add some feature'`)
|
|
54
54
|
4. Push to the branch (`git push origin my-new-feature`)
|
|
@@ -5,10 +5,10 @@ Gem::Specification.new do |spec|
|
|
|
5
5
|
spec.name = 'activeadmin_json_editor'
|
|
6
6
|
spec.version = ActiveAdmin::JsonEditor::VERSION
|
|
7
7
|
spec.authors = ['allanbreyes']
|
|
8
|
-
spec.email = ['
|
|
8
|
+
spec.email = ['allanbreyes@users.noreply.github.com']
|
|
9
9
|
spec.summary = 'add "json_input" and "jsonb_input" field type to active_admin that allow to edit Postgresql json and jsonb values'
|
|
10
10
|
spec.description = '"json_input" field allow to edit json value as json array with using jsoneditor.js from http://jsoneditoronline.org'
|
|
11
|
-
spec.homepage = 'https://github.com/
|
|
11
|
+
spec.homepage = 'https://github.com/allanbreyes/activeadmin_json_editor'
|
|
12
12
|
spec.license = 'MIT'
|
|
13
13
|
|
|
14
14
|
spec.files = `git ls-files -z`.split("\x0")
|
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
|
18
18
|
|
|
19
19
|
spec.required_rubygems_version = '>= 1.3.6'
|
|
20
20
|
spec.add_development_dependency 'bundler', '~> 1.5'
|
|
21
|
-
spec.add_dependency 'railties', '>= 3.0', '< 5.
|
|
21
|
+
spec.add_dependency 'railties', '>= 3.0', '< 5.2'
|
|
22
22
|
# spec.add_development_dependency "rake", "~> 0"
|
|
23
23
|
# spec.add_dependency "active_admin", "~> 1.0.0"
|
|
24
24
|
spec.add_dependency 'ace-rails-ap'
|
|
@@ -7,7 +7,7 @@ module ActiveAdmin
|
|
|
7
7
|
before_save do |object, _args|
|
|
8
8
|
request_namespace = object.class.name.underscore.tr('/', '_')
|
|
9
9
|
if params.key? request_namespace
|
|
10
|
-
object.class.columns_hash.select { |_key, attr| attr.type
|
|
10
|
+
object.class.columns_hash.select { |_key, attr| attr.type.in? [:json, :jsonb] }.keys.each do |key|
|
|
11
11
|
next unless params[request_namespace].key? key
|
|
12
12
|
json_data = params[request_namespace][key]
|
|
13
13
|
data = if json_data == 'null' || json_data.blank?
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: activeadmin_json_editor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- allanbreyes
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2018-03-05 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -33,7 +33,7 @@ dependencies:
|
|
|
33
33
|
version: '3.0'
|
|
34
34
|
- - "<"
|
|
35
35
|
- !ruby/object:Gem::Version
|
|
36
|
-
version: '5.
|
|
36
|
+
version: '5.2'
|
|
37
37
|
type: :runtime
|
|
38
38
|
prerelease: false
|
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -43,7 +43,7 @@ dependencies:
|
|
|
43
43
|
version: '3.0'
|
|
44
44
|
- - "<"
|
|
45
45
|
- !ruby/object:Gem::Version
|
|
46
|
-
version: '5.
|
|
46
|
+
version: '5.2'
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: ace-rails-ap
|
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -61,7 +61,7 @@ dependencies:
|
|
|
61
61
|
description: '"json_input" field allow to edit json value as json array with using
|
|
62
62
|
jsoneditor.js from http://jsoneditoronline.org'
|
|
63
63
|
email:
|
|
64
|
-
-
|
|
64
|
+
- allanbreyes@users.noreply.github.com
|
|
65
65
|
executables: []
|
|
66
66
|
extensions: []
|
|
67
67
|
extra_rdoc_files: []
|
|
@@ -96,7 +96,7 @@ files:
|
|
|
96
96
|
- vendor/assets/stylesheets/.gitkeep
|
|
97
97
|
- vendor/assets/stylesheets/jsoneditor/jsoneditor.min.css
|
|
98
98
|
- vendor/assets/stylesheets/jsoneditor/jsoneditor.scss
|
|
99
|
-
homepage: https://github.com/
|
|
99
|
+
homepage: https://github.com/allanbreyes/activeadmin_json_editor
|
|
100
100
|
licenses:
|
|
101
101
|
- MIT
|
|
102
102
|
metadata: {}
|
|
@@ -116,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
116
116
|
version: 1.3.6
|
|
117
117
|
requirements: []
|
|
118
118
|
rubyforge_project:
|
|
119
|
-
rubygems_version: 2.
|
|
119
|
+
rubygems_version: 2.6.13
|
|
120
120
|
signing_key:
|
|
121
121
|
specification_version: 4
|
|
122
122
|
summary: add "json_input" and "jsonb_input" field type to active_admin that allow
|