rails_admin_nested_set 0.5.3 → 0.5.4

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
- SHA1:
3
- metadata.gz: 3e257b7b0facfd328a2d2557c18fe702cd49b322
4
- data.tar.gz: b59864bd6a6b03817067f55c65471ec200c2be68
2
+ SHA256:
3
+ metadata.gz: 9acf35d6cd485c00215e0d5d80594154fdd15fe0afe349a8ceb8602db0de4249
4
+ data.tar.gz: 6841fa74c3a7880621341f742d625a27b718f88844b379b38e72bf1d6d242a94
5
5
  SHA512:
6
- metadata.gz: 17b622932acc1a8f4bbec154c999b4383dfab72d86f3c89ab5b31c3ca304b0e7a9b7f5279b54b03a95c7616b5aae6d54a3df61f36294e025135894b954100aeb
7
- data.tar.gz: 6efa830e2377998e930b90ed2111883002f763fabe4fa7df0a79b33b036f9c1640e8da21e2f09127d566c4141e11261bbdc78efa533bb608cc28a345a9801893
6
+ metadata.gz: b41c3ef439e4e75208abe7c0e2d9d5cace78645afeb13ea23b88e264d1aa8e1c87acc1796062b86ff3caa12b09d80b117e7a3cf28631ffd6535663b5a8b3c58d
7
+ data.tar.gz: acd59fb3241648e765756e23b35cf17e96bf197f0e09dc9031d752b2e0dde9804aea9ecde649aac1ae271671fa404e4340505948c5497408b95d36834a68392d
@@ -25,7 +25,6 @@ module RailsAdmin
25
25
  register_instance_option :controller do
26
26
  Proc.new do |klass|
27
27
  @nested_set_conf = ::RailsAdminNestedSet::Configuration.new @abstract_model
28
-
29
28
  if params['id'].present?
30
29
  begin
31
30
  id = params[:id].to_s
@@ -34,9 +33,9 @@ module RailsAdmin
34
33
  next_id = params[:next_id].to_s
35
34
 
36
35
  if id.empty?
37
- return render text: 'Nested set UI error: node id not defined', status: 500
36
+ return render plain: 'Nested set UI error: node id not defined', status: 500
38
37
  elsif parent_id.empty? && prev_id.empty? && next_id.empty?
39
- return render text: 'Nested set UI error: not defined where to move node', status: 500
38
+ return render plain: 'Nested set UI error: not defined where to move node', status: 500
40
39
  end
41
40
 
42
41
 
@@ -50,11 +49,11 @@ module RailsAdmin
50
49
  end
51
50
 
52
51
  message = "<strong>#{I18n.t('admin.actions.nested_set.success')}!</strong>"
53
- render text: message
52
+ render plain: message
54
53
  rescue Exception => e
55
54
  @abstract_model.model.rebuild!
56
55
  Rails.logger.error("#{e.class.name}: #{e.message}:\n#{e.backtrace.join("\n")}")
57
- render text: "<strong>#{I18n.t('admin.actions.nested_set.error')}</strong>: #{e}", status: 500
56
+ render plain: "<strong>#{I18n.t('admin.actions.nested_set.error')}</strong>: #{e}", status: 500
58
57
  end
59
58
 
60
59
  else
@@ -1,3 +1,3 @@
1
1
  module RailsAdminNestedSet
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
@@ -1,4 +1,5 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
2
3
  lib = File.expand_path('../lib', __FILE__)
3
4
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
5
  require 'rails_admin_nested_set/version'
@@ -17,5 +18,7 @@ Gem::Specification.new do |gem|
17
18
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
19
  gem.require_paths = ["lib"]
19
20
 
20
- gem.add_dependency "rails_admin"
21
+ gem.add_dependency 'rails_admin'
22
+ gem.add_dependency 'rails', '>= 4.1.0'
21
23
  end
24
+
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_nested_set
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Gleb Tv
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-23 00:00:00.000000000 Z
11
+ date: 2018-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails_admin
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rails
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.1.0
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.1.0
27
41
  description: Rails admin nested set
28
42
  email:
29
43
  - glebtv@gmail.com
@@ -73,7 +87,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
87
  version: '0'
74
88
  requirements: []
75
89
  rubyforge_project:
76
- rubygems_version: 2.5.1
90
+ rubygems_version: 2.7.7
77
91
  signing_key:
78
92
  specification_version: 4
79
93
  summary: Interface for editing a nested set for rails_admin