Skip to content

Instantly share code, notes, and snippets.

@rdj
Created March 9, 2015 21:31
Show Gist options
  • Save rdj/5e7ee9c5b88f3a0197eb to your computer and use it in GitHub Desktop.
Save rdj/5e7ee9c5b88f3a0197eb to your computer and use it in GitHub Desktop.
/Users/ryan/.rvm/rubies/ruby-2.2.1/bin/ruby -I/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib:/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-support-3.1.2/lib /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec --pattern spec/unit/\*\*/\*_spec.rb
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create bin/setup
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/secrets.yml
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/assets.rb
create config/initializers/backtrace_silencers.rb
create config/initializers/cookies_serializer.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
apply /Users/ryan/projects/activeadmin/spec/support/rails_template.rb
run rm Gemfile from "."
run rm -r test from "."
create config/environments/cucumber.rb
create config/environments/cucumber_with_reloading.rb
gsub config/database.yml
gsub config/database.yml
gsub config/database.yml
gsub config/secrets.yml
gsub config/secrets.yml
generate model
invoke active_record
create db/migrate/20150309213008_create_posts.rb
create app/models/post.rb
invoke rspec
create spec/models/post_spec.rb
insert app/models/post.rb
create app/models/post_decorator.rb
generate model
invoke active_record
create db/migrate/20150309213010_create_blog_posts.rb
create app/models/blog/post.rb
create app/models/blog.rb
invoke rspec
create spec/models/blog/post_spec.rb
insert app/models/blog/post.rb
generate model
invoke active_record
create db/migrate/20150309213012_create_users.rb
create app/models/user.rb
invoke rspec
create spec/models/user_spec.rb
insert app/models/user.rb
generate model
invoke active_record
create app/models/publisher.rb
invoke rspec
create spec/models/publisher_spec.rb
generate model
invoke active_record
create db/migrate/20150309213017_create_categories.rb
create app/models/category.rb
invoke rspec
create spec/models/category_spec.rb
insert app/models/category.rb
generate model
invoke active_record
create db/migrate/20150309213019_create_stores.rb
create app/models/store.rb
invoke rspec
create spec/models/store_spec.rb
generate model
invoke active_record
create db/migrate/20150309213021_create_tags.rb
create app/models/tag.rb
invoke rspec
create spec/models/tag_spec.rb
gsub db/migrate/20150309213021_create_tags.rb
insert app/models/tag.rb
generate model
invoke active_record
create db/migrate/20150309213024_create_taggings.rb
create app/models/tagging.rb
invoke rspec
create spec/models/tagging_spec.rb
insert app/models/tagging.rb
insert config/environments/test.rb
insert config/environment.rb
insert config/application.rb
insert config/application.rb
append config/locales/en.yml
create app/admin
create app/admin/stores.rb
create app/policies
create app/policies/active_admin/comment_policy.rb
create app/policies/active_admin/page_policy.rb
create app/policies/admin_user_policy.rb
create app/policies/application_policy.rb
create app/policies/category_policy.rb
create app/policies/post_policy.rb
create app/policies/store_policy.rb
create app/policies/user_policy.rb
generate active_admin:install
invoke devise
generate devise:install
create config/initializers/devise.rb
create config/locales/devise.en.yml
===============================================================================
Some setup you must do manually if you haven't yet:
1. Ensure you have defined default url options in your environments files. Here
is an example of default_url_options appropriate for a development environment
in config/environments/development.rb:
config.action_mailer.default_url_options = { host: 'localhost', port: 3000 }
In production, :host should be set to the actual host of your application.
2. Ensure you have defined root_url to *something* in your config/routes.rb.
For example:
root to: "home#index"
3. Ensure you have flash messages in app/views/layouts/application.html.erb.
For example:
<p class="notice"><%= notice %></p>
<p class="alert"><%= alert %></p>
4. If you are deploying on Heroku with Rails 3.2 only, you may want to set:
config.assets.initialize_on_precompile = false
On config/application.rb forcing your application to not access the DB
or load models when precompiling your assets.
5. You can copy Devise views (for customization) to your app by running:
rails g devise:views
===============================================================================
invoke active_record
create db/migrate/20150309213026_devise_create_admin_users.rb
create app/models/admin_user.rb
invoke rspec
create spec/models/admin_user_spec.rb
insert app/models/admin_user.rb
route devise_for :admin_users
gsub app/models/admin_user.rb
gsub config/routes.rb
insert db/migrate/20150309213026_devise_create_admin_users.rb
create config/initializers/active_admin.rb
exist app/admin
create app/admin/dashboard.rb
create app/admin/admin_user.rb
insert config/routes.rb
generate active_admin:assets
create app/assets/javascripts/active_admin.js.coffee
create app/assets/stylesheets/active_admin.css.scss
create db/migrate/20150309213029_create_active_admin_comments.rb
insert config/routes.rb
gsub config/initializers/devise.rb
rake db:migrate db:test:prepare
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/ryan/projects/activeadmin/spec/rails/rails-4.2.0/db/migrate/20150309213026_devise_create_admin_users.rb:40)
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/ryan/projects/activeadmin/spec/rails/rails-4.2.0/db/migrate/20150309213029_create_active_admin_comments.rb:9)
== 20150309213008 CreatePosts: migrating ======================================
-- create_table(:posts)
-> 0.0006s
== 20150309213008 CreatePosts: migrated (0.0006s) =============================
== 20150309213010 CreateBlogPosts: migrating ==================================
-- create_table(:blog_posts)
-> 0.0006s
== 20150309213010 CreateBlogPosts: migrated (0.0007s) =========================
== 20150309213012 CreateUsers: migrating ======================================
-- create_table(:users)
-> 0.0005s
== 20150309213012 CreateUsers: migrated (0.0005s) =============================
== 20150309213017 CreateCategories: migrating =================================
-- create_table(:categories)
-> 0.0005s
== 20150309213017 CreateCategories: migrated (0.0005s) ========================
== 20150309213019 CreateStores: migrating =====================================
-- create_table(:stores)
-> 0.0004s
== 20150309213019 CreateStores: migrated (0.0004s) ============================
== 20150309213021 CreateTags: migrating =======================================
-- create_table(:tags, {:id=>false, :primary_key=>:id})
-> 0.0004s
== 20150309213021 CreateTags: migrated (0.0004s) ==============================
== 20150309213024 CreateTaggings: migrating ===================================
-- create_table(:taggings)
-> 0.0004s
== 20150309213024 CreateTaggings: migrated (0.0004s) ==========================
== 20150309213026 DeviseCreateAdminUsers: migrating ===========================
-- create_table(:admin_users)
-> 0.0008s
-- add_index(:admin_users, :email, {:unique=>true})
-> 0.0007s
-- add_index(:admin_users, :reset_password_token, {:unique=>true})
-> 0.0006s
== 20150309213026 DeviseCreateAdminUsers: migrated (0.0022s) ==================
== 20150309213029 CreateActiveAdminComments: migrating ========================
-- create_table(:active_admin_comments)
-> 0.0008s
-- add_index(:active_admin_comments, [:namespace])
-> 0.0003s
-- add_index(:active_admin_comments, [:author_type, :author_id])
-> 0.0008s
-- add_index(:active_admin_comments, [:resource_type, :resource_id])
-> 0.0006s
== 20150309213029 CreateActiveAdminComments: migrated (0.0026s) ===============
run /usr/bin/env RAILS_ENV=cucumber rake db:migrate from "."
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in change at /Users/ryan/projects/activeadmin/spec/rails/rails-4.2.0/db/migrate/20150309213026_devise_create_admin_users.rb:40)
DEPRECATION WARNING: `#timestamp` was called without specifying an option for `null`. In Rails 5, this behavior will change to `null: false`. You should manually specify `null: true` to prevent the behavior of your existing migrations from changing. (called from block in up at /Users/ryan/projects/activeadmin/spec/rails/rails-4.2.0/db/migrate/20150309213029_create_active_admin_comments.rb:9)
== 20150309213008 CreatePosts: migrating ======================================
-- create_table(:posts)
-> 0.0007s
== 20150309213008 CreatePosts: migrated (0.0007s) =============================
== 20150309213010 CreateBlogPosts: migrating ==================================
-- create_table(:blog_posts)
-> 0.0010s
== 20150309213010 CreateBlogPosts: migrated (0.0010s) =========================
== 20150309213012 CreateUsers: migrating ======================================
-- create_table(:users)
-> 0.0006s
== 20150309213012 CreateUsers: migrated (0.0006s) =============================
== 20150309213017 CreateCategories: migrating =================================
-- create_table(:categories)
-> 0.0005s
== 20150309213017 CreateCategories: migrated (0.0005s) ========================
== 20150309213019 CreateStores: migrating =====================================
-- create_table(:stores)
-> 0.0005s
== 20150309213019 CreateStores: migrated (0.0006s) ============================
== 20150309213021 CreateTags: migrating =======================================
-- create_table(:tags, {:id=>false, :primary_key=>:id})
-> 0.0004s
== 20150309213021 CreateTags: migrated (0.0005s) ==============================
== 20150309213024 CreateTaggings: migrating ===================================
-- create_table(:taggings)
-> 0.0005s
== 20150309213024 CreateTaggings: migrated (0.0006s) ==========================
== 20150309213026 DeviseCreateAdminUsers: migrating ===========================
-- create_table(:admin_users)
-> 0.0009s
-- add_index(:admin_users, :email, {:unique=>true})
-> 0.0006s
-- add_index(:admin_users, :reset_password_token, {:unique=>true})
-> 0.0005s
== 20150309213026 DeviseCreateAdminUsers: migrated (0.0020s) ==================
== 20150309213029 CreateActiveAdminComments: migrating ========================
-- create_table(:active_admin_comments)
-> 0.0007s
-- add_index(:active_admin_comments, [:namespace])
-> 0.0004s
-- add_index(:active_admin_comments, [:author_type, :author_id])
-> 0.0004s
-- add_index(:active_admin_comments, [:resource_type, :resource_id])
-> 0.0007s
== 20150309213029 CreateActiveAdminComments: migrated (0.0023s) ===============
/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require': cannot load such file -- /Users/ryan/projects/activeadmin/spec/rails/rails-4.2/config/environment (LoadError)
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `block in require'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:240:in `load_dependency'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/activesupport-4.2.0/lib/active_support/dependencies.rb:274:in `require'
from /Users/ryan/projects/activeadmin/spec/rails_helper.rb:106:in `<top (required)>'
from /Users/ryan/projects/activeadmin/spec/unit/abstract_view_factory_spec.rb:1:in `require'
from /Users/ryan/projects/activeadmin/spec/unit/abstract_view_factory_spec.rb:1:in `<top (required)>'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `block in load_spec_files'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `each'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/configuration.rb:1105:in `load_spec_files'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:96:in `setup'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:84:in `run'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:69:in `run'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib/rspec/core/runner.rb:37:in `invoke'
from /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec:4:in `<main>'
Coverage report generated for RSpec to /Users/ryan/projects/activeadmin/coverage. 1165 / 2651 LOC (43.95%) covered.
/Users/ryan/.rvm/rubies/ruby-2.2.1/bin/ruby -I/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/lib:/Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-support-3.1.2/lib /Users/ryan/.rvm/gems/ruby-2.2.1@activeadmin/gems/rspec-core-3.1.7/exe/rspec --pattern spec/unit/\*\*/\*_spec.rb failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment