cells-capture 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. data/.gitignore +17 -0
  2. data/Gemfile +4 -0
  3. data/LICENSE.txt +22 -0
  4. data/README.md +35 -0
  5. data/Rakefile +13 -0
  6. data/cells-capture.gemspec +25 -0
  7. data/lib/cells_capture.rb +49 -0
  8. data/lib/cells_capture/version.rb +3 -0
  9. data/test/capture_test.rb +36 -0
  10. data/test/dummy/Rakefile +7 -0
  11. data/test/dummy/app/controllers/application_controller.rb +4 -0
  12. data/test/dummy/app/controllers/musician_controller.rb +36 -0
  13. data/test/dummy/app/helpers/application_helper.rb +2 -0
  14. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  15. data/test/dummy/app/views/musician/featured.html.erb +1 -0
  16. data/test/dummy/app/views/musician/featured_with_block.html.erb +4 -0
  17. data/test/dummy/app/views/musician/hamlet.html.haml +1 -0
  18. data/test/dummy/config.ru +4 -0
  19. data/test/dummy/config/application.rb +23 -0
  20. data/test/dummy/config/boot.rb +10 -0
  21. data/test/dummy/config/database.yml +22 -0
  22. data/test/dummy/config/environment.rb +5 -0
  23. data/test/dummy/config/environments/development.rb +16 -0
  24. data/test/dummy/config/environments/production.rb +46 -0
  25. data/test/dummy/config/environments/test.rb +33 -0
  26. data/test/dummy/config/locales/en.yml +5 -0
  27. data/test/dummy/config/routes.rb +4 -0
  28. data/test/dummy/db/test.sqlite3 +0 -0
  29. data/test/dummy/public/404.html +26 -0
  30. data/test/dummy/public/422.html +26 -0
  31. data/test/dummy/public/500.html +26 -0
  32. data/test/dummy/public/favicon.ico +0 -0
  33. data/test/dummy/public/stylesheets/.gitkeep +0 -0
  34. data/test/dummy/script/rails +6 -0
  35. data/test/test_helper.rb +7 -0
  36. data/test/views/bassist/content_for.html.erb +7 -0
  37. data/test/views/musicians/show.html.erb +1 -0
  38. metadata +160 -0
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in cells-capture.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2013 Nick Sutterer
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,35 @@
1
+ # cells-capture
2
+
3
+ Provides a global (brrr) `#content_for` for Cells.
4
+
5
+
6
+ # Installation
7
+
8
+ gem 'cells-capture'
9
+
10
+
11
+ # Usage
12
+
13
+ Include the module in all your cell classes that require a global (brrr) `#content_for`.
14
+
15
+ class BassistCell < Cell::Rails
16
+ include Cell::Rails::Capture
17
+
18
+ def show
19
+ render
20
+ end
21
+ end
22
+
23
+ In your cell view you use `#content_for`.
24
+
25
+ %div
26
+ - content_for :javascripts
27
+ $('#pick').append("Yo!")
28
+
29
+ The captured content is now available globally (brrr) in your controller views or your layouts.
30
+
31
+ # Limitations
32
+
33
+ Currently, if you passed a block to `#render_cell` in your view this won't work anymore.
34
+
35
+ Also, I want to note that I am not a big fan of breaking cells' encapsulation by emiting content into a global (brrr) variable. However, as many people asked for it I provide this feature to improve the world's happiness factor.
@@ -0,0 +1,13 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
3
+
4
+ require 'rake/testtask'
5
+
6
+ desc 'Test the cells-capture gem.'
7
+ task :default => :test
8
+
9
+ Rake::TestTask.new(:test) do |test|
10
+ test.libs << 'test'
11
+ test.test_files = FileList['test/*_test.rb']
12
+ test.verbose = true
13
+ end
@@ -0,0 +1,25 @@
1
+ # -*- encoding: utf-8 -*-
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'cells_capture/version'
5
+
6
+ Gem::Specification.new do |gem|
7
+ gem.name = "cells-capture"
8
+ gem.version = CellsCapture::VERSION
9
+ gem.authors = ["Nick Sutterer"]
10
+ gem.email = ["apotonick@gmail.com"]
11
+ gem.description = %q{Provides content_for for Cells.}
12
+ gem.summary = %q{Provides content_for for Cells.}
13
+ gem.homepage = ""
14
+ gem.license = "MIT"
15
+
16
+ gem.files = `git ls-files`.split($/)
17
+ gem.executables = gem.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
+ gem.require_paths = ["lib"]
20
+
21
+ gem.add_development_dependency "rake"
22
+ gem.add_development_dependency "tzinfo"
23
+
24
+ gem.add_dependency "cells"
25
+ end
@@ -0,0 +1,49 @@
1
+ require 'cell/rails'
2
+
3
+ module Cell
4
+ class Rails
5
+ module Capture
6
+ extend ActiveSupport::Concern
7
+ included do
8
+ helper ContentForExtension
9
+ end
10
+
11
+ attr_accessor :global_tpl
12
+
13
+
14
+ module RenderCellExtension
15
+ def render_cell(*args)
16
+ super(*args) do |cell| # FIXME: block gets lost.
17
+ cell.global_tpl = self
18
+ end
19
+ end
20
+ end
21
+
22
+ module ContentForExtension
23
+ def content_for(name, content=nil, &block)
24
+ # this resembles rails' own #content_for INTENTIONALLY. Due to some internal rails-thing we have to call #capture on the cell's view, otherwise,
25
+ # rails wouldn't suppress the captured output. uncomment next line to provoke.
26
+ #cnt = @tpl.capture(&block)
27
+
28
+ if content || block_given?
29
+ content = capture(&block) if block_given?
30
+ @global_tpl.view_flow.append(name, content) if content
31
+ nil
32
+ else
33
+ @view_flow.get(name)
34
+ end
35
+ # i would love to simply do this:
36
+ # TODO: refactor rails helper.
37
+ #@tpl.content_for(*args, &block)
38
+ #nil
39
+ end
40
+ end
41
+
42
+ end
43
+ end
44
+ end
45
+
46
+ # TODO: can we avoid monkey-patching #render_cell?
47
+ ActionView::Base.class_eval do
48
+ include Cell::Rails::Capture::RenderCellExtension
49
+ end
@@ -0,0 +1,3 @@
1
+ module CellsCapture
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,36 @@
1
+ require 'test_helper'
2
+
3
+ class MusiciansController < ActionController::Base
4
+ append_view_path("test/views")
5
+
6
+ def show
7
+ end
8
+ end
9
+
10
+
11
+
12
+
13
+
14
+
15
+
16
+
17
+ class BassistCell < Cell::Rails
18
+ append_view_path("test/views")
19
+
20
+ #helper ::Cells::Helpers::CaptureHelper
21
+ def content_for
22
+ render
23
+ end
24
+
25
+
26
+ include Cell::Rails::Capture
27
+ end
28
+
29
+ class CaptureTest < ActionController::TestCase
30
+ tests MusiciansController
31
+
32
+ test "#content_for" do
33
+ get 'show'
34
+ assert_equal "\n\n\nkeep me!<pre>DummDooDiiDoo</pre>", @response.body
35
+ end
36
+ end
@@ -0,0 +1,7 @@
1
+ # Add your own tasks in files placed in lib/tasks ending in .rake,
2
+ # for example lib/tasks/capistrano.rake, and they will automatically be available to Rake.
3
+
4
+ require File.expand_path('../config/application', __FILE__)
5
+ require 'rake'
6
+
7
+ Rails::Application.load_tasks
@@ -0,0 +1,4 @@
1
+ class ApplicationController < ActionController::Base
2
+ protect_from_forgery
3
+ layout 'application'
4
+ end
@@ -0,0 +1,36 @@
1
+ class MusicianController < ActionController::Base
2
+ def index
3
+ render :text => render_cell(:bassist, :promote)
4
+ end
5
+
6
+ def promote
7
+ render :text => render_cell(:trumpeter, :promote)
8
+ end
9
+
10
+ def promotion
11
+ render :text => render_cell(:bassist, :provoke)
12
+ end
13
+
14
+ def featured
15
+ end
16
+
17
+ def featured_with_block
18
+ end
19
+
20
+ def skills
21
+ render :text => render_cell(:bassist, :listen)
22
+ end
23
+
24
+ def hamlet
25
+ end
26
+
27
+ attr_reader :flag
28
+ def promotion_with_block
29
+ html = render_cell(:bassist, :play) do |cell|
30
+ @flag = cell.class
31
+ end
32
+
33
+ render :text => html
34
+ end
35
+
36
+ end
@@ -0,0 +1,2 @@
1
+ module ApplicationHelper
2
+ end
@@ -0,0 +1,14 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>Dummy</title>
5
+ <%= stylesheet_link_tag :all %>
6
+ <%= javascript_include_tag :defaults %>
7
+ <%= csrf_meta_tag %>
8
+ </head>
9
+ <body>
10
+
11
+ <%= yield %>
12
+
13
+ </body>
14
+ </html>
@@ -0,0 +1 @@
1
+ <%= render_cell :bassist, :provoke %>
@@ -0,0 +1,4 @@
1
+ <% flag = false %>
2
+ <%= render_cell :bassist, :play do |cell|
3
+ flag = cell.class
4
+ end %> from <%= flag %>
@@ -0,0 +1 @@
1
+ = render_cell :bassist, :provoke
@@ -0,0 +1,4 @@
1
+ # This file is used by Rack-based servers to start the application.
2
+
3
+ require ::File.expand_path('../config/environment', __FILE__)
4
+ run Dummy::Application
@@ -0,0 +1,23 @@
1
+ require File.expand_path('../boot', __FILE__)
2
+
3
+ require "active_model/railtie"
4
+ require "action_controller/railtie"
5
+ require "action_view/railtie"
6
+
7
+ Bundler.require
8
+
9
+
10
+ require "cells"
11
+
12
+ #require "rails_app"
13
+
14
+ module Dummy
15
+ class Application < Rails::Application
16
+ config.encoding = "utf-8"
17
+
18
+ # Configure sensitive parameters which will be filtered from the log file.
19
+ config.filter_parameters += [:password]
20
+
21
+ config.cache_store = :memory_store
22
+ end
23
+ end
@@ -0,0 +1,10 @@
1
+ require 'rubygems'
2
+ gemfile = File.expand_path('../../../../Gemfile', __FILE__)
3
+
4
+ if File.exist?(gemfile)
5
+ ENV['BUNDLE_GEMFILE'] = gemfile
6
+ require 'bundler'
7
+ Bundler.setup
8
+ end
9
+
10
+ $:.unshift File.expand_path('../../../../lib', __FILE__)
@@ -0,0 +1,22 @@
1
+ # SQLite version 3.x
2
+ # gem install sqlite3-ruby (not necessary on OS X Leopard)
3
+ development:
4
+ adapter: sqlite3
5
+ database: db/development.sqlite3
6
+ pool: 5
7
+ timeout: 5000
8
+
9
+ # Warning: The database defined as "test" will be erased and
10
+ # re-generated from your development database when you run "rake".
11
+ # Do not set this db to the same as development or production.
12
+ test:
13
+ adapter: sqlite3
14
+ database: db/test.sqlite3
15
+ pool: 5
16
+ timeout: 5000
17
+
18
+ production:
19
+ adapter: sqlite3
20
+ database: db/production.sqlite3
21
+ pool: 5
22
+ timeout: 5000
@@ -0,0 +1,5 @@
1
+ # Load the rails application
2
+ require File.expand_path('../application', __FILE__)
3
+
4
+ # Initialize the rails application
5
+ Dummy::Application.initialize!
@@ -0,0 +1,16 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # In the development environment your application's code is reloaded on
5
+ # every request. This slows down response time but is perfect for development
6
+ # since you don't have to restart the webserver when you make code changes.
7
+ config.cache_classes = false
8
+
9
+ # Log error messages when you accidentally call methods on nil.
10
+ config.whiny_nils = true
11
+
12
+ # Show full error reports and disable caching
13
+ config.consider_all_requests_local = true
14
+ config.action_view.debug_rjs = true
15
+ config.action_controller.perform_caching = false
16
+ end
@@ -0,0 +1,46 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The production environment is meant for finished, "live" apps.
5
+ # Code is not reloaded between requests
6
+ config.cache_classes = true
7
+
8
+ # Full error reports are disabled and caching is turned on
9
+ config.consider_all_requests_local = false
10
+ config.action_controller.perform_caching = true
11
+
12
+ # Specifies the header that your server uses for sending files
13
+ config.action_dispatch.x_sendfile_header = "X-Sendfile"
14
+
15
+ # For nginx:
16
+ # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect'
17
+
18
+ # If you have no front-end server that supports something like X-Sendfile,
19
+ # just comment this out and Rails will serve the files
20
+
21
+ # See everything in the log (default is :info)
22
+ # config.log_level = :debug
23
+
24
+ # Use a different logger for distributed setups
25
+ # config.logger = SyslogLogger.new
26
+
27
+ # Use a different cache store in production
28
+ # config.cache_store = :mem_cache_store
29
+
30
+ # Disable Rails's static asset server
31
+ # In production, Apache or nginx will already do this
32
+ config.serve_static_assets = false
33
+
34
+ # Enable serving of images, stylesheets, and javascripts from an asset server
35
+ # config.action_controller.asset_host = "http://assets.example.com"
36
+
37
+ # Disable delivery errors, bad email addresses will be ignored
38
+ # config.action_mailer.raise_delivery_errors = false
39
+
40
+ # Enable threaded mode
41
+ # config.threadsafe!
42
+
43
+ # Enable locale fallbacks for I18n (makes lookups for any locale fall back to
44
+ # the I18n.default_locale when a translation can not be found)
45
+ config.i18n.fallbacks = true
46
+ end
@@ -0,0 +1,33 @@
1
+ Dummy::Application.configure do
2
+ # Settings specified here will take precedence over those in config/environment.rb
3
+
4
+ # The test environment is used exclusively to run your application's
5
+ # test suite. You never need to work with it otherwise. Remember that
6
+ # your test database is "scratch space" for the test suite and is wiped
7
+ # and recreated between test runs. Don't rely on the data there!
8
+ config.cache_classes = true
9
+
10
+ # Log error messages when you accidentally call methods on nil.
11
+ config.whiny_nils = true
12
+
13
+ # Show full error reports and disable caching
14
+ config.consider_all_requests_local = true
15
+ config.action_controller.perform_caching = false
16
+
17
+ # Raise exceptions instead of rendering exception templates
18
+ config.action_dispatch.show_exceptions = false
19
+
20
+ # Disable request forgery protection in test environment
21
+ config.action_controller.allow_forgery_protection = false
22
+ config.secret_key_base = "yo"
23
+
24
+ # Tell Action Mailer not to deliver emails to the real world.
25
+ # The :test delivery method accumulates sent emails in the
26
+ # ActionMailer::Base.deliveries array.
27
+ #config.action_mailer.delivery_method = :test
28
+
29
+ # Use SQL instead of Active Record's schema dumper when creating the test database.
30
+ # This is necessary if your schema can't be completely dumped by the schema dumper,
31
+ # like if you have constraints or database-specific column types
32
+ # config.active_record.schema_format = :sql
33
+ end
@@ -0,0 +1,5 @@
1
+ # Sample localization file for English. Add more files in this directory for other locales.
2
+ # See http://github.com/svenfuchs/rails-i18n/tree/master/rails%2Flocale for starting points.
3
+
4
+ en:
5
+ hello: "Hello world"
@@ -0,0 +1,4 @@
1
+ Dummy::Application.routes.draw do
2
+ get ':controller(/:action(/:id(.:format)))'
3
+ resources :musicians
4
+ end
File without changes
@@ -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,26 @@
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
+ <p>We've been notified about this issue and we'll take a look at it shortly.</p>
24
+ </div>
25
+ </body>
26
+ </html>
File without changes
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'
@@ -0,0 +1,7 @@
1
+ require 'minitest/spec'
2
+
3
+ ENV['RAILS_ENV'] = 'test'
4
+ require "dummy/config/environment"
5
+ require "rails/test_help" # adds stuff like @routes, etc.
6
+
7
+ require 'cells_capture'
@@ -0,0 +1,7 @@
1
+ <% capture do %>
2
+ don't show me.
3
+ <% end %>
4
+ <% content_for :recorded do %>DummDoo<% end %>
5
+ <% content_for :recorded do %>DiiDoo<% end %>
6
+ <% content_for :recorded do %><% end %>
7
+ keep me!
@@ -0,0 +1 @@
1
+ <%= render_cell(:bassist, :content_for) %><pre><%= yield :recorded %></pre>
metadata ADDED
@@ -0,0 +1,160 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: cells-capture
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Nick Sutterer
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-02-24 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: tzinfo
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ - !ruby/object:Gem::Dependency
47
+ name: cells
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :runtime
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ description: Provides content_for for Cells.
63
+ email:
64
+ - apotonick@gmail.com
65
+ executables: []
66
+ extensions: []
67
+ extra_rdoc_files: []
68
+ files:
69
+ - .gitignore
70
+ - Gemfile
71
+ - LICENSE.txt
72
+ - README.md
73
+ - Rakefile
74
+ - cells-capture.gemspec
75
+ - lib/cells_capture.rb
76
+ - lib/cells_capture/version.rb
77
+ - test/capture_test.rb
78
+ - test/dummy/Rakefile
79
+ - test/dummy/app/controllers/application_controller.rb
80
+ - test/dummy/app/controllers/musician_controller.rb
81
+ - test/dummy/app/helpers/application_helper.rb
82
+ - test/dummy/app/views/layouts/application.html.erb
83
+ - test/dummy/app/views/musician/featured.html.erb
84
+ - test/dummy/app/views/musician/featured_with_block.html.erb
85
+ - test/dummy/app/views/musician/hamlet.html.haml
86
+ - test/dummy/config.ru
87
+ - test/dummy/config/application.rb
88
+ - test/dummy/config/boot.rb
89
+ - test/dummy/config/database.yml
90
+ - test/dummy/config/environment.rb
91
+ - test/dummy/config/environments/development.rb
92
+ - test/dummy/config/environments/production.rb
93
+ - test/dummy/config/environments/test.rb
94
+ - test/dummy/config/locales/en.yml
95
+ - test/dummy/config/routes.rb
96
+ - test/dummy/db/test.sqlite3
97
+ - test/dummy/public/404.html
98
+ - test/dummy/public/422.html
99
+ - test/dummy/public/500.html
100
+ - test/dummy/public/favicon.ico
101
+ - test/dummy/public/stylesheets/.gitkeep
102
+ - test/dummy/script/rails
103
+ - test/test_helper.rb
104
+ - test/views/bassist/content_for.html.erb
105
+ - test/views/musicians/show.html.erb
106
+ homepage: ''
107
+ licenses:
108
+ - MIT
109
+ post_install_message:
110
+ rdoc_options: []
111
+ require_paths:
112
+ - lib
113
+ required_ruby_version: !ruby/object:Gem::Requirement
114
+ none: false
115
+ requirements:
116
+ - - ! '>='
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ required_rubygems_version: !ruby/object:Gem::Requirement
120
+ none: false
121
+ requirements:
122
+ - - ! '>='
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ requirements: []
126
+ rubyforge_project:
127
+ rubygems_version: 1.8.24
128
+ signing_key:
129
+ specification_version: 3
130
+ summary: Provides content_for for Cells.
131
+ test_files:
132
+ - test/capture_test.rb
133
+ - test/dummy/Rakefile
134
+ - test/dummy/app/controllers/application_controller.rb
135
+ - test/dummy/app/controllers/musician_controller.rb
136
+ - test/dummy/app/helpers/application_helper.rb
137
+ - test/dummy/app/views/layouts/application.html.erb
138
+ - test/dummy/app/views/musician/featured.html.erb
139
+ - test/dummy/app/views/musician/featured_with_block.html.erb
140
+ - test/dummy/app/views/musician/hamlet.html.haml
141
+ - test/dummy/config.ru
142
+ - test/dummy/config/application.rb
143
+ - test/dummy/config/boot.rb
144
+ - test/dummy/config/database.yml
145
+ - test/dummy/config/environment.rb
146
+ - test/dummy/config/environments/development.rb
147
+ - test/dummy/config/environments/production.rb
148
+ - test/dummy/config/environments/test.rb
149
+ - test/dummy/config/locales/en.yml
150
+ - test/dummy/config/routes.rb
151
+ - test/dummy/db/test.sqlite3
152
+ - test/dummy/public/404.html
153
+ - test/dummy/public/422.html
154
+ - test/dummy/public/500.html
155
+ - test/dummy/public/favicon.ico
156
+ - test/dummy/public/stylesheets/.gitkeep
157
+ - test/dummy/script/rails
158
+ - test/test_helper.rb
159
+ - test/views/bassist/content_for.html.erb
160
+ - test/views/musicians/show.html.erb