bmc 1.4.0 → 1.4.1

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: 9fd16af5d254b75668c6cf72c45955014c4ae316bbf8bfbe0eb551878b3d120e
4
- data.tar.gz: 749195388d1b99320fc8f121ec7e354ae9fe4ececb208f78b8887af8b292a9ad
3
+ metadata.gz: 846d488995d4c44a1f71312c3ac0ebed15efe997004770d590830e49ebf35cb3
4
+ data.tar.gz: 206d59a1c0dff762ff13e2805f3f3d717ef79e88dfd0a73d31942ccca0c8b1b6
5
5
  SHA512:
6
- metadata.gz: e34b1f01c27dcc22543c98f3933328c94cbbeab6d70f01a91b765bcdc52732f6f06d53861a0c6148da108f3171279cb7c50ddb8aac57425ec24be4253d4a3328
7
- data.tar.gz: 395d06ebd7a05f5d1fcbc7cf26c2c6b2432f2c285c569b787e7991cd2a9bb6b473f5e7d2e17a57586f5e66693c6265954b40e14cfe2ae60641827f52f99fd716
6
+ metadata.gz: 621ce452a89f486a4ce2ccbfa6936129732c468a327def6230787cbf555068e6baf4df123c9da4d229a84665d6339359d45050f3862e996fbb4f88d4f9f8feb0
7
+ data.tar.gz: 4d850e1dfa923c6c9006fee446fa68796cc9ac84dc71cd42aaf46b2240870257532d7605c4e1cb346eafab98bf2e948939658744d71afd84257ba73990bf3d64
data/CHANGELOG.md CHANGED
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Next version
4
4
 
5
+ ## v1.4.1
6
+ - Configurable bootstrap version
7
+
5
8
  ## v1.4.0
6
9
  - Bug fixes
7
10
  - Ruby min version is 2.7.2
@@ -10,6 +10,12 @@ module BMC::BootstrapHelper
10
10
  :footer => "card-footer",
11
11
  }
12
12
  end
13
+
14
+ attr_writer :bootstrap_version
15
+
16
+ def bootstrap_version
17
+ @bootstrap_version ||= Bootstrap::VERSION[0]
18
+ end
13
19
  end
14
20
 
15
21
  def bs_progress_bar(percentage)
@@ -1,6 +1,10 @@
1
1
  class BMC::MiniModelSerializer::Serialize
2
2
  attr_reader :object, :options
3
3
 
4
+ def self.call(...)
5
+ new(...).call
6
+ end
7
+
4
8
  def initialize(object, options = {})
5
9
  @object = object
6
10
  @options = options
@@ -18,10 +22,6 @@ class BMC::MiniModelSerializer::Serialize
18
22
  end
19
23
  end
20
24
 
21
- def self.call(...)
22
- new(...).call
23
- end
24
-
25
25
  private
26
26
 
27
27
  def serialize(object)
@@ -3,6 +3,10 @@ class BMC::Sorter
3
3
 
4
4
  attr_reader :collection, :sort_param, :column, :direction
5
5
 
6
+ def self.call(...)
7
+ new(...).call
8
+ end
9
+
6
10
  def initialize(collection, sort_param = nil)
7
11
  @collection = collection
8
12
  @sort_param = sort_param
@@ -20,10 +24,6 @@ class BMC::Sorter
20
24
  collection.reorder(order)
21
25
  end
22
26
 
23
- def self.call(...)
24
- new(...).call
25
- end
26
-
27
27
  private
28
28
 
29
29
  def inverted_direction
@@ -1 +1 @@
1
- = render "bmc/search/form_bs#{Bootstrap::VERSION[0]}", action: action
1
+ = render "bmc/search/form_bs#{BMC::BootstrapHelper.bootstrap_version}", action: action
data/lib/bmc/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module BMC
2
- VERSION = "1.4.0"
2
+ VERSION = "1.4.1"
3
3
  end
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.4.0
4
+ version: 1.4.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: 2022-11-02 00:00:00.000000000 Z
11
+ date: 2023-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails-i18n
@@ -230,7 +230,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
230
230
  - !ruby/object:Gem::Version
231
231
  version: '0'
232
232
  requirements: []
233
- rubygems_version: 3.3.7
233
+ rubygems_version: 3.4.10
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: BMC