realtime-validations 0.2.2 → 0.2.3

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.
@@ -1,3 +1,3 @@
1
1
  module RealtimeValidations
2
- VERSION = '0.2.2'
2
+ VERSION = '0.2.3'
3
3
  end
@@ -76,9 +76,7 @@ var RealtimeValidations = {
76
76
  showErrorsSmoothly : function(field, errors) {
77
77
  field.parent().append('<div style="display: none;" id="' + field.attr('id') + '_error" class="field-error">'
78
78
  + errors.join(', ') +
79
- '<div class="field-error-arrow-border"></div> \
80
- <div class="field-error-arrow"></div> \
81
- </div>');
79
+ '</div>');
82
80
  $('#' + field.attr('id') + '_error').fadeIn('slow');
83
81
  },
84
82
 
@@ -1,56 +1,22 @@
1
1
  div.field-error {
2
2
  display: inline-block;
3
- position: relative;
4
- border: 2px solid #666666;
5
- line-height: 1.3em;
6
- margin-left: 10px;
7
- margin-top:-53px;
8
- margin-bottom: 11px;
9
- width: 200px;
10
- padding: 10px;
11
- text-align:center;
12
- -moz-border-radius: 10px;
13
- -webkit-border-radius: 10px;
14
- -moz-box-shadow:0 0 5px #888888;
15
- -webkit-box-shadow:0 0 5px #888888;
16
- background: -webkit-gradient(linear, left -200%, left 200%, from(#FFFFFF), to(#FF0000));
17
- background: -moz-linear-gradient(#FFFFFF -200%, #FF0000 200%);
18
- }
19
-
20
- div.field-error-arrow-border {
21
- border-color: transparent #666666 transparent transparent;
22
- border-style: solid;
23
- border-width: 10px;
24
- height: 0;
25
- width: 0;
26
- position: absolute;
27
- top: 10px;
28
- left: -20px;
29
- }
30
-
31
- div.field-error-arrow {
32
- border-color: transparent transparent transparent transparent;
33
- border-style: solid;
34
- border-width: 10px;
35
- height: 0;
36
- width: 0;
37
3
  position: absolute;
38
- top: 10px;
39
- left: -17px;
4
+ color: #ff0000;
5
+ margin: 0;
6
+ padding: 0;
7
+ padding-left: 5px;
8
+ line-height: 1.6em;
40
9
  }
41
10
 
42
11
  div.field-valid {
43
12
  display: inline-block;
44
13
  position: absolute;
14
+ margin: 0;
45
15
  padding: 0;
46
16
  padding-left: 5px;
47
- padding-right: 5px;
48
- margin: 0;
49
- margin-top: 5px;
50
- -moz-border-radius: 10px;
51
- -webkit-border-radius: 10px;
52
- -moz-box-shadow:0 0 5px #888888;
53
- -webkit-box-shadow:0 0 5px #888888;
54
- background: -webkit-gradient(linear, left top, left 25, from(#FFFFFF), color-stop(4%, #EEEEEE), to(#FFFFFF));
55
- background: -moz-linear-gradient(top, #FFFFFF, #EEEEEE 1px, #FFFFFF 25px);
17
+ }
18
+
19
+ div.field-valid img {
20
+ width: 24px;
21
+ height: 24px;
56
22
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: realtime-validations
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-03 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &6752760 !ruby/object:Gem::Requirement
16
+ requirement: &12590640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *6752760
24
+ version_requirements: *12590640
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &6799900 !ruby/object:Gem::Requirement
27
+ requirement: &12590140 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: 1.0.19
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *6799900
35
+ version_requirements: *12590140
36
36
  description: Form real time validations for free on Rails applications
37
37
  email:
38
38
  - ereslibre@gmail.com
@@ -43,11 +43,11 @@ files:
43
43
  - app/controllers/realtime_validations/validations_controller.rb
44
44
  - config/routes.rb
45
45
  - config/initializers/form_validated_for.rb
46
+ - lib/realtime-validations.rb
47
+ - lib/realtime-validations/version.rb
46
48
  - lib/generators/realtime_validations/install_generator.rb
47
49
  - lib/generators/realtime_validations/templates/initializer.rb
48
50
  - lib/generators/realtime_validations/templates/realtime_validations.custom.js
49
- - lib/realtime-validations.rb
50
- - lib/realtime-validations/version.rb
51
51
  - lib/tasks/realtime-validations_tasks.rake
52
52
  - vendor/assets/stylesheets/realtime_validations.css
53
53
  - vendor/assets/images/valid_field.png
@@ -56,34 +56,34 @@ files:
56
56
  - Rakefile
57
57
  - README.rdoc
58
58
  - test/test_helper.rb
59
- - test/dummy/public/500.html
60
59
  - test/dummy/public/404.html
61
60
  - test/dummy/public/favicon.ico
62
61
  - test/dummy/public/422.html
63
- - test/dummy/README.rdoc
64
- - test/dummy/script/rails
65
- - test/dummy/config.ru
66
- - test/dummy/Rakefile
62
+ - test/dummy/public/500.html
63
+ - test/dummy/config/application.rb
64
+ - test/dummy/config/database.yml
67
65
  - test/dummy/config/environment.rb
66
+ - test/dummy/config/routes.rb
67
+ - test/dummy/config/environments/production.rb
68
68
  - test/dummy/config/environments/development.rb
69
69
  - test/dummy/config/environments/test.rb
70
- - test/dummy/config/environments/production.rb
71
- - test/dummy/config/boot.rb
72
- - test/dummy/config/application.rb
73
- - test/dummy/config/database.yml
74
70
  - test/dummy/config/locales/en.yml
75
- - test/dummy/config/routes.rb
71
+ - test/dummy/config/boot.rb
76
72
  - test/dummy/config/initializers/mime_types.rb
77
- - test/dummy/config/initializers/secret_token.rb
78
- - test/dummy/config/initializers/inflections.rb
79
- - test/dummy/config/initializers/backtrace_silencers.rb
80
73
  - test/dummy/config/initializers/wrap_parameters.rb
81
74
  - test/dummy/config/initializers/session_store.rb
82
- - test/dummy/app/helpers/application_helper.rb
75
+ - test/dummy/config/initializers/inflections.rb
76
+ - test/dummy/config/initializers/secret_token.rb
77
+ - test/dummy/config/initializers/backtrace_silencers.rb
78
+ - test/dummy/script/rails
79
+ - test/dummy/config.ru
80
+ - test/dummy/README.rdoc
83
81
  - test/dummy/app/assets/stylesheets/application.css
84
82
  - test/dummy/app/assets/javascripts/application.js
85
83
  - test/dummy/app/controllers/application_controller.rb
86
84
  - test/dummy/app/views/layouts/application.html.erb
85
+ - test/dummy/app/helpers/application_helper.rb
86
+ - test/dummy/Rakefile
87
87
  - test/realtime-validations_test.rb
88
88
  homepage: https://github.com/ereslibre/realtime-validations/wiki
89
89
  licenses: []
@@ -111,32 +111,32 @@ specification_version: 3
111
111
  summary: Provides real time validations for free
112
112
  test_files:
113
113
  - test/test_helper.rb
114
- - test/dummy/public/500.html
115
114
  - test/dummy/public/404.html
116
115
  - test/dummy/public/favicon.ico
117
116
  - test/dummy/public/422.html
118
- - test/dummy/README.rdoc
119
- - test/dummy/script/rails
120
- - test/dummy/config.ru
121
- - test/dummy/Rakefile
117
+ - test/dummy/public/500.html
118
+ - test/dummy/config/application.rb
119
+ - test/dummy/config/database.yml
122
120
  - test/dummy/config/environment.rb
121
+ - test/dummy/config/routes.rb
122
+ - test/dummy/config/environments/production.rb
123
123
  - test/dummy/config/environments/development.rb
124
124
  - test/dummy/config/environments/test.rb
125
- - test/dummy/config/environments/production.rb
126
- - test/dummy/config/boot.rb
127
- - test/dummy/config/application.rb
128
- - test/dummy/config/database.yml
129
125
  - test/dummy/config/locales/en.yml
130
- - test/dummy/config/routes.rb
126
+ - test/dummy/config/boot.rb
131
127
  - test/dummy/config/initializers/mime_types.rb
132
- - test/dummy/config/initializers/secret_token.rb
133
- - test/dummy/config/initializers/inflections.rb
134
- - test/dummy/config/initializers/backtrace_silencers.rb
135
128
  - test/dummy/config/initializers/wrap_parameters.rb
136
129
  - test/dummy/config/initializers/session_store.rb
137
- - test/dummy/app/helpers/application_helper.rb
130
+ - test/dummy/config/initializers/inflections.rb
131
+ - test/dummy/config/initializers/secret_token.rb
132
+ - test/dummy/config/initializers/backtrace_silencers.rb
133
+ - test/dummy/script/rails
134
+ - test/dummy/config.ru
135
+ - test/dummy/README.rdoc
138
136
  - test/dummy/app/assets/stylesheets/application.css
139
137
  - test/dummy/app/assets/javascripts/application.js
140
138
  - test/dummy/app/controllers/application_controller.rb
141
139
  - test/dummy/app/views/layouts/application.html.erb
140
+ - test/dummy/app/helpers/application_helper.rb
141
+ - test/dummy/Rakefile
142
142
  - test/realtime-validations_test.rb