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.
@@ -0,0 +1,6 @@
1
+ module ClientSideValidations
2
+ class Engine < ::Rails::Engine
3
+ config.app_middleware.use ClientSideValidations::Middleware::Validators
4
+ end
5
+ end
6
+
@@ -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
@@ -76,10 +76,5 @@ module ClientSideValidations
76
76
  end
77
77
 
78
78
  end
79
-
80
- class Engine < ::Rails::Engine
81
- config.app_middleware.use ClientSideValidations::Middleware::Validators
82
- end
83
-
84
79
  end
85
80
 
@@ -1,3 +1,3 @@
1
1
  module ClientSideValidations
2
- VERSION = '3.0.10'
2
+ VERSION = '3.0.12'
3
3
  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
- require 'client_side_validations/middleware' if defined?(::Rails)
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
@@ -11,5 +11,6 @@ module TestApp
11
11
  end
12
12
 
13
13
  require 'client_side_validations/middleware'
14
+ require 'client_side_validations/engine'
14
15
 
15
16
  TestApp::Application.initialize!
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Rails 3 Client Side Validations - v3.0.10
2
+ * Rails 3 Client Side Validations - v3.0.12
3
3
  * https://github.com/bcardarlela/client_side_validations
4
4
  *
5
5
  * Copyright (c) 2011 Brian Cardarella
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.10
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-20 00:00:00 -04:00
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