Permalink
Browse files

Merge pull request #3 from bramswenson/develop

Mongoid Support +
  • Loading branch information...
2 parents 186f15e + a29b5f5 commit b33b3437283c342307c32a1c85fffb7cc0f02238 @knewter committed Oct 31, 2011
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. BIN { → plugins}/galleria_view/app/assets/images/classic-loader.gif
  103. BIN { → 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 { → 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. BIN { → plugins}/orbit_view/app/assets/images/orbit/bullets.jpg
  114. BIN { → plugins}/orbit_view/app/assets/images/orbit/left-arrow.png
  115. BIN { → plugins}/orbit_view/app/assets/images/orbit/loading.gif
  116. BIN { → plugins}/orbit_view/app/assets/images/orbit/mask-black.png
  117. BIN { → plugins}/orbit_view/app/assets/images/orbit/pause-black.png
  118. BIN { → plugins}/orbit_view/app/assets/images/orbit/right-arrow.png
  119. BIN { → plugins}/orbit_view/app/assets/images/orbit/rotator-black.png
  120. BIN { → 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 { → 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
@@ -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
@@ -0,0 +1 @@
+1.9.2-p290
View
@@ -0,0 +1,3 @@
+SimpleCov.start 'rails' do
+ add_filter '.bundle/bundle'
+end
View
@@ -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
@@ -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
@@ -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
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.
Oops, something went wrong.

0 comments on commit b33b343

Please sign in to comment.