agilibox 1.9.6 → 1.9.11
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +15 -0
- data/app/helpers/agilibox/filters_helper.rb +2 -2
- data/app/helpers/agilibox/font_awesome_helper.rb +1 -1
- data/app/helpers/agilibox/pagination_helper.rb +1 -1
- data/app/helpers/agilibox/text_helper.rb +4 -4
- data/app/serializers/agilibox/serializers/xlsx.rb +2 -1
- data/app/services/agilibox/service.rb +8 -2
- data/lib/agilibox/cucumber_helpers/capybara_selectors.rb +1 -1
- data/lib/agilibox/errors_middleware.rb +1 -0
- data/lib/agilibox/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6f250ec4f6f4ef77fdd8b97e3e3a108af27d14d5bfcf1e0a259ff275da29c79
|
4
|
+
data.tar.gz: 689226f654268890df31149735f9fa74dd6c3ff722dbf9293b1a3969bf951961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3748848e759e9c0a3b9c366112418e8e5d61717a8c3ee6ce8f7b6998d3dcd3c6c1bc5c2a75f23f469ee48b37825824336985175a3c782ec5d12ea0948651610b
|
7
|
+
data.tar.gz: 0b662af2891d5370e167e17561a096f2af1614fa24a1f44f3cbf2167bdfc075a6cb6a02b157b821bac9d9de7ca2de68954eb9f8e58cc3c10c60514b0f6bbae39
|
data/CHANGELOG.md
CHANGED
@@ -2,6 +2,21 @@
|
|
2
2
|
|
3
3
|
## Next version
|
4
4
|
|
5
|
+
## v1.9.11
|
6
|
+
- Fix some Ruby 2.7 warnings
|
7
|
+
|
8
|
+
## v1.9.10
|
9
|
+
- Fix some Ruby 2.7 warnings
|
10
|
+
|
11
|
+
## v1.9.9
|
12
|
+
- Add error to ErrorsMiddleware
|
13
|
+
|
14
|
+
## v1.9.8
|
15
|
+
- Fix `tags` helper
|
16
|
+
|
17
|
+
## v1.9.7
|
18
|
+
- Change XLSX export
|
19
|
+
|
5
20
|
## v1.9.6
|
6
21
|
- Fix info helper with false
|
7
22
|
- Update Rubocop + fix offences
|
@@ -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
|
@@ -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,
|
51
|
-
I18n.l(d,
|
50
|
+
def date(d, **args)
|
51
|
+
I18n.l(d, **args) unless d.nil?
|
52
52
|
end
|
53
53
|
|
54
54
|
def boolean_icon(bool)
|
@@ -138,9 +138,9 @@ module Agilibox::TextHelper
|
|
138
138
|
def tags(object)
|
139
139
|
return "" if object.tag_list.empty?
|
140
140
|
|
141
|
-
object.tag_list.map { |
|
141
|
+
object.tag_list.map { |tag_name|
|
142
142
|
tag.span(class: "tag label label-primary") {
|
143
|
-
"#{icon :tag} #{
|
143
|
+
"#{icon :tag} #{tag_name}".html_safe
|
144
144
|
}
|
145
145
|
}.join(" ").html_safe
|
146
146
|
end
|
@@ -1,6 +1,7 @@
|
|
1
1
|
class Agilibox::Serializers::XLSX < Agilibox::Serializers::Base
|
2
2
|
def render_inline
|
3
|
-
|
3
|
+
headers, *data = formatted_data
|
4
|
+
SpreadsheetArchitect.to_xlsx(headers: headers, data: data, freeze_headers: true)
|
4
5
|
end
|
5
6
|
|
6
7
|
def render_file(file_path)
|
@@ -1,8 +1,14 @@
|
|
1
1
|
class Agilibox::Service
|
2
2
|
include Agilibox::InitializeWith
|
3
3
|
|
4
|
-
|
5
|
-
|
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(*)
|
@@ -2,7 +2,7 @@ Capybara.add_selector(:agilibox_clickable) do
|
|
2
2
|
xpath do |locator, **options|
|
3
3
|
self.class.all
|
4
4
|
.values_at(:link, :button, :label)
|
5
|
-
.map { |selector| instance_exec(locator, options, &selector.xpath) }
|
5
|
+
.map { |selector| instance_exec(locator, **options, &selector.xpath) }
|
6
6
|
.reduce(:union)
|
7
7
|
end
|
8
8
|
end
|
data/lib/agilibox/version.rb
CHANGED
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
|
+
version: 1.9.11
|
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-
|
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.
|
246
|
+
rubygems_version: 3.1.4
|
247
247
|
signing_key:
|
248
248
|
specification_version: 4
|
249
249
|
summary: Agilibox
|