agilibox 1.9.4 → 1.9.5

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
  SHA256:
3
- metadata.gz: dc669342f537268da38524e9f81e53596461c9f1bebe3c041d50b61c566c67c3
4
- data.tar.gz: 7858d8529558a1578128cf2c4dc2626fd0d19c48f8166eec2c0c31308c23b3df
3
+ metadata.gz: 70cf28216c3454232717705c0f856cbbcc9c7afe64a64940031e37c244e087ca
4
+ data.tar.gz: 4b69d768141760b3aa70b2bbecad849a359fe6e5c4e3d312971f5f648a7187b4
5
5
  SHA512:
6
- metadata.gz: 1299f5905563c84ebd1ab668e24c3da052fbda8073a9e551d0d070cce7c1a06af2e3e53a189918f7ab6e29450b7532f5fd1b5a76dd5dcb3415ec579681cfd8c0
7
- data.tar.gz: 11cc2e97f14993636d36f2ce183c30915f532edcf5420465b575846b0d5f79545ac497606f89b0e5683e23f565017efe3634738c166b97a74176a37dd7213e83
6
+ metadata.gz: b895a6a5d99124b9a8fa3e7185e949b426bbe90c134441dbf1ee7e5329f8b10609ab40a3420f2067941158e9821c08a1ea1145fe8394506f7306bd309946c8ed
7
+ data.tar.gz: fc304783878fcfe3bfaad9d452d299ace65059046244cbe5ec0aa526107b23fe957869d26c1c39dbf306bcc755d8a1d71cea297dd42123d522b8b15b4a56bca9
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## 1.9.5
6
+ - Fix warnings on Rails 6
7
+
5
8
  ## 1.9.4
6
9
  - Cucumber : disable Zonebie
7
10
 
@@ -1,6 +1,10 @@
1
1
  module Agilibox::RoutesHelper
2
2
  def engine_polymorphic_path(obj, opts = {})
3
- engine = obj.class.parents[-2]
3
+ if Rails::VERSION::STRING >= "6.0.0"
4
+ engine = obj.class.module_parents[-2]
5
+ else
6
+ engine = obj.class.parents[-2]
7
+ end
4
8
 
5
9
  if engine.nil?
6
10
  routes = main_app
@@ -38,7 +38,7 @@ module Agilibox::SortingHelper
38
38
 
39
39
  if sort_param.present?
40
40
  if sort_param.start_with?("-")
41
- column = sort_param[1..-1].to_sym
41
+ column = sort_param[1..].to_sym
42
42
  direction = :desc
43
43
  else
44
44
  column = sort_param.to_sym
@@ -1,6 +1,6 @@
1
1
  module Agilibox::ActiveModelCustomErrorMessages
2
2
  def full_message(attribute, message)
3
- return message[1..-1] if message[0] == "^"
3
+ return message[1..] if message[0] == "^"
4
4
  super(attribute, message)
5
5
  end
6
6
  end
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.9.4"
2
+ VERSION = "1.9.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: agilibox
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.4
4
+ version: 1.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - agilidée
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-27 00:00:00.000000000 Z
11
+ date: 2020-06-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n