cells 3.4.2 → 3.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (64) hide show
  1. data/CHANGES.textile +7 -0
  2. data/README.rdoc +17 -1
  3. data/Rakefile +2 -1
  4. data/lib/cell.rb +3 -1
  5. data/lib/cells.rb +3 -7
  6. data/lib/{tasks.rake → cells/cells.rake} +3 -1
  7. data/lib/cells/rails.rb +19 -29
  8. data/lib/cells/version.rb +1 -1
  9. data/test/app/cells/bad_guitarist/_dii.html.erb +1 -0
  10. data/test/app/cells/bassist/_dii.html.erb +1 -0
  11. data/test/app/cells/bassist/ahem.html.erb +1 -0
  12. data/test/app/cells/bassist/compose.html.erb +1 -0
  13. data/test/app/cells/bassist/contact_form.html.erb +1 -0
  14. data/test/app/cells/bassist/jam.html.erb +3 -0
  15. data/test/app/cells/bassist/play.html.erb +1 -0
  16. data/test/app/cells/bassist/play.js.erb +0 -0
  17. data/test/app/cells/bassist/pose.html.erb +1 -0
  18. data/test/app/cells/bassist/promote.html.erb +1 -0
  19. data/test/app/cells/bassist/provoke.html.erb +1 -0
  20. data/test/app/cells/bassist/sing.html.haml +1 -0
  21. data/test/app/cells/bassist/slap.html.erb +1 -0
  22. data/test/app/cells/bassist/yell.en.html.erb +1 -0
  23. data/test/app/cells/layouts/b.erb +1 -0
  24. data/test/app/cells/layouts/metal.html.erb +1 -0
  25. data/test/app/cells/producer/capture.html.erb +1 -0
  26. data/test/app/cells/producer/content_for.html.erb +2 -0
  27. data/test/cell_module_test.rb +17 -2
  28. data/test/dummy/Rakefile +7 -0
  29. data/test/dummy/app/controllers/musician_controller.rb +14 -3
  30. data/test/dummy/app/views/layouts/application.html.erb +14 -0
  31. data/test/dummy/app/views/musician/featured.html.erb +1 -0
  32. data/test/dummy/app/views/musician/featured_with_block.html.erb +4 -0
  33. data/test/dummy/app/views/musician/hamlet.html.haml +1 -0
  34. data/test/dummy/config.ru +4 -0
  35. data/test/dummy/config/database.yml +22 -0
  36. data/test/dummy/config/locales/en.yml +5 -0
  37. data/test/dummy/db/test.sqlite3 +0 -0
  38. data/test/dummy/public/404.html +26 -0
  39. data/test/dummy/public/422.html +26 -0
  40. data/test/dummy/public/500.html +26 -0
  41. data/test/dummy/public/favicon.ico +0 -0
  42. data/test/dummy/public/javascripts/application.js +2 -0
  43. data/test/dummy/public/javascripts/controls.js +965 -0
  44. data/test/dummy/public/javascripts/dragdrop.js +974 -0
  45. data/test/dummy/public/javascripts/effects.js +1123 -0
  46. data/test/dummy/public/javascripts/prototype.js +4874 -0
  47. data/test/dummy/public/javascripts/rails.js +118 -0
  48. data/test/dummy/script/rails +6 -0
  49. data/test/rails/integration_test.rb +11 -0
  50. data/test/rails/render_test.rb +0 -1
  51. metadata +81 -27
  52. data/CHANGES +0 -30
  53. data/Gemfile.lock +0 -77
  54. data/MIT-LICENSE +0 -22
  55. data/test/app/cells/test_cell.rb +0 -30
  56. data/test/app/helpers/application_helper.rb +0 -7
  57. data/test/app/helpers/helper_using_cell_helper.rb +0 -7
  58. data/test/dummy/config/initializers/backtrace_silencers.rb +0 -7
  59. data/test/dummy/config/initializers/inflections.rb +0 -10
  60. data/test/dummy/config/initializers/mime_types.rb +0 -5
  61. data/test/dummy/config/initializers/secret_token.rb +0 -7
  62. data/test/dummy/config/initializers/session_store.rb +0 -8
  63. data/test/dummy/tmp/app/cells/blog_cell.rb +0 -11
  64. data/test/dummy/tmp/test/cells/blog_cell_test.rb +0 -15
@@ -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
- # encoding: utf-8
2
-
3
- module ApplicationHelper
4
- def application_helper_method
5
- 'global'
6
- end
7
- end
@@ -1,7 +0,0 @@
1
- # encoding: utf-8
2
-
3
- module HelperUsingCellHelper
4
- def an_automatically_included_helper_method
5
- 'automatic'
6
- end
7
- 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,5 +0,0 @@
1
- # Be sure to restart your server when you modify this file.
2
-
3
- # Add new mime types for use in respond_to blocks:
4
- # Mime::Type.register "text/richtext", :rtf
5
- # Mime::Type.register_alias "text/html", :iphone
@@ -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
@@ -1,11 +0,0 @@
1
- class BlogCell < Cell::Rails
2
-
3
- def post
4
- render
5
- end
6
-
7
- def latest
8
- render
9
- end
10
-
11
- end
@@ -1,15 +0,0 @@
1
- require 'test_helper'
2
-
3
- class BlogCellTest < Cell::TestCase
4
- test "post" do
5
- invoke :post
6
- assert_select "p"
7
- end
8
-
9
- test "latest" do
10
- invoke :latest
11
- assert_select "p"
12
- end
13
-
14
-
15
- end