edifice 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +3 -3
- data/edifice.gemspec +1 -1
- data/lib/edifice/version.rb +1 -1
- data/lib/edifice.rb +1 -7
- metadata +5 -6
- data/Gemfile.lock +0 -14
data/README
CHANGED
@@ -1,7 +1,7 @@
|
|
1
|
-
|
1
|
+
Ediface
|
2
2
|
=======
|
3
3
|
|
4
|
-
|
4
|
+
Ediface is a Javascript framework released as a rails plugin.
|
5
5
|
|
6
6
|
|
7
7
|
framework.js + associated helpers
|
@@ -10,7 +10,7 @@ framework.js + associated helpers
|
|
10
10
|
The idea here is to communicate which view is rendering to the javascript so that we can call the correct javascript files in an automagical way.
|
11
11
|
|
12
12
|
All you need to do is add
|
13
|
-
<%=
|
13
|
+
<%= ediface_meta_tags %>
|
14
14
|
to your layout, in the head.
|
15
15
|
|
16
16
|
Then if you render an action, such as users/show, in the layout application, these functions[if they exist] will be fired on these js objects in the following order:
|
data/edifice.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
|
|
8
8
|
s.platform = Gem::Platform::RUBY
|
9
9
|
s.authors = ["Tom Coleman", "Zoltan Olah", "Joe Dollard"]
|
10
10
|
s.email = ["tom@thesnail.org", "zol@me.com", "jdollard@gmail.com"]
|
11
|
-
s.homepage = "
|
11
|
+
s.homepage = ""
|
12
12
|
s.summary = %q{Ediface is a Javascript framework released as a rails plugin.}
|
13
13
|
s.description = %q{The idea here is to communicate which view is rendering to the javascript so that we can call the correct javascript files in an automagical way.}
|
14
14
|
|
data/lib/edifice/version.rb
CHANGED
data/lib/edifice.rb
CHANGED
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'edifice_helper'
|
2
|
-
|
3
1
|
module Edifice
|
4
2
|
def self.install_js_files
|
5
3
|
install_dir = ::Rails.application.paths.public.javascripts.first
|
@@ -22,7 +20,7 @@ module Edifice
|
|
22
20
|
def _render_template_with_edifice(options)
|
23
21
|
@view_path = options[:prefix]
|
24
22
|
@view_name = options[:template]
|
25
|
-
@layout = File.split(options[:layout]).last
|
23
|
+
@layout = options[:layout] ? File.split(options[:layout]).last : nil
|
26
24
|
|
27
25
|
_render_template_without_edifice(options)
|
28
26
|
end
|
@@ -54,7 +52,3 @@ module Edifice
|
|
54
52
|
end
|
55
53
|
end
|
56
54
|
end
|
57
|
-
|
58
|
-
ActionController::Base.send :include, Edifice::Controller
|
59
|
-
# ActionMailer::Base.send :include, Edifice::Controller
|
60
|
-
ActionView::Base.send :include, EdificeHelper
|
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: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 3
|
10
|
+
version: 0.0.3
|
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-
|
20
|
+
date: 2011-03-15 00:00:00 +11:00
|
21
21
|
default_executable:
|
22
22
|
dependencies: []
|
23
23
|
|
@@ -35,7 +35,6 @@ extra_rdoc_files: []
|
|
35
35
|
files:
|
36
36
|
- .gitignore
|
37
37
|
- Gemfile
|
38
|
-
- Gemfile.lock
|
39
38
|
- MIT-LICENSE
|
40
39
|
- README
|
41
40
|
- Rakefile
|
@@ -47,7 +46,7 @@ files:
|
|
47
46
|
- lib/public/javascripts/edifice/ajax_form.js
|
48
47
|
- lib/public/javascripts/edifice/framework.js
|
49
48
|
has_rdoc: true
|
50
|
-
homepage:
|
49
|
+
homepage: ""
|
51
50
|
licenses: []
|
52
51
|
|
53
52
|
post_install_message:
|