agilibox 1.9.9 → 1.9.10

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: '01460916eeacaa37c86a5d34195d8020658a4de645d0e5e6eb231d52eb884880'
4
- data.tar.gz: 87920f596a3e90b353e7413f1bbf3c90ad44ed12ccaa7fb1b6ed515d03b17c8b
3
+ metadata.gz: ef22857fe40bc1f1f2784bc4ee30f004dfbef4813ca38901b77ec28d27565f45
4
+ data.tar.gz: b107e6d93659b93399d5cedaafad060ee7acdecfc342397d2aac796ba61050a0
5
5
  SHA512:
6
- metadata.gz: 73de451eed71b4ef4c7f2497125d8bc73fac702210814b5769915a86c80262a85a0f32e4b81e74c7ddd6526c300ff283325a2cf8a209fb3f37916e4e9b514f7e
7
- data.tar.gz: f16fbc412ce7ab063bb58addbb642a9f03dbe4f810c2b7f6032b796f3d366cb935070428214281ea4c7d8a007adc0108ea47ea317a829ea1dcedb7ae2ba38993
6
+ metadata.gz: 1705f009f619fd427478ef8cc8f875229dcb8648363c085e3b43594f553fcb60a753974ca6e6cf7125fc11401ece9d3ac6dc7f8025b4c3af3fe2405483c0d507
7
+ data.tar.gz: 6dda6ceaa7aac2a49e8388faeaac9b2bb96a4de48359aa2f7e42d4d1d8a60d6cbb69e8eb299453b0a1d755402475363a4a760a4989a772981cc32cc62d9cae7b
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v1.9.10
6
+ - Fix some Ruby 2.7 warnings
7
+
5
8
  ## v1.9.9
6
9
  - Add error to ErrorsMiddleware
7
10
 
@@ -7,7 +7,7 @@ module Agilibox::FiltersHelper
7
7
  text = options.delete(:text) || t("actions.filter")
8
8
  icon = options.delete(:icon) || :filter
9
9
 
10
- tag.button(options) do
10
+ tag.button(**options) do
11
11
  icon(icon) + " " + text
12
12
  end
13
13
  end
@@ -20,7 +20,7 @@ module Agilibox::FiltersHelper
20
20
  text = options.delete(:text) || t("actions.reset")
21
21
  icon = options.delete(:icon) || :undo
22
22
 
23
- tag.button(options) do
23
+ tag.button(**options) do
24
24
  icon(icon) + " " + text
25
25
  end
26
26
  end
@@ -15,7 +15,7 @@ module Agilibox::FontAwesomeHelper
15
15
 
16
16
  attributes = options.merge(class: css_classes.sort.join(" ")).sort.to_h
17
17
 
18
- tag.span(attributes) {}
18
+ tag.span(**attributes) {}
19
19
  end
20
20
 
21
21
  class << self
@@ -1,7 +1,7 @@
1
1
  module Agilibox::PaginationHelper
2
2
  def paginate(objects, options = {})
3
3
  options = {theme: "twitter-bootstrap-3"}.merge(options)
4
- super(objects, options).gsub(/>(\s+)</, "><").html_safe
4
+ super(objects, **options).gsub(/>(\s+)</, "><").html_safe
5
5
  end
6
6
 
7
7
  def pagination_infos(collection)
@@ -47,8 +47,8 @@ module Agilibox::TextHelper
47
47
  number_with_precision(n, opts).tr(" ", nbsp)
48
48
  end
49
49
 
50
- def date(d, *args)
51
- I18n.l(d, *args) unless d.nil?
50
+ def date(d, **args)
51
+ I18n.l(d, **args) unless d.nil?
52
52
  end
53
53
 
54
54
  def boolean_icon(bool)
@@ -1,8 +1,14 @@
1
1
  class Agilibox::Service
2
2
  include Agilibox::InitializeWith
3
3
 
4
- def self.call(*args)
5
- new(*args).call
4
+ if RUBY_VERSION >= "2.7.0"
5
+ def self.call(...)
6
+ new(...).call
7
+ end
8
+ else
9
+ def self.call(*args)
10
+ new(*args).call
11
+ end
6
12
  end
7
13
 
8
14
  def call(*)
@@ -1,3 +1,3 @@
1
1
  module Agilibox
2
- VERSION = "1.9.9"
2
+ VERSION = "1.9.10"
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.9
4
+ version: 1.9.10
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-10-22 00:00:00.000000000 Z
11
+ date: 2020-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n
@@ -243,7 +243,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
243
243
  - !ruby/object:Gem::Version
244
244
  version: '0'
245
245
  requirements: []
246
- rubygems_version: 3.0.3
246
+ rubygems_version: 3.1.4
247
247
  signing_key:
248
248
  specification_version: 4
249
249
  summary: Agilibox