Permalink
Browse files

Initial import / some specs for display.

  • Loading branch information...
1 parent 3d9643a commit 94517cb49a62eb7c8a1a0c8e79b6bf7f42b410ab Rob Yurkowski committed Feb 6, 2012
Showing with 3,351 additions and 80 deletions.
  1. +75 −0 Gemfile
  2. +287 −0 Gemfile.lock
  3. +27 −0 Guardfile
  4. +20 −0 Rakefile
  5. +11 −0 app/controllers/refinery/portfolio/admin/galleries_controller.rb
  6. +27 −0 app/controllers/refinery/portfolio/galleries_controller.rb
  7. +16 −0 app/models/refinery/portfolio/gallery.rb
  8. +28 −0 app/views/refinery/portfolio/admin/galleries/_actions.html.erb
  9. +70 −0 app/views/refinery/portfolio/admin/galleries/_form.html.erb
  10. +2 −0 app/views/refinery/portfolio/admin/galleries/_galleries.html.erb
  11. +20 −0 app/views/refinery/portfolio/admin/galleries/_gallery.html.erb
  12. +18 −0 app/views/refinery/portfolio/admin/galleries/_records.html.erb
  13. +7 −0 app/views/refinery/portfolio/admin/galleries/_sortable_list.html.erb
  14. +1 −0 app/views/refinery/portfolio/admin/galleries/edit.html.erb
  15. +10 −0 app/views/refinery/portfolio/admin/galleries/index.html.erb
  16. +1 −0 app/views/refinery/portfolio/admin/galleries/new.html.erb
  17. +7 −0 app/views/refinery/portfolio/galleries/_gallery.html.erb
  18. +11 −0 app/views/refinery/portfolio/galleries/index.html.erb
  19. +33 −0 app/views/refinery/portfolio/galleries/show.html.erb
  20. +33 −0 config/locales/en.yml
  21. +34 −0 config/locales/es.yml
  22. +33 −0 config/locales/fr.yml
  23. +33 −0 config/locales/lolcat.yml
  24. +33 −0 config/locales/nb.yml
  25. +33 −0 config/locales/nl.yml
  26. +22 −0 config/routes.rb
  27. +31 −0 db/migrate/1_create_portfolio_galleries.rb
  28. +24 −0 db/seeds.rb
  29. +17 −0 lib/generators/refinery/portfolio_generator.rb
  30. +21 −0 lib/refinery/galleries.rb
  31. +30 −0 lib/refinery/galleries/engine.rb
  32. +1 −0 lib/refinerycms-portfolio.rb
  33. +13 −0 lib/tasks/refinery/portfolio.rake
  34. +11 −80 refinerycms-portfolio.gemspec
  35. +76 −0 spec/dummy/.gitignore
  36. +261 −0 spec/dummy/README.rdoc
  37. +7 −0 spec/dummy/Rakefile
  38. +15 −0 spec/dummy/app/assets/javascripts/application.js
  39. +13 −0 spec/dummy/app/assets/stylesheets/application.css
  40. +3 −0 spec/dummy/app/controllers/application_controller.rb
  41. 0 spec/dummy/app/decorators/controllers/refinery/.gitkeep
  42. 0 spec/dummy/app/decorators/models/refinery/.gitkeep
  43. +2 −0 spec/dummy/app/helpers/application_helper.rb
  44. 0 spec/dummy/app/mailers/.gitkeep
  45. 0 spec/dummy/app/models/.gitkeep
  46. +14 −0 spec/dummy/app/views/layouts/application.html.erb.backup
  47. +25 −0 spec/dummy/app/views/sitemap/index.xml.builder
  48. +4 −0 spec/dummy/config.ru
  49. +62 −0 spec/dummy/config/application.rb
  50. +6 −0 spec/dummy/config/boot.rb
  51. +18 −0 spec/dummy/config/database.yml
  52. +20 −0 spec/dummy/config/database.yml.mysql
  53. +55 −0 spec/dummy/config/database.yml.postgresql
  54. +18 −0 spec/dummy/config/database.yml.sqlite3
  55. +5 −0 spec/dummy/config/environment.rb
  56. +37 −0 spec/dummy/config/environments/development.rb
  57. +67 −0 spec/dummy/config/environments/production.rb
  58. +37 −0 spec/dummy/config/environments/test.rb
  59. +7 −0 spec/dummy/config/initializers/backtrace_silencers.rb
  60. +227 −0 spec/dummy/config/initializers/devise.rb
  61. +15 −0 spec/dummy/config/initializers/inflections.rb
  62. +5 −0 spec/dummy/config/initializers/mime_types.rb
  63. +45 −0 spec/dummy/config/initializers/refinery/core.rb
  64. +41 −0 spec/dummy/config/initializers/refinery/images.rb
  65. +44 −0 spec/dummy/config/initializers/refinery/pages.rb
  66. +26 −0 spec/dummy/config/initializers/refinery/resources.rb
  67. +7 −0 spec/dummy/config/initializers/secret_token.rb
  68. +8 −0 spec/dummy/config/initializers/session_store.rb
  69. +14 −0 spec/dummy/config/initializers/wrap_parameters.rb
  70. +5 −0 spec/dummy/config/locales/en.yml
  71. +3 −0 spec/dummy/config/routes.rb
  72. +25 −0 spec/dummy/db/migrate/20120206214353_create_refinerycms_settings_schema.refinery_settings.rb
  73. +10 −0 spec/dummy/db/migrate/20120206214354_add_value_type_to_refinery_settings.refinery_settings.rb
  74. +24 −0 spec/dummy/db/migrate/20120206214355_create_refinerycms_core_schema.refinery.rb
  75. +12 −0 spec/dummy/db/migrate/20120206214356_add_locale_to_slugs.refinery.rb
  76. +49 −0 ...mmy/db/migrate/20120206214357_create_refinerycms_authentication_schema.refinery_authentication.rb
  77. +12 −0 spec/dummy/db/migrate/20120206214358_add_missing_indexes_to_roles_users.refinery_authentication.rb
  78. +32 −0 spec/dummy/db/migrate/20120206214359_change_to_devise_users_table.refinery_authentication.rb
  79. +6 −0 spec/dummy/db/migrate/20120206214360_add_remember_created_at_to_users.refinery_authentication.rb
  80. +14 −0 spec/dummy/db/migrate/20120206214361_remove_password_salt_from_users.refinery_authentication.rb
  81. +10 −0 ...6214362_add_reset_password_sent_at_and_remove_unused_fields_from_users.refinery_authentication.rb
  82. +24 −0 spec/dummy/db/migrate/20120206214363_create_refinerycms_images_schema.refinery_images.rb
  83. +24 −0 spec/dummy/db/migrate/20120206214364_create_seo_meta.seo_meta_engine.rb
  84. +57 −0 spec/dummy/db/migrate/20120206214365_create_refinerycms_pages_schema.refinery_pages.rb
  85. +18 −0 spec/dummy/db/migrate/20120206214366_remove_cached_slug_from_pages.refinery_pages.rb
  86. +45 −0 spec/dummy/db/migrate/20120206214367_translate_page_plugin.refinery_pages.rb
  87. +49 −0 spec/dummy/db/migrate/20120206214368_translate_custom_title_on_pages.refinery_pages.rb
  88. +20 −0 spec/dummy/db/migrate/20120206214369_remove_translated_fields_from_pages.refinery_pages.rb
  89. +76 −0 spec/dummy/db/migrate/20120206214370_attach_seo_meta.refinery_pages.rb
  90. +12 −0 spec/dummy/db/migrate/20120206214371_create_add_template_columns.refinery_pages.rb
  91. +12 −0 spec/dummy/db/migrate/20120206214372_add_custom_slug_to_refinery_page_translations.refinery_pages.rb
  92. +16 −0 ...y/db/migrate/20120206214373_rename_custom_title_to_menu_title_in_refinery_pages.refinery_pages.rb
  93. +16 −0 spec/dummy/db/migrate/20120206214374_remove_custom_title_from_refinery_pages.refinery_pages.rb
  94. +22 −0 spec/dummy/db/migrate/20120206214375_create_refinerycms_resources_schema.refinery_resources.rb
  95. +192 −0 spec/dummy/db/schema.rb
  96. +10 −0 spec/dummy/db/seeds.rb
  97. BIN spec/dummy/dummy_dev
  98. BIN spec/dummy/dummy_test
  99. 0 spec/dummy/lib/assets/.gitkeep
  100. 0 spec/dummy/log/.gitkeep
  101. +26 −0 spec/dummy/public/404.html
  102. +26 −0 spec/dummy/public/422.html
  103. +25 −0 spec/dummy/public/500.html
  104. 0 spec/dummy/public/favicon.ico
  105. +6 −0 spec/dummy/script/rails
  106. +18 −0 spec/models/refinery/portfolio/gallery_spec.rb
  107. +100 −0 spec/requests/refinery/portfolio/admin/galleries_spec.rb
  108. +54 −0 spec/requests/refinery/portfolio/galleries_spec.rb
  109. +54 −0 spec/spec_helper.rb
  110. +9 −0 spec/support/factories/refinery/galleries.rb
  111. +6 −0 tasks/rspec.rake
  112. +8 −0 tasks/testing.rake
View
@@ -0,0 +1,75 @@
+source "http://rubygems.org"
+
+gemspec
+
+git 'git://github.com/resolve/refinerycms.git' do
+ gem 'refinerycms'
+
+ group :development, :testing do
+ gem 'refinerycms-testing'
+ end
+end
+
+# Refinery/rails should pull in the proper versions of these
+group :assets do
+ gem 'sass-rails'
+ gem 'coffee-rails'
+ gem 'uglifier'
+end
+
+gem 'jquery-rails'
+
+group :development, :test do
+ gem 'rspec-rails'
+ gem 'factory_girl_rails'
+ gem 'generator_spec'
+
+ require 'rbconfig'
+
+ platforms :jruby do
+ gem 'activerecord-jdbcsqlite3-adapter'
+ gem 'activerecord-jdbcmysql-adapter'
+ gem 'activerecord-jdbcpostgresql-adapter'
+ gem 'jruby-openssl'
+ end
+
+ unless defined?(JRUBY_VERSION)
+ gem 'sqlite3'
+ gem 'mysql2'
+ gem 'pg'
+ end
+
+ platforms :mswin, :mingw do
+ gem 'win32console'
+ gem 'rb-fchange', '~> 0.0.5'
+ gem 'rb-notifu', '~> 0.0.4'
+ end
+
+ platforms :ruby do
+ gem 'spork', '0.9.0.rc9'
+ gem 'guard-spork'
+
+ unless ENV['TRAVIS']
+ if RbConfig::CONFIG['target_os'] =~ /darwin/i
+ gem 'rb-fsevent', '>= 0.3.9'
+ gem 'growl', '~> 1.0.3'
+ end
+ if RbConfig::CONFIG['target_os'] =~ /linux/i
+ gem 'rb-inotify', '>= 0.5.1'
+ gem 'libnotify', '~> 0.1.3'
+ end
+ end
+ end
+
+ platforms :jruby do
+ unless ENV['TRAVIS']
+ if RbConfig::CONFIG['target_os'] =~ /darwin/i
+ gem 'growl', '~> 1.0.3'
+ end
+ if RbConfig::CONFIG['target_os'] =~ /linux/i
+ gem 'rb-inotify', '>= 0.5.1'
+ gem 'libnotify', '~> 0.1.3'
+ end
+ end
+ end
+end
View
@@ -0,0 +1,287 @@
+GIT
+ remote: git://github.com/resolve/refinerycms.git
+ revision: 500250090eae0289ae13ab9c7bc772f272ea30aa
+ specs:
+ refinerycms (2.0.0)
+ bundler (~> 1.0)
+ refinerycms-authentication (= 2.0.0)
+ refinerycms-core (= 2.0.0)
+ refinerycms-dashboard (= 2.0.0)
+ refinerycms-images (= 2.0.0)
+ refinerycms-pages (= 2.0.0)
+ refinerycms-resources (= 2.0.0)
+ refinerycms-settings (= 2.0.0)
+ refinerycms-authentication (2.0.0)
+ devise (~> 2.0.0)
+ friendly_id_globalize3 (~> 3.2.1)
+ refinerycms-core (= 2.0.0)
+ refinerycms-core (2.0.0)
+ acts_as_indexed (~> 0.7.7)
+ awesome_nested_set (~> 2.1.0)
+ coffee-rails (~> 3.2.1)
+ friendly_id_globalize3 (~> 3.2.1)
+ globalize3 (~> 0.2.0.beta8)
+ jquery-rails (~> 2.0.0)
+ rails (>= 3.1.3, < 3.3)
+ refinerycms-settings (= 2.0.0)
+ sass-rails (~> 3.2.3)
+ truncate_html (~> 0.5)
+ uglifier (>= 1.0.3)
+ will_paginate (~> 3.0.2)
+ refinerycms-dashboard (2.0.0)
+ refinerycms-core (= 2.0.0)
+ refinerycms-images (2.0.0)
+ dragonfly (~> 0.9.8)
+ rack-cache (>= 0.5.3)
+ refinerycms-core (= 2.0.0)
+ refinerycms-pages (2.0.0)
+ awesome_nested_set (~> 2.1.0)
+ friendly_id_globalize3 (~> 3.2.1)
+ refinerycms-core (= 2.0.0)
+ seo_meta (>= 1.2.0.rc3)
+ refinerycms-resources (2.0.0)
+ dragonfly (~> 0.9.8)
+ rack-cache (>= 0.5.3)
+ refinerycms-core (= 2.0.0)
+ refinerycms-settings (2.0.0)
+ refinerycms-testing (2.0.0)
+ capybara (~> 1.1.0)
+ database_cleaner (~> 0.7.1)
+ factory_girl_rails (~> 1.6.0)
+ fuubar
+ guard-rspec (~> 0.6.0)
+ json_pure
+ launchy
+ rack-test (~> 0.6.0)
+ refinerycms-core (= 2.0.0)
+ rspec-instafail
+ rspec-rails (~> 2.8.1)
+
+PATH
+ remote: .
+ specs:
+ refinerycms-portfolio (2.0.0)
+ awesome_nested_set (~> 2.1.0)
+ refinerycms-core (~> 2.0.0)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.2.1)
+ actionpack (= 3.2.1)
+ mail (~> 2.4.0)
+ actionpack (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.1)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.1)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.2)
+ activemodel (3.2.1)
+ activesupport (= 3.2.1)
+ builder (~> 3.0.0)
+ activerecord (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ arel (~> 3.0.0)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.1)
+ activemodel (= 3.2.1)
+ activesupport (= 3.2.1)
+ activesupport (3.2.1)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ acts_as_indexed (0.7.7)
+ addressable (2.2.6)
+ arel (3.0.0)
+ awesome_nested_set (2.1.2)
+ activerecord (>= 3.0.0)
+ babosa (0.3.6)
+ bcrypt-ruby (3.0.1)
+ builder (3.0.0)
+ capybara (1.1.2)
+ 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.3.1)
+ ffi (~> 1.0.6)
+ coffee-rails (3.2.2)
+ coffee-script (>= 2.2.0)
+ railties (~> 3.2.0)
+ coffee-script (2.2.0)
+ coffee-script-source
+ execjs
+ coffee-script-source (1.2.0)
+ database_cleaner (0.7.1)
+ devise (2.0.0)
+ bcrypt-ruby (~> 3.0)
+ orm_adapter (~> 0.0.3)
+ railties (~> 3.1)
+ warden (~> 1.1)
+ diff-lcs (1.1.3)
+ dragonfly (0.9.10)
+ rack
+ erubis (2.7.0)
+ execjs (1.3.0)
+ multi_json (~> 1.0)
+ factory_girl (2.5.1)
+ activesupport
+ factory_girl_rails (1.6.0)
+ factory_girl (~> 2.5.0)
+ railties (>= 3.0.0)
+ ffi (1.0.11)
+ friendly_id_globalize3 (3.2.1.6)
+ babosa (~> 0.3.0)
+ fuubar (0.0.6)
+ rspec (~> 2.0)
+ rspec-instafail (~> 0.1.8)
+ ruby-progressbar (~> 0.0.10)
+ generator_spec (0.8.5)
+ rails (>= 3.0, < 4.0)
+ rspec-rails
+ globalize3 (0.2.0.beta8)
+ activemodel (>= 3.0.0)
+ activerecord (>= 3.0.0)
+ paper_trail (~> 2)
+ growl (1.0.3)
+ guard (1.0.0)
+ ffi (>= 0.5.0)
+ thor (~> 0.14.6)
+ guard-rspec (0.6.0)
+ guard (>= 0.10.0)
+ guard-spork (0.5.2)
+ guard (>= 0.10.0)
+ spork (>= 0.8.4)
+ hike (1.2.1)
+ i18n (0.6.0)
+ journey (1.0.1)
+ jquery-rails (2.0.0)
+ railties (>= 3.2.0.beta, < 5.0)
+ thor (~> 0.14)
+ json (1.6.5)
+ json_pure (1.6.5)
+ launchy (2.0.5)
+ addressable (~> 2.2.6)
+ mail (2.4.1)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.17.2)
+ multi_json (1.0.4)
+ mysql2 (0.3.11)
+ nokogiri (1.5.0)
+ orm_adapter (0.0.6)
+ paper_trail (2.6.0)
+ rails (~> 3)
+ pg (0.12.2)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.1)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.1)
+ actionmailer (= 3.2.1)
+ actionpack (= 3.2.1)
+ activerecord (= 3.2.1)
+ activeresource (= 3.2.1)
+ activesupport (= 3.2.1)
+ bundler (~> 1.0)
+ railties (= 3.2.1)
+ railties (3.2.1)
+ actionpack (= 3.2.1)
+ activesupport (= 3.2.1)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (~> 0.14.6)
+ rake (0.9.2.2)
+ rb-fsevent (0.9.0)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.8.0)
+ rspec-core (~> 2.8.0)
+ rspec-expectations (~> 2.8.0)
+ rspec-mocks (~> 2.8.0)
+ rspec-core (2.8.0)
+ rspec-expectations (2.8.0)
+ diff-lcs (~> 1.1.2)
+ rspec-instafail (0.1.9)
+ rspec-mocks (2.8.0)
+ rspec-rails (2.8.1)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.8.0)
+ ruby-progressbar (0.0.10)
+ rubyzip (0.9.5)
+ sass (3.1.14)
+ sass-rails (3.2.4)
+ railties (~> 3.2.0)
+ sass (>= 3.1.10)
+ tilt (~> 1.3)
+ selenium-webdriver (2.18.0)
+ childprocess (>= 0.2.5)
+ ffi (~> 1.0.9)
+ multi_json (~> 1.0.4)
+ rubyzip
+ seo_meta (1.2.0.rc3)
+ railties (>= 3.0.0)
+ spork (0.9.0.rc9)
+ sprockets (2.1.2)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ sqlite3 (1.3.5)
+ thor (0.14.6)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ truncate_html (0.5.1)
+ tzinfo (0.3.31)
+ uglifier (1.2.3)
+ execjs (>= 0.3.0)
+ multi_json (>= 1.0.2)
+ warden (1.1.0)
+ rack (>= 1.0)
+ will_paginate (3.0.3)
+ xpath (0.1.4)
+ nokogiri (~> 1.3)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ activerecord-jdbcmysql-adapter
+ activerecord-jdbcpostgresql-adapter
+ activerecord-jdbcsqlite3-adapter
+ coffee-rails
+ factory_girl_rails
+ generator_spec
+ growl (~> 1.0.3)
+ guard-spork
+ jquery-rails
+ jruby-openssl
+ mysql2
+ pg
+ rb-fchange (~> 0.0.5)
+ rb-fsevent (>= 0.3.9)
+ rb-notifu (~> 0.0.4)
+ refinerycms!
+ refinerycms-portfolio!
+ refinerycms-testing!
+ rspec-rails
+ sass-rails
+ spork (= 0.9.0.rc9)
+ sqlite3
+ uglifier
+ win32console
View
@@ -0,0 +1,27 @@
+guard 'spork', :wait => 60, :cucumber => false, :rspec_env => { 'RAILS_ENV' => 'test' } do
+ watch('config/application.rb')
+ watch('config/environment.rb')
+ watch(%r{^config/environments/.+\.rb$})
+ watch(%r{^config/initializers/.+\.rb$})
+ watch('spec/spec_helper.rb')
+ watch(%r{^spec/support/.+\.rb$})
+ watch(%r{^vendor/engines/(.+)/spec/support/.+\.rb$})
+end
+
+guard 'rspec', :version => 2, :cli => "--color --drb --format Fuubar", :all_on_start => false, :all_after_pass => false do
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch('spec/spec_helper.rb') { "spec" }
+
+ # Rails example
+ watch(%r{^spec/.+_spec\.rb$})
+ watch(%r{^app/(.+)\.rb$}) { |m| "spec/#{m[1]}_spec.rb" }
+ watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
+ watch(%r{^app/controllers/(.+)_(controller)\.rb$}) { |m| ["spec/routing/#{m[1]}_routing_spec.rb", "spec/#{m[2]}s/#{m[1]}_#{m[2]}_spec.rb", "spec/requests/#{m[1]}_spec.rb"] }
+ watch(%r{^spec/support/(.+)\.rb$}) { "spec" }
+ watch('spec/spec_helper.rb') { "spec" }
+ #watch('config/routes.rb') { "spec/routing" }
+ watch('app/controllers/application_controller.rb') { "spec/controllers" }
+ # Capybara request specs
+ watch(%r{^app/views/(.+)/.*\.(erb|haml)$}) { |m| "spec/requests/#{m[1]}_spec.rb" }
+end
Oops, something went wrong.

0 comments on commit 94517cb

Please sign in to comment.