Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #3 from bramswenson/develop

Mongoid Support +
  • Loading branch information...
commit b33b3437283c342307c32a1c85fffb7cc0f02238 2 parents 186f15e + a29b5f5
@knewter authored
Showing with 11,590 additions and 280 deletions.
  1. +7 −0 .gitignore
  2. +1 −0  .rbenv-version
  3. +3 −0  .simplecov
  4. +5 −1 .travis.yml
  5. +17 −0 .yardopts
  6. +24 −3 Gemfile
  7. +0 −159 Gemfile.lock
  8. 0  History.md
  9. +21 −0 LICENSE
  10. +74 −33 README.md
  11. +20 −25 Rakefile
  12. +16 −3 app/models/imagine/album.rb
  13. +17 −4 app/models/imagine/image.rb
  14. +0 −1  config/initializers/dragonfly.rb
  15. +0 −7 db/migrate/20110826162909_create_albums.rb
  16. +0 −9 db/migrate/20110826222354_create_images.rb
  17. +228 −0 doc/CreateImagineTables.html
  18. +360 −0 doc/Imagine.html
  19. +390 −0 doc/Imagine/AlbumsController.html
  20. +151 −0 doc/Imagine/ApplicationController.html
  21. +127 −0 doc/Imagine/ApplicationHelper.html
  22. +137 −0 doc/Imagine/BasicListView.html
  23. +147 −0 doc/Imagine/BasicListView/Engine.html
  24. +522 −0 doc/Imagine/Config.html
  25. +147 −0 doc/Imagine/Engine.html
  26. +127 −0 doc/Imagine/Engines.html
  27. +137 −0 doc/Imagine/GalleriaView.html
  28. +147 −0 doc/Imagine/GalleriaView/Engine.html
  29. +340 −0 doc/Imagine/ImagesController.html
  30. +264 −0 doc/Imagine/InitializerGenerator.html
  31. +359 −0 doc/Imagine/MigrationGenerator.html
  32. +139 −0 doc/Imagine/ModelExtensions.html
  33. +210 −0 doc/Imagine/ModelExtensions/Album.html
  34. +127 −0 doc/Imagine/ModelExtensions/Album/ClassMethods.html
  35. +127 −0 doc/Imagine/ModelExtensions/Album/InstanceMethods.html
  36. +212 −0 doc/Imagine/ModelExtensions/Image.html
  37. +127 −0 doc/Imagine/ModelExtensions/Image/ClassMethods.html
  38. +127 −0 doc/Imagine/ModelExtensions/Image/InstanceMethods.html
  39. +137 −0 doc/Imagine/OrbitView.html
  40. +147 −0 doc/Imagine/OrbitView/Engine.html
  41. +147 −0 doc/Imagine/OrmNotSupportedError.html
  42. +596 −0 doc/Imagine/Plugin.html
  43. +292 −0 doc/Imagine/Plugins.html
  44. +139 −0 doc/Imagine/Warehouses.html
  45. +313 −0 doc/Imagine/Warehouses/Album.html
  46. +315 −0 doc/Imagine/Warehouses/Image.html
  47. +455 −0 doc/_index.html
  48. +47 −0 doc/class_list.html
  49. +109 −0 doc/css/common.css
  50. +55 −0 doc/css/full_list.css
  51. +322 −0 doc/css/style.css
  52. +98 −0 doc/file.ActiveRecord.html
  53. +98 −0 doc/file.Configuration.html
  54. +98 −0 doc/file.Controllers.html
  55. +98 −0 doc/file.Dragonfly.html
  56. +98 −0 doc/file.GeneralUsage.html
  57. +98 −0 doc/file.History.html
  58. +150 −0 doc/file.Index.html
  59. +119 −0 doc/file.LICENSE.html
  60. +98 −0 doc/file.Models.html
  61. +98 −0 doc/file.Mongoid.html
  62. +98 −0 doc/file.PluginDevelopment.html
  63. +98 −0 doc/file.Plugins.html
  64. +222 −0 doc/file.README.html
  65. +98 −0 doc/file.Routes.html
  66. +98 −0 doc/file.ViewHelpers.html
  67. +98 −0 doc/file.Views.html
  68. +91 −0 doc/file_list.html
  69. +13 −0 doc/frames.html
  70. +222 −0 doc/index.html
  71. +205 −0 doc/js/app.js
  72. +167 −0 doc/js/full_list.js
  73. +16 −0 doc/js/jquery.js
  74. +350 −0 doc/method_list.html
  75. +136 −0 doc/top-level-namespace.html
  76. 0  extra_docs/ActiveRecord.md
  77. 0  extra_docs/Configuration.md
  78. 0  extra_docs/Controllers.md
  79. 0  extra_docs/Dragonfly.md
  80. 0  extra_docs/GeneralUsage.md
  81. 0  extra_docs/Models.md
  82. 0  extra_docs/Mongoid.md
  83. 0  extra_docs/PluginDevelopment.md
  84. 0  extra_docs/Plugins.md
  85. 0  extra_docs/Routes.md
  86. 0  extra_docs/ViewHelpers.md
  87. 0  extra_docs/Views.md
  88. +2 −7 imagine.gemspec
  89. +11 −11 lib/imagine.rb
  90. +46 −0 lib/imagine/config.rb
  91. +2 −2 lib/imagine/engine.rb
  92. +19 −0 lib/imagine/model_extensions/album.rb
  93. +20 −0 lib/imagine/model_extensions/image.rb
  94. +16 −0 lib/rails/generators/imagine/files/imagine.rb
  95. +17 −0 lib/rails/generators/imagine/initializer_generator.rb
  96. +28 −0 lib/rails/generators/imagine/migration_generator.rb
  97. +13 −0 lib/rails/generators/imagine/templates/migration.rb
  98. 0  { → plugins}/basic_list_view/app/views/imagine/albums/basic_list_view/show.html.haml
  99. 0  { → plugins}/basic_list_view/app/views/imagine/images/basic_list_view/_image.html.haml
  100. 0  { → plugins}/basic_list_view/imagine-basic_list_view.gemspec
  101. 0  { → plugins}/basic_list_view/lib/imagine-basic_list_view.rb
  102. 0  { → plugins}/galleria_view/app/assets/images/classic-loader.gif
  103. 0  { → plugins}/galleria_view/app/assets/images/classic-map.png
  104. 0  { → plugins}/galleria_view/app/assets/javascripts/galleria-1.2.5.js
  105. 0  { → plugins}/galleria_view/app/assets/javascripts/galleria-1.2.5.min.js
  106. 0  { → plugins}/galleria_view/app/assets/javascripts/galleria/themes/classic/galleria.classic.js
  107. 0  { → plugins}/galleria_view/app/assets/javascripts/galleria/themes/classic/galleria.classic.min.js
  108. 0  { → plugins}/galleria_view/app/assets/stylesheets/galleria/themes/classic/galleria.classic.css
  109. 0  { → plugins}/galleria_view/app/views/imagine/albums/galleria_view/show.html.haml
  110. 0  {orbit_view → plugins/galleria_view}/app/views/imagine/images/orbit_view/_image.html.haml
  111. 0  { → plugins}/galleria_view/imagine-galleria_view.gemspec
  112. 0  { → plugins}/galleria_view/lib/imagine-galleria_view.rb
  113. 0  { → plugins}/orbit_view/app/assets/images/orbit/bullets.jpg
  114. 0  { → plugins}/orbit_view/app/assets/images/orbit/left-arrow.png
  115. 0  { → plugins}/orbit_view/app/assets/images/orbit/loading.gif
  116. 0  { → plugins}/orbit_view/app/assets/images/orbit/mask-black.png
  117. 0  { → plugins}/orbit_view/app/assets/images/orbit/pause-black.png
  118. 0  { → plugins}/orbit_view/app/assets/images/orbit/right-arrow.png
  119. 0  { → plugins}/orbit_view/app/assets/images/orbit/rotator-black.png
  120. 0  { → plugins}/orbit_view/app/assets/images/orbit/timer-black.png
  121. 0  { → plugins}/orbit_view/app/assets/javascripts/jquery.orbit-1.2.3.min.js
  122. 0  { → plugins}/orbit_view/app/assets/stylesheets/orbit-1.2.3.css
  123. 0  { → plugins}/orbit_view/app/views/imagine/albums/orbit_view/show.html.haml
  124. 0  {galleria_view → plugins/orbit_view}/app/views/imagine/images/orbit_view/_image.html.haml
  125. 0  { → plugins}/orbit_view/imagine-orbit_view.gemspec
  126. 0  { → plugins}/orbit_view/lib/imagine-orbit_view.rb
  127. +12 −0 spec/app/models/album_spec.rb
  128. +13 −0 spec/app/models/image_spec.rb
  129. +12 −1 spec/dummy/config/application.rb
  130. +3 −1 spec/dummy/config/database.yml
  131. +39 −0 spec/dummy/config/environments/test_mongoid.rb
  132. +4 −0 spec/dummy/config/initializers/dragonfly.rb
  133. +16 −0 spec/dummy/config/initializers/imagine.rb
  134. +24 −0 spec/dummy/config/mongoid.yml
  135. +13 −0 spec/dummy/db/migrate/20111030211331_create_imagine_tables.rb
  136. +1 −1  spec/dummy/db/schema.rb
  137. BIN  spec/dummy/db/test.sqlite3
  138. +53 −0 spec/lib/imagine_config_spec.rb
  139. +20 −2 spec/lib/imagine_spec.rb
  140. +17 −10 spec/spec_helper.rb
  141. +38 −0 yard/handlers/configurable_attr_handler.rb
  142. +16 −0 yard/setup.rb
  143. +109 −0 yard/templates/default/fulldoc/html/css/common.css
  144. +82 −0 yard/templates/default/layout/html/layout.erb
  145. +31 −0 yard/templates/default/module/html/configuration_summary.erb
  146. +17 −0 yard/templates/default/module/setup.rb
View
7 .gitignore
@@ -2,6 +2,7 @@
log/*.log
pkg/
spec/dummy/db/*.sqlite3
+spec/dummy/db/*.sqlite3-journal
spec/dummy/log/*.log
spec/dummy/tmp/
*.sw*
@@ -16,3 +17,9 @@ imagine-*.gem
# vim-ruby-debugger
posix
+
+# Gems shouldn't commit their lockfile
+Gemfile.lock
+
+# yard cache
+.yardoc/*
View
1  .rbenv-version
@@ -0,0 +1 @@
+1.9.2-p290
View
3  .simplecov
@@ -0,0 +1,3 @@
+SimpleCov.start 'rails' do
+ add_filter '.bundle/bundle'
+end
View
6 .travis.yml
@@ -1,10 +1,14 @@
-script: "bundle exec rake db:create db:migrate spec"
+script: "bundle exec rake travis"
notifications:
email:
- josh@isotope11.com
+ - bram@craniumisajar.com
rvm:
- 1.8.7
- 1.9.2
- 1.9.3
#- rbx-2.0
#- jruby
+env:
+ - RAILS_ENV=test
+ - RAILS_ENV=test_mongoid
View
17 .yardopts
@@ -0,0 +1,17 @@
+--main README.md
+-e ./yard/setup.rb
+-
+extra_docs/GeneralUsage.md
+extra_docs/Configuration.md
+extra_docs/Models.md
+extra_docs/Controllers.md
+extra_docs/Views.md
+extra_docs/ViewHelpers.md
+extra_docs/Routes.md
+extra_docs/Plugins.md
+extra_docs/PluginDevelopment.md
+extra_docs/ActiveRecord.md
+extra_docs/Mongoid.md
+extra_docs/Dragonfly.md
+LICENSE
+History.md
View
27 Gemfile
@@ -2,13 +2,34 @@ source "http://rubygems.org"
gem 'rails', '3.1.0'
-gem 'sqlite3'
-
-gem 'jquery-rails'
# To use debugger
#gem 'ruby-debug19', :require => 'ruby-debug'
#gem 'ruby-debug-ide19'
gem 'simplecov', '>= 0.4.0', :require => false, :group => :test
+group :development, :test do
+ gem 'sqlite3'
+ gem 'jquery-rails'
+ gem 'rspec'
+ gem 'rspec-rails'
+ gem 'shoulda-matchers'
+ gem "capybara"
+ gem "factory_girl"
+ gem "spork"
+ gem 'yard'
+ gem 'rdiscount'
+end
+
+group :test_mongoid do
+ gem 'rspec'
+ gem 'rspec-rails'
+ gem 'shoulda-matchers'
+ gem "capybara"
+ gem "factory_girl"
+ gem "spork"
+ gem 'mongoid'
+ gem 'bson_ext'
+ gem 'mongoid-rspec'
+end
gemspec
View
159 Gemfile.lock
@@ -1,159 +0,0 @@
-PATH
- remote: .
- specs:
- imagine (0.2.1)
- dragonfly (~> 0.9.0)
- haml-rails
- imagine-basic_list_view (~> 0.1.0)
- imagine-orbit_view (~> 0.1.0)
- rack-cache (>= 0.5.3)
- imagine-basic_list_view (0.1.4)
- imagine-orbit_view (0.1.9)
-
-GEM
- remote: http://rubygems.org/
- specs:
- actionmailer (3.1.0)
- actionpack (= 3.1.0)
- mail (~> 2.3.0)
- actionpack (3.1.0)
- activemodel (= 3.1.0)
- activesupport (= 3.1.0)
- builder (~> 3.0.0)
- erubis (~> 2.7.0)
- i18n (~> 0.6)
- rack (~> 1.3.2)
- rack-cache (~> 1.0.3)
- rack-mount (~> 0.8.2)
- rack-test (~> 0.6.1)
- sprockets (~> 2.0.0)
- activemodel (3.1.0)
- activesupport (= 3.1.0)
- bcrypt-ruby (~> 3.0.0)
- builder (~> 3.0.0)
- i18n (~> 0.6)
- activerecord (3.1.0)
- activemodel (= 3.1.0)
- activesupport (= 3.1.0)
- arel (~> 2.2.1)
- tzinfo (~> 0.3.29)
- activeresource (3.1.0)
- activemodel (= 3.1.0)
- activesupport (= 3.1.0)
- activesupport (3.1.0)
- multi_json (~> 1.0)
- arel (2.2.1)
- bcrypt-ruby (3.0.1)
- builder (3.0.0)
- capybara (1.1.1)
- mime-types (>= 1.16)
- nokogiri (>= 1.3.3)
- rack (>= 1.0.0)
- rack-test (>= 0.5.4)
- selenium-webdriver (~> 2.0)
- xpath (~> 0.1.4)
- childprocess (0.2.2)
- ffi (~> 1.0.6)
- diff-lcs (1.1.3)
- dragonfly (0.9.8)
- rack
- erubis (2.7.0)
- factory_girl (2.1.0)
- ffi (1.0.9)
- haml (3.1.3)
- haml-rails (0.3.4)
- actionpack (~> 3.0)
- activesupport (~> 3.0)
- haml (~> 3.0)
- railties (~> 3.0)
- hike (1.2.1)
- i18n (0.6.0)
- jquery-rails (1.0.14)
- railties (~> 3.0)
- thor (~> 0.14)
- json_pure (1.6.0)
- mail (2.3.0)
- i18n (>= 0.4.0)
- mime-types (~> 1.16)
- treetop (~> 1.4.8)
- mime-types (1.16)
- multi_json (1.0.3)
- nokogiri (1.5.0)
- polyglot (0.3.2)
- rack (1.3.2)
- rack-cache (1.0.3)
- rack (>= 0.4)
- rack-mount (0.8.3)
- rack (>= 1.0.0)
- rack-ssl (1.3.2)
- rack
- rack-test (0.6.1)
- rack (>= 1.0)
- rails (3.1.0)
- actionmailer (= 3.1.0)
- actionpack (= 3.1.0)
- activerecord (= 3.1.0)
- activeresource (= 3.1.0)
- activesupport (= 3.1.0)
- bundler (~> 1.0)
- railties (= 3.1.0)
- railties (3.1.0)
- actionpack (= 3.1.0)
- activesupport (= 3.1.0)
- rack-ssl (~> 1.3.2)
- rake (>= 0.8.7)
- rdoc (~> 3.4)
- thor (~> 0.14.6)
- rake (0.9.2)
- rdoc (3.9.4)
- rspec (2.6.0)
- rspec-core (~> 2.6.0)
- rspec-expectations (~> 2.6.0)
- rspec-mocks (~> 2.6.0)
- rspec-core (2.6.4)
- rspec-expectations (2.6.0)
- diff-lcs (~> 1.1.2)
- rspec-mocks (2.6.0)
- rspec-rails (2.6.1)
- actionpack (~> 3.0)
- activesupport (~> 3.0)
- railties (~> 3.0)
- rspec (~> 2.6.0)
- rubyzip (0.9.4)
- selenium-webdriver (2.6.0)
- childprocess (>= 0.2.1)
- ffi (>= 1.0.7)
- json_pure
- rubyzip
- simplecov (0.5.3)
- multi_json (~> 1.0.3)
- simplecov-html (~> 0.5.3)
- simplecov-html (0.5.3)
- spork (0.8.5)
- sprockets (2.0.0)
- hike (~> 1.2)
- rack (~> 1.0)
- tilt (~> 1.1, != 1.3.0)
- sqlite3 (1.3.4)
- thor (0.14.6)
- tilt (1.3.3)
- treetop (1.4.10)
- polyglot
- polyglot (>= 0.3.1)
- tzinfo (0.3.29)
- xpath (0.1.4)
- nokogiri (~> 1.3)
-
-PLATFORMS
- ruby
-
-DEPENDENCIES
- capybara
- factory_girl
- imagine!
- jquery-rails
- rails (= 3.1.0)
- rspec-rails (~> 2.5)
- simplecov (>= 0.4.0)
- spork
- sqlite3
View
0  History.md
No changes.
View
21 LICENSE
@@ -0,0 +1,21 @@
+The MIT License
+
+Copyright (c) 2011 Josh Adams
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
107 README.md
@@ -1,48 +1,65 @@
-# Imagine
+Imagine
+-------
[![Travis CI Build Status](http://travis-ci.org/knewter/imagine.png)](http://travis-ci.org/knewter/imagine)
-A rails image gallery, that's mountable. Works on rails 3.1 at least :)
+Imagine is a [Rails](http://rubyonrails.org) engine that provides drop-in image gallery support. It is extensible, and aims to be the de facto standard for Rails image galleries. Its a Rails image gallery, that's mountable. Works on rails 3.1 at least :) Should work on 3.x
+
It's still in active development.
* [Github project](http://www.github.com/knewter/imagine)
-## USAGE
-To use Imagine in your app, simply add it to your Gemfile. Then, mount it by:
+See the links on the right for more info.
- mount Imagine::Engine, :at => "/imagine"
+Installation
+------------
+Add this to the Gemfile of your Rails 3.1 project:
-Install the migrations with:
+ gem 'imagine'
- bundle exec rake imagine:install:migrations
+Bundle that puppy up:
-And run the migrations with:
+ bundle install
- bundle exec rake db:migrate
+Generate an initializer file with:
-Finally, visit /imagine/albums in your browser to get started.
+ rails generate imagine:initializer
-## EXTERNAL DEPENDENCIES
-Imagine uses Dragonfly, which assumes you have ImageMagick installed on your server.
+Edit it with a sensible editor to taste:
-## TODO
-* Allow a user to choose the default display style at album level
-* Provide a standard means of wrapping with authentication
-* Provide a happy-path for attaching albums polymorphically to other objects
-* Make it look a little prettier. Provide a stylesheet that you can include if you so desire.
+ vi config/initializers/imagine.rb
+
+Install the migrations if you use ActiveRecord with:
+
+ rails generate imagine:migration
+
+And run the migrations with:
-## Plugins
-New album display types are specified in plugins.
+ rake db:migrate
-Plugins are just gems. There is a plugin shipped with the core project called
-`imagine_basic_list`. It should serve as a good template for building your own.
-There is another plugin called `orbit_view` that displays the album using jquery
-orbit.
+Imagine mounting Imagine, then do it!:
-They're just rails engines, that have a bit of configuration logic to let
-Imagine know that they should be incuded in the template style lists.
+ mount Imagine::Engine, :at => "/imagine"
+
+Finally, visit /imagine/albums in your browser to get started.
+Features
+--------
+* Mountable rails engine. Drops in to provide photo album support.
+* Plugin system allows new album view types to be built as minimal rails engines of their own.
+* Set default album style in your app.
+* View any album in any style by passing the plugin in params.
+* Supports ActiveRecord or Mongoid
-## Testing
+External Dependencies
+---------------------
+Imagine uses Dragonfly, which assumes you have ImageMagick installed on your server.
+
+Plugins
+-------
+See the documentation.
+
+Testing
+-------
I've got this set up to use spork, so just do the following:
In one terminal, do:
@@ -51,13 +68,37 @@ In one terminal, do:
In another terminal, once that's done, you can:
- bundle exec rspec spec
+ bundle exec rake spec
+ RAILS_ENV=test_mongoid bundle exec rake spec
-## License
-This project uses MIT-LICENSE.
-
-## Contributors
-Josh Adams (josh@isotope11.com)
+Todo
+----
+* Allow a user to choose the default display style at album level
+* Provide a standard means of wrapping with authentication
+* Provide a happy-path for attaching albums polymorphically to other objects
+* Make it look a little prettier. Provide a stylesheet that you can include if you so desire.
-Some code (plugin system, .travis.yml) lifted ungraciously from http://github.com/resolve/refinerycms. Those guys are awesome.
+Contributing
+------------
+If you want to contribute, you can do so a few different ways. You could fork us on [github](http://github.com/knewter/imagine), you could build a new album view plugin, or you could just [give us some feedback or suggestions](http://www.github.com/knewter/imagine/issues).
+
+Issues/Suggestions/Questions
+------
+Please use the [github issue tracker](http://github.com/knewter/imagine/issues).
+
+Credits
+-------
+- [Isotope11](http://github.com/isotope11) (sponsors)
+- [Josh Adams](http://github.com/knewter) (author)
+- [Bram Swenson](http://github.com/bramswenson) (contributor and documentation author)
+- [Mark Evans](http://github.com/markevans) (author of Dragonfly and these yard templates)
+- [Resolve](http://github.com/resolve) Some code (plugin system, .travis.yml) lifted ungraciously from http://github.com/resolve/refinerycms. Those guys are awesome.
+- Loads of helpful comments, issues, questions, suggestions and insults from others - you know who you are!
+
+License
+-------
+This project uses MIT-LICENSE.
+Copyright
+---------
+Copyright (c) 2011 Josh Adams. See LICENSE for details.
View
45 Rakefile
@@ -1,42 +1,37 @@
#!/usr/bin/env rake
begin
require 'bundler/setup'
+ require 'bundler/gem_tasks'
rescue LoadError
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
end
-begin
- require 'rdoc/task'
-rescue LoadError
- require 'rdoc/rdoc'
- require 'rake/rdoctask'
- RDoc::Task = Rake::RDocTask
-end
-
-RDoc::Task.new(:rdoc) do |rdoc|
- rdoc.rdoc_dir = 'rdoc'
- rdoc.title = 'Imagine'
- rdoc.options << '--line-numbers' << '--inline-source'
- rdoc.rdoc_files.include('README.rdoc')
- rdoc.rdoc_files.include('lib/**/*.rb')
-end
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
load 'rails/tasks/engine.rake'
-
-require 'rake/testtask'
-
require 'rspec/core/rake_task'
-
-Rake::TestTask.new(:test) do |t|
- t.libs << 'lib'
- t.libs << 'test'
- t.pattern = 'test/**/*_test.rb'
- t.verbose = false
-end
+require 'yard'
desc 'run specs'
RSpec::Core::RakeTask.new do |t|
t.pattern = "./spec/**/*_spec.rb"
end
+desc 'run specs for travis'
+task :travis do
+ unless ENV['RAILS_ENV'] == 'test_mongoid'
+ Rake::Task["app:db:create"].invoke
+ Rake::Task["app:db:schema:load"].invoke
+ end
+ Rake::Task["spec"].invoke
+end
+
+YARD::Rake::YardocTask.new do |t|
+ t.files = [ 'lib/**/*.rb', 'app/**/*.rb', 'plugins/**/*.rb' ]
+ t.options = []
+end
+YARD::Rake::YardocTask.new 'yard:changed' do |t|
+ t.files = `git status | grep '.rb' | grep modified | grep -v yard | cut -d' ' -f4`.split
+ t.options = []
+end
+
task :default => :spec
View
19 app/models/imagine/album.rb
@@ -1,6 +1,19 @@
module Imagine
- class Album < ActiveRecord::Base
- validates :name, :presence => true
- has_many :images
+ case Imagine.orm.to_sym
+ when :active_record
+ class Album < ActiveRecord::Base
+ include Imagine::ModelExtensions::Album
+ set_table_name :imagine_albums
+ end
+ when :mongoid
+ class Album
+ include Mongoid::Document
+ include Mongoid::Timestamps
+ include Imagine::ModelExtensions::Album
+ store_in :imagine_albums
+ field :name, :type => String
+ end
+ else
+ raise Imagine::OrmNotSupportedError.new("#{Imagine.orm}, though we do accept nice pull requests :)")
end
end
View
21 app/models/imagine/image.rb
@@ -1,7 +1,20 @@
module Imagine
- class Image < ActiveRecord::Base
- image_accessor :file
- belongs_to :album
- validates_presence_of :file
+ case Imagine.orm.to_sym
+ when :active_record
+ class Image < ActiveRecord::Base
+ include Imagine::ModelExtensions::Image
+ set_table_name :imagine_images
+ end
+ when :mongoid
+ class Image
+ include Mongoid::Document
+ include Mongoid::Timestamps
+ include Imagine::ModelExtensions::Image
+ store_in :imagine_images
+ field :file_name, :type => String
+ field :file_uid, :type => String
+ end
+ else
+ raise Imagine::OrmNotSupportedError.new("#{Imagine.orm}, though we do accept nice pull requests :)")
end
end
View
1  config/initializers/dragonfly.rb
@@ -1 +0,0 @@
-require 'dragonfly/rails/images'
View
7 db/migrate/20110826162909_create_albums.rb
@@ -1,7 +0,0 @@
-class CreateAlbums < ActiveRecord::Migration
- def change
- create_table :imagine_albums do |t|
- t.string :name
- end
- end
-end
View
9 db/migrate/20110826222354_create_images.rb
@@ -1,9 +0,0 @@
-class CreateImages < ActiveRecord::Migration
- def change
- create_table :imagine_images do |t|
- t.string :file_name
- t.string :file_uid
- t.integer :album_id
- end
- end
-end
View
228 doc/CreateImagineTables.html
@@ -0,0 +1,228 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Class: CreateImagineTables
+
+ &mdash; Documentation by YARD 0.7.3
+
+</title>
+
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
+
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '';
+ if (relpath != '') relpath += '/';
+</script>
+
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
+
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
+
+
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Inconsolata">
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans">
+ <script type="text/javascript" charset="utf-8">
+ (function($){
+ // YARD automatically creates a table of contents
+ // Let's place it inside .col1, instead of #content
+ $(document).ready(function(){
+ $('#toc').prependTo($('.col1'));
+
+ });
+ })(jQuery);
+ </script>
+ </head>
+ <body>
+ <!-- GOOGLE ANALYTICS -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-16382932-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <!-- *************** -->
+
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header" class="clearfix">
+
+ <div id="logo">Imagine (v 0.2.3)</div>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ </div>
+
+ <div>
+ <iframe id="search_frame"></iframe>
+ </div>
+
+ <div id="content" class="clearfix">
+ <div class="col1">
+ <h1>Class: CreateImagineTables
+
+
+
+</h1>
+
+<dl class="box">
+
+ <dt class="r1">Inherits:</dt>
+ <dd class="r1">
+ <span class="inheritName">ActiveRecord::Migration</span>
+
+ <ul class="fullTree">
+ <li>Object</li>
+
+ <li class="next">ActiveRecord::Migration</li>
+
+ <li class="next">CreateImagineTables</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">lib/rails/generators/imagine/templates/migration.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+
+
+
+
+
+
+
+
+
+
+ <h2>
+ Instance Method Summary
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ </h2>
+
+ <ul class="summary">
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#change-instance_method" title="#change (instance method)">- (Object) <strong>change</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ </ul>
+
+
+
+
+
+ <div id="instance_method_details" class="method_details_list">
+ <h2>Instance Method Details</h2>
+
+
+ <div class="method_details first">
+ <p class="signature first" id="change-instance_method">
+
+ - (<tt>Object</tt>) <strong>change</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+2
+3
+4
+5
+6
+7
+8
+9
+10
+11</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/rails/generators/imagine/templates/migration.rb', line 2</span>
+
+<span class='def def kw'>def</span> <span class='change identifier id'>change</span>
+ <span class='create_table identifier id'>create_table</span> <span class='symbol val'>:imagine_albums</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='t identifier id'>t</span><span class='bitor op'>|</span>
+ <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='string identifier id'>string</span> <span class='symbol val'>:name</span>
+ <span class='end end kw'>end</span>
+ <span class='create_table identifier id'>create_table</span> <span class='symbol val'>:imagine_images</span> <span class='do do kw'>do</span> <span class='bitor op'>|</span><span class='t identifier id'>t</span><span class='bitor op'>|</span>
+ <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='string identifier id'>string</span> <span class='symbol val'>:file_name</span>
+ <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='string identifier id'>string</span> <span class='symbol val'>:file_uid</span>
+ <span class='t identifier id'>t</span><span class='dot token'>.</span><span class='integer identifier id'>integer</span> <span class='symbol val'>:album_id</span>
+ <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="col2">
+ <ul class="main_files clearfix">
+ <li><a href="file.README.html" title="Home">Home</a></li><li><a href="file.GeneralUsage.html" title="General usage">General usage</a></li><li><a href="file.Configuration.html" title="Configuration">Configuration</a></li><li><a href="file.Models.html" title="Models">Models</a></li><li><a href="file.Controllers.html" title="Controllers">Controllers</a></li><li><a href="file.Views.html" title="Views">Views</a></li><li><a href="file.ViewHelpers.html" title="View Helpers">View Helpers</a></li><li><a href="file.Routes.html" title="Mount this app!">Mount this app!</a></li><li><a href="file.Plugins.html" title="Plugins">Plugins</a></li><li><a href="file.PluginDevelopment.html" title="Plugin Development">Plugin Development</a></li><li><a href="file.Mongoid.html" title="Mongoid">Mongoid</a></li><li><a href="file.Dragonfly.html" title="Dragonfly">Dragonfly</a></li><li><a href="file.History.html" title="History">History</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div id="footer">
+ Generated on Sun Oct 30 17:11:08 2011 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.7.3 (ruby-1.9.2).
+</div>
+
+ </body>
+</html>
View
360 doc/Imagine.html
@@ -0,0 +1,360 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Module: Imagine
+
+ &mdash; Documentation by YARD 0.7.3
+
+</title>
+
+ <link rel="stylesheet" href="css/style.css" type="text/css" media="screen" charset="utf-8" />
+
+ <link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '';
+ if (relpath != '') relpath += '/';
+</script>
+
+ <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
+
+ <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
+
+
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Inconsolata">
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans">
+ <script type="text/javascript" charset="utf-8">
+ (function($){
+ // YARD automatically creates a table of contents
+ // Let's place it inside .col1, instead of #content
+ $(document).ready(function(){
+ $('#toc').prependTo($('.col1'));
+
+ });
+ })(jQuery);
+ </script>
+ </head>
+ <body>
+ <!-- GOOGLE ANALYTICS -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-16382932-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <!-- *************** -->
+
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header" class="clearfix">
+
+ <div id="logo">Imagine (v 0.2.3)</div>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ </div>
+
+ <div>
+ <iframe id="search_frame"></iframe>
+ </div>
+
+ <div id="content" class="clearfix">
+ <div class="col1">
+ <h1>Module: Imagine
+
+
+
+</h1>
+
+<dl class="box">
+
+
+
+
+
+
+
+
+ <dt class="r1 last">Defined in:</dt>
+ <dd class="r1 last">lib/imagine.rb<span class="defines">,<br />
+ lib/imagine/config.rb,<br /> lib/imagine/engine.rb,<br /> lib/imagine/plugin.rb,<br /> lib/imagine/version.rb,<br /> lib/imagine/plugins.rb,<br /> app/models/imagine/album.rb,<br /> app/models/imagine/image.rb,<br /> app/warehouses/imagine/image.rb,<br /> app/warehouses/imagine/album.rb,<br /> lib/imagine/model_extensions/image.rb,<br /> lib/imagine/model_extensions/album.rb,<br /> app/helpers/imagine/application_helper.rb,<br /> app/controllers/imagine/images_controller.rb,<br /> plugins/orbit_view/lib/imagine-orbit_view.rb,<br /> app/controllers/imagine/albums_controller.rb,<br /> app/controllers/imagine/application_controller.rb,<br /> plugins/galleria_view/lib/imagine-galleria_view.rb,<br /> lib/rails/generators/imagine/migration_generator.rb,<br /> lib/rails/generators/imagine/initializer_generator.rb,<br /> plugins/basic_list_view/lib/imagine-basic_list_view.rb</span>
+</dd>
+
+</dl>
+<div class="clear"></div>
+
+<h2>Defined Under Namespace</h2>
+<p class="children">
+
+
+ <strong class="modules">Modules:</strong> <span class='object_link'><a href="Imagine/ApplicationHelper.html" title="Imagine::ApplicationHelper (module)">ApplicationHelper</a></span>, <span class='object_link'><a href="Imagine/BasicListView.html" title="Imagine::BasicListView (module)">BasicListView</a></span>, <span class='object_link'><a href="Imagine/Engines.html" title="Imagine::Engines (module)">Engines</a></span>, <span class='object_link'><a href="Imagine/GalleriaView.html" title="Imagine::GalleriaView (module)">GalleriaView</a></span>, <span class='object_link'><a href="Imagine/ModelExtensions.html" title="Imagine::ModelExtensions (module)">ModelExtensions</a></span>, <span class='object_link'><a href="Imagine/OrbitView.html" title="Imagine::OrbitView (module)">OrbitView</a></span>, <span class='object_link'><a href="Imagine/Warehouses.html" title="Imagine::Warehouses (module)">Warehouses</a></span>
+
+
+
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="Imagine/AlbumsController.html" title="Imagine::AlbumsController (class)">AlbumsController</a></span>, <span class='object_link'><a href="Imagine/ApplicationController.html" title="Imagine::ApplicationController (class)">ApplicationController</a></span>, <span class='object_link'><a href="Imagine/Config.html" title="Imagine::Config (class)">Config</a></span>, <span class='object_link'><a href="Imagine/Engine.html" title="Imagine::Engine (class)">Engine</a></span>, <span class='object_link'><a href="Imagine/ImagesController.html" title="Imagine::ImagesController (class)">ImagesController</a></span>, <span class='object_link'><a href="Imagine/InitializerGenerator.html" title="Imagine::InitializerGenerator (class)">InitializerGenerator</a></span>, <span class='object_link'><a href="Imagine/MigrationGenerator.html" title="Imagine::MigrationGenerator (class)">MigrationGenerator</a></span>, <span class='object_link'><a href="Imagine/OrmNotSupportedError.html" title="Imagine::OrmNotSupportedError (class)">OrmNotSupportedError</a></span>, <span class='object_link'><a href="Imagine/Plugin.html" title="Imagine::Plugin (class)">Plugin</a></span>, <span class='object_link'><a href="Imagine/Plugins.html" title="Imagine::Plugins (class)">Plugins</a></span>
+
+
+</p>
+
+
+
+
+
+
+
+
+ <h2>
+ Class Method Summary
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ </h2>
+
+ <ul class="summary">
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#config-class_method" title="config (class method)">+ (Object) <strong>config</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#configure-class_method" title="configure (class method)">+ (Object) <strong>configure</strong>(options = {}, &amp;block) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#method_missing-class_method" title="method_missing (class method)">+ (Object) <strong>method_missing</strong>(meth, *args) </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#version-class_method" title="version (class method)">+ (Object) <strong>version</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ </ul>
+
+
+
+
+ <div id="class_method_details" class="method_details_list">
+ <h2>Class Method Details</h2>
+
+
+ <div class="method_details first">
+ <p class="signature first" id="config-class_method">
+
+ + (<tt>Object</tt>) <strong>config</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+11
+12
+13</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/imagine.rb', line 11</span>
+
+<span class='def def kw'>def</span> <span class='config identifier id'>config</span>
+ <span class='@config ivar id'>@config</span> <span class='opasgn op'>||=</span> <span class='Imagine constant id'>Imagine</span><span class='colon2 op'>::</span><span class='Config constant id'>Config</span><span class='dot token'>.</span><span class='new identifier id'>new</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="configure-class_method">
+
+ + (<tt>Object</tt>) <strong>configure</strong>(options = {}, &amp;block)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+7
+8
+9</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/imagine.rb', line 7</span>
+
+<span class='def def kw'>def</span> <span class='configure identifier id'>configure</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='assign token'>=</span><span class='lbrace token'>{</span><span class='rbrace token'>}</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+ <span class='@config ivar id'>@config</span> <span class='opasgn op'>||=</span> <span class='Imagine constant id'>Imagine</span><span class='colon2 op'>::</span><span class='Config constant id'>Config</span><span class='dot token'>.</span><span class='new identifier id'>new</span><span class='lparen token'>(</span><span class='options identifier id'>options</span><span class='comma token'>,</span> <span class='bitand op'>&amp;</span><span class='block identifier id'>block</span><span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="method_missing-class_method">
+
+ + (<tt>Object</tt>) <strong>method_missing</strong>(meth, *args)
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+15
+16
+17
+18</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/imagine.rb', line 15</span>
+
+<span class='def def kw'>def</span> <span class='method_missing identifier id'>method_missing</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
+ <span class='super super kw'>super</span> <span class='unless unless_mod kw'>unless</span> <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='respond_to? fid id'>respond_to?</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='rparen token'>)</span>
+ <span class='config identifier id'>config</span><span class='dot token'>.</span><span class='send identifier id'>send</span><span class='lparen token'>(</span><span class='meth identifier id'>meth</span><span class='comma token'>,</span> <span class='mult op'>*</span><span class='args identifier id'>args</span><span class='rparen token'>)</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="version-class_method">
+
+ + (<tt>Object</tt>) <strong>version</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+3
+4
+5</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'lib/imagine/version.rb', line 3</span>
+
+<span class='def def kw'>def</span> <span class='version identifier id'>version</span>
+ <span class='string val'>%q{0.2.3}</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="col2">
+ <ul class="main_files clearfix">
+ <li><a href="file.README.html" title="Home">Home</a></li><li><a href="file.GeneralUsage.html" title="General usage">General usage</a></li><li><a href="file.Configuration.html" title="Configuration">Configuration</a></li><li><a href="file.Models.html" title="Models">Models</a></li><li><a href="file.Controllers.html" title="Controllers">Controllers</a></li><li><a href="file.Views.html" title="Views">Views</a></li><li><a href="file.ViewHelpers.html" title="View Helpers">View Helpers</a></li><li><a href="file.Routes.html" title="Mount this app!">Mount this app!</a></li><li><a href="file.Plugins.html" title="Plugins">Plugins</a></li><li><a href="file.PluginDevelopment.html" title="Plugin Development">Plugin Development</a></li><li><a href="file.Mongoid.html" title="Mongoid">Mongoid</a></li><li><a href="file.Dragonfly.html" title="Dragonfly">Dragonfly</a></li><li><a href="file.History.html" title="History">History</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div id="footer">
+ Generated on Sun Oct 30 17:11:08 2011 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.7.3 (ruby-1.9.2).
+</div>
+
+ </body>
+</html>
View
390 doc/Imagine/AlbumsController.html
@@ -0,0 +1,390 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Class: Imagine::AlbumsController
+
+ &mdash; Documentation by YARD 0.7.3
+
+</title>
+
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
+</script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
+
+
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Inconsolata">
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans">
+ <script type="text/javascript" charset="utf-8">
+ (function($){
+ // YARD automatically creates a table of contents
+ // Let's place it inside .col1, instead of #content
+ $(document).ready(function(){
+ $('#toc').prependTo($('.col1'));
+
+ });
+ })(jQuery);
+ </script>
+ </head>
+ <body>
+ <!-- GOOGLE ANALYTICS -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-16382932-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <!-- *************** -->
+
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header" class="clearfix">
+
+ <div id="logo">Imagine (v 0.2.3)</div>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ </div>
+
+ <div>
+ <iframe id="search_frame"></iframe>
+ </div>
+
+ <div id="content" class="clearfix">
+ <div class="col1">
+ <h1>Class: Imagine::AlbumsController
+
+
+
+</h1>
+
+<dl class="box">
+
+ <dt class="r1">Inherits:</dt>
+ <dd class="r1">
+ <span class="inheritName"><span class='object_link'><a href="ApplicationController.html" title="Imagine::ApplicationController (class)">ApplicationController</a></span></span>
+
+ <ul class="fullTree">
+ <li>Object</li>
+
+ <li class="next">ApplicationController</li>
+
+ <li class="next"><span class='object_link'><a href="ApplicationController.html" title="Imagine::ApplicationController (class)">ApplicationController</a></span></li>
+
+ <li class="next">Imagine::AlbumsController</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">app/controllers/imagine/albums_controller.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+ <h2>
+ Instance Method Summary
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
+ </h2>
+
+ <ul class="summary">
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#create-instance_method" title="#create (instance method)">- (Object) <strong>create</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#index-instance_method" title="#index (instance method)">- (Object) <strong>index</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#new-instance_method" title="#new (instance method)">- (Object) <strong>new</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ <li class="public ">
+ <span class="summary_signature">
+
+ <a href="#show-instance_method" title="#show (instance method)">- (Object) <strong>show</strong> </a>
+
+
+
+ </span>
+
+
+
+
+
+
+
+
+ <span class="summary_desc"><div class='inline'></div></span>
+
+</li>
+
+
+ </ul>
+
+
+
+
+
+
+
+
+
+
+ <div id="instance_method_details" class="method_details_list">
+ <h2>Instance Method Details</h2>
+
+
+ <div class="method_details first">
+ <p class="signature first" id="create-instance_method">
+
+ - (<tt>Object</tt>) <strong>create</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+15
+16
+17
+18
+19
+20
+21
+22
+23</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'app/controllers/imagine/albums_controller.rb', line 15</span>
+
+<span class='def def kw'>def</span> <span class='create identifier id'>create</span>
+ <span class='load_new_album identifier id'>load_new_album</span>
+ <span class='if if kw'>if</span> <span class='colon3 op'>::</span><span class='Imagine constant id'>Imagine</span><span class='colon2 op'>::</span><span class='Warehouses constant id'>Warehouses</span><span class='colon2 op'>::</span><span class='Album constant id'>Album</span><span class='dot token'>.</span><span class='save identifier id'>save</span><span class='lparen token'>(</span><span class='@album ivar id'>@album</span><span class='rparen token'>)</span>
+ <span class='redirect_to identifier id'>redirect_to</span> <span class='@album ivar id'>@album</span><span class='comma token'>,</span> <span class='symbol val'>:notice</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>&quot;Album has been created!&quot;</span>
+ <span class='else else kw'>else</span>
+ <span class='flash identifier id'>flash</span><span class='dot token'>.</span><span class='now identifier id'>now</span><span class='lbrack token'>[</span><span class='symbol val'>:error</span><span class='rbrack token'>]</span> <span class='assign token'>=</span> <span class='string val'>&quot;There was a problem creating the album.&quot;</span>
+ <span class='render identifier id'>render</span> <span class='symbol val'>:action</span> <span class='assign token'>=</span><span class='gt op'>&gt;</span> <span class='string val'>'new'</span>
+ <span class='end end kw'>end</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="index-instance_method">
+
+ - (<tt>Object</tt>) <strong>index</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+3
+4</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'app/controllers/imagine/albums_controller.rb', line 3</span>
+
+<span class='def def kw'>def</span> <span class='index identifier id'>index</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="new-instance_method">
+
+ - (<tt>Object</tt>) <strong>new</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+11
+12
+13</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'app/controllers/imagine/albums_controller.rb', line 11</span>
+
+<span class='def def kw'>def</span> <span class='new identifier id'>new</span>
+ <span class='load_new_album identifier id'>load_new_album</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ <div class="method_details ">
+ <p class="signature " id="show-instance_method">
+
+ - (<tt>Object</tt>) <strong>show</strong>
+
+
+
+</p><table class="source_code">
+ <tr>
+ <td>
+ <pre class="lines">
+
+
+6
+7
+8
+9</pre>
+ </td>
+ <td>
+ <pre class="code"><span class="info file"># File 'app/controllers/imagine/albums_controller.rb', line 6</span>
+
+<span class='def def kw'>def</span> <span class='show identifier id'>show</span>
+ <span class='load_album identifier id'>load_album</span>
+ <span class='return return kw'>return</span> <span class='render_show_view identifier id'>render_show_view</span>
+<span class='end end kw'>end</span>
+</pre>
+ </td>
+ </tr>
+</table>
+</div>
+
+ </div>
+
+
+ </div>
+ <div class="col2">
+ <ul class="main_files clearfix">
+ <li><a href="../file.README.html" title="Home">Home</a></li><li><a href="../file.GeneralUsage.html" title="General usage">General usage</a></li><li><a href="../file.Configuration.html" title="Configuration">Configuration</a></li><li><a href="../file.Models.html" title="Models">Models</a></li><li><a href="../file.Controllers.html" title="Controllers">Controllers</a></li><li><a href="../file.Views.html" title="Views">Views</a></li><li><a href="../file.ViewHelpers.html" title="View Helpers">View Helpers</a></li><li><a href="../file.Routes.html" title="Mount this app!">Mount this app!</a></li><li><a href="../file.Plugins.html" title="Plugins">Plugins</a></li><li><a href="../file.PluginDevelopment.html" title="Plugin Development">Plugin Development</a></li><li><a href="../file.Mongoid.html" title="Mongoid">Mongoid</a></li><li><a href="../file.Dragonfly.html" title="Dragonfly">Dragonfly</a></li><li><a href="../file.History.html" title="History">History</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div id="footer">
+ Generated on Sun Oct 30 17:11:08 2011 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.7.3 (ruby-1.9.2).
+</div>
+
+ </body>
+</html>
View
151 doc/Imagine/ApplicationController.html
@@ -0,0 +1,151 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Class: Imagine::ApplicationController
+
+ &mdash; Documentation by YARD 0.7.3
+
+</title>
+
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
+</script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
+
+
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Inconsolata">
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans">
+ <script type="text/javascript" charset="utf-8">
+ (function($){
+ // YARD automatically creates a table of contents
+ // Let's place it inside .col1, instead of #content
+ $(document).ready(function(){
+ $('#toc').prependTo($('.col1'));
+
+ });
+ })(jQuery);
+ </script>
+ </head>
+ <body>
+ <!-- GOOGLE ANALYTICS -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-16382932-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <!-- *************** -->
+
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header" class="clearfix">
+
+ <div id="logo">Imagine (v 0.2.3)</div>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ </div>
+
+ <div>
+ <iframe id="search_frame"></iframe>
+ </div>
+
+ <div id="content" class="clearfix">
+ <div class="col1">
+ <h1>Class: Imagine::ApplicationController
+
+
+
+</h1>
+
+<dl class="box">
+
+ <dt class="r1">Inherits:</dt>
+ <dd class="r1">
+ <span class="inheritName">ApplicationController</span>
+
+ <ul class="fullTree">
+ <li>Object</li>
+
+ <li class="next">ApplicationController</li>
+
+ <li class="next">Imagine::ApplicationController</li>
+
+ </ul>
+ <a href="#" class="inheritanceTree">show all</a>
+
+ </dd>
+
+
+
+
+
+
+
+
+
+ <dt class="r2 last">Defined in:</dt>
+ <dd class="r2 last">app/controllers/imagine/application_controller.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+<div id="subclasses">
+ <h2>Direct Known Subclasses</h2>
+ <p class="children"><span class='object_link'><a href="AlbumsController.html" title="Imagine::AlbumsController (class)">AlbumsController</a></span>, <span class='object_link'><a href="ImagesController.html" title="Imagine::ImagesController (class)">ImagesController</a></span></p>
+</div>
+
+
+
+
+
+
+
+
+
+
+
+
+
+ </div>
+ <div class="col2">
+ <ul class="main_files clearfix">
+ <li><a href="../file.README.html" title="Home">Home</a></li><li><a href="../file.GeneralUsage.html" title="General usage">General usage</a></li><li><a href="../file.Configuration.html" title="Configuration">Configuration</a></li><li><a href="../file.Models.html" title="Models">Models</a></li><li><a href="../file.Controllers.html" title="Controllers">Controllers</a></li><li><a href="../file.Views.html" title="Views">Views</a></li><li><a href="../file.ViewHelpers.html" title="View Helpers">View Helpers</a></li><li><a href="../file.Routes.html" title="Mount this app!">Mount this app!</a></li><li><a href="../file.Plugins.html" title="Plugins">Plugins</a></li><li><a href="../file.PluginDevelopment.html" title="Plugin Development">Plugin Development</a></li><li><a href="../file.Mongoid.html" title="Mongoid">Mongoid</a></li><li><a href="../file.Dragonfly.html" title="Dragonfly">Dragonfly</a></li><li><a href="../file.History.html" title="History">History</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div id="footer">
+ Generated on Sun Oct 30 17:11:08 2011 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.7.3 (ruby-1.9.2).
+</div>
+
+ </body>
+</html>
View
127 doc/Imagine/ApplicationHelper.html
@@ -0,0 +1,127 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Module: Imagine::ApplicationHelper
+
+ &mdash; Documentation by YARD 0.7.3
+
+</title>
+
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
+</script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
+
+
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Inconsolata">
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans">
+ <script type="text/javascript" charset="utf-8">
+ (function($){
+ // YARD automatically creates a table of contents
+ // Let's place it inside .col1, instead of #content
+ $(document).ready(function(){
+ $('#toc').prependTo($('.col1'));
+
+ });
+ })(jQuery);
+ </script>
+ </head>
+ <body>
+ <!-- GOOGLE ANALYTICS -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-16382932-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <!-- *************** -->
+
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header" class="clearfix">
+
+ <div id="logo">Imagine (v 0.2.3)</div>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ </div>
+
+ <div>
+ <iframe id="search_frame"></iframe>
+ </div>
+
+ <div id="content" class="clearfix">
+ <div class="col1">
+ <h1>Module: Imagine::ApplicationHelper
+
+
+
+</h1>
+
+<dl class="box">
+
+
+
+
+
+
+
+
+ <dt class="r1 last">Defined in:</dt>
+ <dd class="r1 last">app/helpers/imagine/application_helper.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+
+
+
+
+
+
+
+
+
+
+ </div>
+ <div class="col2">
+ <ul class="main_files clearfix">
+ <li><a href="../file.README.html" title="Home">Home</a></li><li><a href="../file.GeneralUsage.html" title="General usage">General usage</a></li><li><a href="../file.Configuration.html" title="Configuration">Configuration</a></li><li><a href="../file.Models.html" title="Models">Models</a></li><li><a href="../file.Controllers.html" title="Controllers">Controllers</a></li><li><a href="../file.Views.html" title="Views">Views</a></li><li><a href="../file.ViewHelpers.html" title="View Helpers">View Helpers</a></li><li><a href="../file.Routes.html" title="Mount this app!">Mount this app!</a></li><li><a href="../file.Plugins.html" title="Plugins">Plugins</a></li><li><a href="../file.PluginDevelopment.html" title="Plugin Development">Plugin Development</a></li><li><a href="../file.Mongoid.html" title="Mongoid">Mongoid</a></li><li><a href="../file.Dragonfly.html" title="Dragonfly">Dragonfly</a></li><li><a href="../file.History.html" title="History">History</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div id="footer">
+ Generated on Sun Oct 30 17:11:08 2011 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.7.3 (ruby-1.9.2).
+</div>
+
+ </body>
+</html>
View
137 doc/Imagine/BasicListView.html
@@ -0,0 +1,137 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Module: Imagine::BasicListView
+
+ &mdash; Documentation by YARD 0.7.3
+
+</title>
+
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
+
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '..';
+ if (relpath != '') relpath += '/';
+</script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
+
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
+
+
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Inconsolata">
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans">
+ <script type="text/javascript" charset="utf-8">
+ (function($){
+ // YARD automatically creates a table of contents
+ // Let's place it inside .col1, instead of #content
+ $(document).ready(function(){
+ $('#toc').prependTo($('.col1'));
+
+ });
+ })(jQuery);
+ </script>
+ </head>
+ <body>
+ <!-- GOOGLE ANALYTICS -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-16382932-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <!-- *************** -->
+
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header" class="clearfix">
+
+ <div id="logo">Imagine (v 0.2.3)</div>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ </div>
+
+ <div>
+ <iframe id="search_frame"></iframe>
+ </div>
+
+ <div id="content" class="clearfix">
+ <div class="col1">
+ <h1>Module: Imagine::BasicListView
+
+
+
+</h1>
+
+<dl class="box">
+
+
+
+
+
+
+
+
+ <dt class="r1 last">Defined in:</dt>
+ <dd class="r1 last">plugins/basic_list_view/lib/imagine-basic_list_view.rb</dd>
+
+</dl>
+<div class="clear"></div>
+
+<h2>Defined Under Namespace</h2>
+<p class="children">
+
+
+
+
+ <strong class="classes">Classes:</strong> <span class='object_link'><a href="BasicListView/Engine.html" title="Imagine::BasicListView::Engine (class)">Engine</a></span>
+
+
+</p>
+
+
+
+
+
+
+
+
+
+
+ </div>
+ <div class="col2">
+ <ul class="main_files clearfix">
+ <li><a href="../file.README.html" title="Home">Home</a></li><li><a href="../file.GeneralUsage.html" title="General usage">General usage</a></li><li><a href="../file.Configuration.html" title="Configuration">Configuration</a></li><li><a href="../file.Models.html" title="Models">Models</a></li><li><a href="../file.Controllers.html" title="Controllers">Controllers</a></li><li><a href="../file.Views.html" title="Views">Views</a></li><li><a href="../file.ViewHelpers.html" title="View Helpers">View Helpers</a></li><li><a href="../file.Routes.html" title="Mount this app!">Mount this app!</a></li><li><a href="../file.Plugins.html" title="Plugins">Plugins</a></li><li><a href="../file.PluginDevelopment.html" title="Plugin Development">Plugin Development</a></li><li><a href="../file.Mongoid.html" title="Mongoid">Mongoid</a></li><li><a href="../file.Dragonfly.html" title="Dragonfly">Dragonfly</a></li><li><a href="../file.History.html" title="History">History</a></li>
+ </ul>
+ </div>
+ </div>
+
+ <div id="footer">
+ Generated on Sun Oct 30 17:11:08 2011 by
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
+ 0.7.3 (ruby-1.9.2).
+</div>
+
+ </body>
+</html>
View
147 doc/Imagine/BasicListView/Engine.html
@@ -0,0 +1,147 @@
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
+<title>
+ Class: Imagine::BasicListView::Engine
+
+ &mdash; Documentation by YARD 0.7.3
+
+</title>
+
+ <link rel="stylesheet" href="../../css/style.css" type="text/css" media="screen" charset="utf-8" />
+
+ <link rel="stylesheet" href="../../css/common.css" type="text/css" media="screen" charset="utf-8" />
+
+<script type="text/javascript" charset="utf-8">
+ relpath = '../..';
+ if (relpath != '') relpath += '/';
+</script>
+
+ <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
+
+ <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
+
+
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=Inconsolata">
+ <link rel="stylesheet" type="text/css" href="http://fonts.googleapis.com/css?family=PT+Sans">
+ <script type="text/javascript" charset="utf-8">
+ (function($){
+ // YARD automatically creates a table of contents
+ // Let's place it inside .col1, instead of #content
+ $(document).ready(function(){
+ $('#toc').prependTo($('.col1'));
+
+ });
+ })(jQuery);
+ </script>
+ </head>
+ <body>
+ <!-- GOOGLE ANALYTICS -->
+ <script type="text/javascript">
+
+ var _gaq = _gaq || [];
+ _gaq.push(['_setAccount', 'UA-16382932-1']);
+ _gaq.push(['_trackPageview']);
+
+ (function() {
+ var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
+ })();
+
+ </script>
+ <!-- *************** -->
+
+ <script type="text/javascript" charset="utf-8">
+ if (window.top.frames.main) document.body.className = 'frames';
+ </script>
+
+ <div id="header" class="clearfix">
+
+ <div id="logo">Imagine (v 0.2.3)</div>
+ <div id="search">
+
+ <a id="class_list_link" href="#">Class List</a>
+
+ <a id="method_list_link" href="#">Method List</a>
+
+ <a id="file_list_link" href="#">File List</a>
+
+</div>
+ </div>
+
+ <div>
+ <iframe id="search_frame"></iframe>
+ </div>
+
+ <div id="content" class="clearfix">
+ <div class="col1">
+ <h1>Class: Imagine::BasicListView::Engine
+
+
+
+</h1>
+
+<dl class="box">
+
+ <dt class="r1">Inherits:</dt>
+ <dd