bootstrap_validator_rails 0.1.1 → 0.1.2

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
  SHA1:
3
- metadata.gz: f3bcee7c8a61dd91c4e176534d1d3c5d59e2dbad
4
- data.tar.gz: fd9254fc410ec6889354067f548c7192e5fbbdae
3
+ metadata.gz: b1c92a9dbdbf335080ef892ae025bdb62d05d6a9
4
+ data.tar.gz: f000b7e39e12ed4d21c22c72e48e9c344de62d75
5
5
  SHA512:
6
- metadata.gz: 8fa3b849f5aabed276fb214e81b1453a026ab52f1758e39ba3d9004e2bdc64e3366f61f830e9854ab868957519eb97f59290d832c771c9b150d3927fd15b6152
7
- data.tar.gz: a6f054a0355e1123ee92cbb4bd54367025d92230af8556be114ddc05252348284f351e591323c2562bad2e7a5bfd64c74844d067b240a921599b3b6ffa25cb69
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
- :bv_numeric_separator => '',
11
- :bv_numeric_separator_message => generate_message
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
@@ -1,3 +1,3 @@
1
1
  module BootstrapValidatorRails
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
@@ -1462,5 +1462,29 @@ BootstrapValidatorRailsTest: test_test_will_be_included_later
1462
1462
   (0.1ms) begin transaction
1463
1463
  -------------------------------------------------------------
1464
1464
  BootstrapValidatorRailsTest: test_test_will_be_included_later
1465
+ -------------------------------------------------------------
1466
+  (0.1ms) rollback transaction
1467
+ ActiveRecord::SchemaMigration Load (0.5ms) SELECT "schema_migrations".* FROM "schema_migrations"
1468
+  (0.1ms) begin transaction
1469
+ -------------------------------------------------------------
1470
+ BootstrapValidatorRailsTest: test_test_will_be_included_later
1471
+ -------------------------------------------------------------
1472
+  (0.1ms) rollback transaction
1473
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1474
+  (0.1ms) begin transaction
1475
+ -------------------------------------------------------------
1476
+ BootstrapValidatorRailsTest: test_test_will_be_included_later
1477
+ -------------------------------------------------------------
1478
+  (0.1ms) rollback transaction
1479
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1480
+  (0.1ms) begin transaction
1481
+ -------------------------------------------------------------
1482
+ BootstrapValidatorRailsTest: test_test_will_be_included_later
1483
+ -------------------------------------------------------------
1484
+  (0.1ms) rollback transaction
1485
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
1486
+  (0.1ms) begin transaction
1487
+ -------------------------------------------------------------
1488
+ BootstrapValidatorRailsTest: test_test_will_be_included_later
1465
1489
  -------------------------------------------------------------
1466
1490
   (0.1ms) rollback transaction
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap_validator_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - huynhquancam