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.
- data/.DS_Store +0 -0
- data/Gemfile +17 -4
- data/README.rdoc +12 -11
- data/app/.DS_Store +0 -0
- data/app/assets/javascripts/green_light.js.erb +23 -0
- data/app/controllers/javascripts_controller.rb +1 -13
- data/config/routes.rb +1 -1
- data/lib/.DS_Store +0 -0
- data/lib/generators/green_light/USAGE +0 -0
- data/lib/generators/green_light/install_generator.rb +20 -0
- data/lib/generators/green_light/templates/green_light.rb +2 -0
- data/lib/generators/green_light/templates/green_light.yml +1 -0
- data/lib/green_light/.DS_Store +0 -0
- data/lib/green_light/rules.rb +1 -1
- data/lib/green_light/version.rb +1 -1
- data/spec/green_light_spec.rb +5 -5
- data/vendor/.DS_Store +0 -0
- data/vendor/assets/.DS_Store +0 -0
- data/vendor/assets/javascripts/jquery.validate.js +1166 -0
- metadata +16 -8
- data/app/views/javascripts/green_light.js.erb +0 -3
- data/lib/rails/generators/green_light_assets/USAGE +0 -8
- data/lib/rails/generators/green_light_assets/green_light_assets_generator.rb +0 -23
- data/lib/rails/generators/green_light_assets/templates/jquery.validate_regex.js +0 -9
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:
|
4
|
+
hash: 29
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
-
|
8
|
+
- 1
|
9
9
|
- 3
|
10
|
-
version: 0.
|
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-
|
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,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
|