effective_bootstrap 1.19.4 → 1.19.6

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: d38e3aeed6ac436788cde46ed41d2526d0965fb8c07c91671bfa2d348d66d72e
4
- data.tar.gz: 3dc6dab7793b5979a2da94f373b861e381bec4f43af7ae9d0bd9c207446b289b
3
+ metadata.gz: aa6057a6127cec223adc567fdb78fd6111e4eb8201a4a7ffc3930107cbce28bb
4
+ data.tar.gz: 5b534337c4af43b3ffb40a8154e39882708b7ec9321710b5ba4d5fdb4ebc174f
5
5
  SHA512:
6
- metadata.gz: a884258ed006d5282fd2e37509232e203fbaffc5357a3aa94deeb8eef360edff0b9a2b0223756c540019e5b08d4db0e0c23b906f2a8048d6b00fd559ae01bba1
7
- data.tar.gz: eaf25457e6a73a2c664286c074cacf32e99010ebb591c1573a45d11cf9853c36b1e035587a6f26b9d985ac05d6634deb078b273ee88eb826c72522c5574a541a
6
+ metadata.gz: 6b0053f1dc2ef3c7772c1787433ab8d331243e3c6848f6b3b398d0ddb40275fa0ecc799af02d80e4c380e9d778b9b02684dc5d4bdae5843990d1b33bb3f863a8
7
+ data.tar.gz: '0674538a6e66446e0d93a8405f0fb97b2fd0b57015a7a20317cd1abe902500b2e52b2f8919087807720ad21e9b129345661315af168e60d6193746f15c07d2fd'
@@ -21,6 +21,7 @@ module Effective
21
21
  class: 'form-control form-control-file btn-outline-secondary',
22
22
  multiple: multiple?,
23
23
  direct_upload: true,
24
+ 'data-direct-upload-url': @template.main_app.rails_direct_uploads_url,
24
25
  'data-progress-template': progress_template,
25
26
  'data-click-submit': (true if click_submit?),
26
27
  }.compact
@@ -5,9 +5,10 @@ module Effective
5
5
  class PercentField < Effective::TableRow
6
6
 
7
7
  def content
8
- template.number_to_percentage(value) if value.present?
8
+ return unless value.present?
9
+ str = value.kind_of?(Integer) ? ('%.3f' % (value / 1000.0)) : value.to_s
10
+ str.gsub('.000', '') + '%'
9
11
  end
10
-
11
12
  end
12
13
  end
13
14
  end
@@ -1,3 +1,3 @@
1
1
  module EffectiveBootstrap
2
- VERSION = '1.19.4'.freeze
2
+ VERSION = '1.19.6'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: effective_bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.19.4
4
+ version: 1.19.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Code and Effect
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-09-18 00:00:00.000000000 Z
11
+ date: 2024-10-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails