rails_admin_sort_embedded 0.1.4 → 0.2.0

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: bbf17b8f99e795c204682715da748c71a5cf03bb
4
- data.tar.gz: ea1f8b43503ccb4bc536140b48985d0fc5e9f028
3
+ metadata.gz: c8aedf275f92db1f59830f5bee7afa25c3dde310
4
+ data.tar.gz: 9db409a5eda9e9f0b34f5dd2cd3179742c56d254
5
5
  SHA512:
6
- metadata.gz: c592d932bf4e31bfd97b7d9f73fac7a6eb0a4fd08f0d5cb4b6488a933b18870c18cd63f793c4517d2734bc2a13bfbec402752d2106b3c18a8e8371a60bfa6222
7
- data.tar.gz: 7ba1fbaa606a592fc556ba81e6fae99b2ce5fbec6798c69a80e022c03cb5e7631805b74f1f13f8de949eb90609819af5dc5bb12aca5a30ce68b31bff35b6cce8
6
+ metadata.gz: 00b324b98cfcacb5672dc2f3cdb5b54e661183bbfd51fe730052b67197bfcf42e53722009fe24c5728fa927b2ab6fe7b0cfff4ee0127c461b177dd60710f86c0
7
+ data.tar.gz: bfa6d8e6932107cec602938bf9511a18280d0eefd08de85f30cb8f856d510b5d601b48c46e45304d728d393d8bfe31bee4985bcc139b77c0f883c3dbb06f3ef1
@@ -38,7 +38,7 @@ module RailsAdminSortEmbedded
38
38
  # end
39
39
  # end
40
40
 
41
- _title = sort_embedded_label_methods.map { |m| node.send(m) if node.respond_to?(m) }.compact.first
41
+ _title = sort_embedded_label_methods.map { |m| node.send(m) if node.respond_to?(m) }.reject(&:blank?).first
42
42
  _title = node.id if _title.blank?
43
43
  content += content_tag :span, _title
44
44
 
@@ -1,3 +1,3 @@
1
1
  module RailsAdminSortEmbedded
2
- VERSION = "0.1.4"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -17,5 +17,6 @@ Gem::Specification.new do |gem|
17
17
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
18
18
  gem.require_paths = ["lib"]
19
19
 
20
+ gem.add_dependency "mongoid", [">= 5.0", "< 7.0"]
20
21
  gem.add_dependency "rails_admin"
21
22
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_admin_sort_embedded
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Kiseliev
@@ -9,8 +9,28 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-25 00:00:00.000000000 Z
12
+ date: 2017-04-22 00:00:00.000000000 Z
13
13
  dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: mongoid
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - ">="
19
+ - !ruby/object:Gem::Version
20
+ version: '5.0'
21
+ - - "<"
22
+ - !ruby/object:Gem::Version
23
+ version: '7.0'
24
+ type: :runtime
25
+ prerelease: false
26
+ version_requirements: !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ version: '5.0'
31
+ - - "<"
32
+ - !ruby/object:Gem::Version
33
+ version: '7.0'
14
34
  - !ruby/object:Gem::Dependency
15
35
  name: rails_admin
16
36
  requirement: !ruby/object:Gem::Requirement
@@ -73,7 +93,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
73
93
  version: '0'
74
94
  requirements: []
75
95
  rubyforge_project:
76
- rubygems_version: 2.4.7
96
+ rubygems_version: 2.4.8
77
97
  signing_key:
78
98
  specification_version: 4
79
99
  summary: Interface for editing a sorted embedded collections for rails_admin