bmc 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/app/filters/bmc/filter.rb +3 -2
- data/app/helpers/bmc/button_helper.rb +1 -1
- data/app/sorters/bmc/sorter.rb +5 -4
- data/lib/bmc/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4b45ace9fe342248cb63e77ac701779ed69c5d6bf05ff3f0b0e2b23a7b46665b
|
4
|
+
data.tar.gz: 057b8aacdcd98a348b54276233b0a5ffc353580e79256c4d05c700c402779d55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 222d61f28a75cf0699935d6272599737ac4eb9c984b5f6012c8b174f593c2eae007d91a758d1a33f67f23d2bc8b13ceb9009979e45317d758dbd184600db19ff
|
7
|
+
data.tar.gz: 6f51eeb1722bf8bc536871700f4e633157e29f100f2677de68fc174cd93e30508511e2087b0aad626de55c7f77789d8d648bf3a982a90ec8a517b426ea763b46
|
data/CHANGELOG.md
CHANGED
data/app/filters/bmc/filter.rb
CHANGED
data/app/sorters/bmc/sorter.rb
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
class BMC::Sorter
|
2
2
|
include BMC::SortingHelper
|
3
3
|
|
4
|
-
attr_reader :collection, :sort_param, :column, :direction
|
4
|
+
attr_reader :collection, :sort_param, :options, :column, :direction
|
5
5
|
|
6
6
|
def self.call(...)
|
7
7
|
new(...).call
|
8
8
|
end
|
9
9
|
|
10
|
-
def initialize(collection, sort_param =
|
11
|
-
@collection
|
12
|
-
@sort_param
|
10
|
+
def initialize(collection, sort_param, options = {})
|
11
|
+
@collection = collection
|
12
|
+
@sort_param = sort_param
|
13
|
+
@options = options
|
13
14
|
@column, @direction = sortable_column_order(sort_param.to_s)
|
14
15
|
end
|
15
16
|
|
data/lib/bmc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bmc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Benoit MARTIN-CHAVE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails-i18n
|