edifice 0.0.5 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.DS_Store +0 -0
- data/lib/edifice/form_model.rb +28 -0
- data/lib/edifice/helper.rb +16 -0
- data/lib/edifice/railtie.rb +10 -0
- data/lib/edifice/responder.rb +13 -0
- data/lib/edifice/version.rb +1 -1
- data/lib/edifice.rb +12 -2
- data/lib/public/javascripts/edifice/ajax_form.js +114 -174
- data/lib/public/javascripts/edifice/form.js +105 -0
- data/lib/tasks/edifice.rake +6 -0
- data/test/rails3/.gitignore +4 -0
- data/test/rails3/Gemfile +33 -0
- data/test/rails3/Gemfile.lock +75 -0
- data/test/rails3/README +256 -0
- data/test/rails3/Rakefile +7 -0
- data/test/rails3/app/controllers/application_controller.rb +3 -0
- data/test/rails3/app/controllers/posts_controller.rb +15 -0
- data/test/rails3/app/helpers/application_helper.rb +2 -0
- data/test/rails3/app/models/post.rb +10 -0
- data/test/rails3/app/views/layouts/application.html.erb +14 -0
- data/test/rails3/app/views/posts/new.html.erb +17 -0
- data/test/rails3/config/application.rb +50 -0
- data/test/rails3/config/boot.rb +6 -0
- data/test/rails3/config/database.yml +22 -0
- data/test/rails3/config/environment.rb +5 -0
- data/test/rails3/config/environments/development.rb +26 -0
- data/test/rails3/config/environments/production.rb +49 -0
- data/test/rails3/config/environments/test.rb +35 -0
- data/test/rails3/config/initializers/backtrace_silencers.rb +7 -0
- data/test/rails3/config/initializers/inflections.rb +10 -0
- data/test/rails3/config/initializers/mime_types.rb +5 -0
- data/test/rails3/config/initializers/secret_token.rb +7 -0
- data/test/rails3/config/initializers/session_store.rb +8 -0
- data/test/rails3/config/locales/en.yml +5 -0
- data/test/rails3/config/routes.rb +4 -0
- data/test/rails3/config.ru +4 -0
- data/test/rails3/db/seeds.rb +7 -0
- data/test/rails3/doc/README_FOR_APP +2 -0
- data/test/rails3/lib/tasks/.gitkeep +0 -0
- data/test/rails3/public/404.html +26 -0
- data/test/rails3/public/422.html +26 -0
- data/test/rails3/public/500.html +26 -0
- data/test/rails3/public/favicon.ico +0 -0
- data/test/rails3/public/images/rails.png +0 -0
- data/test/rails3/public/javascripts/.gitkeep +0 -0
- data/test/rails3/public/javascripts/application.js +0 -0
- data/test/rails3/public/javascripts/jquery-1.5.1.js +8316 -0
- data/test/rails3/public/robots.txt +5 -0
- data/test/rails3/public/stylesheets/.gitkeep +0 -0
- data/test/rails3/public/stylesheets/form.css +18 -0
- data/test/rails3/script/rails +6 -0
- data/test/rails3/vendor/plugins/.gitkeep +0 -0
- metadata +96 -7
- data/lib/edifice_helper.rb +0 -14
File without changes
|
@@ -0,0 +1,18 @@
|
|
1
|
+
label {
|
2
|
+
font-weight: bold;
|
3
|
+
float: left;
|
4
|
+
margin-right: 4px;
|
5
|
+
}
|
6
|
+
|
7
|
+
input, textarea {
|
8
|
+
display: block;
|
9
|
+
clear: left;
|
10
|
+
}
|
11
|
+
|
12
|
+
.field_with_errors, .formError {
|
13
|
+
color: #a00;
|
14
|
+
}
|
15
|
+
|
16
|
+
.field_with_errors input, .field_with_errors textarea {
|
17
|
+
background-color: #fee;
|
18
|
+
}
|
@@ -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'
|
File without changes
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edifice
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 11
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
|
-
- 0
|
9
8
|
- 5
|
10
|
-
|
9
|
+
- 0
|
10
|
+
version: 0.5.0
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Coleman
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2011-06-
|
20
|
+
date: 2011-06-29 00:00:00 +10:00
|
21
21
|
default_executable:
|
22
22
|
dependencies: []
|
23
23
|
|
@@ -33,6 +33,7 @@ extensions: []
|
|
33
33
|
extra_rdoc_files: []
|
34
34
|
|
35
35
|
files:
|
36
|
+
- .DS_Store
|
36
37
|
- .gitignore
|
37
38
|
- Gemfile
|
38
39
|
- Gemfile.lock
|
@@ -42,10 +43,57 @@ files:
|
|
42
43
|
- edifice.gemspec
|
43
44
|
- init.rb
|
44
45
|
- lib/edifice.rb
|
46
|
+
- lib/edifice/form_model.rb
|
47
|
+
- lib/edifice/helper.rb
|
48
|
+
- lib/edifice/railtie.rb
|
49
|
+
- lib/edifice/responder.rb
|
45
50
|
- lib/edifice/version.rb
|
46
|
-
- lib/edifice_helper.rb
|
47
51
|
- lib/public/javascripts/edifice/ajax_form.js
|
52
|
+
- lib/public/javascripts/edifice/form.js
|
48
53
|
- lib/public/javascripts/edifice/framework.js
|
54
|
+
- lib/tasks/edifice.rake
|
55
|
+
- test/rails3/.gitignore
|
56
|
+
- test/rails3/Gemfile
|
57
|
+
- test/rails3/Gemfile.lock
|
58
|
+
- test/rails3/README
|
59
|
+
- test/rails3/Rakefile
|
60
|
+
- test/rails3/app/controllers/application_controller.rb
|
61
|
+
- test/rails3/app/controllers/posts_controller.rb
|
62
|
+
- test/rails3/app/helpers/application_helper.rb
|
63
|
+
- test/rails3/app/models/post.rb
|
64
|
+
- test/rails3/app/views/layouts/application.html.erb
|
65
|
+
- test/rails3/app/views/posts/new.html.erb
|
66
|
+
- test/rails3/config.ru
|
67
|
+
- test/rails3/config/application.rb
|
68
|
+
- test/rails3/config/boot.rb
|
69
|
+
- test/rails3/config/database.yml
|
70
|
+
- test/rails3/config/environment.rb
|
71
|
+
- test/rails3/config/environments/development.rb
|
72
|
+
- test/rails3/config/environments/production.rb
|
73
|
+
- test/rails3/config/environments/test.rb
|
74
|
+
- test/rails3/config/initializers/backtrace_silencers.rb
|
75
|
+
- test/rails3/config/initializers/inflections.rb
|
76
|
+
- test/rails3/config/initializers/mime_types.rb
|
77
|
+
- test/rails3/config/initializers/secret_token.rb
|
78
|
+
- test/rails3/config/initializers/session_store.rb
|
79
|
+
- test/rails3/config/locales/en.yml
|
80
|
+
- test/rails3/config/routes.rb
|
81
|
+
- test/rails3/db/seeds.rb
|
82
|
+
- test/rails3/doc/README_FOR_APP
|
83
|
+
- test/rails3/lib/tasks/.gitkeep
|
84
|
+
- test/rails3/public/404.html
|
85
|
+
- test/rails3/public/422.html
|
86
|
+
- test/rails3/public/500.html
|
87
|
+
- test/rails3/public/favicon.ico
|
88
|
+
- test/rails3/public/images/rails.png
|
89
|
+
- test/rails3/public/javascripts/.gitkeep
|
90
|
+
- test/rails3/public/javascripts/application.js
|
91
|
+
- test/rails3/public/javascripts/jquery-1.5.1.js
|
92
|
+
- test/rails3/public/robots.txt
|
93
|
+
- test/rails3/public/stylesheets/.gitkeep
|
94
|
+
- test/rails3/public/stylesheets/form.css
|
95
|
+
- test/rails3/script/rails
|
96
|
+
- test/rails3/vendor/plugins/.gitkeep
|
49
97
|
has_rdoc: true
|
50
98
|
homepage: http://github.com/tmeasday/edifice
|
51
99
|
licenses: []
|
@@ -80,5 +128,46 @@ rubygems_version: 1.5.2
|
|
80
128
|
signing_key:
|
81
129
|
specification_version: 3
|
82
130
|
summary: Ediface is a Javascript framework released as a rails plugin.
|
83
|
-
test_files:
|
84
|
-
|
131
|
+
test_files:
|
132
|
+
- test/rails3/.gitignore
|
133
|
+
- test/rails3/Gemfile
|
134
|
+
- test/rails3/Gemfile.lock
|
135
|
+
- test/rails3/README
|
136
|
+
- test/rails3/Rakefile
|
137
|
+
- test/rails3/app/controllers/application_controller.rb
|
138
|
+
- test/rails3/app/controllers/posts_controller.rb
|
139
|
+
- test/rails3/app/helpers/application_helper.rb
|
140
|
+
- test/rails3/app/models/post.rb
|
141
|
+
- test/rails3/app/views/layouts/application.html.erb
|
142
|
+
- test/rails3/app/views/posts/new.html.erb
|
143
|
+
- test/rails3/config.ru
|
144
|
+
- test/rails3/config/application.rb
|
145
|
+
- test/rails3/config/boot.rb
|
146
|
+
- test/rails3/config/database.yml
|
147
|
+
- test/rails3/config/environment.rb
|
148
|
+
- test/rails3/config/environments/development.rb
|
149
|
+
- test/rails3/config/environments/production.rb
|
150
|
+
- test/rails3/config/environments/test.rb
|
151
|
+
- test/rails3/config/initializers/backtrace_silencers.rb
|
152
|
+
- test/rails3/config/initializers/inflections.rb
|
153
|
+
- test/rails3/config/initializers/mime_types.rb
|
154
|
+
- test/rails3/config/initializers/secret_token.rb
|
155
|
+
- test/rails3/config/initializers/session_store.rb
|
156
|
+
- test/rails3/config/locales/en.yml
|
157
|
+
- test/rails3/config/routes.rb
|
158
|
+
- test/rails3/db/seeds.rb
|
159
|
+
- test/rails3/doc/README_FOR_APP
|
160
|
+
- test/rails3/lib/tasks/.gitkeep
|
161
|
+
- test/rails3/public/404.html
|
162
|
+
- test/rails3/public/422.html
|
163
|
+
- test/rails3/public/500.html
|
164
|
+
- test/rails3/public/favicon.ico
|
165
|
+
- test/rails3/public/images/rails.png
|
166
|
+
- test/rails3/public/javascripts/.gitkeep
|
167
|
+
- test/rails3/public/javascripts/application.js
|
168
|
+
- test/rails3/public/javascripts/jquery-1.5.1.js
|
169
|
+
- test/rails3/public/robots.txt
|
170
|
+
- test/rails3/public/stylesheets/.gitkeep
|
171
|
+
- test/rails3/public/stylesheets/form.css
|
172
|
+
- test/rails3/script/rails
|
173
|
+
- test/rails3/vendor/plugins/.gitkeep
|
data/lib/edifice_helper.rb
DELETED
@@ -1,14 +0,0 @@
|
|
1
|
-
module EdificeHelper
|
2
|
-
# put this in your layout somewhere
|
3
|
-
def edifice_meta_tags
|
4
|
-
%(<meta name='edifice-view_path' content='#{view_path_normalized}'/>
|
5
|
-
<meta name='edifice-view_name' content='#{view_name_normalized}'/>
|
6
|
-
<meta name='edifice-layout' content='#{layout_name}'/>).html_safe
|
7
|
-
end
|
8
|
-
|
9
|
-
# the default classes that get added to the body element when a view renders
|
10
|
-
# the c_ in front of view_path is for historical reasons
|
11
|
-
def edifice_body_classes
|
12
|
-
%(c_#{view_path} v_#{view_name} l_#{layout_name}").html_safe
|
13
|
-
end
|
14
|
-
end
|