Permalink
Browse files

Addded teaser engine in engines/teaser

rails plugin new teaser --full --mountable -d postgresql --skip-test-unit --dummy-path=spec/dummy

Added rspec
  • Loading branch information...
1 parent 6ef20b9 commit 6be9b5f4772a4b273cf6cd8c4830a6c54578de63 Stephan Hagemann committed Sep 12, 2012
Showing with 1,065 additions and 0 deletions.
  1. +7 −0 engines/teaser/.gitignore
  2. +1 −0 engines/teaser/.rspec
  3. +1 −0 engines/teaser/.rvmrc
  4. +6 −0 engines/teaser/Gemfile
  5. +114 −0 engines/teaser/Gemfile.lock
  6. +20 −0 engines/teaser/MIT-LICENSE
  7. +3 −0 engines/teaser/README.rdoc
  8. +34 −0 engines/teaser/Rakefile
  9. 0 engines/teaser/app/assets/images/teaser/.gitkeep
  10. +15 −0 engines/teaser/app/assets/javascripts/teaser/application.js
  11. +13 −0 engines/teaser/app/assets/stylesheets/teaser/application.css
  12. +4 −0 engines/teaser/app/controllers/teaser/application_controller.rb
  13. +4 −0 engines/teaser/app/helpers/teaser/application_helper.rb
  14. +14 −0 engines/teaser/app/views/layouts/teaser/application.html.erb
  15. +2 −0 engines/teaser/config/routes.rb
  16. +4 −0 engines/teaser/lib/tasks/teaser_tasks.rake
  17. +4 −0 engines/teaser/lib/teaser.rb
  18. +5 −0 engines/teaser/lib/teaser/engine.rb
  19. +3 −0 engines/teaser/lib/teaser/version.rb
  20. +8 −0 engines/teaser/script/rails
  21. +261 −0 engines/teaser/spec/dummy/README.rdoc
  22. +7 −0 engines/teaser/spec/dummy/Rakefile
  23. +15 −0 engines/teaser/spec/dummy/app/assets/javascripts/application.js
  24. +13 −0 engines/teaser/spec/dummy/app/assets/stylesheets/application.css
  25. +3 −0 engines/teaser/spec/dummy/app/controllers/application_controller.rb
  26. +2 −0 engines/teaser/spec/dummy/app/helpers/application_helper.rb
  27. 0 engines/teaser/spec/dummy/app/mailers/.gitkeep
  28. 0 engines/teaser/spec/dummy/app/models/.gitkeep
  29. +14 −0 engines/teaser/spec/dummy/app/views/layouts/application.html.erb
  30. +4 −0 engines/teaser/spec/dummy/config.ru
  31. +65 −0 engines/teaser/spec/dummy/config/application.rb
  32. +10 −0 engines/teaser/spec/dummy/config/boot.rb
  33. +55 −0 engines/teaser/spec/dummy/config/database.yml
  34. +5 −0 engines/teaser/spec/dummy/config/environment.rb
  35. +37 −0 engines/teaser/spec/dummy/config/environments/development.rb
  36. +67 −0 engines/teaser/spec/dummy/config/environments/production.rb
  37. +37 −0 engines/teaser/spec/dummy/config/environments/test.rb
  38. +7 −0 engines/teaser/spec/dummy/config/initializers/backtrace_silencers.rb
  39. +15 −0 engines/teaser/spec/dummy/config/initializers/inflections.rb
  40. +5 −0 engines/teaser/spec/dummy/config/initializers/mime_types.rb
  41. +7 −0 engines/teaser/spec/dummy/config/initializers/secret_token.rb
  42. +8 −0 engines/teaser/spec/dummy/config/initializers/session_store.rb
  43. +14 −0 engines/teaser/spec/dummy/config/initializers/wrap_parameters.rb
  44. +5 −0 engines/teaser/spec/dummy/config/locales/en.yml
  45. +4 −0 engines/teaser/spec/dummy/config/routes.rb
  46. 0 engines/teaser/spec/dummy/lib/assets/.gitkeep
  47. 0 engines/teaser/spec/dummy/log/.gitkeep
  48. +26 −0 engines/teaser/spec/dummy/public/404.html
  49. +26 −0 engines/teaser/spec/dummy/public/422.html
  50. +25 −0 engines/teaser/spec/dummy/public/500.html
  51. 0 engines/teaser/spec/dummy/public/favicon.ico
  52. +6 −0 engines/teaser/spec/dummy/script/rails
  53. +38 −0 engines/teaser/spec/spec_helper.rb
  54. +22 −0 engines/teaser/teaser.gemspec
@@ -0,0 +1,7 @@
+.bundle/
+log/*.log
+pkg/
+spec/dummy/db/*.sqlite3
+spec/dummy/log/*.log
+spec/dummy/tmp/
+spec/dummy/.sass-cache
View
@@ -0,0 +1 @@
+--color
View
@@ -0,0 +1 @@
+rvm use 1.9.3@tnbtt --create
View
@@ -0,0 +1,6 @@
+source "http://rubygems.org"
+gemspec
+
+gem "jquery-rails"
+
+gem "rspec-rails"
View
@@ -0,0 +1,114 @@
+PATH
+ remote: .
+ specs:
+ teaser (0.0.1)
+ haml
+ rails (~> 3.2.8)
+
+GEM
+ remote: http://rubygems.org/
+ specs:
+ actionmailer (3.2.8)
+ actionpack (= 3.2.8)
+ mail (~> 2.4.4)
+ actionpack (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ erubis (~> 2.7.0)
+ journey (~> 1.0.4)
+ rack (~> 1.4.0)
+ rack-cache (~> 1.2)
+ rack-test (~> 0.6.1)
+ sprockets (~> 2.1.3)
+ activemodel (3.2.8)
+ activesupport (= 3.2.8)
+ builder (~> 3.0.0)
+ activerecord (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ arel (~> 3.0.2)
+ tzinfo (~> 0.3.29)
+ activeresource (3.2.8)
+ activemodel (= 3.2.8)
+ activesupport (= 3.2.8)
+ activesupport (3.2.8)
+ i18n (~> 0.6)
+ multi_json (~> 1.0)
+ arel (3.0.2)
+ builder (3.0.3)
+ diff-lcs (1.1.3)
+ erubis (2.7.0)
+ haml (3.1.7)
+ hike (1.2.1)
+ i18n (0.6.1)
+ journey (1.0.4)
+ jquery-rails (2.1.2)
+ railties (>= 3.1.0, < 5.0)
+ thor (~> 0.14)
+ json (1.7.5)
+ mail (2.4.4)
+ i18n (>= 0.4.0)
+ mime-types (~> 1.16)
+ treetop (~> 1.4.8)
+ mime-types (1.19)
+ multi_json (1.3.6)
+ pg (0.14.1)
+ polyglot (0.3.3)
+ rack (1.4.1)
+ rack-cache (1.2)
+ rack (>= 0.4)
+ rack-ssl (1.3.2)
+ rack
+ rack-test (0.6.1)
+ rack (>= 1.0)
+ rails (3.2.8)
+ actionmailer (= 3.2.8)
+ actionpack (= 3.2.8)
+ activerecord (= 3.2.8)
+ activeresource (= 3.2.8)
+ activesupport (= 3.2.8)
+ bundler (~> 1.0)
+ railties (= 3.2.8)
+ railties (3.2.8)
+ actionpack (= 3.2.8)
+ activesupport (= 3.2.8)
+ rack-ssl (~> 1.3.2)
+ rake (>= 0.8.7)
+ rdoc (~> 3.4)
+ thor (>= 0.14.6, < 2.0)
+ rake (0.9.2.2)
+ rdoc (3.12)
+ json (~> 1.4)
+ rspec (2.11.0)
+ rspec-core (~> 2.11.0)
+ rspec-expectations (~> 2.11.0)
+ rspec-mocks (~> 2.11.0)
+ rspec-core (2.11.1)
+ rspec-expectations (2.11.3)
+ diff-lcs (~> 1.1.3)
+ rspec-mocks (2.11.2)
+ rspec-rails (2.11.0)
+ actionpack (>= 3.0)
+ activesupport (>= 3.0)
+ railties (>= 3.0)
+ rspec (~> 2.11.0)
+ sprockets (2.1.3)
+ hike (~> 1.2)
+ rack (~> 1.0)
+ tilt (~> 1.1, != 1.3.0)
+ thor (0.16.0)
+ tilt (1.3.3)
+ treetop (1.4.10)
+ polyglot
+ polyglot (>= 0.3.1)
+ tzinfo (0.3.33)
+
+PLATFORMS
+ ruby
+
+DEPENDENCIES
+ jquery-rails
+ pg
+ rspec-rails
+ teaser!
View
@@ -0,0 +1,20 @@
+Copyright 2012 YOURNAME
+
+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.
@@ -0,0 +1,3 @@
+= Teaser
+
+This project rocks and uses MIT-LICENSE.
View
@@ -0,0 +1,34 @@
+#!/usr/bin/env rake
+begin
+ require 'bundler/setup'
+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 = 'Teaser'
+ rdoc.options << '--line-numbers'
+ rdoc.rdoc_files.include('README.rdoc')
+ rdoc.rdoc_files.include('lib/**/*.rb')
+end
+
+
+
+
+Bundler::GemHelper.install_tasks
+
+require "rspec/core/rake_task"
+
+RSpec::Core::RakeTask.new(:rspec) do |spec|
+ spec.pattern = 'spec/**/*_spec.rb'
+end
+
+task :default => :rspec
@@ -0,0 +1,15 @@
+// This is a manifest file that'll be compiled into application.js, which will include all the files
+// listed below.
+//
+// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
+// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
+//
+// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
+// the compiled file.
+//
+// WARNING: THE FIRST BLANK LINE MARKS THE END OF WHAT'S TO BE PROCESSED, ANY BLANK LINE SHOULD
+// GO AFTER THE REQUIRES BELOW.
+//
+//= require jquery
+//= require jquery_ujs
+//= require_tree .
@@ -0,0 +1,13 @@
+/*
+ * This is a manifest file that'll be compiled into application.css, which will include all the files
+ * listed below.
+ *
+ * Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
+ * or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
+ *
+ * You're free to add application-wide styles to this file and they'll appear at the top of the
+ * compiled file, but it's generally better to create a new file per style scope.
+ *
+ *= require_self
+ *= require_tree .
+ */
@@ -0,0 +1,4 @@
+module Teaser
+ class ApplicationController < ActionController::Base
+ end
+end
@@ -0,0 +1,4 @@
+module Teaser
+ module ApplicationHelper
+ end
+end
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>Teaser</title>
+ <%= stylesheet_link_tag "teaser/application", :media => "all" %>
+ <%= javascript_include_tag "teaser/application" %>
+ <%= csrf_meta_tags %>
+</head>
+<body>
+
+<%= yield %>
+
+</body>
+</html>
@@ -0,0 +1,2 @@
+Teaser::Engine.routes.draw do
+end
@@ -0,0 +1,4 @@
+# desc "Explaining what the task does"
+# task :teaser do
+# # Task goes here
+# end
@@ -0,0 +1,4 @@
+require "teaser/engine"
+
+module Teaser
+end
@@ -0,0 +1,5 @@
+module Teaser
+ class Engine < ::Rails::Engine
+ isolate_namespace Teaser
+ end
+end
@@ -0,0 +1,3 @@
+module Teaser
+ VERSION = "0.0.1"
+end
@@ -0,0 +1,8 @@
+#!/usr/bin/env ruby
+# This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
+
+ENGINE_ROOT = File.expand_path('../..', __FILE__)
+ENGINE_PATH = File.expand_path('../../lib/teaser/engine', __FILE__)
+
+require 'rails/all'
+require 'rails/engine/commands'
Oops, something went wrong.

0 comments on commit 6be9b5f

Please sign in to comment.