mirror of
https://github.com/plashchynski/crono.git
synced 2026-06-11 17:32:45 +02:00
Cleanup and get rspec to run again
This commit is contained in:
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>
|
||||
@@ -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
|
||||
@@ -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__)
|
||||
@@ -0,0 +1,3 @@
|
||||
test:
|
||||
adapter: sqlite3
|
||||
database: db/crono_test.sqlite
|
||||
@@ -0,0 +1,2 @@
|
||||
# Load the Rails application.
|
||||
require_relative 'application'
|
||||
@@ -0,0 +1,3 @@
|
||||
Rails.application.routes.draw do
|
||||
root 'pages#index'
|
||||
end
|
||||
@@ -0,0 +1,3 @@
|
||||
test:
|
||||
service: Disk
|
||||
root: /Users/chris/Sites/_playground/crono/tmp/storage
|
||||
Binary file not shown.
@@ -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
|
||||
@@ -0,0 +1 @@
|
||||
*.log
|
||||
Reference in New Issue
Block a user