bootstrap_validator_rails 0.1.1 → 0.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b1c92a9dbdbf335080ef892ae025bdb62d05d6a9
|
|
4
|
+
data.tar.gz: f000b7e39e12ed4d21c22c72e48e9c344de62d75
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a5b6cdd989549c13ed40744ccbb8d84cc60ea5c87c60cbeb65d1eacd832dc2825c55e74fbd3951fe178922f4f29f7c2875888dfd1e5ca23badff78f452a850ce
|
|
7
|
+
data.tar.gz: 82e96f82f31d17c0c59b8bc1d27dd5c14d51b23a4b44f76e3a81c271fcc551de897d9bcd0576d35717612ed092b3e4580558280fb296846b86503305d998f1ee
|
|
@@ -7,8 +7,8 @@ module BootstrapValidatorRails
|
|
|
7
7
|
|
|
8
8
|
def generate_data
|
|
9
9
|
data = {
|
|
10
|
-
:
|
|
11
|
-
:
|
|
10
|
+
:bv_numeric => 'true',
|
|
11
|
+
:bv_numeric_separator => '.',
|
|
12
12
|
}
|
|
13
13
|
|
|
14
14
|
data.merge(generate_options)
|
|
@@ -23,22 +23,30 @@ module BootstrapValidatorRails
|
|
|
23
23
|
|
|
24
24
|
data = {}
|
|
25
25
|
|
|
26
|
+
if options[:only_integer].present?
|
|
27
|
+
data[:bv_integer] = 'true'
|
|
28
|
+
end
|
|
29
|
+
|
|
26
30
|
if options[:greater_than].present?
|
|
31
|
+
data[:bv_greaterthan] = 'true'
|
|
27
32
|
data[:bv_greaterthan_inclusive] = 'false'
|
|
28
33
|
data[:bv_greaterthan_value] = options[:greater_than]
|
|
29
34
|
end
|
|
30
35
|
|
|
31
36
|
if options[:greater_than_or_equal_to].present?
|
|
37
|
+
data[:bv_greaterthan] = 'true'
|
|
32
38
|
data[:bv_greaterthan_inclusive] = 'true'
|
|
33
39
|
data[:bv_greaterthan_value] = options[:greater_than_or_equal_to]
|
|
34
40
|
end
|
|
35
41
|
|
|
36
42
|
if options[:less_than].present?
|
|
43
|
+
data[:bv_lessthan] = 'true'
|
|
37
44
|
data[:bv_lessthan_inclusive] = 'false'
|
|
38
45
|
data[:bv_lessthan_value] = options[:less_than]
|
|
39
46
|
end
|
|
40
47
|
|
|
41
48
|
if options[:less_than_or_equal_to].present?
|
|
49
|
+
data[:bv_lessthan] = 'true'
|
|
42
50
|
data[:bv_lessthan_inclusive] = 'true'
|
|
43
51
|
data[:bv_lessthan_value] = options[:less_than_or_equal_to]
|
|
44
52
|
end
|
data/test/dummy/log/test.log
CHANGED
|
@@ -1462,5 +1462,29 @@ BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
|
1462
1462
|
[1m[35m (0.1ms)[0m begin transaction
|
|
1463
1463
|
-------------------------------------------------------------
|
|
1464
1464
|
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
1465
|
+
-------------------------------------------------------------
|
|
1466
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1467
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1468
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1469
|
+
-------------------------------------------------------------
|
|
1470
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
1471
|
+
-------------------------------------------------------------
|
|
1472
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1473
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1474
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1475
|
+
-------------------------------------------------------------
|
|
1476
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
1477
|
+
-------------------------------------------------------------
|
|
1478
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1479
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1480
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1481
|
+
-------------------------------------------------------------
|
|
1482
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
1483
|
+
-------------------------------------------------------------
|
|
1484
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
|
1485
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
|
1486
|
+
[1m[35m (0.1ms)[0m begin transaction
|
|
1487
|
+
-------------------------------------------------------------
|
|
1488
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
1465
1489
|
-------------------------------------------------------------
|
|
1466
1490
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|