bootstrap-guardsjs-rails 0.2.0 → 0.3.0

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: 4a9c503eff7fe8de74ebf46a87669b4055a303da
4
- data.tar.gz: 07d0119902ccf2e460453540079c9506e67ed8fb
3
+ metadata.gz: e3cdd46734e9b375c91708aa72acda270ca93255
4
+ data.tar.gz: b839165b02181353a12a22b518a20e4216acb3b2
5
5
  SHA512:
6
- metadata.gz: 18aa15e9b9718eebf6cea3442d65dc89a8c2eb9eceea1a745937218511e6da2588249deaecd809dead8291aaa17caee8c2e6d024f577504178d253d01992327b
7
- data.tar.gz: 8e1a311db159033b9fcac5d4231b166ef93bac4b8287229d4a1c654dd07bff7cb1117c82e775f1210b3d28716d523fa25c0e5c36fd5073c74677e67a7c7d9f09
6
+ metadata.gz: d69316e6ec4b937d9ff5728afc077fdf781f39288794f9edab31b480d6cb6aa5e4ac2e7e2709355b7b426204ac908ac60d04ab420143440eda533c2334bd2c62
7
+ data.tar.gz: d44e3c6e30a8f1e3cdb4c62f8837f6def4aca25f38e15bc3760f9fe55688acc3821d65c0314b15306bcfdfaa68d7b8330909f0136e03234b05f5a5d23dc959a3
@@ -3,10 +3,10 @@
3
3
  ;(function($) {
4
4
  var originalDefaultTarget = $.guards.defaults.target;
5
5
 
6
- // Ensure input-appended inputs have errors placed in the proper
7
- // location.
6
+ // Ensure input-appended and input-prepended inputs have errors
7
+ // placed in the proper location.
8
8
  $.guards.defaults.target = function(errorElement) {
9
- if (!$(this).parent().is(".input-append")) {
9
+ if (!$(this).parent().is(".input-append") && !$(this).parent().is(".input-prepend")) {
10
10
  return originalDefaultTarget.call(this, errorElement);
11
11
  }
12
12
 
@@ -1,5 +1,5 @@
1
1
  module BootstrapGuardsJS
2
2
  module Rails
3
- VERSION = "0.2.0"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,47 +1,47 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-guardsjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Virata-Stone
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-19 00:00:00.000000000 Z
11
+ date: 2014-04-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.0'
20
- - - <
20
+ - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: '5.0'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - '>='
27
+ - - ">="
28
28
  - !ruby/object:Gem::Version
29
29
  version: '3.0'
30
- - - <
30
+ - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: '5.0'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: guardsjs-rails
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - '>='
37
+ - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: 1.2.0
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - '>='
44
+ - - ">="
45
45
  - !ruby/object:Gem::Version
46
46
  version: 1.2.0
47
47
  description: This gem depends on the guardsjs-rails gem and adds Bootstrap functionality
@@ -52,9 +52,9 @@ executables: []
52
52
  extensions: []
53
53
  extra_rdoc_files: []
54
54
  files:
55
+ - app/assets/javascripts/bootstrap-guards.js
55
56
  - lib/bootstrap-guardsjs-rails.rb
56
57
  - lib/bootstrap-guardsjs-rails/version.rb
57
- - app/assets/javascripts/bootstrap-guards.js
58
58
  homepage: http://guardsjs.com/
59
59
  licenses:
60
60
  - MIT
@@ -65,17 +65,17 @@ require_paths:
65
65
  - lib
66
66
  required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
- - - '>='
68
+ - - ">="
69
69
  - !ruby/object:Gem::Version
70
70
  version: '0'
71
71
  required_rubygems_version: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  requirements: []
77
77
  rubyforge_project:
78
- rubygems_version: 2.0.3
78
+ rubygems_version: 2.2.2
79
79
  signing_key:
80
80
  specification_version: 4
81
81
  summary: Rails asset gem to integrate guards.js with Bootstrap.