cells 3.4.2 → 3.4.3
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.
- data/CHANGES.textile +7 -0
- data/README.rdoc +17 -1
- data/Rakefile +2 -1
- data/lib/cell.rb +3 -1
- data/lib/cells.rb +3 -7
- data/lib/{tasks.rake → cells/cells.rake} +3 -1
- data/lib/cells/rails.rb +19 -29
- data/lib/cells/version.rb +1 -1
- data/test/app/cells/bad_guitarist/_dii.html.erb +1 -0
- data/test/app/cells/bassist/_dii.html.erb +1 -0
- data/test/app/cells/bassist/ahem.html.erb +1 -0
- data/test/app/cells/bassist/compose.html.erb +1 -0
- data/test/app/cells/bassist/contact_form.html.erb +1 -0
- data/test/app/cells/bassist/jam.html.erb +3 -0
- data/test/app/cells/bassist/play.html.erb +1 -0
- data/test/app/cells/bassist/play.js.erb +0 -0
- data/test/app/cells/bassist/pose.html.erb +1 -0
- data/test/app/cells/bassist/promote.html.erb +1 -0
- data/test/app/cells/bassist/provoke.html.erb +1 -0
- data/test/app/cells/bassist/sing.html.haml +1 -0
- data/test/app/cells/bassist/slap.html.erb +1 -0
- data/test/app/cells/bassist/yell.en.html.erb +1 -0
- data/test/app/cells/layouts/b.erb +1 -0
- data/test/app/cells/layouts/metal.html.erb +1 -0
- data/test/app/cells/producer/capture.html.erb +1 -0
- data/test/app/cells/producer/content_for.html.erb +2 -0
- data/test/cell_module_test.rb +17 -2
- data/test/dummy/Rakefile +7 -0
- data/test/dummy/app/controllers/musician_controller.rb +14 -3
- data/test/dummy/app/views/layouts/application.html.erb +14 -0
- data/test/dummy/app/views/musician/featured.html.erb +1 -0
- data/test/dummy/app/views/musician/featured_with_block.html.erb +4 -0
- data/test/dummy/app/views/musician/hamlet.html.haml +1 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/config/database.yml +22 -0
- data/test/dummy/config/locales/en.yml +5 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/public/404.html +26 -0
- data/test/dummy/public/422.html +26 -0
- data/test/dummy/public/500.html +26 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/public/javascripts/application.js +2 -0
- data/test/dummy/public/javascripts/controls.js +965 -0
- data/test/dummy/public/javascripts/dragdrop.js +974 -0
- data/test/dummy/public/javascripts/effects.js +1123 -0
- data/test/dummy/public/javascripts/prototype.js +4874 -0
- data/test/dummy/public/javascripts/rails.js +118 -0
- data/test/dummy/script/rails +6 -0
- data/test/rails/integration_test.rb +11 -0
- data/test/rails/render_test.rb +0 -1
- metadata +81 -27
- data/CHANGES +0 -30
- data/Gemfile.lock +0 -77
- data/MIT-LICENSE +0 -22
- data/test/app/cells/test_cell.rb +0 -30
- data/test/app/helpers/application_helper.rb +0 -7
- data/test/app/helpers/helper_using_cell_helper.rb +0 -7
- data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
- data/test/dummy/config/initializers/inflections.rb +0 -10
- data/test/dummy/config/initializers/mime_types.rb +0 -5
- data/test/dummy/config/initializers/secret_token.rb +0 -7
- data/test/dummy/config/initializers/session_store.rb +0 -8
- data/test/dummy/tmp/app/cells/blog_cell.rb +0 -11
- data/test/dummy/tmp/test/cells/blog_cell_test.rb +0 -15
data/test/app/cells/test_cell.rb
DELETED
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
|
|
3
|
-
class TestCell < ::Cell::Base
|
|
4
|
-
def needs_view
|
|
5
|
-
@instance_variable_one = "yeah"
|
|
6
|
-
render
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
def another_rendering_state
|
|
10
|
-
@instance_variable_one = "go"
|
|
11
|
-
render
|
|
12
|
-
end
|
|
13
|
-
|
|
14
|
-
def setting_state
|
|
15
|
-
@reset_me = '<p id="ho">ho</p>'
|
|
16
|
-
render
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
def reset_state
|
|
20
|
-
render
|
|
21
|
-
end
|
|
22
|
-
|
|
23
|
-
def state_with_not_included_helper_method
|
|
24
|
-
render
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
def state_using_params
|
|
28
|
-
params[:my_param].to_s
|
|
29
|
-
end
|
|
30
|
-
end
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces.
|
|
4
|
-
# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ }
|
|
5
|
-
|
|
6
|
-
# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code.
|
|
7
|
-
# Rails.backtrace_cleaner.remove_silencers!
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Add new inflection rules using the following format
|
|
4
|
-
# (all these examples are active by default):
|
|
5
|
-
# ActiveSupport::Inflector.inflections do |inflect|
|
|
6
|
-
# inflect.plural /^(ox)$/i, '\1en'
|
|
7
|
-
# inflect.singular /^(ox)en/i, '\1'
|
|
8
|
-
# inflect.irregular 'person', 'people'
|
|
9
|
-
# inflect.uncountable %w( fish sheep )
|
|
10
|
-
# end
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
# Your secret key for verifying the integrity of signed cookies.
|
|
4
|
-
# If you change this key, all old signed cookies will become invalid!
|
|
5
|
-
# Make sure the secret is at least 30 characters and all random,
|
|
6
|
-
# no regular words or you'll be exposed to dictionary attacks.
|
|
7
|
-
Rails.application.config.secret_token = '23095eafa1295bcba382a25a812c42e9ddde1c17b4e55ebcd6836a2a81ec0b308a25743686a9d7cd97237a66be1a49a82ac395fbdbb8f895a8e957e4833659bc'
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
# Be sure to restart your server when you modify this file.
|
|
2
|
-
|
|
3
|
-
Rails.application.config.session_store :cookie_store, :key => '_dummy_session'
|
|
4
|
-
|
|
5
|
-
# Use the database for sessions instead of the cookie-based default,
|
|
6
|
-
# which shouldn't be used to store highly confidential information
|
|
7
|
-
# (create the session table with "rake db:sessions:create")
|
|
8
|
-
# Rails.application.config.session_store :active_record_store
|