cells 3.6.0 → 3.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.textile +6 -0
- data/cells.gemspec +2 -2
- data/lib/cell/rails.rb +1 -0
- data/lib/cell/rails3_0_strategy.rb +2 -0
- data/lib/cell/rails3_1_strategy.rb +2 -0
- data/lib/cells/version.rb +1 -1
- data/test/rails/render_test.rb +1 -1
- metadata +7 -5
data/CHANGES.textile
CHANGED
data/cells.gemspec
CHANGED
@@ -19,8 +19,8 @@ Gem::Specification.new do |s|
|
|
19
19
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
20
|
s.require_paths = ["lib"]
|
21
21
|
|
22
|
-
s.add_dependency "actionpack", "~> 3.0"
|
23
|
-
s.add_dependency "railties", "~> 3.0"
|
22
|
+
s.add_dependency "actionpack", "~> 3.0.0"
|
23
|
+
s.add_dependency "railties", "~> 3.0.0"
|
24
24
|
|
25
25
|
s.add_development_dependency "shoulda"
|
26
26
|
s.add_development_dependency "haml"
|
data/lib/cell/rails.rb
CHANGED
@@ -76,6 +76,7 @@ module Cell
|
|
76
76
|
# +:file+:: Specifies the name of the file template to render.
|
77
77
|
# +:nothing+:: Doesn't invoke the rendering process.
|
78
78
|
# +:state+:: Instantly invokes another rendering cycle for the passed state and returns. You may pass arbitrary state-args to the called state.
|
79
|
+
# +:format+:: Sets a different template format, e.g. +:json+.
|
79
80
|
#
|
80
81
|
# Example:
|
81
82
|
# class MusicianCell < ::Cell::Base
|
data/lib/cells/version.rb
CHANGED
data/test/rails/render_test.rb
CHANGED
@@ -16,7 +16,7 @@ class RailsRenderTest < ActiveSupport::TestCase
|
|
16
16
|
BassistCell.class_eval do
|
17
17
|
def play; render :format => :js; end
|
18
18
|
end
|
19
|
-
assert_equal "alert(\"Doo\")
|
19
|
+
assert_equal "alert(\"Doo\");\n", render_cell(:bassist, :play)
|
20
20
|
end
|
21
21
|
|
22
22
|
should "also render alternative engines, like haml" do
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 3
|
7
7
|
- 6
|
8
|
-
-
|
9
|
-
version: 3.6.
|
8
|
+
- 1
|
9
|
+
version: 3.6.1
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Nick Sutterer
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2011-06-
|
17
|
+
date: 2011-06-28 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
@@ -28,7 +28,8 @@ dependencies:
|
|
28
28
|
segments:
|
29
29
|
- 3
|
30
30
|
- 0
|
31
|
-
|
31
|
+
- 0
|
32
|
+
version: 3.0.0
|
32
33
|
type: :runtime
|
33
34
|
version_requirements: *id001
|
34
35
|
- !ruby/object:Gem::Dependency
|
@@ -42,7 +43,8 @@ dependencies:
|
|
42
43
|
segments:
|
43
44
|
- 3
|
44
45
|
- 0
|
45
|
-
|
46
|
+
- 0
|
47
|
+
version: 3.0.0
|
46
48
|
type: :runtime
|
47
49
|
version_requirements: *id002
|
48
50
|
- !ruby/object:Gem::Dependency
|