client_side_validations 3.0.10 → 3.0.12
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.
- data/lib/client_side_validations/engine.rb +6 -0
- data/lib/client_side_validations/files.rb +8 -0
- data/lib/client_side_validations/middleware.rb +0 -5
- data/lib/client_side_validations/version.rb +1 -1
- data/lib/client_side_validations.rb +4 -1
- data/lib/generators/client_side_validations/install_generator.rb +2 -2
- data/test/middleware/cases/helper.rb +1 -0
- data/vendor/assets/javascripts/rails.validations.js +1 -1
- metadata +6 -4
- /data/lib/generators/templates/{README → client_side_validations/README} +0 -0
- /data/lib/generators/templates/{client_side_validations.rb → client_side_validations/initializer.rb} +0 -0
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# This is only used by dependant libraries that need to find the files
|
|
2
|
+
|
|
3
|
+
module ClientSideValidations
|
|
4
|
+
module Files
|
|
5
|
+
Initializer = File.expand_path(File.dirname(__FILE__) + '/../generators/templates/client_side_validations/initializer.rb')
|
|
6
|
+
Javascript = File.expand_path(File.dirname(__FILE__) + '/../../vendor/assets/javascripts/rails.validations.js')
|
|
7
|
+
end
|
|
8
|
+
end
|
|
@@ -6,5 +6,8 @@ require 'client_side_validations/active_record' if defined?(::ActiveRecord)
|
|
|
6
6
|
require 'client_side_validations/mongoid' if defined?(::Mongoid)
|
|
7
7
|
require 'client_side_validations/mongo_mapper' if defined?(::MongoMapper)
|
|
8
8
|
require 'client_side_validations/action_view'
|
|
9
|
-
|
|
9
|
+
if defined?(::Rails)
|
|
10
|
+
require 'client_side_validations/middleware'
|
|
11
|
+
require 'client_side_validations/engine'
|
|
12
|
+
end
|
|
10
13
|
|
|
@@ -6,7 +6,7 @@ module ClientSideValidations
|
|
|
6
6
|
desc 'Creates a ClientSideValidations initializer and copies client-side-validations.js to public/javascripts.'
|
|
7
7
|
|
|
8
8
|
def copy_initializer
|
|
9
|
-
copy_file 'client_side_validations.rb', 'config/initializers/client_side_validations.rb'
|
|
9
|
+
copy_file 'client_side_validations/initializer.rb', 'config/initializers/client_side_validations.rb'
|
|
10
10
|
end
|
|
11
11
|
|
|
12
12
|
def copy_locale
|
|
@@ -14,7 +14,7 @@ module ClientSideValidations
|
|
|
14
14
|
end
|
|
15
15
|
|
|
16
16
|
def show_readme
|
|
17
|
-
readme 'README' if behavior == :invoke
|
|
17
|
+
readme 'client_side_validations/README' if behavior == :invoke
|
|
18
18
|
end
|
|
19
19
|
end
|
|
20
20
|
end
|
metadata
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
name: client_side_validations
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
4
|
prerelease:
|
|
5
|
-
version: 3.0.
|
|
5
|
+
version: 3.0.12
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
8
8
|
- Brian Cardarella
|
|
@@ -10,7 +10,7 @@ autorequire:
|
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
12
|
|
|
13
|
-
date: 2011-06-
|
|
13
|
+
date: 2011-06-23 00:00:00 -04:00
|
|
14
14
|
default_executable:
|
|
15
15
|
dependencies:
|
|
16
16
|
- !ruby/object:Gem::Dependency
|
|
@@ -186,6 +186,8 @@ files:
|
|
|
186
186
|
- lib/client_side_validations/core_ext.rb
|
|
187
187
|
- lib/client_side_validations/core_ext/range.rb
|
|
188
188
|
- lib/client_side_validations/core_ext/regexp.rb
|
|
189
|
+
- lib/client_side_validations/engine.rb
|
|
190
|
+
- lib/client_side_validations/files.rb
|
|
189
191
|
- lib/client_side_validations/formtastic.rb
|
|
190
192
|
- lib/client_side_validations/middleware.rb
|
|
191
193
|
- lib/client_side_validations/mongo_mapper.rb
|
|
@@ -197,8 +199,8 @@ files:
|
|
|
197
199
|
- lib/client_side_validations/simple_form.rb
|
|
198
200
|
- lib/client_side_validations/version.rb
|
|
199
201
|
- lib/generators/client_side_validations/install_generator.rb
|
|
200
|
-
- lib/generators/templates/README
|
|
201
|
-
- lib/generators/templates/client_side_validations.rb
|
|
202
|
+
- lib/generators/templates/client_side_validations/README
|
|
203
|
+
- lib/generators/templates/client_side_validations/initializer.rb
|
|
202
204
|
- vendor/assets/javascripts/rails.validations.js
|
|
203
205
|
- test/action_view/cases/helper.rb
|
|
204
206
|
- test/action_view/cases/test_helpers.rb
|
|
File without changes
|
/data/lib/generators/templates/{client_side_validations.rb → client_side_validations/initializer.rb}
RENAMED
|
File without changes
|