activeadmin_json_editor 0.0.6 → 0.0.8

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
  SHA1:
3
- metadata.gz: bbef1ee8e097aad025b4a7febfc5f6e9fc4dcbf9
4
- data.tar.gz: 4c8d99161fbd5dbddb8fd98619f9117e314b2b2b
3
+ metadata.gz: 4036721f3c26404f59a2b36e50632dd8a85e94d5
4
+ data.tar.gz: 0dfd5bfd0811e29eb78399524c7f6ba4df4ff659
5
5
  SHA512:
6
- metadata.gz: 52b5e34e12f30c0f5f24b380704f90a0db9bdf90085df6ecef6a78703382c61242b49d7a02b7aa18a96a40062aaab9b80c856339e1148ced5f5254ab471e1671
7
- data.tar.gz: 311f2eadac714faff1f6b144fa400c0d777bc616297273e4b0941a10f6b452a3da481bb1a1f7d5d84761beef9e6c2996670d30b354db00115eb8a74fc86a1f06
6
+ metadata.gz: 41363b3431736d8827852f33bf6991d7a6cd39e7564718fb74467ce8a799fd6abfbe5fe654ac703c79e72a87ccd72778e3b086f5ec3fe59a652b5ac88951daa1
7
+ data.tar.gz: 28946eed4c1839dd13dbd47de99de0336bafe50171ea80cf60953322899e06e8e5b91aa45d118362d4d2ce6355aaea281b17a82cff145b4ddaadc350438a5bc5
data/Gemfile.lock CHANGED
@@ -3,7 +3,7 @@ PATH
3
3
  specs:
4
4
  activeadmin_json_editor (0.0.6)
5
5
  ace-rails-ap
6
- railties (>= 3.0, < 5.0)
6
+ railties (>= 3.0, < 5.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
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.6'
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/udacity/activeadmin_json_editor/fork )
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 = ['allan@udacity.com']
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/wild-r/activeadmin_json_editor'
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.0'
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'
@@ -1,5 +1,5 @@
1
1
  module ActiveAdmin
2
2
  module JsonEditor
3
- VERSION = '0.0.6'.freeze
3
+ VERSION = '0.0.8'.freeze
4
4
  end
5
5
  end
@@ -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 == :json }.keys.each do |key|
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.6
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: 2016-08-06 00:00:00.000000000 Z
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.0'
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.0'
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
- - allan@udacity.com
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/wild-r/activeadmin_json_editor
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.4.5.1
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