Cleanup and get rspec to run again

This commit is contained in:
Chris Seelus
2021-02-11 16:57:23 +01:00
parent 6fee31fc81
commit ee79596509
63 changed files with 457 additions and 1448 deletions
Binary file not shown.
@@ -0,0 +1,3 @@
class ApplicationController < ActionController::Base
protect_from_forgery with: :exception
end
@@ -0,0 +1,5 @@
class PagesController < ApplicationController
def index
#
end
end
@@ -0,0 +1 @@
<p>Hello World</p>
+22
View File
@@ -0,0 +1,22 @@
require_relative 'boot'
require 'rails/all'
# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
require 'crono'
module Dummy
class Application < Rails::Application
config.load_defaults Rails::VERSION::STRING.to_f
# Configuration for the application, engines, and railties goes here.
#
# These settings can be overridden in specific environments using the files
# in config/environments, which are processed later.
#
# config.time_zone = "Central Time (US & Canada)"
# config.eager_load_paths << Rails.root.join("extras")
end
end
+5
View File
@@ -0,0 +1,5 @@
# Set up gems listed in the Gemfile.
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../../Gemfile', __dir__)
require "bundler/setup" if File.exist?(ENV['BUNDLE_GEMFILE'])
$LOAD_PATH.unshift File.expand_path('../../../lib', __dir__)
+3
View File
@@ -0,0 +1,3 @@
test:
adapter: sqlite3
database: db/crono_test.sqlite
+2
View File
@@ -0,0 +1,2 @@
# Load the Rails application.
require_relative 'application'
+3
View File
@@ -0,0 +1,3 @@
Rails.application.routes.draw do
root 'pages#index'
end
+3
View File
@@ -0,0 +1,3 @@
test:
service: Disk
root: /Users/chris/Sites/_playground/crono/tmp/storage
Binary file not shown.
+10
View File
@@ -0,0 +1,10 @@
ActiveRecord::Schema.define do
create_table :crono_jobs do |t|
t.string :job_id, null: false
t.text :log, limit: 1_073_741_823 # LONGTEXT for MySQL
t.datetime :last_performed_at
t.boolean :healthy
t.timestamps null: false
end
add_index :crono_jobs, [:job_id], unique: true
end
+1
View File
@@ -0,0 +1 @@
*.log
View File