eac_rails_utils 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/helpers/eac_rails_utils/formatter_helper.rb +6 -2
- data/lib/eac_rails_utils/version.rb +1 -1
- metadata +28 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5576c6d46318719526c32fc853b068be7248a7ca1988fb0c85f7e2347218608c
|
4
|
+
data.tar.gz: 879f0c15bf1340143ae1a98466bad409525a303615524e969b8c3fee294c449e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90ce76166280dca11d9dd0edde3f06c6e9da6785db2b878c5085958d7531a46dcb6b7afcd74d2b6beec0adf26f627b7978ab689952aa158df4b72bc07910f4ab
|
7
|
+
data.tar.gz: af578210bee3736e0b1f0048081b7405035a91d275c2ed6751718502ea34b29aaf067f6d0a51f5d1bdc1dec80acd382c685abfcaa987a3a0501b1120b4db55c5
|
@@ -1,7 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
module EacRailsUtils
|
3
3
|
module FormatterHelper
|
4
|
-
|
4
|
+
extend ::ActiveSupport::Concern
|
5
|
+
|
6
|
+
included do
|
7
|
+
include ActionView::Helpers::NumberHelper
|
8
|
+
end
|
5
9
|
|
6
10
|
def value_or_sign(value, sign = '-', &block)
|
7
11
|
return sign if value.blank?
|
@@ -19,7 +23,7 @@ module EacRailsUtils
|
|
19
23
|
)
|
20
24
|
end
|
21
25
|
|
22
|
-
def
|
26
|
+
def eac_number_to_percentage(float_value)
|
23
27
|
number_to_percentage(float_value * 100, precision: 0)
|
24
28
|
end
|
25
29
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: eac_rails_utils
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- E.A.C.
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-12-
|
11
|
+
date: 2019-12-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel-associations
|
@@ -245,38 +245,38 @@ signing_key:
|
|
245
245
|
specification_version: 4
|
246
246
|
summary: Código reutilizável para as aplicações Rails da E.A.C..
|
247
247
|
test_files:
|
248
|
-
- test/
|
249
|
-
- test/
|
250
|
-
- test/
|
251
|
-
- test/lib/eac/listable_test.rb
|
252
|
-
- test/lib/eac/data_table_test_helper.rb
|
253
|
-
- test/lib/eac/cpf_validator_test.rb
|
254
|
-
- test/lib/eac/model_test.rb
|
255
|
-
- test/lib/eac/common_form_helper_test.rb
|
256
|
-
- test/lib/eac/source_target_fixtures_test_files/a.target.yaml
|
257
|
-
- test/lib/eac/source_target_fixtures_test_files/b.source.html
|
258
|
-
- test/lib/eac/source_target_fixtures_test_files/c.target.yaml
|
259
|
-
- test/lib/eac/source_target_fixtures_test_files/a.source.html
|
260
|
-
- test/lib/eac/parsers/files_test_test.rb
|
261
|
-
- test/lib/eac/parsers/ok_test_files/a.target.yaml
|
262
|
-
- test/lib/eac/parsers/ok_test_files/b.source.yaml
|
263
|
-
- test/lib/eac/parsers/ok_test_files/b.target.yaml
|
264
|
-
- test/lib/eac/parsers/ok_test_files/a.source.yaml
|
265
|
-
- test/dummy/config/routes.rb
|
248
|
+
- test/dummy/Rakefile
|
249
|
+
- test/dummy/config.ru
|
250
|
+
- test/dummy/config/boot.rb
|
266
251
|
- test/dummy/config/database.yml
|
267
252
|
- test/dummy/config/secrets.yml
|
268
253
|
- test/dummy/config/locales/pt-BR.yml
|
269
|
-
- test/dummy/config/environment.rb
|
270
|
-
- test/dummy/config/boot.rb
|
271
254
|
- test/dummy/config/application.rb
|
272
255
|
- test/dummy/config/environments/test.rb
|
273
|
-
- test/dummy/
|
274
|
-
- test/dummy/config.
|
275
|
-
- test/dummy/app/models/user.rb
|
276
|
-
- test/dummy/app/models/job.rb
|
256
|
+
- test/dummy/config/environment.rb
|
257
|
+
- test/dummy/config/routes.rb
|
277
258
|
- test/dummy/db/schema.rb
|
278
|
-
- test/dummy/db/migrate/20160415125333_create_users.rb
|
279
259
|
- test/dummy/db/migrate/20160415143123_create_jobs.rb
|
280
260
|
- test/dummy/db/migrate/20160415143229_add_job_to_users.rb
|
281
|
-
- test/
|
261
|
+
- test/dummy/db/migrate/20160415125333_create_users.rb
|
262
|
+
- test/dummy/app/models/job.rb
|
263
|
+
- test/dummy/app/models/user.rb
|
282
264
|
- test/test_helper.rb
|
265
|
+
- test/app/helpers/eac_rails_utils/formatter_helper_test.rb
|
266
|
+
- test/lib/eac_rails_utils/patches/model_attribute_required_test.rb
|
267
|
+
- test/lib/eac_rails_utils/tableless_model_test.rb
|
268
|
+
- test/lib/eac/common_form_helper_test.rb
|
269
|
+
- test/lib/eac/source_target_fixtures_test.rb
|
270
|
+
- test/lib/eac/parsers/files_test_test.rb
|
271
|
+
- test/lib/eac/parsers/ok_test_files/a.source.yaml
|
272
|
+
- test/lib/eac/parsers/ok_test_files/a.target.yaml
|
273
|
+
- test/lib/eac/parsers/ok_test_files/b.source.yaml
|
274
|
+
- test/lib/eac/parsers/ok_test_files/b.target.yaml
|
275
|
+
- test/lib/eac/cpf_validator_test.rb
|
276
|
+
- test/lib/eac/data_table_test_helper.rb
|
277
|
+
- test/lib/eac/source_target_fixtures_test_files/c.target.yaml
|
278
|
+
- test/lib/eac/source_target_fixtures_test_files/b.source.html
|
279
|
+
- test/lib/eac/source_target_fixtures_test_files/a.target.yaml
|
280
|
+
- test/lib/eac/source_target_fixtures_test_files/a.source.html
|
281
|
+
- test/lib/eac/listable_test.rb
|
282
|
+
- test/lib/eac/model_test.rb
|