onload_js-rails 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +8 -0
- data/Gemfile +2 -0
- data/LICENSE +20 -0
- data/README.markdown +62 -0
- data/Rakefile +29 -0
- data/app/assets/javascripts/onload.js.coffee +34 -0
- data/app/helpers/onload_helper.rb +15 -0
- data/lib/onload_js-rails.rb +13 -0
- data/lib/onload_js.rb +2 -0
- data/lib/onload_js/engine.rb +8 -0
- data/lib/onload_js/version.rb +5 -0
- data/onload_js-rails.gemspec +19 -0
- data/test_application/.powder +1 -0
- data/test_application/Gemfile +12 -0
- data/test_application/Gemfile.lock +115 -0
- data/test_application/README.rdoc +261 -0
- data/test_application/Rakefile +7 -0
- data/test_application/app/assets/images/rails.png +0 -0
- data/test_application/app/assets/javascripts/application.js +16 -0
- data/test_application/app/assets/javascripts/users.js.coffee +20 -0
- data/test_application/app/assets/stylesheets/application.css +13 -0
- data/test_application/app/assets/stylesheets/users.css.scss +3 -0
- data/test_application/app/controllers/application_controller.rb +3 -0
- data/test_application/app/controllers/users_controller.rb +10 -0
- data/test_application/app/helpers/application_helper.rb +2 -0
- data/test_application/app/helpers/users_helper.rb +2 -0
- data/test_application/app/views/layouts/application.html.erb +15 -0
- data/test_application/app/views/users/edit.html.erb +2 -0
- data/test_application/app/views/users/index.html.erb +2 -0
- data/test_application/app/views/users/new.html.erb +2 -0
- data/test_application/config.ru +4 -0
- data/test_application/config/application.rb +68 -0
- data/test_application/config/boot.rb +6 -0
- data/test_application/config/environment.rb +5 -0
- data/test_application/config/environments/development.rb +31 -0
- data/test_application/config/environments/production.rb +64 -0
- data/test_application/config/environments/test.rb +35 -0
- data/test_application/config/initializers/backtrace_silencers.rb +7 -0
- data/test_application/config/initializers/inflections.rb +15 -0
- data/test_application/config/initializers/mime_types.rb +5 -0
- data/test_application/config/initializers/secret_token.rb +7 -0
- data/test_application/config/initializers/session_store.rb +8 -0
- data/test_application/config/initializers/wrap_parameters.rb +10 -0
- data/test_application/config/locales/en.yml +5 -0
- data/test_application/config/routes.rb +6 -0
- data/test_application/db/seeds.rb +7 -0
- data/test_application/doc/README_FOR_APP +2 -0
- data/test_application/public/404.html +26 -0
- data/test_application/public/422.html +26 -0
- data/test_application/public/500.html +25 -0
- data/test_application/public/favicon.ico +0 -0
- data/test_application/public/robots.txt +5 -0
- data/test_application/script/rails +6 -0
- metadata +98 -0
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/404.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
23
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/422.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>The change you wanted was rejected.</h1>
|
23
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
24
|
+
</div>
|
25
|
+
</body>
|
26
|
+
</html>
|
@@ -0,0 +1,25 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<style type="text/css">
|
6
|
+
body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
|
7
|
+
div.dialog {
|
8
|
+
width: 25em;
|
9
|
+
padding: 0 4em;
|
10
|
+
margin: 4em auto 0 auto;
|
11
|
+
border: 1px solid #ccc;
|
12
|
+
border-right-color: #999;
|
13
|
+
border-bottom-color: #999;
|
14
|
+
}
|
15
|
+
h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
|
16
|
+
</style>
|
17
|
+
</head>
|
18
|
+
|
19
|
+
<body>
|
20
|
+
<!-- This file lives in public/500.html -->
|
21
|
+
<div class="dialog">
|
22
|
+
<h1>We're sorry, but something went wrong.</h1>
|
23
|
+
</div>
|
24
|
+
</body>
|
25
|
+
</html>
|
File without changes
|
@@ -0,0 +1,6 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
|
3
|
+
|
4
|
+
APP_PATH = File.expand_path('../../config/application', __FILE__)
|
5
|
+
require File.expand_path('../../config/boot', __FILE__)
|
6
|
+
require 'rails/commands'
|
metadata
ADDED
@@ -0,0 +1,98 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: onload_js-rails
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Alex McHale
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2012-10-29 00:00:00.000000000 Z
|
13
|
+
dependencies: []
|
14
|
+
description: Lets you easily run JavaScript based on the current controller#action.
|
15
|
+
email:
|
16
|
+
- alex@anticlever.com
|
17
|
+
executables: []
|
18
|
+
extensions: []
|
19
|
+
extra_rdoc_files: []
|
20
|
+
files:
|
21
|
+
- .gitignore
|
22
|
+
- Gemfile
|
23
|
+
- LICENSE
|
24
|
+
- README.markdown
|
25
|
+
- Rakefile
|
26
|
+
- app/assets/javascripts/onload.js.coffee
|
27
|
+
- app/helpers/onload_helper.rb
|
28
|
+
- lib/onload_js-rails.rb
|
29
|
+
- lib/onload_js.rb
|
30
|
+
- lib/onload_js/engine.rb
|
31
|
+
- lib/onload_js/version.rb
|
32
|
+
- onload_js-rails.gemspec
|
33
|
+
- test_application/.powder
|
34
|
+
- test_application/Gemfile
|
35
|
+
- test_application/Gemfile.lock
|
36
|
+
- test_application/README.rdoc
|
37
|
+
- test_application/Rakefile
|
38
|
+
- test_application/app/assets/images/rails.png
|
39
|
+
- test_application/app/assets/javascripts/application.js
|
40
|
+
- test_application/app/assets/javascripts/users.js.coffee
|
41
|
+
- test_application/app/assets/stylesheets/application.css
|
42
|
+
- test_application/app/assets/stylesheets/users.css.scss
|
43
|
+
- test_application/app/controllers/application_controller.rb
|
44
|
+
- test_application/app/controllers/users_controller.rb
|
45
|
+
- test_application/app/helpers/application_helper.rb
|
46
|
+
- test_application/app/helpers/users_helper.rb
|
47
|
+
- test_application/app/views/layouts/application.html.erb
|
48
|
+
- test_application/app/views/users/edit.html.erb
|
49
|
+
- test_application/app/views/users/index.html.erb
|
50
|
+
- test_application/app/views/users/new.html.erb
|
51
|
+
- test_application/config.ru
|
52
|
+
- test_application/config/application.rb
|
53
|
+
- test_application/config/boot.rb
|
54
|
+
- test_application/config/environment.rb
|
55
|
+
- test_application/config/environments/development.rb
|
56
|
+
- test_application/config/environments/production.rb
|
57
|
+
- test_application/config/environments/test.rb
|
58
|
+
- test_application/config/initializers/backtrace_silencers.rb
|
59
|
+
- test_application/config/initializers/inflections.rb
|
60
|
+
- test_application/config/initializers/mime_types.rb
|
61
|
+
- test_application/config/initializers/secret_token.rb
|
62
|
+
- test_application/config/initializers/session_store.rb
|
63
|
+
- test_application/config/initializers/wrap_parameters.rb
|
64
|
+
- test_application/config/locales/en.yml
|
65
|
+
- test_application/config/routes.rb
|
66
|
+
- test_application/db/seeds.rb
|
67
|
+
- test_application/doc/README_FOR_APP
|
68
|
+
- test_application/public/404.html
|
69
|
+
- test_application/public/422.html
|
70
|
+
- test_application/public/500.html
|
71
|
+
- test_application/public/favicon.ico
|
72
|
+
- test_application/public/robots.txt
|
73
|
+
- test_application/script/rails
|
74
|
+
homepage: http://github.com/alexmchale/onload_js-rails
|
75
|
+
licenses: []
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
88
|
+
requirements:
|
89
|
+
- - ! '>'
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: 1.3.6
|
92
|
+
requirements: []
|
93
|
+
rubyforge_project: onload_js-rails
|
94
|
+
rubygems_version: 1.8.23
|
95
|
+
signing_key:
|
96
|
+
specification_version: 3
|
97
|
+
summary: Easily run JavaScript based on the rails controller#action.
|
98
|
+
test_files: []
|