cells-capture 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +2 -2
- data/lib/cells_capture.rb +1 -2
- data/lib/cells_capture/CHANGES.md +3 -0
- data/lib/cells_capture/version.rb +1 -1
- metadata +14 -21
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 598f35bebadd21a31d8876a2e01c8a2a2a7b2dd1
|
4
|
+
data.tar.gz: c437045fdb031bc2565b59e57e904a830d13a642
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: bdd59c6c3083164bb50bfa6cb1570b9351ef0ec282639e438180af8aa2754a9473cc78ae9a16f639f53566e3ac781400cd5251cf7d87208597f3ea78595942ce
|
7
|
+
data.tar.gz: 09e5f76ef16e305296666c549d2db825a7ad78fb9cb7fca80f7f05bd5ebe4b86e084194aa43c2341e494fd507e693b9f63dd7bf2ee35a736d54a7c99abefb377
|
data/README.md
CHANGED
@@ -5,7 +5,7 @@ Provides a global (brrr) `#content_for` for Cells.
|
|
5
5
|
|
6
6
|
# Installation
|
7
7
|
|
8
|
-
gem 'cells-capture'
|
8
|
+
gem 'cells-capture', require: 'cells_capture'
|
9
9
|
|
10
10
|
|
11
11
|
# Usage
|
@@ -32,4 +32,4 @@ The captured content is now available globally (brrr) in your controller views o
|
|
32
32
|
|
33
33
|
Currently, if you passed a block to `#render_cell` in your view this won't work anymore.
|
34
34
|
|
35
|
-
Also, I want to note that I am not a big fan of breaking cells' encapsulation by emiting content into a global
|
35
|
+
Also, I want to note that I am not a big fan of breaking cells' encapsulation by emiting content into a global variable. However, as many people asked for it I provide this feature to improve the world's happiness factor.
|
data/lib/cells_capture.rb
CHANGED
@@ -10,11 +10,10 @@ module Cell
|
|
10
10
|
|
11
11
|
attr_accessor :global_tpl
|
12
12
|
|
13
|
-
|
14
13
|
module RenderCellExtension
|
15
14
|
def render_cell(*args)
|
16
15
|
super(*args) do |cell| # FIXME: block gets lost.
|
17
|
-
cell.global_tpl = self
|
16
|
+
cell.global_tpl = self if cell.is_a? ::Cell::Rails::Capture
|
18
17
|
end
|
19
18
|
end
|
20
19
|
end
|
metadata
CHANGED
@@ -1,62 +1,55 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cells-capture
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Nick Sutterer
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-01-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: tzinfo
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: cells
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :runtime
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
description: Provides content_for for Cells.
|
@@ -73,6 +66,7 @@ files:
|
|
73
66
|
- Rakefile
|
74
67
|
- cells-capture.gemspec
|
75
68
|
- lib/cells_capture.rb
|
69
|
+
- lib/cells_capture/CHANGES.md
|
76
70
|
- lib/cells_capture/version.rb
|
77
71
|
- test/capture_test.rb
|
78
72
|
- test/dummy/Rakefile
|
@@ -106,27 +100,26 @@ files:
|
|
106
100
|
homepage: ''
|
107
101
|
licenses:
|
108
102
|
- MIT
|
103
|
+
metadata: {}
|
109
104
|
post_install_message:
|
110
105
|
rdoc_options: []
|
111
106
|
require_paths:
|
112
107
|
- lib
|
113
108
|
required_ruby_version: !ruby/object:Gem::Requirement
|
114
|
-
none: false
|
115
109
|
requirements:
|
116
|
-
- -
|
110
|
+
- - '>='
|
117
111
|
- !ruby/object:Gem::Version
|
118
112
|
version: '0'
|
119
113
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
120
|
-
none: false
|
121
114
|
requirements:
|
122
|
-
- -
|
115
|
+
- - '>='
|
123
116
|
- !ruby/object:Gem::Version
|
124
117
|
version: '0'
|
125
118
|
requirements: []
|
126
119
|
rubyforge_project:
|
127
|
-
rubygems_version:
|
120
|
+
rubygems_version: 2.0.3
|
128
121
|
signing_key:
|
129
|
-
specification_version:
|
122
|
+
specification_version: 4
|
130
123
|
summary: Provides content_for for Cells.
|
131
124
|
test_files:
|
132
125
|
- test/capture_test.rb
|