bootstrap_validator_rails 0.5.1 → 0.6.0
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 +4 -4
- data/app/assets/javascripts/bootstrapValidatorRails.js +9 -0
- data/lib/bootstrap_validator_rails/helper.rb +24 -0
- data/lib/bootstrap_validator_rails/validators/format_validator.rb +23 -0
- data/lib/bootstrap_validator_rails/validators/generator.rb +7 -1
- data/lib/bootstrap_validator_rails/validators/length_validator.rb +24 -0
- data/lib/bootstrap_validator_rails/validators/numericality_validator.rb +51 -0
- data/lib/bootstrap_validator_rails/validators/presence_validator.rb +7 -0
- data/lib/bootstrap_validator_rails/validators/validator.rb +8 -0
- data/lib/bootstrap_validator_rails/version.rb +1 -1
- data/test/dummy/log/test.log +218 -0
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d5351ac2346898b17cf3897340b29c99bb05a11f
|
4
|
+
data.tar.gz: f9e351fd754463402e123fce7c491edcd36cff58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7ebfd07c88ce626e04fa56bac64567ef3a888ea50bfddb79d0c408a0d1b2a1010318fbbb2fdee26f7b8f05d0cbf8992dcce627ea7bc1b430cd1e0716288e6dc2
|
7
|
+
data.tar.gz: d1ac7e64f46f0e80998791dbcdbaaa51a9df3ea0a05c5f680863aac0e707ed6386365d44841a53de0d155a7c6df5ed78422e19cd5ef40f270974df1e0113bafc
|
@@ -4,5 +4,29 @@ module BootstrapValidatorRails
|
|
4
4
|
options.reverse_merge!({builder: BootstrapValidatorRails::FormBuilder})
|
5
5
|
bootstrap_form_for(object, options, &block)
|
6
6
|
end
|
7
|
+
|
8
|
+
def bv_options_for(object)
|
9
|
+
validators = object.class.validators
|
10
|
+
bv_options = {
|
11
|
+
fields: {}
|
12
|
+
}
|
13
|
+
validators.each do |validator|
|
14
|
+
methods = validator.attributes
|
15
|
+
methods.each do |method|
|
16
|
+
@generator = BootstrapValidatorRails::Validators::Generator.new(object, validator, method)
|
17
|
+
json = @generator.generate_json
|
18
|
+
bv_options[:fields].deep_merge! json
|
19
|
+
end
|
20
|
+
end
|
21
|
+
bv_options.to_json.html_safe
|
22
|
+
end
|
23
|
+
|
24
|
+
def bv_javascript_for(object)
|
25
|
+
javascript_tag("
|
26
|
+
$(document).ready(function() {
|
27
|
+
bv_form('.bv_form', #{bv_options_for(object)})
|
28
|
+
});
|
29
|
+
")
|
30
|
+
end
|
7
31
|
end
|
8
32
|
end
|
@@ -29,6 +29,29 @@ module BootstrapValidatorRails
|
|
29
29
|
|
30
30
|
data
|
31
31
|
end
|
32
|
+
|
33
|
+
def generate_object
|
34
|
+
data = {}
|
35
|
+
return data if unsupported?
|
36
|
+
|
37
|
+
options = validator_options
|
38
|
+
|
39
|
+
regex = options[:with].to_javascript
|
40
|
+
regex.sub!('/^', '^')
|
41
|
+
regex.sub!('$/', '$')
|
42
|
+
|
43
|
+
data["regexp"] = {}
|
44
|
+
|
45
|
+
if options[:with]
|
46
|
+
data["regexp"]["regexp"] = regex
|
47
|
+
end
|
48
|
+
|
49
|
+
if options[:message]
|
50
|
+
data["regexp"]["message"] = options[:message]
|
51
|
+
end
|
52
|
+
|
53
|
+
{method_key => {validators: data}}
|
54
|
+
end
|
32
55
|
end
|
33
56
|
end
|
34
57
|
end
|
@@ -4,7 +4,6 @@ module BootstrapValidatorRails
|
|
4
4
|
def initialize(record, validator, method)
|
5
5
|
@record, @validator, @method = record, validator, method
|
6
6
|
@kind = validator.kind
|
7
|
-
p @kind
|
8
7
|
end
|
9
8
|
|
10
9
|
def generate_data(options = {})
|
@@ -13,6 +12,13 @@ module BootstrapValidatorRails
|
|
13
12
|
bootstrap_validator = klass.new(@record, @method, @validator)
|
14
13
|
bootstrap_validator.generate_data
|
15
14
|
end
|
15
|
+
|
16
|
+
def generate_json
|
17
|
+
return {} unless VALIDATOR_SUPPORTED.include?(@kind)
|
18
|
+
klass = "BootstrapValidatorRails::Validators::#{@kind.to_s.capitalize}".constantize
|
19
|
+
bootstrap_validator = klass.new(@record, @method, @validator)
|
20
|
+
bootstrap_validator.generate_object
|
21
|
+
end
|
16
22
|
end
|
17
23
|
end
|
18
24
|
end
|
@@ -25,6 +25,30 @@ module BootstrapValidatorRails
|
|
25
25
|
|
26
26
|
data
|
27
27
|
end
|
28
|
+
|
29
|
+
def generate_object
|
30
|
+
options = @validator.options
|
31
|
+
|
32
|
+
data = {}
|
33
|
+
|
34
|
+
data["stringLength"] = {}
|
35
|
+
|
36
|
+
if options[:minimum]
|
37
|
+
data["stringLength"]["min"] = options[:minimum]
|
38
|
+
end
|
39
|
+
|
40
|
+
if options[:maximum]
|
41
|
+
data["stringLength"]["max"] = options[:maximum]
|
42
|
+
end
|
43
|
+
|
44
|
+
if options[:is]
|
45
|
+
data["stringLength"]["min"] = options[:is]
|
46
|
+
data["stringLength"]["max"] = options[:is]
|
47
|
+
data["stringLength"]['message'] = @record.errors.generate_message(@method)
|
48
|
+
end
|
49
|
+
|
50
|
+
{method_key => {validators: data}}
|
51
|
+
end
|
28
52
|
end
|
29
53
|
end
|
30
54
|
end
|
@@ -17,6 +17,57 @@ module BootstrapValidatorRails
|
|
17
17
|
@record.errors.generate_message(@method, :presence, {default: 'should be a number'})
|
18
18
|
end
|
19
19
|
|
20
|
+
def generate_object
|
21
|
+
options = @validator.options
|
22
|
+
|
23
|
+
data = {}
|
24
|
+
|
25
|
+
if options[:only_integer].present?
|
26
|
+
data["integer"] = {}
|
27
|
+
data["integer"][:message] = 'should be a number'
|
28
|
+
end
|
29
|
+
|
30
|
+
if options[:greater_than].present?
|
31
|
+
data["greaterThan"] = {}
|
32
|
+
data["greaterThan"]["inclusive"] = false
|
33
|
+
data["greaterThan"]["value"] = options[:greater_than]
|
34
|
+
end
|
35
|
+
|
36
|
+
if options[:greater_than_or_equal_to].present?
|
37
|
+
data["greaterThan"] = {}
|
38
|
+
data["greaterThan"]["inclusive"] = true
|
39
|
+
data["greaterThan"]["value"] = options[:greater_than_or_equal_to]
|
40
|
+
end
|
41
|
+
|
42
|
+
if options[:less_than].present?
|
43
|
+
data["lessThan"] = {}
|
44
|
+
data["lessThan"]["inclusive"] = false
|
45
|
+
data["lessThan"]["value"] = options[:less_than]
|
46
|
+
end
|
47
|
+
|
48
|
+
if options[:less_than_or_equal_to].present?
|
49
|
+
data["lessThan"] = {}
|
50
|
+
data["lessThan"]["inclusive"] = true
|
51
|
+
data["lessThan"]["value"] = options[:less_than_or_equal_to]
|
52
|
+
end
|
53
|
+
|
54
|
+
if options[:odd].present?
|
55
|
+
data["step"] = {}
|
56
|
+
data["step"]["message"] = 'should be odd'
|
57
|
+
data["step"]["base"] = 1
|
58
|
+
data["step"]["step"] = 2
|
59
|
+
end
|
60
|
+
|
61
|
+
if options[:even].present?
|
62
|
+
data["step"] = {}
|
63
|
+
data["step"]["message"] = 'should be odd'
|
64
|
+
data["step"]["base"] = 0
|
65
|
+
data["step"]["step"] = 2
|
66
|
+
end
|
67
|
+
|
68
|
+
{method_key => {validators: data}}
|
69
|
+
end
|
70
|
+
|
20
71
|
def generate_options
|
21
72
|
options = @validator.options
|
22
73
|
|
@@ -13,6 +13,13 @@ module BootstrapValidatorRails
|
|
13
13
|
def generate_message
|
14
14
|
@record.errors.generate_message(@method, :blank, default: "can't be blank")
|
15
15
|
end
|
16
|
+
|
17
|
+
def generate_object(options = {})
|
18
|
+
data = {}
|
19
|
+
data["notEmpty"] = {}
|
20
|
+
data["notEmpty"]["message"] = generate_message
|
21
|
+
{method_key => {validators: data}}
|
22
|
+
end
|
16
23
|
end
|
17
24
|
end
|
18
25
|
end
|
@@ -10,6 +10,10 @@ module BootstrapValidatorRails
|
|
10
10
|
options || {}
|
11
11
|
end
|
12
12
|
|
13
|
+
def generate_object(options = {})
|
14
|
+
options
|
15
|
+
end
|
16
|
+
|
13
17
|
def unsupported?
|
14
18
|
options = validator_options
|
15
19
|
unsupported_options.any? { |opt| options.has_key? opt }
|
@@ -19,6 +23,10 @@ module BootstrapValidatorRails
|
|
19
23
|
def unsupported_options
|
20
24
|
BootstrapValidatorRails::CONFIGURATION[:unsupported_options]
|
21
25
|
end
|
26
|
+
|
27
|
+
def method_key
|
28
|
+
"#{@record.class.to_s.downcase.to_sym}[#{@method}]"
|
29
|
+
end
|
22
30
|
end
|
23
31
|
end
|
24
32
|
end
|
data/test/dummy/log/test.log
CHANGED
@@ -2571,3 +2571,221 @@ BootstrapValidatorRailsTest: test_test_will_be_included_later
|
|
2571
2571
|
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2572
2572
|
[1m[35m (0.1ms)[0m begin transaction
|
2573
2573
|
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2574
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2575
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2576
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2577
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2578
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2579
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2580
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2581
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2582
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2583
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2584
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2585
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2586
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2587
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2588
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2589
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2590
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2591
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2592
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2593
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2594
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2595
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2596
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2597
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2598
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2599
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2600
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2601
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2602
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2603
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2604
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2605
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2606
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2607
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2608
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2609
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2610
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2611
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2612
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2613
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2614
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2615
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2616
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2617
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2618
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2619
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2620
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2621
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2622
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2623
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2624
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2625
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2626
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2627
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2628
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2629
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2630
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2631
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2632
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2633
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2634
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2635
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2636
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2637
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2638
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2639
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2640
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2641
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2642
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2643
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2644
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2645
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2646
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2647
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2648
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2649
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2650
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2651
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2652
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2653
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2654
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2655
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2656
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2657
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2658
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2659
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2660
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2661
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2662
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2663
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2664
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2665
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2666
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2667
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2668
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2669
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2670
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2671
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2672
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2673
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2674
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2675
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2676
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2677
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2678
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2679
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2680
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2681
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2682
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2683
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2684
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2685
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2686
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2687
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2688
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2689
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2690
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2691
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2692
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2693
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2694
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.4ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2695
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2696
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2697
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2698
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2699
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2700
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2701
|
+
[1m[35m (0.3ms)[0m begin transaction
|
2702
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2703
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2704
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2705
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2706
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2707
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2708
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2709
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2710
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2711
|
+
-------------------------------------------------------------
|
2712
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
2713
|
+
-------------------------------------------------------------
|
2714
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2715
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2716
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2717
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2718
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2719
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2720
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2721
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2722
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2723
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2724
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.6ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2725
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2726
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2727
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2728
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2729
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2730
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2731
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2732
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2733
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2734
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2735
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2736
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2737
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2738
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.2ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2739
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2740
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2741
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2742
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2743
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2744
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2745
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2746
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2747
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2748
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2749
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2750
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2751
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2752
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2753
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2754
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2755
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2756
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2757
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2758
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2759
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2760
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2761
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2762
|
+
-------------------------------------------------------------
|
2763
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
2764
|
+
-------------------------------------------------------------
|
2765
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2766
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2767
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2768
|
+
-------------------------------------------------------------
|
2769
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
2770
|
+
-------------------------------------------------------------
|
2771
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2772
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2773
|
+
[1m[35m (0.2ms)[0m begin transaction
|
2774
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2775
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2776
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2777
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2778
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2779
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2780
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2781
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
2782
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2783
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2784
|
+
[1m[35m (0.0ms)[0m begin transaction
|
2785
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
2786
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
2787
|
+
[1m[35m (0.1ms)[0m begin transaction
|
2788
|
+
-------------------------------------------------------------
|
2789
|
+
BootstrapValidatorRailsTest: test_test_will_be_included_later
|
2790
|
+
-------------------------------------------------------------
|
2791
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
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.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- huynhquancam
|
@@ -76,6 +76,7 @@ extra_rdoc_files: []
|
|
76
76
|
files:
|
77
77
|
- MIT-LICENSE
|
78
78
|
- Rakefile
|
79
|
+
- app/assets/javascripts/bootstrapValidatorRails.js
|
79
80
|
- lib/bootstrap_validator_rails.rb
|
80
81
|
- lib/bootstrap_validator_rails/configuration.rb
|
81
82
|
- lib/bootstrap_validator_rails/engine.rb
|