From 0db808781c1b76c105ae441f05145800cb00b7f1 Mon Sep 17 00:00:00 2001 From: Koza Date: Thu, 23 Feb 2023 18:56:56 +0100 Subject: [PATCH] Move Rails 5.1 test to rails_app and it's own gemfile --- spec/dummy_5.1/Rakefile | 6 -- spec/dummy_5.1/app/assets/images/.keep | 0 .../app/assets/javascripts/application.js | 13 --- .../app/assets/stylesheets/application.css | 15 ---- .../app/controllers/application_controller.rb | 5 -- spec/dummy_5.1/app/controllers/concerns/.keep | 0 .../app/controllers/home_controller.rb | 56 ------------- .../app/controllers/likes_controller.rb | 18 ---- .../app/controllers/users_controller.rb | 37 --------- .../app/helpers/application_helper.rb | 2 - spec/dummy_5.1/app/mailers/.keep | 0 spec/dummy_5.1/app/mailers/notifier.rb | 14 ---- spec/dummy_5.1/app/models/.keep | 0 spec/dummy_5.1/app/models/concerns/.keep | 0 spec/dummy_5.1/app/models/like.rb | 3 - spec/dummy_5.1/app/models/user.rb | 10 --- .../app/views/home/_cover_sheet.xlsx.axlsx | 3 - spec/dummy_5.1/app/views/home/index.html.erb | 4 - .../dummy_5.1/app/views/home/index.xlsx.axlsx | 8 -- .../app/views/home/only_html.html.erb | 1 - .../app/views/home/useheader.xlsx.axlsx | 8 -- .../app/views/home/withpartial.xlsx.axlsx | 9 -- .../app/views/layouts/application.html.erb | 12 --- .../app/views/layouts/users.html.erb | 12 --- spec/dummy_5.1/app/views/likes/index.html.erb | 17 ---- .../app/views/likes/index.xlsx.axlsx | 7 -- .../app/views/notifier/instructions.html.erb | 14 ---- .../app/views/notifier/instructions.txt.erb | 6 -- .../app/views/users/export.xlsx.axlsx | 8 -- spec/dummy_5.1/app/views/users/index.html.erb | 23 ----- .../app/views/users/index.xlsx.axlsx | 1 - .../app/views/users/noaction.xlsx.axlsx | 1 - .../app/views/users/respond_with.xlsx.axlsx | 8 -- .../views/users/send_instructions.xlsx.axlsx | 5 -- spec/dummy_5.1/bin/bundle | 3 - spec/dummy_5.1/bin/rails | 4 - spec/dummy_5.1/bin/rake | 4 - spec/dummy_5.1/config.ru | 4 - spec/dummy_5.1/config/application.rb | 23 ----- spec/dummy_5.1/config/boot.rb | 5 -- spec/dummy_5.1/config/database.yml | 25 ------ spec/dummy_5.1/config/environment.rb | 5 -- .../config/environments/development.rb | 37 --------- .../config/environments/production.rb | 83 ------------------- spec/dummy_5.1/config/environments/test.rb | 40 --------- .../initializers/backtrace_silencers.rb | 7 -- .../config/initializers/cookies_serializer.rb | 3 - .../initializers/filter_parameter_logging.rb | 4 - .../config/initializers/inflections.rb | 16 ---- .../config/initializers/mime_types.rb | 4 - .../config/initializers/secret_token.rb | 2 - .../config/initializers/session_store.rb | 3 - .../config/initializers/wrap_parameters.rb | 14 ---- spec/dummy_5.1/config/locales/en.yml | 23 ----- spec/dummy_5.1/config/routes.rb | 17 ---- spec/dummy_5.1/config/secrets.yml | 22 ----- .../db/migrate/20120717192452_create_users.rb | 12 --- .../db/migrate/20121206210955_create_likes.rb | 10 --- spec/dummy_5.1/db/schema.rb | 31 ------- spec/dummy_5.1/lib/assets/.keep | 0 spec/dummy_5.1/log/.keep | 0 spec/dummy_5.1/public/404.html | 67 --------------- spec/dummy_5.1/public/422.html | 67 --------------- spec/dummy_5.1/public/500.html | 66 --------------- spec/dummy_5.1/public/favicon.ico | 0 spec/gemfiles/Gemfile.rails-5.1 | 14 ++++ .../db/migrate/20120717192452_create_users.rb | 2 +- .../db/migrate/20121206210955_create_likes.rb | 2 +- spec/test_5.1.sh | 16 ---- 69 files changed, 16 insertions(+), 945 deletions(-) delete mode 100644 spec/dummy_5.1/Rakefile delete mode 100644 spec/dummy_5.1/app/assets/images/.keep delete mode 100644 spec/dummy_5.1/app/assets/javascripts/application.js delete mode 100644 spec/dummy_5.1/app/assets/stylesheets/application.css delete mode 100644 spec/dummy_5.1/app/controllers/application_controller.rb delete mode 100644 spec/dummy_5.1/app/controllers/concerns/.keep delete mode 100644 spec/dummy_5.1/app/controllers/home_controller.rb delete mode 100644 spec/dummy_5.1/app/controllers/likes_controller.rb delete mode 100644 spec/dummy_5.1/app/controllers/users_controller.rb delete mode 100644 spec/dummy_5.1/app/helpers/application_helper.rb delete mode 100644 spec/dummy_5.1/app/mailers/.keep delete mode 100644 spec/dummy_5.1/app/mailers/notifier.rb delete mode 100644 spec/dummy_5.1/app/models/.keep delete mode 100644 spec/dummy_5.1/app/models/concerns/.keep delete mode 100644 spec/dummy_5.1/app/models/like.rb delete mode 100644 spec/dummy_5.1/app/models/user.rb delete mode 100644 spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/home/index.html.erb delete mode 100644 spec/dummy_5.1/app/views/home/index.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/home/only_html.html.erb delete mode 100644 spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/layouts/application.html.erb delete mode 100644 spec/dummy_5.1/app/views/layouts/users.html.erb delete mode 100644 spec/dummy_5.1/app/views/likes/index.html.erb delete mode 100644 spec/dummy_5.1/app/views/likes/index.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/notifier/instructions.html.erb delete mode 100644 spec/dummy_5.1/app/views/notifier/instructions.txt.erb delete mode 100644 spec/dummy_5.1/app/views/users/export.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/users/index.html.erb delete mode 100644 spec/dummy_5.1/app/views/users/index.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx delete mode 100644 spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx delete mode 100755 spec/dummy_5.1/bin/bundle delete mode 100755 spec/dummy_5.1/bin/rails delete mode 100755 spec/dummy_5.1/bin/rake delete mode 100644 spec/dummy_5.1/config.ru delete mode 100644 spec/dummy_5.1/config/application.rb delete mode 100644 spec/dummy_5.1/config/boot.rb delete mode 100644 spec/dummy_5.1/config/database.yml delete mode 100644 spec/dummy_5.1/config/environment.rb delete mode 100644 spec/dummy_5.1/config/environments/development.rb delete mode 100644 spec/dummy_5.1/config/environments/production.rb delete mode 100644 spec/dummy_5.1/config/environments/test.rb delete mode 100644 spec/dummy_5.1/config/initializers/backtrace_silencers.rb delete mode 100644 spec/dummy_5.1/config/initializers/cookies_serializer.rb delete mode 100644 spec/dummy_5.1/config/initializers/filter_parameter_logging.rb delete mode 100644 spec/dummy_5.1/config/initializers/inflections.rb delete mode 100644 spec/dummy_5.1/config/initializers/mime_types.rb delete mode 100644 spec/dummy_5.1/config/initializers/secret_token.rb delete mode 100644 spec/dummy_5.1/config/initializers/session_store.rb delete mode 100644 spec/dummy_5.1/config/initializers/wrap_parameters.rb delete mode 100644 spec/dummy_5.1/config/locales/en.yml delete mode 100644 spec/dummy_5.1/config/routes.rb delete mode 100644 spec/dummy_5.1/config/secrets.yml delete mode 100644 spec/dummy_5.1/db/migrate/20120717192452_create_users.rb delete mode 100644 spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb delete mode 100644 spec/dummy_5.1/db/schema.rb delete mode 100644 spec/dummy_5.1/lib/assets/.keep delete mode 100644 spec/dummy_5.1/log/.keep delete mode 100644 spec/dummy_5.1/public/404.html delete mode 100644 spec/dummy_5.1/public/422.html delete mode 100644 spec/dummy_5.1/public/500.html delete mode 100644 spec/dummy_5.1/public/favicon.ico create mode 100644 spec/gemfiles/Gemfile.rails-5.1 delete mode 100755 spec/test_5.1.sh diff --git a/spec/dummy_5.1/Rakefile b/spec/dummy_5.1/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/spec/dummy_5.1/Rakefile +++ /dev/null @@ -1,6 +0,0 @@ -# Add your own tasks in files placed in lib/tasks ending in .rake, -# for example lib/tasks/capistrano.rake, and they will automatically be available to Rake. - -require File.expand_path('../config/application', __FILE__) - -Rails.application.load_tasks diff --git a/spec/dummy_5.1/app/assets/images/.keep b/spec/dummy_5.1/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy_5.1/app/assets/javascripts/application.js b/spec/dummy_5.1/app/assets/javascripts/application.js deleted file mode 100644 index 5bc2e1c..0000000 --- a/spec/dummy_5.1/app/assets/javascripts/application.js +++ /dev/null @@ -1,13 +0,0 @@ -// 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 -// compiled file. -// -// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require_tree . diff --git a/spec/dummy_5.1/app/assets/stylesheets/application.css b/spec/dummy_5.1/app/assets/stylesheets/application.css deleted file mode 100644 index a443db3..0000000 --- a/spec/dummy_5.1/app/assets/stylesheets/application.css +++ /dev/null @@ -1,15 +0,0 @@ -/* - * 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 bottom of the - * compiled file so the styles you add here take precedence over styles defined in any styles - * defined in the other CSS/SCSS files in this directory. It is generally better to create a new - * file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/spec/dummy_5.1/app/controllers/application_controller.rb b/spec/dummy_5.1/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/spec/dummy_5.1/app/controllers/application_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -class ApplicationController < ActionController::Base - # Prevent CSRF attacks by raising an exception. - # For APIs, you may want to use :null_session instead. - protect_from_forgery with: :exception -end diff --git a/spec/dummy_5.1/app/controllers/concerns/.keep b/spec/dummy_5.1/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy_5.1/app/controllers/home_controller.rb b/spec/dummy_5.1/app/controllers/home_controller.rb deleted file mode 100644 index c1c35f9..0000000 --- a/spec/dummy_5.1/app/controllers/home_controller.rb +++ /dev/null @@ -1,56 +0,0 @@ -#--- -# Excerpted from "Crafting Rails Applications", -# published by The Pragmatic Bookshelf. -# Copyrights apply to this code. It may not be used to create training material, -# courses, books, articles, and the like. Contact us if you are in doubt. -# We make no guarantees that this code is fit for any purpose. -# Visit http://www.pragmaticprogrammer.com/titles/jvrails for more book information. -#--- -class HomeController < ApplicationController - def index - respond_to do |format| - format.html - format.xlsx - end - end - - def only_html; end - - def another - render :xlsx => "index", :filename => "filename_test.xlsx" - end - - def render_elsewhere - case params[:type] - when '1' - render :xlsx => "home/index", :template => 'users/index' - when '2' - render :xlsx => "users/index", :template => 'users/index' - when '3' - render template: "users/index" - when '4' - render "users/index" - else - render :xlsx => "index" - end - end - - def render_file_path - render :xlsx => Rails.root.join('app','views','users','index') - end - - def withpartial - end - - def useheader - respond_to do |format| - format.xlsx { - if params[:set_direct] - response.headers['Content-Disposition'] = "attachment; filename=\"filename_test.xlsx\"" - else - render xlsx: "useheader", filename: "filename_test.xlsx" - end - } - end - end -end diff --git a/spec/dummy_5.1/app/controllers/likes_controller.rb b/spec/dummy_5.1/app/controllers/likes_controller.rb deleted file mode 100644 index 9b48bca..0000000 --- a/spec/dummy_5.1/app/controllers/likes_controller.rb +++ /dev/null @@ -1,18 +0,0 @@ -class LikesController < ApplicationController - # GET /likes - # GET /likes.json - def index - @user = User.find(params[:user_id]) - @likes = @user.likes - - respond_to do |format| - format.html # index.html.erb - format.xlsx - end - end - - def render_elsewhere - @user = User.find(params[:user_id]) - render :xlsx => "index", :template => 'users/index' - end -end diff --git a/spec/dummy_5.1/app/controllers/users_controller.rb b/spec/dummy_5.1/app/controllers/users_controller.rb deleted file mode 100644 index 2905010..0000000 --- a/spec/dummy_5.1/app/controllers/users_controller.rb +++ /dev/null @@ -1,37 +0,0 @@ -class UsersController < ApplicationController - respond_to :xlsx, :html - layout Proc.new { |c| return (c.request.format.symbol == :xlsx ? false : :default )} - - # GET /users - # GET /users.json - def index - @users = User.all - - respond_to do |format| - format.html # index.html.erb - format.xlsx - end - end - - def show - @user = User.find(params[:id]) - respond_with(@user) do |format| - format.xlsx { render "respond_with.xlsx.axlsx" } - end - end - - def send_instructions - @user = User.find(params[:user_id]) - @user.send_instructions - render plain: "Email sent" - end - - def export - @user = User.find(params[:id]) - respond_to do |format| - format.xlsx do - render xlsx: "export", filename: "export_#{@user.id}" - end - end - end -end diff --git a/spec/dummy_5.1/app/helpers/application_helper.rb b/spec/dummy_5.1/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/spec/dummy_5.1/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/spec/dummy_5.1/app/mailers/.keep b/spec/dummy_5.1/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy_5.1/app/mailers/notifier.rb b/spec/dummy_5.1/app/mailers/notifier.rb deleted file mode 100644 index 269fdb5..0000000 --- a/spec/dummy_5.1/app/mailers/notifier.rb +++ /dev/null @@ -1,14 +0,0 @@ -class Notifier < ActionMailer::Base - default :from => 'noreply@company.com' - - def instructions(user) - @user = user - - # normal syntax - xlsx = render_to_string handlers: [:axlsx], template: 'users/send_instructions', layout: false, formats: [:xlsx] - attachments["user_#{user.id}.xlsx"] = {mime_type: Mime[:xlsx], content: xlsx} - - mail :to => user.email, :subject => 'Instructions' - end - -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/models/.keep b/spec/dummy_5.1/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy_5.1/app/models/concerns/.keep b/spec/dummy_5.1/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy_5.1/app/models/like.rb b/spec/dummy_5.1/app/models/like.rb deleted file mode 100644 index f7dc2c7..0000000 --- a/spec/dummy_5.1/app/models/like.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Like < ActiveRecord::Base - belongs_to :user -end diff --git a/spec/dummy_5.1/app/models/user.rb b/spec/dummy_5.1/app/models/user.rb deleted file mode 100644 index 4b15e85..0000000 --- a/spec/dummy_5.1/app/models/user.rb +++ /dev/null @@ -1,10 +0,0 @@ -require 'acts_as_xlsx' -class User < ActiveRecord::Base - acts_as_xlsx columns: [:id, :name, :last_name, :address, :email] - - has_many :likes - - def send_instructions - Notifier.instructions(self).deliver - end -end diff --git a/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx b/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx deleted file mode 100644 index cbe22d4..0000000 --- a/spec/dummy_5.1/app/views/home/_cover_sheet.xlsx.axlsx +++ /dev/null @@ -1,3 +0,0 @@ -wb.add_worksheet(name: "Cover Sheet") do |sheet| - sheet.add_row ['Cover', 'Sheet'] -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/views/home/index.html.erb b/spec/dummy_5.1/app/views/home/index.html.erb deleted file mode 100644 index fb0c3e0..0000000 --- a/spec/dummy_5.1/app/views/home/index.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -

Hey, you can download the xlsx for this page by clicking the link below:

-

<%= link_to "XLSX", home_path("xlsx") %>

-

<%= link_to "Another", '/another.xlsx' %>

-

<%= link_to "User header", '/useheader.xlsx' %>

diff --git a/spec/dummy_5.1/app/views/home/index.xlsx.axlsx b/spec/dummy_5.1/app/views/home/index.xlsx.axlsx deleted file mode 100644 index 2598e86..0000000 --- a/spec/dummy_5.1/app/views/home/index.xlsx.axlsx +++ /dev/null @@ -1,8 +0,0 @@ -wb = xlsx_package.workbook -style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :center } -wb.add_worksheet(name: "Foobar") do |sheet| - sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...'] - sheet.add_row ['Untie!'] - sheet.merge_cells("A2:E2") - sheet["A2"].style = style_shout -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/views/home/only_html.html.erb b/spec/dummy_5.1/app/views/home/only_html.html.erb deleted file mode 100644 index 8015221..0000000 --- a/spec/dummy_5.1/app/views/home/only_html.html.erb +++ /dev/null @@ -1 +0,0 @@ -

Foo, bar

diff --git a/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx b/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx deleted file mode 100644 index 2598e86..0000000 --- a/spec/dummy_5.1/app/views/home/useheader.xlsx.axlsx +++ /dev/null @@ -1,8 +0,0 @@ -wb = xlsx_package.workbook -style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :center } -wb.add_worksheet(name: "Foobar") do |sheet| - sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...'] - sheet.add_row ['Untie!'] - sheet.merge_cells("A2:E2") - sheet["A2"].style = style_shout -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx b/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx deleted file mode 100644 index 3d9109d..0000000 --- a/spec/dummy_5.1/app/views/home/withpartial.xlsx.axlsx +++ /dev/null @@ -1,9 +0,0 @@ -wb = xlsx_package.workbook -render :partial => 'cover_sheet', :locals => {:wb => wb} -style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :center } -wb.add_worksheet(name: "Foobar") do |sheet| - sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...'] - sheet.add_row ['Untie!'] - sheet.merge_cells("A2:E2") - sheet["A2"].style = style_shout -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/views/layouts/application.html.erb b/spec/dummy_5.1/app/views/layouts/application.html.erb deleted file mode 100644 index 0ac0888..0000000 --- a/spec/dummy_5.1/app/views/layouts/application.html.erb +++ /dev/null @@ -1,12 +0,0 @@ - - - - Dummy 4 - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/spec/dummy_5.1/app/views/layouts/users.html.erb b/spec/dummy_5.1/app/views/layouts/users.html.erb deleted file mode 100644 index 0ac0888..0000000 --- a/spec/dummy_5.1/app/views/layouts/users.html.erb +++ /dev/null @@ -1,12 +0,0 @@ - - - - Dummy 4 - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/spec/dummy_5.1/app/views/likes/index.html.erb b/spec/dummy_5.1/app/views/likes/index.html.erb deleted file mode 100644 index 5e2b8dc..0000000 --- a/spec/dummy_5.1/app/views/likes/index.html.erb +++ /dev/null @@ -1,17 +0,0 @@ -

Listing likes for <%= @user.name %>

- - - - - - -<% @likes.each do |like| %> - - - -<% end %> -
Name
<%= like.name %>
- -
- -<%= link_to 'New Like', new_like_path %> diff --git a/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx b/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx deleted file mode 100644 index 50b170f..0000000 --- a/spec/dummy_5.1/app/views/likes/index.xlsx.axlsx +++ /dev/null @@ -1,7 +0,0 @@ -wb = xlsx_package.workbook -wb.add_worksheet(name: "Foobar") do |sheet| - sheet.add_row [@user.name] - @likes.each do |like| - sheet.add_row [like.name] - end -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/views/notifier/instructions.html.erb b/spec/dummy_5.1/app/views/notifier/instructions.html.erb deleted file mode 100644 index 44f0800..0000000 --- a/spec/dummy_5.1/app/views/notifier/instructions.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - - - -

Instructions

-

- You have successfully signed up to example.com, - your username is: <%= @user.email %>.
-

-

Thanks for joining and have a great day!

- - diff --git a/spec/dummy_5.1/app/views/notifier/instructions.txt.erb b/spec/dummy_5.1/app/views/notifier/instructions.txt.erb deleted file mode 100644 index eef493e..0000000 --- a/spec/dummy_5.1/app/views/notifier/instructions.txt.erb +++ /dev/null @@ -1,6 +0,0 @@ -Instructions - -You have successfully signed up to example.com, -your username is: <%= @user.email %>. - -Thanks for joining and have a great day! diff --git a/spec/dummy_5.1/app/views/users/export.xlsx.axlsx b/spec/dummy_5.1/app/views/users/export.xlsx.axlsx deleted file mode 100644 index 2598e86..0000000 --- a/spec/dummy_5.1/app/views/users/export.xlsx.axlsx +++ /dev/null @@ -1,8 +0,0 @@ -wb = xlsx_package.workbook -style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :center } -wb.add_worksheet(name: "Foobar") do |sheet| - sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...'] - sheet.add_row ['Untie!'] - sheet.merge_cells("A2:E2") - sheet["A2"].style = style_shout -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/views/users/index.html.erb b/spec/dummy_5.1/app/views/users/index.html.erb deleted file mode 100644 index d38b48a..0000000 --- a/spec/dummy_5.1/app/views/users/index.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -

Listing users

- - - - - - - - - -<% @users.each do |user| %> - - - - - - -<% end %> -
NameLast nameAddressEmail
<%= user.name %><%= user.last_name %><%= user.address %><%= user.email %>
- -
- -<%= link_to 'New User', new_user_path %> diff --git a/spec/dummy_5.1/app/views/users/index.xlsx.axlsx b/spec/dummy_5.1/app/views/users/index.xlsx.axlsx deleted file mode 100644 index 2b944bd..0000000 --- a/spec/dummy_5.1/app/views/users/index.xlsx.axlsx +++ /dev/null @@ -1 +0,0 @@ -User.to_xlsx package: xlsx_package diff --git a/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx b/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx deleted file mode 100644 index 2b944bd..0000000 --- a/spec/dummy_5.1/app/views/users/noaction.xlsx.axlsx +++ /dev/null @@ -1 +0,0 @@ -User.to_xlsx package: xlsx_package diff --git a/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx b/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx deleted file mode 100644 index 2598e86..0000000 --- a/spec/dummy_5.1/app/views/users/respond_with.xlsx.axlsx +++ /dev/null @@ -1,8 +0,0 @@ -wb = xlsx_package.workbook -style_shout = wb.styles.add_style sz: 16, b: true, alignment: { horizontal: :center } -wb.add_worksheet(name: "Foobar") do |sheet| - sheet.add_row ['Bad', 'spellers', 'of', 'the', 'world', '...'] - sheet.add_row ['Untie!'] - sheet.merge_cells("A2:E2") - sheet["A2"].style = style_shout -end \ No newline at end of file diff --git a/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx b/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx deleted file mode 100644 index 21a8a24..0000000 --- a/spec/dummy_5.1/app/views/users/send_instructions.xlsx.axlsx +++ /dev/null @@ -1,5 +0,0 @@ -wb = xlsx_package.workbook -wb.add_worksheet(name: "Instructions") do |sheet| - sheet.add_row [@user.id, @user.name, @user.email] - sheet.add_row ['', 'Instructions', ''] -end diff --git a/spec/dummy_5.1/bin/bundle b/spec/dummy_5.1/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/spec/dummy_5.1/bin/bundle +++ /dev/null @@ -1,3 +0,0 @@ -#!/usr/bin/env ruby -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) -load Gem.bin_path('bundler', 'bundle') diff --git a/spec/dummy_5.1/bin/rails b/spec/dummy_5.1/bin/rails deleted file mode 100755 index 728cd85..0000000 --- a/spec/dummy_5.1/bin/rails +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/spec/dummy_5.1/bin/rake b/spec/dummy_5.1/bin/rake deleted file mode 100755 index 1724048..0000000 --- a/spec/dummy_5.1/bin/rake +++ /dev/null @@ -1,4 +0,0 @@ -#!/usr/bin/env ruby -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/spec/dummy_5.1/config.ru b/spec/dummy_5.1/config.ru deleted file mode 100644 index 5bc2a61..0000000 --- a/spec/dummy_5.1/config.ru +++ /dev/null @@ -1,4 +0,0 @@ -# This file is used by Rack-based servers to start the application. - -require ::File.expand_path('../config/environment', __FILE__) -run Rails.application diff --git a/spec/dummy_5.1/config/application.rb b/spec/dummy_5.1/config/application.rb deleted file mode 100644 index 2832baf..0000000 --- a/spec/dummy_5.1/config/application.rb +++ /dev/null @@ -1,23 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -Bundler.require(*Rails.groups) -require "axlsx_rails" - -module Dummy - class Application < Rails::Application - # Settings in config/environments/* take precedence over those specified here. - # Application configuration should go into files in config/initializers - # -- all .rb files in that directory are automatically loaded. - - # Set Time.zone default to the specified zone and make Active Record auto-convert to this zone. - # Run "rake -D time" for a list of tasks for finding time zone names. Default is UTC. - # config.time_zone = 'Central Time (US & Canada)' - - # The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded. - # config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s] - # config.i18n.default_locale = :de - end -end - diff --git a/spec/dummy_5.1/config/boot.rb b/spec/dummy_5.1/config/boot.rb deleted file mode 100644 index 6266cfc..0000000 --- a/spec/dummy_5.1/config/boot.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Set up gems listed in the Gemfile. -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../../Gemfile', __FILE__) - -require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE']) -$LOAD_PATH.unshift File.expand_path('../../../../lib', __FILE__) diff --git a/spec/dummy_5.1/config/database.yml b/spec/dummy_5.1/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/spec/dummy_5.1/config/database.yml +++ /dev/null @@ -1,25 +0,0 @@ -# SQLite version 3.x -# gem install sqlite3 -# -# Ensure the SQLite 3 gem is defined in your Gemfile -# gem 'sqlite3' -# -default: &default - adapter: sqlite3 - pool: 5 - timeout: 5000 - -development: - <<: *default - database: db/development.sqlite3 - -# Warning: The database defined as "test" will be erased and -# re-generated from your development database when you run "rake". -# Do not set this db to the same as development or production. -test: - <<: *default - database: db/test.sqlite3 - -production: - <<: *default - database: db/production.sqlite3 diff --git a/spec/dummy_5.1/config/environment.rb b/spec/dummy_5.1/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/spec/dummy_5.1/config/environment.rb +++ /dev/null @@ -1,5 +0,0 @@ -# Load the Rails application. -require File.expand_path('../application', __FILE__) - -# Initialize the Rails application. -Rails.application.initialize! diff --git a/spec/dummy_5.1/config/environments/development.rb b/spec/dummy_5.1/config/environments/development.rb deleted file mode 100644 index ddf0e90..0000000 --- a/spec/dummy_5.1/config/environments/development.rb +++ /dev/null @@ -1,37 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # In the development environment your application's code is reloaded on - # every request. This slows down response time but is perfect for development - # since you don't have to restart the web server when you make code changes. - config.cache_classes = false - - # Do not eager load code on boot. - config.eager_load = false - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - # Print deprecation notices to the Rails logger. - config.active_support.deprecation = :log - - # Raise an error on page load if there are pending migrations. - config.active_record.migration_error = :page_load - - # Debug mode disables concatenation and preprocessing of assets. - # This option may cause significant delays in view rendering with a large - # number of complex assets. - config.assets.debug = true - - # Adds additional error checking when serving assets at runtime. - # Checks for improperly declared sprockets dependencies. - # Raises helpful error messages. - config.assets.raise_runtime_errors = true - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/spec/dummy_5.1/config/environments/production.rb b/spec/dummy_5.1/config/environments/production.rb deleted file mode 100644 index 47d3553..0000000 --- a/spec/dummy_5.1/config/environments/production.rb +++ /dev/null @@ -1,83 +0,0 @@ -Rails.application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # Code is not reloaded between requests. - config.cache_classes = true - - # Eager load code on boot. This eager loads most of Rails and - # your application in memory, allowing both threaded web servers - # and those relying on copy on write to perform better. - # Rake tasks automatically ignore this option for performance. - config.eager_load = true - - # Full error reports are disabled and caching is turned on. - config.consider_all_requests_local = false - config.action_controller.perform_caching = true - - # Enable Rack::Cache to put a simple HTTP cache in front of your application - # Add `rack-cache` to your Gemfile before enabling this. - # For large-scale production use, consider using a caching reverse proxy like nginx, varnish or squid. - # config.action_dispatch.rack_cache = true - - # Disable Rails's static asset server (Apache or nginx will already do this). - config.serve_static_assets = false - - # Compress JavaScripts and CSS. - config.assets.js_compressor = :uglifier - # config.assets.css_compressor = :sass - - # Do not fallback to assets pipeline if a precompiled asset is missed. - config.assets.compile = false - - # Generate digests for assets URLs. - config.assets.digest = true - - # Version of your assets, change this if you want to expire all your assets. - config.assets.version = '1.0' - - # Specifies the header that your server uses for sending files. - # config.action_dispatch.x_sendfile_header = "X-Sendfile" # for apache - # config.action_dispatch.x_sendfile_header = 'X-Accel-Redirect' # for nginx - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Set to :debug to see everything in the log. - config.log_level = :info - - # Prepend all log lines with the following tags. - # config.log_tags = [ :subdomain, :uuid ] - - # Use a different logger for distributed setups. - # config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new) - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = "http://assets.example.com" - - # Precompile additional assets. - # application.js, application.css, and all non-JS/CSS in app/assets folder are already added. - # config.assets.precompile += %w( search.js ) - - # Ignore bad email addresses and do not raise email delivery errors. - # Set this to true and configure the email server for immediate delivery to raise delivery errors. - # config.action_mailer.raise_delivery_errors = false - - # Enable locale fallbacks for I18n (makes lookups for any locale fall back to - # the I18n.default_locale when a translation cannot be found). - config.i18n.fallbacks = true - - # Send deprecation notices to registered listeners. - config.active_support.deprecation = :notify - - # Disable automatic flushing of the log to improve performance. - # config.autoflush_log = false - - # Use default logging formatter so that PID and timestamp are not suppressed. - config.log_formatter = ::Logger::Formatter.new - - # Do not dump schema after migrations. - config.active_record.dump_schema_after_migration = false -end diff --git a/spec/dummy_5.1/config/environments/test.rb b/spec/dummy_5.1/config/environments/test.rb deleted file mode 100644 index 7b2011f..0000000 --- a/spec/dummy_5.1/config/environments/test.rb +++ /dev/null @@ -1,40 +0,0 @@ -#Rails.application.configure do -Dummy::Application.configure do - # Settings specified here will take precedence over those in config/application.rb. - - # The test environment is used exclusively to run your application's - # test suite. You never need to work with it otherwise. Remember that - # your test database is "scratch space" for the test suite and is wiped - # and recreated between test runs. Don't rely on the data there! - config.cache_classes = true - - # Do not eager load code on boot. This avoids loading your whole application - # just for the purpose of running a single test. If you are using a tool that - # preloads Rails for running tests, you may have to set it to true. - config.eager_load = false - - # Configure static asset server for tests with Cache-Control for performance. - config.serve_static_assets = true - # config.static_cache_control = 'public, max-age=3600' - - # Show full error reports and disable caching. - config.consider_all_requests_local = true - config.action_controller.perform_caching = false - - # Raise exceptions instead of rendering exception templates. - config.action_dispatch.show_exceptions = false - - # Disable request forgery protection in test environment. - config.action_controller.allow_forgery_protection = false - - # Tell Action Mailer not to deliver emails to the real world. - # The :test delivery method accumulates sent emails in the - # ActionMailer::Base.deliveries array. - config.action_mailer.delivery_method = :test - - # Print deprecation notices to the stderr. - config.active_support.deprecation = :stderr - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true -end diff --git a/spec/dummy_5.1/config/initializers/backtrace_silencers.rb b/spec/dummy_5.1/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/spec/dummy_5.1/config/initializers/backtrace_silencers.rb +++ /dev/null @@ -1,7 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# You can add backtrace silencers for libraries that you're using but don't wish to see in your backtraces. -# Rails.backtrace_cleaner.add_silencer { |line| line =~ /my_noisy_library/ } - -# You can also remove all the silencers if you're trying to debug a problem that might stem from framework code. -# Rails.backtrace_cleaner.remove_silencers! diff --git a/spec/dummy_5.1/config/initializers/cookies_serializer.rb b/spec/dummy_5.1/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7a06a89..0000000 --- a/spec/dummy_5.1/config/initializers/cookies_serializer.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.action_dispatch.cookies_serializer = :json \ No newline at end of file diff --git a/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb b/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/spec/dummy_5.1/config/initializers/filter_parameter_logging.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Configure sensitive parameters which will be filtered from the log file. -Rails.application.config.filter_parameters += [:password] diff --git a/spec/dummy_5.1/config/initializers/inflections.rb b/spec/dummy_5.1/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/spec/dummy_5.1/config/initializers/inflections.rb +++ /dev/null @@ -1,16 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new inflection rules using the following format. Inflections -# are locale specific, and you may define rules for as many different -# locales as you wish. All of these examples are active by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.plural /^(ox)$/i, '\1en' -# inflect.singular /^(ox)en/i, '\1' -# inflect.irregular 'person', 'people' -# inflect.uncountable %w( fish sheep ) -# end - -# These inflection rules are supported but not enabled by default: -# ActiveSupport::Inflector.inflections(:en) do |inflect| -# inflect.acronym 'RESTful' -# end diff --git a/spec/dummy_5.1/config/initializers/mime_types.rb b/spec/dummy_5.1/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/spec/dummy_5.1/config/initializers/mime_types.rb +++ /dev/null @@ -1,4 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Add new mime types for use in respond_to blocks: -# Mime::Type.register "text/richtext", :rtf diff --git a/spec/dummy_5.1/config/initializers/secret_token.rb b/spec/dummy_5.1/config/initializers/secret_token.rb deleted file mode 100644 index 70d99c5..0000000 --- a/spec/dummy_5.1/config/initializers/secret_token.rb +++ /dev/null @@ -1,2 +0,0 @@ -Dummy::Application.config.secret_token = 'existing secret token' -Dummy::Application.config.secret_key_base = 'new secret key base' \ No newline at end of file diff --git a/spec/dummy_5.1/config/initializers/session_store.rb b/spec/dummy_5.1/config/initializers/session_store.rb deleted file mode 100644 index e766b67..0000000 --- a/spec/dummy_5.1/config/initializers/session_store.rb +++ /dev/null @@ -1,3 +0,0 @@ -# Be sure to restart your server when you modify this file. - -Rails.application.config.session_store :cookie_store, key: '_dummy_session' diff --git a/spec/dummy_5.1/config/initializers/wrap_parameters.rb b/spec/dummy_5.1/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/spec/dummy_5.1/config/initializers/wrap_parameters.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# This file contains settings for ActionController::ParamsWrapper which -# is enabled by default. - -# Enable parameter wrapping for JSON. You can disable this by setting :format to an empty array. -ActiveSupport.on_load(:action_controller) do - wrap_parameters format: [:json] if respond_to?(:wrap_parameters) -end - -# To enable root element in JSON for ActiveRecord objects. -# ActiveSupport.on_load(:active_record) do -# self.include_root_in_json = true -# end diff --git a/spec/dummy_5.1/config/locales/en.yml b/spec/dummy_5.1/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/spec/dummy_5.1/config/locales/en.yml +++ /dev/null @@ -1,23 +0,0 @@ -# Files in the config/locales directory are used for internationalization -# and are automatically loaded by Rails. If you want to use locales other -# than English, add the necessary files in this directory. -# -# To use the locales, use `I18n.t`: -# -# I18n.t 'hello' -# -# In views, this is aliased to just `t`: -# -# <%= t('hello') %> -# -# To use a different locale, set it with `I18n.locale`: -# -# I18n.locale = :es -# -# This would use the information in config/locales/es.yml. -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/spec/dummy_5.1/config/routes.rb b/spec/dummy_5.1/config/routes.rb deleted file mode 100644 index 49601dd..0000000 --- a/spec/dummy_5.1/config/routes.rb +++ /dev/null @@ -1,17 +0,0 @@ -Rails.application.routes.draw do - get "/users/:user_id/render_elsewhere(.:format)", :to => "likes#render_elsewhere" - get "/users/:user_id/send_instructions", :to => "users#send_instructions" - get "/users/noaction", :to => "users#noaction" - get "/users/export/:id", :to => "users#export" - resources :users do - resources :likes - end - get "/home(.:format)", :to => "home#index", :as => :home - get "/home/only_html", :to => "home#only_html", :as => :only_html - get "/another(.:format)", :to => "home#another", :as => :another - get "/useheader(.:format)", :to => "home#useheader", :as => :useheader - get "/withpartial(.:format)", :to => "home#withpartial", :as => :withpartial - get "/home/render_elsewhere(.:format)", :to => "home#render_elsewhere" - get "/render_elsewhere(.:format)", :to => "home#render_elsewhere" - root to: "home#index" -end diff --git a/spec/dummy_5.1/config/secrets.yml b/spec/dummy_5.1/config/secrets.yml deleted file mode 100644 index 27edc21..0000000 --- a/spec/dummy_5.1/config/secrets.yml +++ /dev/null @@ -1,22 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Your secret key is used for verifying the integrity of signed cookies. -# If you change this key, all old signed cookies will become invalid! - -# Make sure the secret is at least 30 characters and all random, -# no regular words or you'll be exposed to dictionary attacks. -# You can use `rake secret` to generate a secure secret key. - -# Make sure the secrets in this file are kept private -# if you're sharing your code publicly. - -development: - secret_key_base: a379dda69862a8411c21a5657a822201520044ba6afc4eb650247079c545c6c566fa4119b818744c36d7faca4533542695e382a787ef9899a52754b4dcc4145c - -test: - secret_key_base: be4cce38d09d5ef8d251576c17b633e28d36efd34843b2a0930bc9450e7bfc1dbad6600e2a0f1f901b4f26c43dd916732966d1428c1f8eeb1218765856e5d84a - -# Do not keep production secrets in the repository, -# instead read values from the environment. -production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb b/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb deleted file mode 100644 index 9fa5e5f..0000000 --- a/spec/dummy_5.1/db/migrate/20120717192452_create_users.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateUsers < ActiveRecord::Migration[5.1] - def change - create_table :users do |t| - t.string :name - t.string :last_name - t.string :address - t.string :email - - t.timestamps - end - end -end diff --git a/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb b/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb deleted file mode 100644 index eaba52c..0000000 --- a/spec/dummy_5.1/db/migrate/20121206210955_create_likes.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateLikes < ActiveRecord::Migration[5.1] - def change - create_table :likes do |t| - t.string :name - t.integer :user_id - - t.timestamps - end - end -end diff --git a/spec/dummy_5.1/db/schema.rb b/spec/dummy_5.1/db/schema.rb deleted file mode 100644 index bf5e3e7..0000000 --- a/spec/dummy_5.1/db/schema.rb +++ /dev/null @@ -1,31 +0,0 @@ -# This file is auto-generated from the current state of the database. Instead -# of editing this file, please use the migrations feature of Active Record to -# incrementally modify your database, and then regenerate this schema definition. -# -# Note that this schema.rb definition is the authoritative source for your -# database schema. If you need to create the application database on another -# system, you should be using db:schema:load, not running all the migrations -# from scratch. The latter is a flawed and unsustainable approach (the more migrations -# you'll amass, the slower it'll run and the greater likelihood for issues). -# -# It's strongly recommended that you check this file into your version control system. - -ActiveRecord::Schema.define(version: 20121206210955) do - - create_table "likes", force: :cascade do |t| - t.string "name" - t.integer "user_id" - t.datetime "created_at" - t.datetime "updated_at" - end - - create_table "users", force: :cascade do |t| - t.string "name" - t.string "last_name" - t.string "address" - t.string "email" - t.datetime "created_at" - t.datetime "updated_at" - end - -end diff --git a/spec/dummy_5.1/lib/assets/.keep b/spec/dummy_5.1/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy_5.1/log/.keep b/spec/dummy_5.1/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/spec/dummy_5.1/public/404.html b/spec/dummy_5.1/public/404.html deleted file mode 100644 index b612547..0000000 --- a/spec/dummy_5.1/public/404.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The page you were looking for doesn't exist (404) - - - - - - -
-
-

The page you were looking for doesn't exist.

-

You may have mistyped the address or the page may have moved.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/dummy_5.1/public/422.html b/spec/dummy_5.1/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/spec/dummy_5.1/public/422.html +++ /dev/null @@ -1,67 +0,0 @@ - - - - The change you wanted was rejected (422) - - - - - - -
-
-

The change you wanted was rejected.

-

Maybe you tried to change something you didn't have access to.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/dummy_5.1/public/500.html b/spec/dummy_5.1/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/spec/dummy_5.1/public/500.html +++ /dev/null @@ -1,66 +0,0 @@ - - - - We're sorry, but something went wrong (500) - - - - - - -
-
-

We're sorry, but something went wrong.

-
-

If you are the application owner check the logs for more information.

-
- - diff --git a/spec/dummy_5.1/public/favicon.ico b/spec/dummy_5.1/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/spec/gemfiles/Gemfile.rails-5.1 b/spec/gemfiles/Gemfile.rails-5.1 new file mode 100644 index 0000000..5cfe96a --- /dev/null +++ b/spec/gemfiles/Gemfile.rails-5.1 @@ -0,0 +1,14 @@ +source "http://rubygems.org" + +gemspec path: '../../' + +gem 'rails', "~> 5.1.0" +gem 'responders', '~> 3.0' +gem 'sqlite3' +gem 'sprockets', '~> 3.0' +gem "jquery-rails" +gem "thin" +gem 'capybara', '~> 2.1' +gem 'acts_as_caxlsx', git: 'https://github.com/caxlsx/acts_as_caxlsx.git' + +gem 'byebug' diff --git a/spec/rails_app/db/migrate/20120717192452_create_users.rb b/spec/rails_app/db/migrate/20120717192452_create_users.rb index a05b845..ad60de5 100644 --- a/spec/rails_app/db/migrate/20120717192452_create_users.rb +++ b/spec/rails_app/db/migrate/20120717192452_create_users.rb @@ -1,4 +1,4 @@ -class CreateUsers < ActiveRecord::Migration[5.2] +class CreateUsers < ActiveRecord::Migration def change create_table :users do |t| t.string :name diff --git a/spec/rails_app/db/migrate/20121206210955_create_likes.rb b/spec/rails_app/db/migrate/20121206210955_create_likes.rb index 694910d..71bbc5f 100644 --- a/spec/rails_app/db/migrate/20121206210955_create_likes.rb +++ b/spec/rails_app/db/migrate/20121206210955_create_likes.rb @@ -1,4 +1,4 @@ -class CreateLikes < ActiveRecord::Migration[5.2] +class CreateLikes < ActiveRecord::Migration def change create_table :likes do |t| t.string :name diff --git a/spec/test_5.1.sh b/spec/test_5.1.sh deleted file mode 100755 index 95bb5c6..0000000 --- a/spec/test_5.1.sh +++ /dev/null @@ -1,16 +0,0 @@ -export RAILS_ENV=test - -for version in 5.1 -do - echo "Testing Rails version " $version - rm Gemfile.lock - if [ -f Gemfile.lock.$version ]; - then - echo Reusing Gemfile.lock.$version - cp Gemfile.lock.$version Gemfile.lock - fi - rm spec/dummy_5.1/db/test.sqlite3 - export RAILS_VERSION=$version - spec/ci.rb - cp Gemfile.lock Gemfile.lock.$version -done