green_light 0.0.3 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: green_light
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
8
+ - 1
9
9
  - 3
10
- version: 0.0.3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Phil McClure
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-10 00:00:00 +01:00
18
+ date: 2011-08-03 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21
 
@@ -29,15 +29,23 @@ extensions: []
29
29
  extra_rdoc_files: []
30
30
 
31
31
  files:
32
+ - .DS_Store
32
33
  - .gitignore
33
34
  - Gemfile
34
35
  - README.rdoc
35
36
  - Rakefile
37
+ - app/.DS_Store
38
+ - app/assets/javascripts/green_light.js.erb
36
39
  - app/controllers/javascripts_controller.rb
37
- - app/views/javascripts/green_light.js.erb
38
40
  - config/routes.rb
39
41
  - green_light.gemspec
42
+ - lib/.DS_Store
43
+ - lib/generators/green_light/USAGE
44
+ - lib/generators/green_light/install_generator.rb
45
+ - lib/generators/green_light/templates/green_light.rb
46
+ - lib/generators/green_light/templates/green_light.yml
40
47
  - lib/green_light.rb
48
+ - lib/green_light/.DS_Store
41
49
  - lib/green_light/engine.rb
42
50
  - lib/green_light/rules.rb
43
51
  - lib/green_light/validations/validates_format_of.rb
@@ -46,11 +54,11 @@ files:
46
54
  - lib/green_light/validations/validates_presence_of.rb
47
55
  - lib/green_light/validations/validates_uniqueness_of.rb
48
56
  - lib/green_light/version.rb
49
- - lib/rails/generators/green_light_assets/USAGE
50
- - lib/rails/generators/green_light_assets/green_light_assets_generator.rb
51
- - lib/rails/generators/green_light_assets/templates/jquery.validate_regex.js
52
57
  - spec/green_light_spec.rb
53
58
  - spec/spec_helper.rb
59
+ - vendor/.DS_Store
60
+ - vendor/assets/.DS_Store
61
+ - vendor/assets/javascripts/jquery.validate.js
54
62
  has_rdoc: true
55
63
  homepage: http://www.rumblelabs.com
56
64
  licenses: []
@@ -1,3 +0,0 @@
1
- $().ready(function() {
2
- $(".green_light").validate(<%= @rules.html_safe %>);
3
- });
@@ -1,8 +0,0 @@
1
- Description:
2
- Explain the generator
3
-
4
- Example:
5
- rails generate green_light_assets
6
-
7
- This will create:
8
- what/will/it/create
@@ -1,23 +0,0 @@
1
- require 'rails/generators'
2
-
3
- class GreenLightAssetsGenerator < Rails::Generators::Base
4
- source_root File.expand_path('../templates', __FILE__)
5
-
6
- def generate_assets
7
- unless File.exists?("public/javascripts/jquery.validate_regex.js")
8
- copy_file "jquery.validate_regex.js", "public/javascripts/jquery.validate_regex.js"
9
- else
10
- puts "public/javascripts/jquery.validate_regex.js already exists."
11
- end
12
-
13
- puts "Nearly there! Just download the jQuery Validate plugin (http://jquery.bassistance.de/validate/jquery-validation-1.8.0.zip)"
14
- puts "and jQuery 1.3.2, 1.4.2, 1.4.4, 1.5.0, 1.5.1."
15
- puts ""
16
- puts "Include the above in your layout header."
17
- puts ""
18
- puts "Also, insert the following code in your layout header"
19
- puts ""
20
- puts "<%= javascript_include_tag 'jquery.validate_regex', 'green_light' %>"
21
- puts ""
22
- end
23
- end
@@ -1,9 +0,0 @@
1
- $.validator.addMethod(
2
- "regex",
3
- function(value, element, regexp) {
4
- var check = false;
5
- var re = new RegExp(regexp);
6
- return this.optional(element) || re.test(value);
7
- },
8
- "You have entered an invalid value for this field"
9
- );