bootstrap-guardsjs-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,19 @@
1
+ //= require guards
2
+
3
+ ;(function($) {
4
+ var originalDefaultTarget = $.guards.defaults.target;
5
+
6
+ // Ensure input-appended inputs have errors placed in the proper
7
+ // location.
8
+ $.guards.defaults.target = function(errorElement) {
9
+ if (!$(this).parent().is(".input-append")) {
10
+ return originalDefaultTarget.call(this, errorElement);
11
+ }
12
+
13
+ errorElement.insertAfter($(this).parent());
14
+ return false;
15
+ };
16
+
17
+ // Make sure the error message class is the correct class.
18
+ $.guards.defaults.messageClass = "help-inline";
19
+ })(jQuery);
@@ -0,0 +1,8 @@
1
+ require "bootstrap-guardsjs-rails/version"
2
+
3
+ module BootstrapGuardsJS
4
+ module Rails
5
+ class Engine < ::Rails::Engine
6
+ end
7
+ end
8
+ end
@@ -0,0 +1,5 @@
1
+ module BootstrapGuardsJS
2
+ module Rails
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,91 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bootstrap-guardsjs-rails
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Mike Virata-Stone
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-09-18 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: railties
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '3.0'
22
+ - - <
23
+ - !ruby/object:Gem::Version
24
+ version: '5.0'
25
+ type: :runtime
26
+ prerelease: false
27
+ version_requirements: !ruby/object:Gem::Requirement
28
+ none: false
29
+ requirements:
30
+ - - ! '>='
31
+ - !ruby/object:Gem::Version
32
+ version: '3.0'
33
+ - - <
34
+ - !ruby/object:Gem::Version
35
+ version: '5.0'
36
+ - !ruby/object:Gem::Dependency
37
+ name: guardsjs-rails
38
+ requirement: !ruby/object:Gem::Requirement
39
+ none: false
40
+ requirements:
41
+ - - ! '>='
42
+ - !ruby/object:Gem::Version
43
+ version: 1.2.0
44
+ type: :runtime
45
+ prerelease: false
46
+ version_requirements: !ruby/object:Gem::Requirement
47
+ none: false
48
+ requirements:
49
+ - - ! '>='
50
+ - !ruby/object:Gem::Version
51
+ version: 1.2.0
52
+ description: This gem depends on the guardsjs-rails gem and adds Bootstrap functionality
53
+ to make guards.js work well with Bootstrap.
54
+ email:
55
+ - mike@virata-stone.com
56
+ executables: []
57
+ extensions: []
58
+ extra_rdoc_files: []
59
+ files:
60
+ - lib/bootstrap-guardsjs-rails.rb
61
+ - lib/bootstrap-guardsjs-rails/version.rb
62
+ - app/assets/javascripts/bootstrap-guards.js
63
+ homepage: http://guardsjs.com/
64
+ licenses:
65
+ - MIT
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ none: false
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ segments:
77
+ - 0
78
+ hash: 1268666820967402530
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
80
+ none: false
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '0'
85
+ requirements: []
86
+ rubyforge_project:
87
+ rubygems_version: 1.8.25
88
+ signing_key:
89
+ specification_version: 3
90
+ summary: Rails asset gem to integrate guards.js with Bootstrap.
91
+ test_files: []