diff --git a/.DS_Store b/.DS_Store index 5a2d3bd..ed053b3 100644 Binary files a/.DS_Store and b/.DS_Store differ diff --git a/Rodolfo_Valdivieso/controllers/basic_models/.gitignore b/Rodolfo_Valdivieso/controllers/basic_models/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/basic_models/Gemfile b/Rodolfo_Valdivieso/controllers/basic_models/Gemfile deleted file mode 100644 index a772021..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/Gemfile +++ /dev/null @@ -1,50 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -gem 'hirb' -gem 'rails-footnotes', '>= 4.0.0', '<5' - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/basic_models/Gemfile.lock b/Rodolfo_Valdivieso/controllers/basic_models/Gemfile.lock deleted file mode 100644 index eefb285..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/basic_models/README.rdoc b/Rodolfo_Valdivieso/controllers/basic_models/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/basic_models/Rakefile b/Rodolfo_Valdivieso/controllers/basic_models/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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/Rodolfo_Valdivieso/controllers/basic_models/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/basic_models/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/basic_models/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/basic_models/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/basic_models/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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/Rodolfo_Valdivieso/controllers/basic_models/app/controllers/users_controller.rb b/Rodolfo_Valdivieso/controllers/basic_models/app/controllers/users_controller.rb deleted file mode 100644 index 82c4246..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/controllers/users_controller.rb +++ /dev/null @@ -1,41 +0,0 @@ -class UsersController < ApplicationController - - def index - - end - - def USERALL - return render json: User.all - #return render text: 'Helloooooooo' - end - - def new - return render 'new' - end - - def show - id = params[:id] - @user = User.find(id) - - return render json: User.find(id) - #return render 'show' - end - - def edit - id = params[:id] - @user = User.find(id) - return render 'edit' - end - - - def create - puts params['name'] - user = User.create(name:params['name']) - return redirect_to '/users/'+user.id.to_s - end - - def total - return render text: "Total of user: " + User.count.to_s - end - -end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/models/user.rb b/Rodolfo_Valdivieso/controllers/basic_models/app/models/user.rb deleted file mode 100644 index 46a0959..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/models/user.rb +++ /dev/null @@ -1,4 +0,0 @@ -class User < ActiveRecord::Base - - -end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/layouts/application.html.erb deleted file mode 100644 index d2fc6d2..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - BasicModels - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/create.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/create.html.erb deleted file mode 100644 index 48ea02e..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/create.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#create

-

Find me in app/views/users/create.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/destroy.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/destroy.html.erb deleted file mode 100644 index de4bd26..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/destroy.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#destroy

-

Find me in app/views/users/destroy.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/edit.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/edit.html.erb deleted file mode 100644 index e922944..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/edit.html.erb +++ /dev/null @@ -1,19 +0,0 @@ - - - - - Edit User - - -
-

Edit User

- - - - - - -
Name:
-
- - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/index.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/index.html.erb deleted file mode 100644 index 5682579..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/index.html.erb +++ /dev/null @@ -1 +0,0 @@ -cccccccccccccccccc \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/new.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/new.html.erb deleted file mode 100644 index 5deec9a..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/new.html.erb +++ /dev/null @@ -1,20 +0,0 @@ - - - - - New User - - -
- -

Create a New User

- - - - - - -
Name:
-
- - diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/show.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/show.html.erb deleted file mode 100644 index 2dac318..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/show.html.erb +++ /dev/null @@ -1,11 +0,0 @@ - - - - - Show - - -

Show User Information

-

User Name: <%= @user.name %>

- - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/update.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/update.html.erb deleted file mode 100644 index cabbde1..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/update.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#update

-

Find me in app/views/users/update.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/userall.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/userall.html.erb deleted file mode 100644 index 015b78d..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/userall.html.erb +++ /dev/null @@ -1 +0,0 @@ -slkdjsakldjsadkljkalsdjaklsdjkl \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/view.html.erb b/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/view.html.erb deleted file mode 100644 index 7c3165c..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/app/views/users/view.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#view

-

Find me in app/views/users/view.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/basic_models/bin/rails b/Rodolfo_Valdivieso/controllers/basic_models/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/basic_models/bin/setup b/Rodolfo_Valdivieso/controllers/basic_models/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config.ru b/Rodolfo_Valdivieso/controllers/basic_models/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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/Rodolfo_Valdivieso/controllers/basic_models/config/application.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/application.rb deleted file mode 100644 index 9cab718..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module BasicModels - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/boot.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/environment.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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/Rodolfo_Valdivieso/controllers/basic_models/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/environments/development.rb deleted file mode 100644 index 9e2ecb0..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/config/environments/development.rb +++ /dev/null @@ -1,42 +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 - config.log_level = :warn - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/basic_models/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/basic_models/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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 diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/session_store.rb deleted file mode 100644 index 4e5849a..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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: '_basic_models_session' diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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/Rodolfo_Valdivieso/controllers/basic_models/config/routes.rb b/Rodolfo_Valdivieso/controllers/basic_models/config/routes.rb deleted file mode 100644 index c424bb8..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/config/routes.rb +++ /dev/null @@ -1,67 +0,0 @@ -Rails.application.routes.draw do - - - get 'users' => 'users#userAll' - get 'users/new' => 'users#new' - get 'users/total' => 'users#total' - get 'users/:id' => 'users#show' - get 'users/:id/edit' => 'users#edit' - post 'users' => 'users#create' - - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/secrets.yml b/Rodolfo_Valdivieso/controllers/basic_models/config/secrets.yml deleted file mode 100644 index 445e861..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/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: da07c94a15bafc01789e388627b4d42a7fdbc4150aa4fd009a1520ee76a0baa561b543324169087bbdd308ff06fb268dd3cfeb4c77042427b2a97c576d58df2f - -test: - secret_key_base: c16cb46737a3d74210d46996d9457e352b34f8cd0aacff5d87bea037ecb89444ecbe3fc41840d59ee01839941363dc99b8108b1ee8c2086a8246bc69f5152499 - -# 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/Rodolfo_Valdivieso/controllers/basic_models/db/migrate/20171201193241_create_users.rb b/Rodolfo_Valdivieso/controllers/basic_models/db/migrate/20171201193241_create_users.rb deleted file mode 100644 index 5494756..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/db/migrate/20171201193241_create_users.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :name - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/db/schema.rb b/Rodolfo_Valdivieso/controllers/basic_models/db/schema.rb deleted file mode 100644 index 5fd0508..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/db/schema.rb +++ /dev/null @@ -1,22 +0,0 @@ -# encoding: UTF-8 -# 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: 20171201193241) do - - create_table "users", force: :cascade do |t| - t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/db/seeds.rb b/Rodolfo_Valdivieso/controllers/basic_models/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/controllers/users_controller_test.rb b/Rodolfo_Valdivieso/controllers/basic_models/test/controllers/users_controller_test.rb deleted file mode 100644 index f1faa40..0000000 --- a/Rodolfo_Valdivieso/controllers/basic_models/test/controllers/users_controller_test.rb +++ /dev/null @@ -1,39 +0,0 @@ -require 'test_helper' - -class UsersControllerTest < ActionController::TestCase - test "should get view" do - get :view - assert_response :success - end - - test "should get new" do - get :new - assert_response :success - end - - test "should get create" do - get :create - assert_response :success - end - - test "should get show" do - get :show - assert_response :success - end - - test "should get edit" do - get :edit - assert_response :success - end - - test "should get update" do - get :update - assert_response :success - end - - test "should get destroy" do - get :destroy - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/.gitignore b/Rodolfo_Valdivieso/controllers/dashboard/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/dashboard/Gemfile b/Rodolfo_Valdivieso/controllers/dashboard/Gemfile deleted file mode 100644 index 83c52af..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development -gem 'rails-footnotes', '>= 4.0.0', '<5' -gem 'hirb' -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/dashboard/Gemfile.lock b/Rodolfo_Valdivieso/controllers/dashboard/Gemfile.lock deleted file mode 100644 index 6d3faf5..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.1) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/dashboard/README.rdoc b/Rodolfo_Valdivieso/controllers/dashboard/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/dashboard/Rakefile b/Rodolfo_Valdivieso/controllers/dashboard/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/dashboard/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/dashboard/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/dashboard/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/dashboard/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/app/controllers/dojos_controller.rb b/Rodolfo_Valdivieso/controllers/dashboard/app/controllers/dojos_controller.rb deleted file mode 100644 index 7dd7050..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,11 +0,0 @@ -class DojosController < ApplicationController - def index - - @total = Dojo.count - @dojo = Dojo.all - return render 'index' - end - - def view - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/models/dojo.rb b/Rodolfo_Valdivieso/controllers/dashboard/app/models/dojo.rb deleted file mode 100644 index a708445..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/app/models/dojo.rb +++ /dev/null @@ -1,2 +0,0 @@ -class Dojo < ActiveRecord::Base -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/views/dojos/index.html.erb b/Rodolfo_Valdivieso/controllers/dashboard/app/views/dojos/index.html.erb deleted file mode 100644 index 0a99db7..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/app/views/dojos/index.html.erb +++ /dev/null @@ -1,27 +0,0 @@ - - - - - Dojos - - -

Listing <%= @total %> Dojos

- - - - - - - - <% @dojo %> - <% @dojo.each do |x| %> - - - - - - - <% end %> -
Coding Dojo BranchStreetCityState
<%= x.branch %><%= x.street %><%= x.city %><%= x.state %>
- - diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/views/dojos/view.html.erb b/Rodolfo_Valdivieso/controllers/dashboard/app/views/dojos/view.html.erb deleted file mode 100644 index 121daab..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/app/views/dojos/view.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Dojos#view

-

Find me in app/views/dojos/view.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/dashboard/app/views/layouts/application.html.erb deleted file mode 100644 index b0588e1..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Dashboard - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/dashboard/bin/rails b/Rodolfo_Valdivieso/controllers/dashboard/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/dashboard/bin/setup b/Rodolfo_Valdivieso/controllers/dashboard/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config.ru b/Rodolfo_Valdivieso/controllers/dashboard/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/config/application.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/application.rb deleted file mode 100644 index a52167e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Dashboard - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/boot.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/environment.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/environments/development.rb deleted file mode 100644 index efe6b4d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/config/environments/development.rb +++ /dev/null @@ -1,42 +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 - config.log_level = :warn - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/dashboard/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/dashboard/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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 diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/rails_footnotes.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/session_store.rb deleted file mode 100644 index 7e6ab86..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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: '_dashboard_session' diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/config/routes.rb b/Rodolfo_Valdivieso/controllers/dashboard/config/routes.rb deleted file mode 100644 index c8397ce..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/config/routes.rb +++ /dev/null @@ -1,59 +0,0 @@ -Rails.application.routes.draw do - get '' => 'dojos#index' - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/secrets.yml b/Rodolfo_Valdivieso/controllers/dashboard/config/secrets.yml deleted file mode 100644 index 054fe63..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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: c0cf57d11557540485b1fe346e6bdcbddccd04510e89bcfebbbfee2b8062d07f02aa7ff5e8e155d27ea6ea7023dcb77a3495a9eb0e3467c5f7adbd7d69a551de - -test: - secret_key_base: f18e2c3a3d1cc12429a1f6892b3348f4b7de0f1917e76114a69d32d849913648bea057ec53987b52b2e3b4169bebc9e6f4dbbbe65afdcf4b3b26e2140903736b - -# 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/Rodolfo_Valdivieso/controllers/dashboard/db/migrate/20171203230719_create_dojos.rb b/Rodolfo_Valdivieso/controllers/dashboard/db/migrate/20171203230719_create_dojos.rb deleted file mode 100644 index 0df8b3d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/db/migrate/20171203230719_create_dojos.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :branch - t.string :street - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/db/schema.rb b/Rodolfo_Valdivieso/controllers/dashboard/db/schema.rb deleted file mode 100644 index 35d8ae7..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171203230719) do - - create_table "dojos", force: :cascade do |t| - t.string "branch" - t.string "street" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/db/seeds.rb b/Rodolfo_Valdivieso/controllers/dashboard/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/dashboard/public/404.html b/Rodolfo_Valdivieso/controllers/dashboard/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/public/422.html b/Rodolfo_Valdivieso/controllers/dashboard/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/public/500.html b/Rodolfo_Valdivieso/controllers/dashboard/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/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/Rodolfo_Valdivieso/controllers/dashboard/test/controllers/dojos_controller_test.rb b/Rodolfo_Valdivieso/controllers/dashboard/test/controllers/dojos_controller_test.rb deleted file mode 100644 index 49d825f..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get view" do - get :view - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/.gitignore b/Rodolfo_Valdivieso/controllers/dashboard2/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/Gemfile b/Rodolfo_Valdivieso/controllers/dashboard2/Gemfile deleted file mode 100644 index 83c52af..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development -gem 'rails-footnotes', '>= 4.0.0', '<5' -gem 'hirb' -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/Gemfile.lock b/Rodolfo_Valdivieso/controllers/dashboard2/Gemfile.lock deleted file mode 100644 index 6d3faf5..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.1) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/README.rdoc b/Rodolfo_Valdivieso/controllers/dashboard2/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/Rakefile b/Rodolfo_Valdivieso/controllers/dashboard2/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/stylesheets/dojos.scss b/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/stylesheets/dojos.scss deleted file mode 100644 index fb30922..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/stylesheets/dojos.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Dojos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/dashboard2/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/app/controllers/dojos_controller.rb b/Rodolfo_Valdivieso/controllers/dashboard2/app/controllers/dojos_controller.rb deleted file mode 100644 index 0820472..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,82 +0,0 @@ -class DojosController < ApplicationController - def index - @total = Dojo.count - @dojo = Dojo.all - return render 'index' - end - - def new - return render 'new' - end - - def create - - @dojo = Dojo.new(branch:params[:branch], street:params['street'], city:params['city'], state:params['state']) - if @dojo.valid? - @dojo.save - session[:branch] = nil - session[:street] = nil - session[:city] = nil - session[:state] = nil - flash[:success] = "You have Successfully submitted your form!!!" - return redirect_to '/' - else - flash[:failed] = @dojo.errors.full_messages - session[:branch] = params[:branch] - session[:street] = params[:street] - session[:city] = params[:city] - session[:state] = params[:state] - return redirect_to '/dojos/new' - end - end - - def edit - @dojo = Dojo.find(params[:id]) - session[:branch] = @dojo.id - session[:branch] = @dojo.branch - session[:street] = @dojo.street - session[:city] = @dojo.city - session[:state] = @dojo.state - return render 'edit' - end - - def update - @dojo = Dojo.find(params[:id]) - @dojo.branch = params[:branch] - @dojo.street = params[:street] - @dojo.city = params[:city] - @dojo.state = params[:state] - - if @dojo.valid? - session[:branch] = nil - session[:street] = nil - session[:city] = nil - session[:state] = nil - @dojo.save - return redirect_to '/' - else - flash[:failed] = @dojo.errors.full_messages - session[:branch] = params[:branch] - session[:street] = params[:street] - session[:city] = params[:city] - session[:state] = params[:state] - return redirect_to '/dojos/new' - end - end - - def show - @dojo = Dojo.find(params[:id]) - return render 'show' - end - - def destroy - Dojo.find(params[:id]).destroy - return redirect_to '/' - end - - - - def goback - return redirect_to '/' - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/helpers/dojos_helper.rb b/Rodolfo_Valdivieso/controllers/dashboard2/app/helpers/dojos_helper.rb deleted file mode 100644 index 194211a..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/helpers/dojos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DojosHelper -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/models/dojo.rb b/Rodolfo_Valdivieso/controllers/dashboard2/app/models/dojo.rb deleted file mode 100644 index 84e9a3c..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/models/dojo.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Dojo < ActiveRecord::Base - validates :branch, :street, :city, presence: true, length: { in: 2..255 } - validates :state, presence: true -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/edit.html.erb b/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/edit.html.erb deleted file mode 100644 index 4d2ca54..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/edit.html.erb +++ /dev/null @@ -1,39 +0,0 @@ - - - - - Edit Dojo - - - <% if flash[:failed] %> - <% flash[:failed].each do |value| %> -
<%= value %>
- <% end %> - <% end %> - -
- -

Edit Dojo

- - - - - - - - - - - - - - - - - -
Branch:
Street:
City:
State:
- -
- Goback - - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/index.html.erb b/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/index.html.erb deleted file mode 100644 index b754d04..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/index.html.erb +++ /dev/null @@ -1,35 +0,0 @@ - - - - - Dojos - - -

Listing <%= @total %> Dojos

- - - - - - - - - <% @dojo %> - <% @dojo.each do |x| %> - - - - - - - - - <% end %> -
Coding Dojo BranchStreetCityStateAction
<%= x.branch %><%= x.street %><%= x.city %><%= x.state %> - Show | - Edit | - Destroy -
- Add New - - diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/new.html.erb b/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/new.html.erb deleted file mode 100644 index d4919cc..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/new.html.erb +++ /dev/null @@ -1,39 +0,0 @@ - - - - - New Dojo - - - <% if flash[:failed] %> - <% flash[:failed].each do |value| %> -
<%= value %>
- <% end %> - <% end %> - -
- -

Add a new Dojo

- - - - - - - - - - - - - - - - - -
Branch:
Street:
City:
State:
- -
- Goback - - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/show.html.erb b/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/show.html.erb deleted file mode 100644 index 84385bf..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/dojos/show.html.erb +++ /dev/null @@ -1,31 +0,0 @@ - - - - - Show Dojo - - - -

Show Dojo

- - - - - - - - - - - - - - - - - -
Branch:<%= @dojo.branch %>
Street:<%= @dojo.street %>
City:<%= @dojo.city %>
State:<%= @dojo.state %>
- - Goback - - diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/dashboard2/app/views/layouts/application.html.erb deleted file mode 100644 index b0588e1..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Dashboard - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/bin/rails b/Rodolfo_Valdivieso/controllers/dashboard2/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/bin/setup b/Rodolfo_Valdivieso/controllers/dashboard2/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config.ru b/Rodolfo_Valdivieso/controllers/dashboard2/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/config/application.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/application.rb deleted file mode 100644 index a52167e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Dashboard - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/boot.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/environment.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/development.rb deleted file mode 100644 index efe6b4d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/development.rb +++ /dev/null @@ -1,42 +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 - config.log_level = :warn - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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 diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/rails_footnotes.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/session_store.rb deleted file mode 100644 index 7e6ab86..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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: '_dashboard_session' diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/config/routes.rb b/Rodolfo_Valdivieso/controllers/dashboard2/config/routes.rb deleted file mode 100644 index 286be5c..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/config/routes.rb +++ /dev/null @@ -1,66 +0,0 @@ -Rails.application.routes.draw do - get '' => 'dojos#index' - get 'dojos/new' => 'dojos#new' - post 'dojos/create' => 'dojos#create' - get 'dojos/:id/show' => 'dojos#show' - get 'dojos/:id/edit' => 'dojos#edit' - post 'dojos/:id/update' => 'dojos#update' - post 'dojos/:id/destroy' => 'dojos#destroy' - get 'goback' => 'dojos#goback' - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/secrets.yml b/Rodolfo_Valdivieso/controllers/dashboard2/config/secrets.yml deleted file mode 100644 index 054fe63..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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: c0cf57d11557540485b1fe346e6bdcbddccd04510e89bcfebbbfee2b8062d07f02aa7ff5e8e155d27ea6ea7023dcb77a3495a9eb0e3467c5f7adbd7d69a551de - -test: - secret_key_base: f18e2c3a3d1cc12429a1f6892b3348f4b7de0f1917e76114a69d32d849913648bea057ec53987b52b2e3b4169bebc9e6f4dbbbe65afdcf4b3b26e2140903736b - -# 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/Rodolfo_Valdivieso/controllers/dashboard2/db/migrate/20171203230719_create_dojos.rb b/Rodolfo_Valdivieso/controllers/dashboard2/db/migrate/20171203230719_create_dojos.rb deleted file mode 100644 index 0df8b3d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/db/migrate/20171203230719_create_dojos.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :branch - t.string :street - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/db/schema.rb b/Rodolfo_Valdivieso/controllers/dashboard2/db/schema.rb deleted file mode 100644 index 35d8ae7..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171203230719) do - - create_table "dojos", force: :cascade do |t| - t.string "branch" - t.string "street" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/db/seeds.rb b/Rodolfo_Valdivieso/controllers/dashboard2/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/public/404.html b/Rodolfo_Valdivieso/controllers/dashboard2/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/public/422.html b/Rodolfo_Valdivieso/controllers/dashboard2/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/public/500.html b/Rodolfo_Valdivieso/controllers/dashboard2/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/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/Rodolfo_Valdivieso/controllers/dashboard2/test/controllers/dojos_controller_test.rb b/Rodolfo_Valdivieso/controllers/dashboard2/test/controllers/dojos_controller_test.rb deleted file mode 100644 index 49d825f..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get view" do - get :view - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/fixtures/dojos.yml b/Rodolfo_Valdivieso/controllers/dashboard2/test/fixtures/dojos.yml deleted file mode 100644 index 215263e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard2/test/fixtures/dojos.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - branch: MyString - street: MyString - city: MyString - state: MyString - -two: - branch: MyString - street: MyString - city: MyString - state: MyString diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/.gitignore b/Rodolfo_Valdivieso/controllers/dashboard3/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/Gemfile b/Rodolfo_Valdivieso/controllers/dashboard3/Gemfile deleted file mode 100644 index 83c52af..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development -gem 'rails-footnotes', '>= 4.0.0', '<5' -gem 'hirb' -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/Gemfile.lock b/Rodolfo_Valdivieso/controllers/dashboard3/Gemfile.lock deleted file mode 100644 index 6d3faf5..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.1) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/README.rdoc b/Rodolfo_Valdivieso/controllers/dashboard3/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/Rakefile b/Rodolfo_Valdivieso/controllers/dashboard3/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/stylesheets/dojos.scss b/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/stylesheets/dojos.scss deleted file mode 100644 index fb30922..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/stylesheets/dojos.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Dojos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/dashboard3/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/app/controllers/dojos_controller.rb b/Rodolfo_Valdivieso/controllers/dashboard3/app/controllers/dojos_controller.rb deleted file mode 100644 index 8641b62..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,80 +0,0 @@ -class DojosController < ApplicationController - def index - @total = Dojo.count - @dojo = Dojo.all - return render 'index' - end - - def new - return render 'new' - end - - def create - - @dojo = Dojo.new(branch:params[:branch], street:params['street'], city:params['city'], state:params['state']) - if @dojo.valid? - @dojo.save - session[:branch] = nil - session[:street] = nil - session[:city] = nil - session[:state] = nil - flash[:success] = "You have Successfully submitted your form!!!" - return redirect_to '/' - else - flash[:failed] = @dojo.errors.full_messages - session[:branch] = params[:branch] - session[:street] = params[:street] - session[:city] = params[:city] - session[:state] = params[:state] - return redirect_to '/dojos/new' - end - end - - def edit - @dojo = Dojo.find(params[:id]) - session[:branch] = @dojo.id - session[:branch] = @dojo.branch - session[:street] = @dojo.street - session[:city] = @dojo.city - session[:state] = @dojo.state - return render 'edit' - end - - def update - @dojo = Dojo.find(params[:id]) - @dojo.branch = params[:branch] - @dojo.street = params[:street] - @dojo.city = params[:city] - @dojo.state = params[:state] - - if @dojo.valid? - session[:branch] = nil - session[:street] = nil - session[:city] = nil - session[:state] = nil - @dojo.save - return redirect_to '/' - else - flash[:failed] = @dojo.errors.full_messages - session[:branch] = params[:branch] - session[:street] = params[:street] - session[:city] = params[:city] - session[:state] = params[:state] - return redirect_to '/dojos/'+@dojo.id+'/edit' - end - end - - def show - @dojo = Dojo.find(params[:id]) - return render 'show' - end - - def destroy - Dojo.find(params[:id]).destroy - return redirect_to '/' - end - - def goback - return redirect_to '/' - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/helpers/dojos_helper.rb b/Rodolfo_Valdivieso/controllers/dashboard3/app/helpers/dojos_helper.rb deleted file mode 100644 index 194211a..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/helpers/dojos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DojosHelper -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/models/dojo.rb b/Rodolfo_Valdivieso/controllers/dashboard3/app/models/dojo.rb deleted file mode 100644 index 84e9a3c..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/models/dojo.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Dojo < ActiveRecord::Base - validates :branch, :street, :city, presence: true, length: { in: 2..255 } - validates :state, presence: true -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/edit.html.erb b/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/edit.html.erb deleted file mode 100644 index 42ec984..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/edit.html.erb +++ /dev/null @@ -1,41 +0,0 @@ - - - - - Edit Dojo - - - <% if flash[:failed] %> - <% flash[:failed].each do |value| %> -
<%= value %>
- <% end %> - <% end %> - -
- - -

Edit Dojo

- - - - - - - - - - - - - - - - - -
Branch:
Street:
City:
State:
- -
- Home - Show - - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/index.html.erb b/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/index.html.erb deleted file mode 100644 index c1d838c..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/index.html.erb +++ /dev/null @@ -1,35 +0,0 @@ - - - - - Dojos - - -

Listing <%= @total %> Dojos

- - - - - - - - - <% @dojo %> - <% @dojo.each do |x| %> - - - - - - - - - <% end %> -
Coding Dojo BranchStreetCityStateAction
<%= x.branch %><%= x.street %><%= x.city %><%= x.state %> - Show | - Edit | - Destroy -
- New Dojo - - diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/new.html.erb b/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/new.html.erb deleted file mode 100644 index 3eab4b1..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/new.html.erb +++ /dev/null @@ -1,39 +0,0 @@ - - - - - New Dojo - - - <% if flash[:failed] %> - <% flash[:failed].each do |value| %> -
<%= value %>
- <% end %> - <% end %> - -
- -

Add a new Dojo

- - - - - - - - - - - - - - - - - -
Branch:
Street:
City:
State:
- -
- Home - - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/show.html.erb b/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/show.html.erb deleted file mode 100644 index 4cd2a6b..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/dojos/show.html.erb +++ /dev/null @@ -1,32 +0,0 @@ - - - - - Show Dojo - - - -

Show Dojo

- - - - - - - - - - - - - - - - - -
Branch:<%= @dojo.branch %>
Street:<%= @dojo.street %>
City:<%= @dojo.city %>
State:<%= @dojo.state %>
- - Home - Edit - - diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/dashboard3/app/views/layouts/application.html.erb deleted file mode 100644 index b0588e1..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Dashboard - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/bin/rails b/Rodolfo_Valdivieso/controllers/dashboard3/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/bin/setup b/Rodolfo_Valdivieso/controllers/dashboard3/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config.ru b/Rodolfo_Valdivieso/controllers/dashboard3/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/config/application.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/application.rb deleted file mode 100644 index a52167e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Dashboard - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/boot.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/environment.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/development.rb deleted file mode 100644 index efe6b4d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/development.rb +++ /dev/null @@ -1,42 +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 - config.log_level = :warn - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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 diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/rails_footnotes.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/session_store.rb deleted file mode 100644 index 7e6ab86..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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: '_dashboard_session' diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/config/routes.rb b/Rodolfo_Valdivieso/controllers/dashboard3/config/routes.rb deleted file mode 100644 index 71b8313..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/config/routes.rb +++ /dev/null @@ -1,69 +0,0 @@ -Rails.application.routes.draw do - get '' => 'dojos#index' - get 'dojos/new' => 'dojos#new' - post 'dojos' => 'dojos#create' - - patch 'dojos/:id' => 'dojos#update' - - get 'dojos/:id' => 'dojos#show' - get 'dojos/:id/edit' => 'dojos#edit' - - delete 'dojos/:id' => 'dojos#destroy' - get 'goback' => 'dojos#goback' - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/secrets.yml b/Rodolfo_Valdivieso/controllers/dashboard3/config/secrets.yml deleted file mode 100644 index 054fe63..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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: c0cf57d11557540485b1fe346e6bdcbddccd04510e89bcfebbbfee2b8062d07f02aa7ff5e8e155d27ea6ea7023dcb77a3495a9eb0e3467c5f7adbd7d69a551de - -test: - secret_key_base: f18e2c3a3d1cc12429a1f6892b3348f4b7de0f1917e76114a69d32d849913648bea057ec53987b52b2e3b4169bebc9e6f4dbbbe65afdcf4b3b26e2140903736b - -# 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/Rodolfo_Valdivieso/controllers/dashboard3/db/migrate/20171203230719_create_dojos.rb b/Rodolfo_Valdivieso/controllers/dashboard3/db/migrate/20171203230719_create_dojos.rb deleted file mode 100644 index 0df8b3d..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/db/migrate/20171203230719_create_dojos.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :branch - t.string :street - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/db/schema.rb b/Rodolfo_Valdivieso/controllers/dashboard3/db/schema.rb deleted file mode 100644 index 35d8ae7..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171203230719) do - - create_table "dojos", force: :cascade do |t| - t.string "branch" - t.string "street" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/db/seeds.rb b/Rodolfo_Valdivieso/controllers/dashboard3/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/public/404.html b/Rodolfo_Valdivieso/controllers/dashboard3/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/public/422.html b/Rodolfo_Valdivieso/controllers/dashboard3/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/public/500.html b/Rodolfo_Valdivieso/controllers/dashboard3/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/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/Rodolfo_Valdivieso/controllers/dashboard3/test/controllers/dojos_controller_test.rb b/Rodolfo_Valdivieso/controllers/dashboard3/test/controllers/dojos_controller_test.rb deleted file mode 100644 index 49d825f..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get view" do - get :view - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/fixtures/dojos.yml b/Rodolfo_Valdivieso/controllers/dashboard3/test/fixtures/dojos.yml deleted file mode 100644 index 215263e..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/test/fixtures/dojos.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - branch: MyString - street: MyString - city: MyString - state: MyString - -two: - branch: MyString - street: MyString - city: MyString - state: MyString diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/models/dojo_test.rb b/Rodolfo_Valdivieso/controllers/dashboard3/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/Rodolfo_Valdivieso/controllers/dashboard3/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/.gitignore b/Rodolfo_Valdivieso/controllers/ninjaGold/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/Gemfile b/Rodolfo_Valdivieso/controllers/ninjaGold/Gemfile deleted file mode 100644 index de561f6..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/Gemfile +++ /dev/null @@ -1,51 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -gem 'hirb' - -gem 'rails-footnotes', '>= 4.0.0', '<5' - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/Gemfile.lock b/Rodolfo_Valdivieso/controllers/ninjaGold/Gemfile.lock deleted file mode 100644 index 60b76d1..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/README.rdoc b/Rodolfo_Valdivieso/controllers/ninjaGold/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/Rakefile b/Rodolfo_Valdivieso/controllers/ninjaGold/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/rpg.scss b/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/rpg.scss deleted file mode 100644 index 0e7563f..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/rpg.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Rpg controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/style.css b/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/style.css deleted file mode 100644 index bca8d42..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/stylesheets/style.css +++ /dev/null @@ -1,124 +0,0 @@ - -body{ - background-color: #005A31; - font-family: arial; -} - -form{ - display:inline-block; - border: 3px solid #CBE32D; - margin: 10px 5px 10px 10px; - width: 180px; -} - -.title{ - color:purple; - font-size: 40px; - display: block; - text-align: center; - -} - - -p{ - color:white; - display: inline-block; - margin: 0 0 0 0; -} - - -h1{ - font-size: 40px; - text-align: center; - width: 100%; - color: #A8CD1B; -} - -h2{ - margin-left: 50px; - display: inline-block; - color: white; -} - -h3{ - margin-left: 10px; - text-align: center; - color: white; -} - -#gold{ - margin-right: 40%; - width: 200px; -} - -input{ - border:2px solid black; - border-radius: 5px; - margin: 0 10px 10px 40px; - width: 100px; - background-color: #F3FAB6; - color: black; - font-size: 14px; - font-weight: bold; -} -.messageWon{ - background-color: green; - font-size: 20px; - display: block; - border: 2px solid black; - width: 300px; - height:200px; - margin:0 0 0 30%; - margin-bottom: 20px; -} -.message{ - background-color: red; - font-size: 20px; - display: block; - border: 2px solid black; - width: 300px; - height:200px; - margin:0 0 0 30%; - margin-bottom: 20px; -} - - -button{ - background-color: black; - color:white; - border:2px solid black; - border-radius: 20px; - display: block; - text-align: center; - margin-left: 40%; - margin-top: 20px; - margin-bottom: 20px; - width: 150px; - -} - -#reset{ - text-align: center; - margin:10px 100px 10px 50px; - width: 500px; -} - -.container{ - border:2px solid #CBE32D; - margin:10px 100px 10px 50px; -} - -#secondDiv{ - height:200px; - overflow:scroll; - overflow-x:hidden; -} -.green{ - color: green; - -} - -.red{ - color: red; - -} \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/app/controllers/rpg_controller.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/controllers/rpg_controller.rb deleted file mode 100644 index b21e329..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/controllers/rpg_controller.rb +++ /dev/null @@ -1,60 +0,0 @@ -class RpgController < ApplicationController - - def index - - session[:gold] ||= 0 - session[:activities] ||= [] - - return render 'index' - end - - def farm - gold = rand(10..20) - session[:gold] += gold - activity = "Earned: " + gold.to_s + " Golds from the Farm! (" + Time.now.strftime("%H:%M:%S") +")" - session[:activities].push({:activity => activity, :color => 'green'}) - return redirect_to '/' - end - - def cave - gold = rand(5..10) - session[:gold] += gold - activity = "Earned: " + gold.to_s + " Golds from the Cave! (" + Time.now.strftime("%H:%M:%S") +")" - session[:activities].push({:activity => activity, :color => 'green'}) - return redirect_to '/' - end - - def casino - gold = rand(-50..50) - session[:gold] = gold - - if gold >= 0 - activity = "Earned: " + gold.to_s + " Golds from the casino! (" + Time.now.strftime("%H:%M:%S") +")" - color = "green" - else - activity = "Enter a Casino and Lost: " + gold.to_s + " ..Ouch... " + " (" + Time.now.strftime("%H:%M:%S") +")" - color = "red" - end - - session[:activities].push({:activity => activity, :color => color}) - - if session[:gold] < 0 - session[:gold] = 0 - end - return redirect_to '/' - end - - def house - gold = rand(2..5) - session[:gold] += gold - activity = "Earned: " + gold.to_s + " Golds from the House! (" + Time.now.strftime("%H:%M:%S") +")" - session[:activities].push({:activity => activity, :color => 'green'}) - return redirect_to '/' - end - - def reset - session[:gold] = nil - session[:activities] = nil - return redirect_to '/' - end -end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/helpers/rpg_helper.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/helpers/rpg_helper.rb deleted file mode 100644 index e6f70f3..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/helpers/rpg_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module RpgHelper -end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/layouts/application.html.erb deleted file mode 100644 index e17cd6f..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - NinjaGold - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/casino.html.erb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/casino.html.erb deleted file mode 100644 index 118e3c5..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/casino.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Rpg#casino

-

Find me in app/views/rpg/casino.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/cave.html.erb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/cave.html.erb deleted file mode 100644 index 277b2c0..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/cave.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Rpg#cave

-

Find me in app/views/rpg/cave.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/farm.html.erb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/farm.html.erb deleted file mode 100644 index 9a9424b..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/farm.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Rpg#farm

-

Find me in app/views/rpg/farm.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/house.html.erb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/house.html.erb deleted file mode 100644 index 754f23d..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/house.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Rpg#house

-

Find me in app/views/rpg/house.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/index.html.erb b/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/index.html.erb deleted file mode 100644 index 617f46d..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/app/views/rpg/index.html.erb +++ /dev/null @@ -1,70 +0,0 @@ - - - - - Ninja Gold - Ruby Version - <%= stylesheet_link_tag "style" %> - - -
-

Ninja Gold Game - (Ruby)!!!

- - - - - - - - - - - - - - -

Your Gold: <%= session[:gold] %>

-
- -

Farm

-

(earn 10-20 golds)

- -
-
-
- -

Cave

-

(earn 5-10 golds)

- -
-
-
- -

House

-

(earn 2-5 golds)

- -
-
-
- -

Casino

-

(earn 0-50 golds)

- -
- -
-
-
- -

Activities:

- - <% session[:activities].each do |x| %> - -

<%= x['activity'] %>

- <% end %> -
-
- - -
- - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/bin/rails b/Rodolfo_Valdivieso/controllers/ninjaGold/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/bin/setup b/Rodolfo_Valdivieso/controllers/ninjaGold/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config.ru b/Rodolfo_Valdivieso/controllers/ninjaGold/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/config/application.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/application.rb deleted file mode 100644 index 6d31756..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module NinjaGold - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/boot.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/environment.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/development.rb deleted file mode 100644 index efe6b4d..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/development.rb +++ /dev/null @@ -1,42 +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 - config.log_level = :warn - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/assets.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/assets.rb deleted file mode 100644 index 0c79200..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' -Rails.application.config.assets.precompile += %w( style.css ) -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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 diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/rails_footnotes.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/session_store.rb deleted file mode 100644 index 0426ec4..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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: '_ninjaGold_session' diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/config/routes.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/config/routes.rb deleted file mode 100644 index 9530d4a..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/config/routes.rb +++ /dev/null @@ -1,63 +0,0 @@ -Rails.application.routes.draw do - post 'farm' => 'rpg#farm' - post 'cave' => 'rpg#cave' - post 'casino' => 'rpg#casino' - post 'house' => 'rpg#house' - get '' => 'rpg#index' - post 'reset' => 'rpg#reset' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/secrets.yml b/Rodolfo_Valdivieso/controllers/ninjaGold/config/secrets.yml deleted file mode 100644 index 5da2ce6..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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: 1ca5b101379764f23f37db4430bda1f6b17e3c032808560cfb969c4a6e1d703dad13460cbd22faba5105fa40dd7b77877b083fd72ee4b799b2aa1de139c1a978 - -test: - secret_key_base: 52b79b5a38cd6ac7c81e1d64c56f3c41fc36865dcb0958a41ce8c3abfdbbe36b9c24b2f553487ac759cec936631f12fe3b5a65efafdc3464a2832fe44927497b - -# 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/Rodolfo_Valdivieso/controllers/ninjaGold/db/seeds.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/public/404.html b/Rodolfo_Valdivieso/controllers/ninjaGold/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/public/422.html b/Rodolfo_Valdivieso/controllers/ninjaGold/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/public/500.html b/Rodolfo_Valdivieso/controllers/ninjaGold/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/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/Rodolfo_Valdivieso/controllers/ninjaGold/test/controllers/rpg_controller_test.rb b/Rodolfo_Valdivieso/controllers/ninjaGold/test/controllers/rpg_controller_test.rb deleted file mode 100644 index ec9b237..0000000 --- a/Rodolfo_Valdivieso/controllers/ninjaGold/test/controllers/rpg_controller_test.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'test_helper' - -class RpgControllerTest < ActionController::TestCase - test "should get farm" do - get :farm - assert_response :success - end - - test "should get cave" do - get :cave - assert_response :success - end - - test "should get casino" do - get :casino - assert_response :success - end - - test "should get house" do - get :house - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/controllers/routes/.gitignore b/Rodolfo_Valdivieso/controllers/routes/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/routes/Gemfile b/Rodolfo_Valdivieso/controllers/routes/Gemfile deleted file mode 100644 index a772021..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/Gemfile +++ /dev/null @@ -1,50 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -gem 'hirb' -gem 'rails-footnotes', '>= 4.0.0', '<5' - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/routes/Gemfile.lock b/Rodolfo_Valdivieso/controllers/routes/Gemfile.lock deleted file mode 100644 index eefb285..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/routes/README.rdoc b/Rodolfo_Valdivieso/controllers/routes/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/routes/Rakefile b/Rodolfo_Valdivieso/controllers/routes/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/routes/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/products.scss b/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/products.scss deleted file mode 100644 index 89e2e8d..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/products.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the products controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/test.scss b/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/test.scss deleted file mode 100644 index ca810c7..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/assets/stylesheets/test.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Test controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Rodolfo_Valdivieso/controllers/routes/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/routes/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/app/controllers/products_controller.rb b/Rodolfo_Valdivieso/controllers/routes/app/controllers/products_controller.rb deleted file mode 100644 index 38077ca..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/controllers/products_controller.rb +++ /dev/null @@ -1,35 +0,0 @@ -class ProductsController < ApplicationController - def index - render text: 'What do you want me to say?' - session[:times] ||= 0 - end - - def hello - render text: 'Hello Coding Dojo' - end - - def timesRestart - session[:times] = nil - return render text: 'Time Session Destroyed' - end - - def times - session[:times] ||= 0 - session[:times] += 1 - return render text: 'You have been here: ' + session[:times].to_s + ' times' - end - - def sayHello - render text: 'Saying Hello' - end - - def sayHelloName - - - if params[:name] == 'michael' - return redirect_to '/say/hello/joe' - end - - return render text: 'Saying Hello ' + params[:name].capitalize - end -end diff --git a/Rodolfo_Valdivieso/controllers/routes/app/controllers/test_controller.rb b/Rodolfo_Valdivieso/controllers/routes/app/controllers/test_controller.rb deleted file mode 100644 index c1fb818..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/controllers/test_controller.rb +++ /dev/null @@ -1,7 +0,0 @@ -class TestController < ApplicationController - def index - end - - def new - end -end diff --git a/Rodolfo_Valdivieso/controllers/routes/app/helpers/products_helper.rb b/Rodolfo_Valdivieso/controllers/routes/app/helpers/products_helper.rb deleted file mode 100644 index ab5c42b..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/helpers/products_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ProductsHelper -end diff --git a/Rodolfo_Valdivieso/controllers/routes/app/helpers/test_helper.rb b/Rodolfo_Valdivieso/controllers/routes/app/helpers/test_helper.rb deleted file mode 100644 index 09b6d50..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/helpers/test_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module TestHelper -end diff --git a/Rodolfo_Valdivieso/controllers/routes/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/routes/app/views/layouts/application.html.erb deleted file mode 100644 index 593f853..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Routes - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/routes/app/views/products/index.html.erb b/Rodolfo_Valdivieso/controllers/routes/app/views/products/index.html.erb deleted file mode 100644 index f8eeb82..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/views/products/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Products#index

-

Find me in app/views/products/index.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/routes/app/views/products/new.html.erb b/Rodolfo_Valdivieso/controllers/routes/app/views/products/new.html.erb deleted file mode 100644 index a14e0d9..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/app/views/products/new.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Products#new

-

Find me in app/views/products/new.html.erb

diff --git a/Rodolfo_Valdivieso/controllers/routes/bin/rails b/Rodolfo_Valdivieso/controllers/routes/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/routes/bin/setup b/Rodolfo_Valdivieso/controllers/routes/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/routes/config.ru b/Rodolfo_Valdivieso/controllers/routes/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/config/application.rb b/Rodolfo_Valdivieso/controllers/routes/config/application.rb deleted file mode 100644 index cb1a49d..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Routes - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/routes/config/boot.rb b/Rodolfo_Valdivieso/controllers/routes/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/routes/config/environment.rb b/Rodolfo_Valdivieso/controllers/routes/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/routes/config/environments/development.rb deleted file mode 100644 index dff533f..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/config/environments/development.rb +++ /dev/null @@ -1,43 +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.log_level = :warn - config.cache_classes = false - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/routes/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/routes/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/routes/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/routes/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/routes/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/routes/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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 diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/rails_footnotes.rb b/Rodolfo_Valdivieso/controllers/routes/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/routes/config/initializers/session_store.rb deleted file mode 100644 index 98f9ece..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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: '_routes_session' diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/routes/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/config/routes.rb b/Rodolfo_Valdivieso/controllers/routes/config/routes.rb deleted file mode 100644 index c0ed43c..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/config/routes.rb +++ /dev/null @@ -1,67 +0,0 @@ -Rails.application.routes.draw do - - get '' => 'products#index' - get 'times' => 'products#times' - get 'times/restart' => 'products#timesRestart' - get 'hello' => 'products#hello' - get 'say/hello' => 'products#sayHello' - get 'say/hello/:name' => 'products#sayHelloName' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end - - #resource :tests - -end diff --git a/Rodolfo_Valdivieso/controllers/routes/config/secrets.yml b/Rodolfo_Valdivieso/controllers/routes/config/secrets.yml deleted file mode 100644 index bb1de63..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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: 964e168bd215439b8ee168f1ed81f0822e74651eba42344a30b75b898dcac4cf818af430a42f87d7da11c8fa1e576e6f24c410511210f5ce957852a6e772b582 - -test: - secret_key_base: 7a7a3f0d5e30505aa18ea1cfb1c5e67bcac477f4f5f927a209a49273d349a5390a3b83f3d3ff782d5c4a0e31d3c9a4648f2f6c7257d658f46feb7d2bd836c22b - -# 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/Rodolfo_Valdivieso/controllers/routes/db/seeds.rb b/Rodolfo_Valdivieso/controllers/routes/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/routes/public/404.html b/Rodolfo_Valdivieso/controllers/routes/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/public/422.html b/Rodolfo_Valdivieso/controllers/routes/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/public/500.html b/Rodolfo_Valdivieso/controllers/routes/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/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/Rodolfo_Valdivieso/controllers/routes/test/controllers/products_controller_test.rb b/Rodolfo_Valdivieso/controllers/routes/test/controllers/products_controller_test.rb deleted file mode 100644 index d97d2ba..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/test/controllers/products_controller_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'test_helper' - -class ProductsControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get new" do - get :new - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/controllers/routes/test/controllers/test_controller_test.rb b/Rodolfo_Valdivieso/controllers/routes/test/controllers/test_controller_test.rb deleted file mode 100644 index 35c36f8..0000000 --- a/Rodolfo_Valdivieso/controllers/routes/test/controllers/test_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TestControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/.gitignore b/Rodolfo_Valdivieso/controllers/survey_form/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/survey_form/Gemfile b/Rodolfo_Valdivieso/controllers/survey_form/Gemfile deleted file mode 100644 index a153448..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development -gem 'hirb' -gem 'rails-footnotes', '>= 4.0.0', '<5' -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/survey_form/Gemfile.lock b/Rodolfo_Valdivieso/controllers/survey_form/Gemfile.lock deleted file mode 100644 index eefb285..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/survey_form/README.rdoc b/Rodolfo_Valdivieso/controllers/survey_form/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/survey_form/Rakefile b/Rodolfo_Valdivieso/controllers/survey_form/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/survey_form/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/survey_form/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/survey_form/app/assets/stylesheets/surveys.scss b/Rodolfo_Valdivieso/controllers/survey_form/app/assets/stylesheets/surveys.scss deleted file mode 100644 index 9570e08..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/assets/stylesheets/surveys.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Surveys controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/survey_form/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/app/controllers/surveys_controller.rb b/Rodolfo_Valdivieso/controllers/survey_form/app/controllers/surveys_controller.rb deleted file mode 100644 index 94cd8f4..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/controllers/surveys_controller.rb +++ /dev/null @@ -1,35 +0,0 @@ -class SurveysController < ApplicationController - def index - return render 'index' - end - - def create - #Data from the form - @name = params[:name] - @location = params[:location] - @language = params[:language] - @comment = params[:comment] - - session[:name] = @name - session[:location] = @location - session[:language] = @language - session[:comment] = @comment - - flash[:success] = "You have Successfully submitted your form!!!" - - #session - return redirect_to '/surveys/result' - end - - def result - return render 'result' - end - - def goback - session[:name] = nil - session[:location] = nil - session[:language] = nil - session[:comment] = nil - return redirect_to '/surveys/create' - end -end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/helpers/surveys_helper.rb b/Rodolfo_Valdivieso/controllers/survey_form/app/helpers/surveys_helper.rb deleted file mode 100644 index 84524bb..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/helpers/surveys_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module SurveysHelper -end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/survey_form/app/views/layouts/application.html.erb deleted file mode 100644 index 7247c82..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - SurveyForm - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/views/layouts/index.html.erb b/Rodolfo_Valdivieso/controllers/survey_form/app/views/layouts/index.html.erb deleted file mode 100644 index ec64d0a..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/views/layouts/index.html.erb +++ /dev/null @@ -1,10 +0,0 @@ - - - - - Index - - -

Index

- - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/views/surveys/index.html.erb b/Rodolfo_Valdivieso/controllers/survey_form/app/views/surveys/index.html.erb deleted file mode 100644 index 63dfcc4..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/views/surveys/index.html.erb +++ /dev/null @@ -1,46 +0,0 @@ - - - - - Index - - -

Index

-
- - - - - - - - - - - - - - - - - -
Your Name:
Dojo Location: - -
Favorite Language: - -
-
- - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/views/surveys/result.html.erb b/Rodolfo_Valdivieso/controllers/survey_form/app/views/surveys/result.html.erb deleted file mode 100644 index 45eb478..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/app/views/surveys/result.html.erb +++ /dev/null @@ -1,38 +0,0 @@ - - - - - - Document - - - - <% flash.each do |key, value| %> -
<%= value %>
- <% end %> - -

Submitted Form

- - - - - - - - - - - - - - - - - -
Name:<%= session[:name] %>
Location:<%= session[:location] %>
Language:<%= session[:language] %>
Comment:<%= session[:comment] %>
- Go Back - - - - - diff --git a/Rodolfo_Valdivieso/controllers/survey_form/bin/rails b/Rodolfo_Valdivieso/controllers/survey_form/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/survey_form/bin/setup b/Rodolfo_Valdivieso/controllers/survey_form/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config.ru b/Rodolfo_Valdivieso/controllers/survey_form/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/config/application.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/application.rb deleted file mode 100644 index d948a28..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module SurveyForm - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/boot.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/environment.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/environments/development.rb deleted file mode 100644 index 5659b0d..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/config/environments/development.rb +++ /dev/null @@ -1,42 +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 - config.log_level = :warn - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/survey_form/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/survey_form/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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 diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/rails_footnotes.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/session_store.rb deleted file mode 100644 index 3085d72..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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: '_survey_form_session' diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/config/routes.rb b/Rodolfo_Valdivieso/controllers/survey_form/config/routes.rb deleted file mode 100644 index 94c1578..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/config/routes.rb +++ /dev/null @@ -1,60 +0,0 @@ -Rails.application.routes.draw do - get 'surveys/result' => 'surveys#result' - get '' => 'surveys#index' - post 'surveys/create' => 'surveys#create' - get 'goback' => 'surveys#goback' - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/secrets.yml b/Rodolfo_Valdivieso/controllers/survey_form/config/secrets.yml deleted file mode 100644 index 3b8c4dc..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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: e6b654ffaf8b7d7d2a1045499483f970328cf4245058a90e43767873d0786ee19cf4ebdabf12f035b0d472e940becdf7830044204798d91774b2fb6913acbb83 - -test: - secret_key_base: 7277aea251c4307246c1c255e66e2d0ef332f4504b502c622cedbb45b6694a3d48d576161bebfe1b172ca92dd97e16fb3f4d37270585907a83669906ed83b524 - -# 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/Rodolfo_Valdivieso/controllers/survey_form/db/seeds.rb b/Rodolfo_Valdivieso/controllers/survey_form/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/survey_form/public/404.html b/Rodolfo_Valdivieso/controllers/survey_form/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/public/422.html b/Rodolfo_Valdivieso/controllers/survey_form/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/public/500.html b/Rodolfo_Valdivieso/controllers/survey_form/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/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/Rodolfo_Valdivieso/controllers/survey_form/test/controllers/surveys_controller_test.rb b/Rodolfo_Valdivieso/controllers/survey_form/test/controllers/surveys_controller_test.rb deleted file mode 100644 index 1cc6e89..0000000 --- a/Rodolfo_Valdivieso/controllers/survey_form/test/controllers/surveys_controller_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -class SurveysControllerTest < ActionController::TestCase - test "should get result" do - get :result - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/controllers/time_display/.gitignore b/Rodolfo_Valdivieso/controllers/time_display/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/controllers/time_display/Gemfile b/Rodolfo_Valdivieso/controllers/time_display/Gemfile deleted file mode 100644 index 27c2112..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development -gem 'hirb' -gem 'rails-footnotes', '>= 4.0.0', '<5' - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/controllers/time_display/Gemfile.lock b/Rodolfo_Valdivieso/controllers/time_display/Gemfile.lock deleted file mode 100644 index eefb285..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/controllers/time_display/README.rdoc b/Rodolfo_Valdivieso/controllers/time_display/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/controllers/time_display/Rakefile b/Rodolfo_Valdivieso/controllers/time_display/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/controllers/time_display/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/controllers/time_display/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/controllers/time_display/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/controllers/time_display/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/app/controllers/times_controller.rb b/Rodolfo_Valdivieso/controllers/time_display/app/controllers/times_controller.rb deleted file mode 100644 index 5195716..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/app/controllers/times_controller.rb +++ /dev/null @@ -1,8 +0,0 @@ -class TimesController < ApplicationController - def main - - @time = Time.now.strftime("%H:%M:%S") - @date = Date.today.to_s - return render 'main' - end -end diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/controllers/time_display/app/views/layouts/application.html.erb deleted file mode 100644 index 8b25576..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - TimeDisplay - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/views/times/main.html.erb b/Rodolfo_Valdivieso/controllers/time_display/app/views/times/main.html.erb deleted file mode 100644 index 25ee263..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/app/views/times/main.html.erb +++ /dev/null @@ -1,17 +0,0 @@ - - - - - The current Time and Date - - -
-

The current Time and Date

-
-
-

Date: <%= @date %>

-

Time: <%= @time %>

-
- - - \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/time_display/bin/rails b/Rodolfo_Valdivieso/controllers/time_display/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/time_display/bin/setup b/Rodolfo_Valdivieso/controllers/time_display/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/controllers/time_display/config.ru b/Rodolfo_Valdivieso/controllers/time_display/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/config/application.rb b/Rodolfo_Valdivieso/controllers/time_display/config/application.rb deleted file mode 100644 index 94c66d8..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module TimeDisplay - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/boot.rb b/Rodolfo_Valdivieso/controllers/time_display/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/environment.rb b/Rodolfo_Valdivieso/controllers/time_display/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/config/environments/development.rb b/Rodolfo_Valdivieso/controllers/time_display/config/environments/development.rb deleted file mode 100644 index 3e8bd81..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/config/environments/development.rb +++ /dev/null @@ -1,42 +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 - config.log_level = :warn - config.reload_classes_only_on_change = 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/controllers/time_display/config/environments/production.rb b/Rodolfo_Valdivieso/controllers/time_display/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/controllers/time_display/config/environments/test.rb b/Rodolfo_Valdivieso/controllers/time_display/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/controllers/time_display/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/controllers/time_display/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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 diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/rails_footnotes.rb b/Rodolfo_Valdivieso/controllers/time_display/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/session_store.rb b/Rodolfo_Valdivieso/controllers/time_display/config/initializers/session_store.rb deleted file mode 100644 index 4e9d3a5..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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: '_time_display_session' diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/controllers/time_display/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/config/routes.rb b/Rodolfo_Valdivieso/controllers/time_display/config/routes.rb deleted file mode 100644 index 5f744de..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/config/routes.rb +++ /dev/null @@ -1,58 +0,0 @@ -Rails.application.routes.draw do - get 'main' => 'times#main' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/secrets.yml b/Rodolfo_Valdivieso/controllers/time_display/config/secrets.yml deleted file mode 100644 index 4e85507..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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: c616af5feee265915ea83b5558a9811c59da9efec029cd3c55ce775e678ec8083004902ef6cf29deee36800e9d25b6a36743ec411b12c26e5be23d0b4b072a0f - -test: - secret_key_base: c4b284efd696f36572c9e5590dc3356cd659945b477cef493f41e3be810f33189f0e6f1877aa4463bcd054ca9e5e9253f99ed2294529b349d2f873af993f2cdc - -# 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/Rodolfo_Valdivieso/controllers/time_display/db/seeds.rb b/Rodolfo_Valdivieso/controllers/time_display/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/controllers/time_display/public/404.html b/Rodolfo_Valdivieso/controllers/time_display/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/public/422.html b/Rodolfo_Valdivieso/controllers/time_display/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/public/500.html b/Rodolfo_Valdivieso/controllers/time_display/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/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/Rodolfo_Valdivieso/controllers/time_display/test/controllers/times_controller_test.rb b/Rodolfo_Valdivieso/controllers/time_display/test/controllers/times_controller_test.rb deleted file mode 100644 index 649dafa..0000000 --- a/Rodolfo_Valdivieso/controllers/time_display/test/controllers/times_controller_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -class TimesControllerTest < ActionController::TestCase - test "should get main" do - get :main - assert_response :success - end - -end diff --git a/Rodolfo_Valdivieso/fundamentals/arrays/arrays.rb b/Rodolfo_Valdivieso/fundamentals/arrays/arrays.rb deleted file mode 100644 index 1c2b608..0000000 --- a/Rodolfo_Valdivieso/fundamentals/arrays/arrays.rb +++ /dev/null @@ -1,22 +0,0 @@ -# Assignment 2 Arrays. - -a = [5, 6, 7, 8, 9, 10, 0] -b = ["Hello", "Coding", "Dojo", "Ruby"] -c = ["Yes"] -puts a[0] -puts b[2] -puts a+b - -b.insert(b.length, "test") -print "Length: " -print b.length -puts "" -puts b -puts b.reverse -puts b.sort -puts b.slice(0,3) -puts b.join("*") -puts a.shuffle -b.delete("Hello") -puts b.at(3) -puts a.values_at(0,5) \ No newline at end of file diff --git a/Rodolfo_Valdivieso/fundamentals/basic13/basic13.rb b/Rodolfo_Valdivieso/fundamentals/basic13/basic13.rb deleted file mode 100644 index c559cc6..0000000 --- a/Rodolfo_Valdivieso/fundamentals/basic13/basic13.rb +++ /dev/null @@ -1,140 +0,0 @@ -#Assignment 4 Basic 13. -#Print 1-255 -1.upto(255) { |i| print i, " " } # => 5 6 7 8 9 10 - - -#Print odd numbers between 1-255 -#Version 1 -def test(number) - if !(number.even?) - print number, " " - end -end -1.upto(255) { |i| test(i) } -#Version 2 -1.upto(255) { |i| if !(i.even?) then print i , " " end } -#Version 3 -#1.upto(255) { |i| !(i.even?) ? (print "true") : (print "false") } -1.upto(255) { |i| !(i.even?) ? (print i.to_s + " ") : () } - - -# Print sum -# 1.upto(255) { |i| puts "New number: " + i.to_s + " Sum: " + (1.upto(i) { |z| puts i + }) } -count = 0 -for i in 1..255 - count = count + i - puts "New number i: " + i.to_s + " Sum: " + count.to_s -end - -#1.upto(255) { |i| puts "New number: " + i.to_s + " Sum: " + (1.upto(i) { |z| puts count=count+z }) } - -#Iterating through an array -array = [-1,-3,-5,-7,-9,-13] -array.each { |x| puts "Value: " + x.to_s } - -#Find Max -max = array[0] -for i in array - if i > max - max = i - end -end -puts "Max Value: " + max.to_s - -# Get Average -b = [2, 10, 3] -count = 0 -for i in b - count = count + i -end -puts "Average: " + (count/b.length).to_s - - -#Array with Odd Numbers -odd = [] -1.upto(255) { |i| if !(i.even?) then odd.push(i) end } -puts "Arrya of Odds" -p odd - - -#Greater Than Y -def greaterThan(arr, y) - temp = [] - for i in arr - if i > y - temp.push(i) - end - end - return temp -end -b = [1, 8, 9, 2, 0, -10, 1000] -p greaterThan(b, 5) - -#Square the values -def square(arr) - for i in 0...arr.length - arr[i] = arr[i]*arr[i] - end - return arr -end -p square(b) - -#Eliminate Negative Numbers -def negatives(arr) - for i in 0...arr.length - if arr[i] < 0 - arr[i] = 0 - end - end - return arr -end -p negatives([1, 8, 9, 2, 0, -10, 1000]) - - -#Max min an avg -def maxMin(arr) - max = arr[0] - min = arr[0] - avg = 0 - - for i in arr - if i > max - max = i - end - if i < min - min = i - end - avg = avg + i - end - avg = avg / arr.length - return {"Max":max, "Min":min, "Average":avg} -end - -p maxMin([1, 8, 9, 2, 0, -10, 1000]) - -#Shifting the values -def shifting(arr) - for i in 0...arr.length - if i<(arr.length-1) - arr[i]=arr[i+1] - else - arr[i]=0 - end - end - return arr -end -p shifting([1, 8, 9, 2, 0, -10, 1000]) - -#Number to String -x = [-1, -3, 2] - -def number(arr) - for i in 0...arr.length - if arr[i] < 0 - arr[i] = "Dojo" - end - end - return arr -end - -p number(x) \ No newline at end of file diff --git a/Rodolfo_Valdivieso/fundamentals/guessTheNumber/guessTheNumber.rb b/Rodolfo_Valdivieso/fundamentals/guessTheNumber/guessTheNumber.rb deleted file mode 100644 index 9335e90..0000000 --- a/Rodolfo_Valdivieso/fundamentals/guessTheNumber/guessTheNumber.rb +++ /dev/null @@ -1,30 +0,0 @@ -#Assignment 1 Guess the Number - -def guess_number guess - number = 25 - if guess == number - puts "You got it!" - elsif guess > number - puts "Guess was too high!" - else - puts "Guess was too low!" - end -end - -#Version 2 Using unless -def guess_number2 guess - number = 25 - unless guess == number - unless guess > number - puts "Guess was too low!" - else - puts "Guess was too high!" - end - else - puts "You got it!" - end -end - -guess_number2(10) -guess_number2(30) -guess_number2(25) \ No newline at end of file diff --git a/Rodolfo_Valdivieso/fundamentals/hashes/hashes.rb b/Rodolfo_Valdivieso/fundamentals/hashes/hashes.rb deleted file mode 100644 index 75185bf..0000000 --- a/Rodolfo_Valdivieso/fundamentals/hashes/hashes.rb +++ /dev/null @@ -1,31 +0,0 @@ -#Hashes Assignment -#Symbols -y = {:first_name => "Coding" , :last_name => "Dojo"} - -puts "Y is " , y -puts y[:first_name] , y[:last_name] - -puts "Deleting first_name" -y.delete(:first_name) -puts "Y is " , y - -if y.has_key?(:first_name) - puts "Key first_name exist" -else - puts "Key first_name not exist" -end - -if y.has_value?("Dojo") - puts "Dojo exist" -else - puts "Dojo not exist" -end - -puts y.empty? - -def new_user greeting="Welcome", first_name: "first", last_name: "last" - puts "#{greeting}, #{first_name} #{last_name}" -end -our_user = {first_name: "Oscar", last_name: "Vazquez"} -new_user # => Welcome, first last -new_user "Hello", our_user # => Hello, Oscar Vazquez diff --git a/Rodolfo_Valdivieso/fundamentals/myEnumerable/my_enumerable.rb b/Rodolfo_Valdivieso/fundamentals/myEnumerable/my_enumerable.rb deleted file mode 100644 index ad548c7..0000000 --- a/Rodolfo_Valdivieso/fundamentals/myEnumerable/my_enumerable.rb +++ /dev/null @@ -1,19 +0,0 @@ -#Creating our own module. -#In this example, I'm calling the method that I created once, -# but I have a for loop inside and because I'm using Yield, -# it will return to the block every time that I yield. Nice!!! - -module MyEnumerable - def my_each - for x in self - yield x - end - end -end - -class Array - include MyEnumerable -end - -[1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 -[1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 \ No newline at end of file diff --git a/Rodolfo_Valdivieso/fundamentals/names/names.rb b/Rodolfo_Valdivieso/fundamentals/names/names.rb deleted file mode 100644 index 46c0b1a..0000000 --- a/Rodolfo_Valdivieso/fundamentals/names/names.rb +++ /dev/null @@ -1,17 +0,0 @@ -# Assignment Names - -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - -def namesF(arr) - puts "You have " + arr.length.to_s + " names in the names array" - for i in arr - puts "The name is " + i[:first_name] + " " + i[:last_name] - end -end - -namesF(names) \ No newline at end of file diff --git a/Rodolfo_Valdivieso/fundamentals/range/range.rb b/Rodolfo_Valdivieso/fundamentals/range/range.rb deleted file mode 100644 index f23c553..0000000 --- a/Rodolfo_Valdivieso/fundamentals/range/range.rb +++ /dev/null @@ -1,12 +0,0 @@ -#Assignment 3 Range - -x = (1..20) - -puts "The maximun value of the array is: " + x.max.to_s -puts "The minimun value of the array is: " + x.min.to_s -puts "The last value of the array is: " + x.last.to_s -puts x.include?(5) -puts x.include?(30) - -c = ("A".."Z") -puts c.to_a.shuffle.to_s diff --git a/Rodolfo_Valdivieso/fundamentals/rubyPuzzles/rubyPuzzles.rb b/Rodolfo_Valdivieso/fundamentals/rubyPuzzles/rubyPuzzles.rb deleted file mode 100644 index ab23d48..0000000 --- a/Rodolfo_Valdivieso/fundamentals/rubyPuzzles/rubyPuzzles.rb +++ /dev/null @@ -1,76 +0,0 @@ -# Assignment Ruby Puzlles. - -# 1) - -a = [3,5,1,2,7,9,8,13,25,32] - -def function1(arr) - sum = 0 - arr2 = [] - for i in arr - sum = sum + i - if i > 10 - arr2.push(i) - end - end - return arr2 -end - -p function1(a) - -#Version2 -puts "New array containing numbers greater than 10: " -p a.reject { |i| i < 10 } -puts " Total sum of elements inside the array: " -sum = 0 -a.each { |i| sum+= i} -p sum - - - -#Verison 3 -p a.inject(0, :+) - - -#Excercise 2 -b = ["John", "KB", "Oliver", "Cory", "Matthew", "Christopher"] - -def printer(i, newArr) - puts i - if i.length > 5 - newArr.push(i) - end - return newArr -end - -newArr = [] -b.shuffle.each {|i| printer(i, newArr) } -p newArr - -#Excercise3 - -arr3 = [*('a'..'z')].shuffle -p arr3.first -p arr3.last -p "The first letter of this arr is a vowel: " + arr3.first.to_s if ["a", "e", "i", "o", "u"].include? arr3.first - - -#Exercise 4 -p (55..100).to_a.shuffle - -#Excercise 5 -arr = (55..100).to_a.shuffle.sort -p arr -p arr.min -p arr.max - -#Excercise 6 -p (1..5).map { (65 + rand(26)).chr }.join - -#Excercise 7 -arr =[] -for i in 1..10 - arr.push((1..5).map { (65 + rand(26)).chr }.join) -end -p arr - diff --git a/Rodolfo_Valdivieso/models/assignmentPoly/Polymorphism Assignment.txt b/Rodolfo_Valdivieso/models/assignmentPoly/Polymorphism Assignment.txt deleted file mode 100644 index 9070722..0000000 --- a/Rodolfo_Valdivieso/models/assignmentPoly/Polymorphism Assignment.txt +++ /dev/null @@ -1,27 +0,0 @@ - -#Ran this into the console -rails g model Comment content:text imageable:references{polymorphic} -#Added this to Models User, Blog, Post and Message. -has_many :comments, as: :imageable - -#Testing the application: - -Comment.create(content:"Contenttttt", imageable:User.first) -Comment.create(content:"Contenttttt", imageable:Blog.first) -Comment.create(content:"Contenttttt", imageable:Post.first) -Comment.create(content:"Contenttttt", imageable:Message.first) - -User.first.comments -Blog.first.comments -Post.first.comments -Message.first.comments - -Comment.all - -c = Comment.first -c.content = "UPDATING" -c.save - -Comment.last.destroy - - diff --git a/Rodolfo_Valdivieso/models/blogs/.gitignore b/Rodolfo_Valdivieso/models/blogs/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/models/blogs/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/models/blogs/Gemfile b/Rodolfo_Valdivieso/models/blogs/Gemfile deleted file mode 100644 index 7415088..0000000 --- a/Rodolfo_Valdivieso/models/blogs/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - gem 'hirb' - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/models/blogs/Gemfile.lock b/Rodolfo_Valdivieso/models/blogs/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Rodolfo_Valdivieso/models/blogs/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/models/blogs/README.rdoc b/Rodolfo_Valdivieso/models/blogs/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/models/blogs/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/models/blogs/Rakefile b/Rodolfo_Valdivieso/models/blogs/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/models/blogs/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/models/blogs/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/models/blogs/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/models/blogs/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/models/blogs/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/models/blogs/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/app/models/blog.rb b/Rodolfo_Valdivieso/models/blogs/app/models/blog.rb deleted file mode 100644 index c35b17b..0000000 --- a/Rodolfo_Valdivieso/models/blogs/app/models/blog.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Blog < ActiveRecord::Base - has_many :posts, dependent: :destroy - - validates :name, :description, presence: true - -end diff --git a/Rodolfo_Valdivieso/models/blogs/app/models/message.rb b/Rodolfo_Valdivieso/models/blogs/app/models/message.rb deleted file mode 100644 index 4d4e272..0000000 --- a/Rodolfo_Valdivieso/models/blogs/app/models/message.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Message < ActiveRecord::Base - belongs_to :post - - validates :author, :message, presence: true - validates :message , length: { minimum: 15 } - -end diff --git a/Rodolfo_Valdivieso/models/blogs/app/models/post.rb b/Rodolfo_Valdivieso/models/blogs/app/models/post.rb deleted file mode 100644 index f758b87..0000000 --- a/Rodolfo_Valdivieso/models/blogs/app/models/post.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Post < ActiveRecord::Base - belongs_to :blog - has_many :messages, dependent: :destroy - - validates :title, :content, presence: true, length: { minimum: 7 } -end diff --git a/Rodolfo_Valdivieso/models/blogs/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/models/blogs/app/views/layouts/application.html.erb deleted file mode 100644 index 5cd984b..0000000 --- a/Rodolfo_Valdivieso/models/blogs/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Blogs - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/models/blogs/bin/rails b/Rodolfo_Valdivieso/models/blogs/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/models/blogs/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/blogs/bin/setup b/Rodolfo_Valdivieso/models/blogs/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/models/blogs/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/models/blogs/config.ru b/Rodolfo_Valdivieso/models/blogs/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/config/application.rb b/Rodolfo_Valdivieso/models/blogs/config/application.rb deleted file mode 100644 index c39e324..0000000 --- a/Rodolfo_Valdivieso/models/blogs/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Blogs - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/models/blogs/config/boot.rb b/Rodolfo_Valdivieso/models/blogs/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/models/blogs/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/models/blogs/config/environment.rb b/Rodolfo_Valdivieso/models/blogs/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/config/environments/development.rb b/Rodolfo_Valdivieso/models/blogs/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Rodolfo_Valdivieso/models/blogs/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/models/blogs/config/environments/production.rb b/Rodolfo_Valdivieso/models/blogs/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/models/blogs/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/models/blogs/config/environments/test.rb b/Rodolfo_Valdivieso/models/blogs/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/models/blogs/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/models/blogs/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/models/blogs/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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 diff --git a/Rodolfo_Valdivieso/models/blogs/config/initializers/session_store.rb b/Rodolfo_Valdivieso/models/blogs/config/initializers/session_store.rb deleted file mode 100644 index ef84247..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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: '_blogs_session' diff --git a/Rodolfo_Valdivieso/models/blogs/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/models/blogs/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/config/routes.rb b/Rodolfo_Valdivieso/models/blogs/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Rodolfo_Valdivieso/models/blogs/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/models/blogs/config/secrets.yml b/Rodolfo_Valdivieso/models/blogs/config/secrets.yml deleted file mode 100644 index aaf24b5..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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: 13fd521c274a4fccd60e4c2bdea76b4471ea30d99f306a9c34c0bb29d991a16456397415043a53a2b6df311160c4ba532019e1860594d4702ec10d70ca8b114d - -test: - secret_key_base: f9897b290e700bf37f237f8e20c8cac07baac4c90f2ec1809a02dc4432a4a5e5dcb4d4763eb280a73a6e27a0b708e4c6c63df37163c7eb14bb5417851d2edab0 - -# 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/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129203950_create_blogs.rb b/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129203950_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129203950_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129204040_create_posts.rb b/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129204040_create_posts.rb deleted file mode 100644 index 90e2db8..0000000 --- a/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129204040_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129204134_create_messages.rb b/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129204134_create_messages.rb deleted file mode 100644 index cf927e7..0000000 --- a/Rodolfo_Valdivieso/models/blogs/db/migrate/20171129204134_create_messages.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :post, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs/db/schema.rb b/Rodolfo_Valdivieso/models/blogs/db/schema.rb deleted file mode 100644 index dee7839..0000000 --- a/Rodolfo_Valdivieso/models/blogs/db/schema.rb +++ /dev/null @@ -1,43 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129204134) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "post_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - -end diff --git a/Rodolfo_Valdivieso/models/blogs/db/seeds.rb b/Rodolfo_Valdivieso/models/blogs/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/models/blogs/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/models/blogs/public/404.html b/Rodolfo_Valdivieso/models/blogs/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/public/422.html b/Rodolfo_Valdivieso/models/blogs/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/public/500.html b/Rodolfo_Valdivieso/models/blogs/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/models/blogs/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/Rodolfo_Valdivieso/models/blogs/test/fixtures/messages.yml b/Rodolfo_Valdivieso/models/blogs/test/fixtures/messages.yml deleted file mode 100644 index e3c84c8..0000000 --- a/Rodolfo_Valdivieso/models/blogs/test/fixtures/messages.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - post_id: - -two: - author: MyString - message: MyText - post_id: diff --git a/Rodolfo_Valdivieso/models/blogs/test/fixtures/posts.yml b/Rodolfo_Valdivieso/models/blogs/test/fixtures/posts.yml deleted file mode 100644 index dcc822e..0000000 --- a/Rodolfo_Valdivieso/models/blogs/test/fixtures/posts.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - blog_id: - -two: - title: MyString - content: MyText - blog_id: diff --git a/Rodolfo_Valdivieso/models/blogs2/.gitignore b/Rodolfo_Valdivieso/models/blogs2/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/models/blogs2/Gemfile b/Rodolfo_Valdivieso/models/blogs2/Gemfile deleted file mode 100644 index 27ef59a..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - gem 'hirb' - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/models/blogs2/Gemfile.lock b/Rodolfo_Valdivieso/models/blogs2/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/models/blogs2/README.rdoc b/Rodolfo_Valdivieso/models/blogs2/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/models/blogs2/Rakefile b/Rodolfo_Valdivieso/models/blogs2/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/models/blogs2/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/models/blogs2/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/models/blogs2/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/models/blogs2/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/models/blogs2/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/app/models/blog.rb b/Rodolfo_Valdivieso/models/blogs2/app/models/blog.rb deleted file mode 100644 index f03f280..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/app/models/blog.rb +++ /dev/null @@ -1,9 +0,0 @@ -class Blog < ActiveRecord::Base - - has_many :posts - - has_many :owners - has_many :users, through: :owners - - validates :name, :description, presence: true -end diff --git a/Rodolfo_Valdivieso/models/blogs2/app/models/message.rb b/Rodolfo_Valdivieso/models/blogs2/app/models/message.rb deleted file mode 100644 index 64bbdbf..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/app/models/message.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Message < ActiveRecord::Base - belongs_to :user - belongs_to :post - - validates :author, :message, presence: true - validates :message , length: { minimum: 15 } -end diff --git a/Rodolfo_Valdivieso/models/blogs2/app/models/owner.rb b/Rodolfo_Valdivieso/models/blogs2/app/models/owner.rb deleted file mode 100644 index e91c072..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/app/models/owner.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Owner < ActiveRecord::Base - belongs_to :user - belongs_to :blog -end diff --git a/Rodolfo_Valdivieso/models/blogs2/app/models/post.rb b/Rodolfo_Valdivieso/models/blogs2/app/models/post.rb deleted file mode 100644 index e10ccbb..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/app/models/post.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Post < ActiveRecord::Base - belongs_to :user - belongs_to :blog - - has_many :messages - - validates :title, :content, presence: true, length: { minimum: 7 } -end diff --git a/Rodolfo_Valdivieso/models/blogs2/app/models/user.rb b/Rodolfo_Valdivieso/models/blogs2/app/models/user.rb deleted file mode 100644 index f079cf9..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/app/models/user.rb +++ /dev/null @@ -1,12 +0,0 @@ -class User < ActiveRecord::Base - has_many :messages - has_many :posts - has_many :blogs - - has_many :owners - has_many :blogs, through: :owners - - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, presence: true, length: { in: 2..255 } - validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } -end diff --git a/Rodolfo_Valdivieso/models/blogs2/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/models/blogs2/app/views/layouts/application.html.erb deleted file mode 100644 index 66d1764..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Blogs2 - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/models/blogs2/bin/rails b/Rodolfo_Valdivieso/models/blogs2/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/blogs2/bin/setup b/Rodolfo_Valdivieso/models/blogs2/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/models/blogs2/config.ru b/Rodolfo_Valdivieso/models/blogs2/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/config/application.rb b/Rodolfo_Valdivieso/models/blogs2/config/application.rb deleted file mode 100644 index 25417dc..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Blogs2 - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/models/blogs2/config/boot.rb b/Rodolfo_Valdivieso/models/blogs2/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/models/blogs2/config/environment.rb b/Rodolfo_Valdivieso/models/blogs2/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/config/environments/development.rb b/Rodolfo_Valdivieso/models/blogs2/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/models/blogs2/config/environments/production.rb b/Rodolfo_Valdivieso/models/blogs2/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/models/blogs2/config/environments/test.rb b/Rodolfo_Valdivieso/models/blogs2/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/models/blogs2/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/models/blogs2/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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 diff --git a/Rodolfo_Valdivieso/models/blogs2/config/initializers/session_store.rb b/Rodolfo_Valdivieso/models/blogs2/config/initializers/session_store.rb deleted file mode 100644 index 680291d..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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: '_blogs2_session' diff --git a/Rodolfo_Valdivieso/models/blogs2/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/models/blogs2/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/config/routes.rb b/Rodolfo_Valdivieso/models/blogs2/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/models/blogs2/config/secrets.yml b/Rodolfo_Valdivieso/models/blogs2/config/secrets.yml deleted file mode 100644 index d8057f4..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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: a377940e21543aa0f002778f82e128ba542bd201c2417aeb6c56a799fa0fc79c27c14a8c2ea8b337d3f3b9e7463d18dd6f1022d504acc4852e6663d8a03da101 - -test: - secret_key_base: fe1f3425063693b1e0e9ba34e27170171bc2e5f13f04813d78b06c7bc4d54c1bd3e712a9c95b637078a4c38120eb1221f8600145d5780d045d5bc9c9bde85283 - -# 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/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130165929_create_users.rb b/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130165929_create_users.rb deleted file mode 100644 index cc285fe..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130165929_create_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170337_create_blogs.rb b/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170337_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170337_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170539_create_posts.rb b/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170539_create_posts.rb deleted file mode 100644 index c1075fd..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170539_create_posts.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170643_create_messages.rb b/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170643_create_messages.rb deleted file mode 100644 index 2151288..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130170643_create_messages.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :user, index: true, foreign_key: true - t.references :post, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130174238_create_owners.rb b/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130174238_create_owners.rb deleted file mode 100644 index e76114e..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/db/migrate/20171130174238_create_owners.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateOwners < ActiveRecord::Migration - def change - create_table :owners do |t| - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/blogs2/db/schema.rb b/Rodolfo_Valdivieso/models/blogs2/db/schema.rb deleted file mode 100644 index f13daf0..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/db/schema.rb +++ /dev/null @@ -1,65 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130174238) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "user_id" - t.integer "post_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - add_index "messages", ["user_id"], name: "index_messages_on_user_id" - - create_table "owners", force: :cascade do |t| - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "owners", ["blog_id"], name: "index_owners_on_blog_id" - add_index "owners", ["user_id"], name: "index_owners_on_user_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - add_index "posts", ["user_id"], name: "index_posts_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/models/blogs2/db/seeds.rb b/Rodolfo_Valdivieso/models/blogs2/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/models/blogs2/public/404.html b/Rodolfo_Valdivieso/models/blogs2/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/public/422.html b/Rodolfo_Valdivieso/models/blogs2/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/public/500.html b/Rodolfo_Valdivieso/models/blogs2/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/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/Rodolfo_Valdivieso/models/blogs2/test/fixtures/blogs.yml b/Rodolfo_Valdivieso/models/blogs2/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/messages.yml b/Rodolfo_Valdivieso/models/blogs2/test/fixtures/messages.yml deleted file mode 100644 index f17dfa4..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/messages.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - user_id: - post_id: - -two: - author: MyString - message: MyText - user_id: - post_id: diff --git a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/owners.yml b/Rodolfo_Valdivieso/models/blogs2/test/fixtures/owners.yml deleted file mode 100644 index 99a91f2..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/owners.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user_id: - blog_id: - -two: - user_id: - blog_id: diff --git a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/posts.yml b/Rodolfo_Valdivieso/models/blogs2/test/fixtures/posts.yml deleted file mode 100644 index de7c3d7..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/posts.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - user_id: - blog_id: - -two: - title: MyString - content: MyText - user_id: - blog_id: diff --git a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/users.yml b/Rodolfo_Valdivieso/models/blogs2/test/fixtures/users.yml deleted file mode 100644 index ef04625..0000000 --- a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email: MyString - -two: - first_name: MyString - last_name: MyString - email: MyString diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/.gitignore b/Rodolfo_Valdivieso/models/dojo_ninjas/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/Gemfile b/Rodolfo_Valdivieso/models/dojo_ninjas/Gemfile deleted file mode 100644 index 7415088..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - gem 'hirb' - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/Gemfile.lock b/Rodolfo_Valdivieso/models/dojo_ninjas/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/README.rdoc b/Rodolfo_Valdivieso/models/dojo_ninjas/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/Rakefile b/Rodolfo_Valdivieso/models/dojo_ninjas/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/models/dojo_ninjas/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/models/dojo_ninjas/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/models/dojo_ninjas/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/dojo.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/dojo.rb deleted file mode 100644 index 50cd307..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/dojo.rb +++ /dev/null @@ -1,14 +0,0 @@ -class Dojo < ActiveRecord::Base - has_many :ninjas, dependent: :destroy - - validates :name, :city, presence: true, length: { in: 2..50 } - validates :state, presence: true, length: { in: 2..2 } - - # before_destroy :destroy_ninjas - # private - # def destroy_ninjas - # self.ninjas.destroy_all - # end - - -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/ninja.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/ninja.rb deleted file mode 100644 index 35ca741..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/ninja.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Ninja < ActiveRecord::Base - belongs_to :dojo - - validates :first_name, :last_name, presence: true, length: { in: 2..255 } -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/models/dojo_ninjas/app/views/layouts/application.html.erb deleted file mode 100644 index 40d7e51..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoNinjas - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/bin/rails b/Rodolfo_Valdivieso/models/dojo_ninjas/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/bin/setup b/Rodolfo_Valdivieso/models/dojo_ninjas/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config.ru b/Rodolfo_Valdivieso/models/dojo_ninjas/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/config/application.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/application.rb deleted file mode 100644 index 156a9d5..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoNinjas - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/boot.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/environment.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/development.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/production.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/test.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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 diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/config/routes.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/secrets.yml b/Rodolfo_Valdivieso/models/dojo_ninjas/config/secrets.yml deleted file mode 100644 index 5a78ba2..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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: 7474aada698de3db0a43a730d81eef3a895fb474fb95e34b4b3173b69f438d876f0504c3c57885adf05c06a7615f3c558bb650e6757899787d37dd73ba60d226 - -test: - secret_key_base: ca932c97ba09be93843163a214f3c6e3527b9fee12a257b989a6e207e6239b357afb479ed40a68d2080abe63bc1d3c0305673437f5e0956b6898d677330840f2 - -# 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/Rodolfo_Valdivieso/models/dojo_ninjas/db/migrate/20171129190549_create_dojos.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/db/migrate/20171129190549_create_dojos.rb deleted file mode 100644 index ece0705..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/db/migrate/20171129190549_create_dojos.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :name - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/db/migrate/20171129190755_create_ninjas.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/db/migrate/20171129190755_create_ninjas.rb deleted file mode 100644 index 8334127..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/db/migrate/20171129190755_create_ninjas.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateNinjas < ActiveRecord::Migration - def change - create_table :ninjas do |t| - t.string :first_name - t.string :last_name - t.references :dojo, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/db/schema.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/db/schema.rb deleted file mode 100644 index a757905..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/db/schema.rb +++ /dev/null @@ -1,34 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129190755) do - - create_table "dojos", force: :cascade do |t| - t.string "name" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "ninjas", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.integer "dojo_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "ninjas", ["dojo_id"], name: "index_ninjas_on_dojo_id" - -end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/db/seeds.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/public/404.html b/Rodolfo_Valdivieso/models/dojo_ninjas/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/public/422.html b/Rodolfo_Valdivieso/models/dojo_ninjas/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/public/500.html b/Rodolfo_Valdivieso/models/dojo_ninjas/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/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/Rodolfo_Valdivieso/models/dojo_ninjas/test/fixtures/ninjas.yml b/Rodolfo_Valdivieso/models/dojo_ninjas/test/fixtures/ninjas.yml deleted file mode 100644 index ddd337f..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/test/fixtures/ninjas.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - dojo_id: - -two: - first_name: MyString - last_name: MyString - dojo_id: diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/models/dojo_test.rb b/Rodolfo_Valdivieso/models/dojo_ninjas/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/Rodolfo_Valdivieso/models/dojo_ninjas/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Rodolfo_Valdivieso/models/optimize/.gitignore b/Rodolfo_Valdivieso/models/optimize/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/models/optimize/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/models/optimize/Gemfile b/Rodolfo_Valdivieso/models/optimize/Gemfile deleted file mode 100644 index 27ef59a..0000000 --- a/Rodolfo_Valdivieso/models/optimize/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - gem 'hirb' - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/models/optimize/Gemfile.lock b/Rodolfo_Valdivieso/models/optimize/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Rodolfo_Valdivieso/models/optimize/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/models/optimize/README.rdoc b/Rodolfo_Valdivieso/models/optimize/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/models/optimize/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/models/optimize/Rakefile b/Rodolfo_Valdivieso/models/optimize/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/models/optimize/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/models/optimize/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/models/optimize/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/models/optimize/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/models/optimize/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/models/optimize/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/app/models/player.rb b/Rodolfo_Valdivieso/models/optimize/app/models/player.rb deleted file mode 100644 index 8c9596e..0000000 --- a/Rodolfo_Valdivieso/models/optimize/app/models/player.rb +++ /dev/null @@ -1,46 +0,0 @@ -class Player < ActiveRecord::Base - belongs_to :team -end - - -# Not optimize -# players = Player.limit(10).order("RANDOM()") -# players.each do |player| -# puts player.team.stadium -# end - -# Optimized -# players = Player.includes(:team).limit(10).order("RANDOM()") -# players.each do |player| -# puts player.team.stadium -# end - -# Left Join -# Player.includes(:team).where("teams.name = 'Los Angeles Lakers'").references(:team) - -# Join -# Player.joins(:team).where("teams.name = 'Los Angeles Lakers'") - -#Retrieve all players, then write a program that will loop through each player and display their team name, mascot and stadium. How many queries have we done? -# players = Player.all -# players.each do |player| -# print "Name: " + player.name + " Team: " +player.team.name + " Mascot: " +player.team.mascot + " Stadium: " +player.team.stadium +"\n" -# end - -#Retrieve all players and write a program to loop through each player and their team name, mascot and stadium using .includes. How many queries have we done now? -# players = Player.includes(:team).all -# players.each do |player| -# print "Name: " + player.name + " Team: " +player.team.name + " Mascot: " +player.team.mascot + " Stadium: " +player.team.stadium + "\n" -# end - -#Retrieve all players from the 'Chicago Bulls' by using .includes -# players = Player.includes(:team).where("team_id = ?",Team.where(name:"Chicago Bulls").first.id) -# players.each do |p| -# print "Name: " + p.name #+ " Team: " +player.team.name + " Mascot: " +player.team.mascot + " Stadium: " +player.team.stadium + "\n" -# end - -#Retrieve all players along with the team name that play at the 'Staples Center' -#Player.joins(:team).where("teams.stadium = 'Staples Center'") - -#Retrieve all teams that have any player that start their name with the letter 'Z' by using .includes and .joins -#Player.includes(:team).joins(:team).where("players.name like ? " , "#{'Z'}%") diff --git a/Rodolfo_Valdivieso/models/optimize/app/models/team.rb b/Rodolfo_Valdivieso/models/optimize/app/models/team.rb deleted file mode 100644 index f5b01c9..0000000 --- a/Rodolfo_Valdivieso/models/optimize/app/models/team.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Team < ActiveRecord::Base - has_many :players -end diff --git a/Rodolfo_Valdivieso/models/optimize/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/models/optimize/app/views/layouts/application.html.erb deleted file mode 100644 index 7fc9d5f..0000000 --- a/Rodolfo_Valdivieso/models/optimize/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Optimize - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/models/optimize/bin/rails b/Rodolfo_Valdivieso/models/optimize/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/models/optimize/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/optimize/bin/setup b/Rodolfo_Valdivieso/models/optimize/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/models/optimize/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/models/optimize/config.ru b/Rodolfo_Valdivieso/models/optimize/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/config/application.rb b/Rodolfo_Valdivieso/models/optimize/config/application.rb deleted file mode 100644 index 82f8fb1..0000000 --- a/Rodolfo_Valdivieso/models/optimize/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Optimize - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/models/optimize/config/boot.rb b/Rodolfo_Valdivieso/models/optimize/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/models/optimize/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/models/optimize/config/environment.rb b/Rodolfo_Valdivieso/models/optimize/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/config/environments/development.rb b/Rodolfo_Valdivieso/models/optimize/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Rodolfo_Valdivieso/models/optimize/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/models/optimize/config/environments/production.rb b/Rodolfo_Valdivieso/models/optimize/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/models/optimize/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/models/optimize/config/environments/test.rb b/Rodolfo_Valdivieso/models/optimize/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/models/optimize/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/models/optimize/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/models/optimize/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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 diff --git a/Rodolfo_Valdivieso/models/optimize/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/models/optimize/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/config/routes.rb b/Rodolfo_Valdivieso/models/optimize/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Rodolfo_Valdivieso/models/optimize/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/models/optimize/config/secrets.yml b/Rodolfo_Valdivieso/models/optimize/config/secrets.yml deleted file mode 100644 index 7efd056..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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: 8f118cd2498185f0421c1140f5c8af0261b8e94cd0822eb211275a7e540f62aeb5d86ef3719a6aa4daaf2b82cf7282d425e87b2074037d0e988361e35f179f1f - -test: - secret_key_base: a2530db12a7d52049977dd0724ef2f2bbfbb66ae61fdc6ba39716abe5ed4adcceda78efe4ba89caece0e2b27ed6e91bfc28a78387f0b422ca455943ce7bf4bd2 - -# 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/Rodolfo_Valdivieso/models/optimize/db/migrate/20171130022208_create_teams.rb b/Rodolfo_Valdivieso/models/optimize/db/migrate/20171130022208_create_teams.rb deleted file mode 100644 index 5f7137c..0000000 --- a/Rodolfo_Valdivieso/models/optimize/db/migrate/20171130022208_create_teams.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateTeams < ActiveRecord::Migration - def change - create_table :teams do |t| - t.string :name - t.string :mascot - t.string :stadium - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/optimize/db/migrate/20171130022231_create_players.rb b/Rodolfo_Valdivieso/models/optimize/db/migrate/20171130022231_create_players.rb deleted file mode 100644 index 9949aad..0000000 --- a/Rodolfo_Valdivieso/models/optimize/db/migrate/20171130022231_create_players.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePlayers < ActiveRecord::Migration - def change - create_table :players do |t| - t.string :name - t.references :team, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/optimize/db/schema.rb b/Rodolfo_Valdivieso/models/optimize/db/schema.rb deleted file mode 100644 index 46d825e..0000000 --- a/Rodolfo_Valdivieso/models/optimize/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130022231) do - - create_table "players", force: :cascade do |t| - t.string "name" - t.integer "team_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "players", ["team_id"], name: "index_players_on_team_id" - - create_table "teams", force: :cascade do |t| - t.string "name" - t.string "mascot" - t.string "stadium" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/models/optimize/db/seeds.rb b/Rodolfo_Valdivieso/models/optimize/db/seeds.rb deleted file mode 100644 index ef67a95..0000000 --- a/Rodolfo_Valdivieso/models/optimize/db/seeds.rb +++ /dev/null @@ -1,113 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) - -# we require 'open-uri' to request the html files -require 'open-uri' -teams = [ - ["Atlanta Hawks", "Skyhawk", "Philips Arena"], - ["Boston Celtics", "Lucky the Leprechaun", "TD Garden"], - ["Brooklyn Nets", "BrooklyKnight", "Barclays Center"], - ["Charlotte Hornets", "Hugo the Hornet", "Spectrum Center"], - ["Chicago Bulls", "Benny the Bull", "United Center"], - ["Cleveland Cavaliers", "Moondog", "Quicken Loans Arena"], - ["Dallas Mavericks", "Champ", "American Airlines Center"], - ["Denver Nuggets", "Rocky the Mountain Lion", "Pepsi Center"], - ["Detroit Pistons", "Hooper", "The Palace of Auburn Hills"], - ["Golden State Warriors", "Thunder", "Oracle Arena"], - ["Houston Rockets", "Clutch", "Toyota Center"], - ["Indiana Pacers", "Boomer the Panther", "Bankers Life Fieldhouse"], - ["Los Angeles Clippers", "Chuck", "Staples Center"], - ["Los Angeles Lakers", "Jack Nicholson", "Staples Center"], - ["Memphis Grizzlies", "Griz", "FedExForum"], - ["Miami Heat", "Burnie", "American Airlines Arena"], - ["Milwaukee Bucks", "Bango", "BMO Harris Bradley Center"], - ["Minnesota Timberwolves", "Crunch the Wolf", "Target Center"], - ["New Orleans Pelicans", "Pierre the Pelican", "Smoothie King Center"], - ["New York Knicks", "Spike Lee", "Madison Square Garden"], - ["Oklahoma City Thunder", "Rumble the Bison", "Chesapeake Energy Arena"], - ["Orlando Magic", "Stuff the Magic Dragon", "Amway Center"], - ["Philadelphia 76ers", "Franklin the Dog", "Wells Fargo Center Philadelphia"], - ["Phoenix Suns", "The Suns Gorilla", "Talking Stick Resort Arena"], - ["Portland Trail Blazers", "Blaze the Trail Cat", "Moda Center"], - ["Sacramento Kings", "Slamson the Lion", "Golden 1 Center"], - ["San Antonio Spurs", "The Coyote", "AT&T Center"], - ["Toronto Raptors", "Raptor", "Air Canada Centre"], - ["Utah Jazz", "Jazz Bear", "Vivint Smart Home Arena"], - ["Washington Wizards", "G. Wiz", "Verizon Center"] -] -# Here, we are using the Nokogiri gem (already comes with Rails), to scrape the ESPN website for the list of players. -# For more information on Nokogiri, you can go to their documentation or visit http://www.nokogiri.org/ -atlanta_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/atl/atlanta-hawks")).css("td.sortcell") -boston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bos/boston-celtics")).css("td.sortcell") -brooklyn_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bkn/brooklyn-nets")).css("td.sortcell") -charlotte_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cha/charlotte-hornets")).css("td.sortcell") -chicago_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/chi/chicago-bulls")).css("td.sortcell") -cleveland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cle/cleveland-cavaliers")).css("td.sortcell") -dallas_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/dal/dallas-mavericks")).css("td.sortcell") -denver_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/den/denver-nuggets")).css("td.sortcell") -detroit_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/det/detroit-pistons")).css("td.sortcell") -warriors_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/gs/golden-state-warriors")).css("td.sortcell") -houston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/hou/houston-rockets")).css("td.sortcell") -indiana_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ind/indiana-pacers")).css("td.sortcell") -clippers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lac/la-clippers")).css("td.sortcell") -lakers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lal/los-angeles-lakers")).css("td.sortcell") -memphis_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mem/memphis-grizzlies")).css("td.sortcell") -miami_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mia/miami-heat")).css("td.sortcell") -milwaukee_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mil/milwaukee-bucks")).css("td.sortcell") -minnesota_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/min/minnesota-timberwolves")).css("td.sortcell") -nola_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/no/new-orleans-pelicans")).css("td.sortcell") -knicks_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ny/new-york-knicks")).css("td.sortcell") -okc_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/okc/oklahoma-city-thunder")).css("td.sortcell") -orlando_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/orl/orlando-magic")).css("td.sortcell") -phili_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phi/philadelphia-76ers")).css("td.sortcell") -phoenix_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phx/phoenix-suns")).css("td.sortcell") -portland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/por/portland-trail-blazers")).css("td.sortcell") -sacramento_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sac/sacramento-kings")).css("td.sortcell") -spurs_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sa/san-antonio-spurs")).css("td.sortcell") -toronto_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/tor/toronto-raptors")).css("td.sortcell") -utah_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/utah/utah-jazz")).css("td.sortcell") -washington_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/wsh/washington-wizards")).css("td.sortcell") -players = [ - atlanta_players, - boston_players, - brooklyn_players, - charlotte_players, - chicago_players, - cleveland_players, - dallas_players, - denver_players, - detroit_players, - warriors_players, - houston_players, - indiana_players, - clippers_players, - lakers_players, - memphis_players, - miami_players, - milwaukee_players, - minnesota_players, - nola_players, - knicks_players, - okc_players, - orlando_players, - phili_players, - phoenix_players, - portland_players, - sacramento_players, - spurs_players, - toronto_players, - utah_players, - washington_players -] -players.each_with_index do |roster, index| - Team.create(name: teams[index][0], mascot: teams[index][1], stadium: teams[index][2]) - roster.each do |player| - Team.last.players.create(name: player.text) - end -end - diff --git a/Rodolfo_Valdivieso/models/optimize/public/404.html b/Rodolfo_Valdivieso/models/optimize/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/public/422.html b/Rodolfo_Valdivieso/models/optimize/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/public/500.html b/Rodolfo_Valdivieso/models/optimize/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/models/optimize/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/Rodolfo_Valdivieso/models/optimize/test/fixtures/players.yml b/Rodolfo_Valdivieso/models/optimize/test/fixtures/players.yml deleted file mode 100644 index 56a4719..0000000 --- a/Rodolfo_Valdivieso/models/optimize/test/fixtures/players.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - team_id: - -two: - name: MyString - team_id: diff --git a/Rodolfo_Valdivieso/models/self_join/.gitignore b/Rodolfo_Valdivieso/models/self_join/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/models/self_join/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/models/self_join/Gemfile b/Rodolfo_Valdivieso/models/self_join/Gemfile deleted file mode 100644 index 27ef59a..0000000 --- a/Rodolfo_Valdivieso/models/self_join/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - gem 'hirb' - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/models/self_join/Gemfile.lock b/Rodolfo_Valdivieso/models/self_join/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Rodolfo_Valdivieso/models/self_join/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/models/self_join/README.rdoc b/Rodolfo_Valdivieso/models/self_join/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/models/self_join/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/models/self_join/Rakefile b/Rodolfo_Valdivieso/models/self_join/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/models/self_join/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/models/self_join/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/models/self_join/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/models/self_join/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/models/self_join/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/models/self_join/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/app/models/friendship.rb b/Rodolfo_Valdivieso/models/self_join/app/models/friendship.rb deleted file mode 100644 index 90e1a9e..0000000 --- a/Rodolfo_Valdivieso/models/self_join/app/models/friendship.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Friendship < ActiveRecord::Base - belongs_to :user - belongs_to :friend, foreign_key: 'friend_id' ,class_name: 'User' -end diff --git a/Rodolfo_Valdivieso/models/self_join/app/models/user.rb b/Rodolfo_Valdivieso/models/self_join/app/models/user.rb deleted file mode 100644 index 0eb5396..0000000 --- a/Rodolfo_Valdivieso/models/self_join/app/models/user.rb +++ /dev/null @@ -1,7 +0,0 @@ -class User < ActiveRecord::Base - has_many :friendships, foreign_key: 'user_id' - has_many :friends, through: :friendships, source: :friend - - has_many :received_friendships, class_name: 'Friendship' , foreign_key: 'friend_id' - has_many :friended_by, through: :received_friendships, source: :user -end diff --git a/Rodolfo_Valdivieso/models/self_join/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/models/self_join/app/views/layouts/application.html.erb deleted file mode 100644 index 4d6a89a..0000000 --- a/Rodolfo_Valdivieso/models/self_join/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - SelfJoin - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/models/self_join/bin/rails b/Rodolfo_Valdivieso/models/self_join/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/models/self_join/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/self_join/bin/setup b/Rodolfo_Valdivieso/models/self_join/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/models/self_join/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/models/self_join/config.ru b/Rodolfo_Valdivieso/models/self_join/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/config/application.rb b/Rodolfo_Valdivieso/models/self_join/config/application.rb deleted file mode 100644 index 8e15195..0000000 --- a/Rodolfo_Valdivieso/models/self_join/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module SelfJoin - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/models/self_join/config/boot.rb b/Rodolfo_Valdivieso/models/self_join/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/models/self_join/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/models/self_join/config/database.yml b/Rodolfo_Valdivieso/models/self_join/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/config/environment.rb b/Rodolfo_Valdivieso/models/self_join/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/config/environments/development.rb b/Rodolfo_Valdivieso/models/self_join/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Rodolfo_Valdivieso/models/self_join/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/models/self_join/config/environments/production.rb b/Rodolfo_Valdivieso/models/self_join/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/models/self_join/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/models/self_join/config/environments/test.rb b/Rodolfo_Valdivieso/models/self_join/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/models/self_join/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/models/self_join/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/models/self_join/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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 diff --git a/Rodolfo_Valdivieso/models/self_join/config/initializers/session_store.rb b/Rodolfo_Valdivieso/models/self_join/config/initializers/session_store.rb deleted file mode 100644 index 3523f54..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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: '_self_join_session' diff --git a/Rodolfo_Valdivieso/models/self_join/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/models/self_join/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/config/routes.rb b/Rodolfo_Valdivieso/models/self_join/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Rodolfo_Valdivieso/models/self_join/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/models/self_join/config/secrets.yml b/Rodolfo_Valdivieso/models/self_join/config/secrets.yml deleted file mode 100644 index df5fed8..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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: 328fe4c4480c4b907d58f9a9ae1fe59d005d97c5853457a4574a71c36428a78b57eff50ee89cab8e0362fba3e5d37a7b9c70d42ea5a3289f92b57a2b85394e6d - -test: - secret_key_base: b5aeb746650254695024b7608d920985337e9ee0faec179121398b3b07512e05b266c52c347f59b5da2fb5a8540cce396dc51bc478a2b5dc76d5080ca66786c4 - -# 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/Rodolfo_Valdivieso/models/self_join/db/migrate/20171130210447_create_users.rb b/Rodolfo_Valdivieso/models/self_join/db/migrate/20171130210447_create_users.rb deleted file mode 100644 index 36d0b1b..0000000 --- a/Rodolfo_Valdivieso/models/self_join/db/migrate/20171130210447_create_users.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/self_join/db/migrate/20171130210908_create_friendships.rb b/Rodolfo_Valdivieso/models/self_join/db/migrate/20171130210908_create_friendships.rb deleted file mode 100644 index 7991f8d..0000000 --- a/Rodolfo_Valdivieso/models/self_join/db/migrate/20171130210908_create_friendships.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateFriendships < ActiveRecord::Migration - def change - create_table :friendships do |t| - t.references :user, index: true, foreign_key: true - t.references :friend, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/self_join/db/schema.rb b/Rodolfo_Valdivieso/models/self_join/db/schema.rb deleted file mode 100644 index eee21fd..0000000 --- a/Rodolfo_Valdivieso/models/self_join/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130210908) do - - create_table "friendships", force: :cascade do |t| - t.integer "user_id" - t.integer "friend_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "friendships", ["friend_id"], name: "index_friendships_on_friend_id" - add_index "friendships", ["user_id"], name: "index_friendships_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/models/self_join/db/seeds.rb b/Rodolfo_Valdivieso/models/self_join/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/models/self_join/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/models/self_join/public/404.html b/Rodolfo_Valdivieso/models/self_join/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/public/422.html b/Rodolfo_Valdivieso/models/self_join/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/public/500.html b/Rodolfo_Valdivieso/models/self_join/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/models/self_join/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/Rodolfo_Valdivieso/models/self_join/test/fixtures/friendships.yml b/Rodolfo_Valdivieso/models/self_join/test/fixtures/friendships.yml deleted file mode 100644 index bad5d7d..0000000 --- a/Rodolfo_Valdivieso/models/self_join/test/fixtures/friendships.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user_id: - friend_id: - -two: - user_id: - friend_id: diff --git a/Rodolfo_Valdivieso/models/self_join/test/fixtures/users.yml b/Rodolfo_Valdivieso/models/self_join/test/fixtures/users.yml deleted file mode 100644 index afdaa6a..0000000 --- a/Rodolfo_Valdivieso/models/self_join/test/fixtures/users.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - -two: - first_name: MyString - last_name: MyString diff --git a/Rodolfo_Valdivieso/models/self_join/test/models/friendship_test.rb b/Rodolfo_Valdivieso/models/self_join/test/models/friendship_test.rb deleted file mode 100644 index aa27b3f..0000000 --- a/Rodolfo_Valdivieso/models/self_join/test/models/friendship_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class FriendshipTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Rodolfo_Valdivieso/models/user_login_project/.gitignore b/Rodolfo_Valdivieso/models/user_login_project/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Rodolfo_Valdivieso/models/user_login_project/Gemfile b/Rodolfo_Valdivieso/models/user_login_project/Gemfile deleted file mode 100644 index 27ef59a..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - gem 'hirb' - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Rodolfo_Valdivieso/models/user_login_project/Gemfile.lock b/Rodolfo_Valdivieso/models/user_login_project/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Rodolfo_Valdivieso/models/user_login_project/README.rdoc b/Rodolfo_Valdivieso/models/user_login_project/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Rodolfo_Valdivieso/models/user_login_project/Rakefile b/Rodolfo_Valdivieso/models/user_login_project/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/app/assets/javascripts/application.js b/Rodolfo_Valdivieso/models/user_login_project/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/assets/stylesheets/application.css b/Rodolfo_Valdivieso/models/user_login_project/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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 any plugin's vendor/assets/stylesheets directory 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/Rodolfo_Valdivieso/models/user_login_project/app/controllers/application_controller.rb b/Rodolfo_Valdivieso/models/user_login_project/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/app/models/user.rb b/Rodolfo_Valdivieso/models/user_login_project/app/models/user.rb deleted file mode 100644 index aeea05d..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/app/models/user.rb +++ /dev/null @@ -1,8 +0,0 @@ -class User < ActiveRecord::Base - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, presence: true, length: { in: 2..255 } - validates :age, presence: true, numericality: { only_integer: true } - validates_numericality_of :age, greater_than: 10 - validates_numericality_of :age, less_than: 150 - validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } -end diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/views/layouts/application.html.erb b/Rodolfo_Valdivieso/models/user_login_project/app/views/layouts/application.html.erb deleted file mode 100644 index 03b8954..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - UserLoginProject - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Rodolfo_Valdivieso/models/user_login_project/bin/rails b/Rodolfo_Valdivieso/models/user_login_project/bin/rails deleted file mode 100644 index 0138d79..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/user_login_project/bin/setup b/Rodolfo_Valdivieso/models/user_login_project/bin/setup deleted file mode 100644 index acdb2c1..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Rodolfo_Valdivieso/models/user_login_project/config.ru b/Rodolfo_Valdivieso/models/user_login_project/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/config/application.rb b/Rodolfo_Valdivieso/models/user_login_project/config/application.rb deleted file mode 100644 index 49c5e84..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module UserLoginProject - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/boot.rb b/Rodolfo_Valdivieso/models/user_login_project/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/database.yml b/Rodolfo_Valdivieso/models/user_login_project/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/config/environment.rb b/Rodolfo_Valdivieso/models/user_login_project/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/config/environments/development.rb b/Rodolfo_Valdivieso/models/user_login_project/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Rodolfo_Valdivieso/models/user_login_project/config/environments/production.rb b/Rodolfo_Valdivieso/models/user_login_project/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Rodolfo_Valdivieso/models/user_login_project/config/environments/test.rb b/Rodolfo_Valdivieso/models/user_login_project/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Rodolfo_Valdivieso/models/user_login_project/config/initializers/cookies_serializer.rb b/Rodolfo_Valdivieso/models/user_login_project/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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 diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/initializers/session_store.rb b/Rodolfo_Valdivieso/models/user_login_project/config/initializers/session_store.rb deleted file mode 100644 index d692eec..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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: '_user_login_project_session' diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/initializers/wrap_parameters.rb b/Rodolfo_Valdivieso/models/user_login_project/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/config/routes.rb b/Rodolfo_Valdivieso/models/user_login_project/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/secrets.yml b/Rodolfo_Valdivieso/models/user_login_project/config/secrets.yml deleted file mode 100644 index c9db769..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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: f5ef3fbed35d905f4366d0e7ee86b95f513b192b4b6dfbfcc0e6de247e6fb3c5ace04dd3c392fd26745ff3a76acaeba136a6a0f92c679c7411a3835b9014eeb8 - -test: - secret_key_base: e2d7e802baec4783b4e51fda705ce5fad935a7a28b0a9ef65ec5af24e8134a00cadc7ab604beb3ad4957834ab7f92cc92e8e9a8287a58d4199d99ecf22f79902 - -# 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/Rodolfo_Valdivieso/models/user_login_project/db/migrate/20171129150335_create_users.rb b/Rodolfo_Valdivieso/models/user_login_project/db/migrate/20171129150335_create_users.rb deleted file mode 100644 index 648f540..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/db/migrate/20171129150335_create_users.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email - t.integer :age - - t.timestamps null: false - end - end -end diff --git a/Rodolfo_Valdivieso/models/user_login_project/db/schema.rb b/Rodolfo_Valdivieso/models/user_login_project/db/schema.rb deleted file mode 100644 index e64da14..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129150335) do - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email" - t.integer "age" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Rodolfo_Valdivieso/models/user_login_project/db/seeds.rb b/Rodolfo_Valdivieso/models/user_login_project/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Rodolfo_Valdivieso/models/user_login_project/public/404.html b/Rodolfo_Valdivieso/models/user_login_project/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/public/422.html b/Rodolfo_Valdivieso/models/user_login_project/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/public/500.html b/Rodolfo_Valdivieso/models/user_login_project/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/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/Rodolfo_Valdivieso/models/user_login_project/test/fixtures/users.yml b/Rodolfo_Valdivieso/models/user_login_project/test/fixtures/users.yml deleted file mode 100644 index 3c40872..0000000 --- a/Rodolfo_Valdivieso/models/user_login_project/test/fixtures/users.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email: MyString - age: - -two: - first_name: MyString - last_name: MyString - email: MyString - age: diff --git a/Rodolfo_Valdivieso/objects/bankAccount/bankAccount.rb b/Rodolfo_Valdivieso/objects/bankAccount/bankAccount.rb deleted file mode 100644 index bd8e0f0..0000000 --- a/Rodolfo_Valdivieso/objects/bankAccount/bankAccount.rb +++ /dev/null @@ -1,106 +0,0 @@ -class BankAccount - - @@total_accounts = 0 - - private - @interest - attr_writer :number, :checking_balance, :savings_balance, :total - - public - attr_reader :number, :checking_balance, :savings_balance, :total - - - def total_accounts - return @@total_accounts - end - - def initialize(checking_balance, savings_balance) - create_account() - @checking_balance = checking_balance - @savings_balance = savings_balance - @total = savings_balance + checking_balance - @@total_accounts += 1 - @interest = 0.01 - return self - end - - def check_balance - puts "Your Checking Acct Balance is: " + self.checking_balance.to_s - return self - end - - def save_balance - puts "Your Savings Acct Balance is: " + self.savings_balance.to_s - return self - end - - def deposit_checking(amount) - self.checking_balance += amount - return self - end - - def deposit_saving(amount) - self.savings_balance += amount - return self - end - - def withdraw_checking(amount) - if amount > self.checking_balance - puts "Insufficient Funds!!!! SORRY, Go Back to WORK" - else - self.checking_balance -= amount - puts "Succesfully Withdraw from Savings" - end - return self - end - - def withdraw_saving(amount) - if amount > self.savings_balance - puts "Insufficient Funds!!!! SORRY, Go Back to WORK" - else - self.savings_balance -= amount - puts "Succesfully Withdraw from Savings" - end - return self - end - - def check_total - puts "Your total Balance is: " + (savings_balance+checking_balance).to_s - return self - end - - def account_information - puts "Your acct# is: " + self.number.to_s - puts "Your Check bal is: " + self.checking_balance.to_s - puts "Your Savin bal is: " + self.savings_balance.to_s - puts "Your Total is: " + (self.savings_balance + self.checking_balance).to_s - puts "Your Interest Rate is: " + getInterest().to_s - end - - private - def getInterest - return @interest - end - - def create_account - @number = Random.rand(10000...90000) - return self - end - -end - -acc1 = BankAccount.new(70000, 50000) - -acc1.check_balance.save_balance - -acc1.deposit_checking(35454).check_balance - -acc1.withdraw_saving(55555555555) - -acc1.check_total - -p acc1.total_accounts - -acc1.account_information - -p acc1.number \ No newline at end of file diff --git a/Rodolfo_Valdivieso/objects/dog/dog.rb b/Rodolfo_Valdivieso/objects/dog/dog.rb deleted file mode 100644 index 51fbe3e..0000000 --- a/Rodolfo_Valdivieso/objects/dog/dog.rb +++ /dev/null @@ -1,24 +0,0 @@ - -require_relative 'mammal' - -class Dog < Mammal - - def pet - self.health = self.health + 5 - self - end - - def walk - self.health = self.health - 1 - self - end - - def run - self.health = self.health - 10 - self - end -end - - -dog1 = Dog.new.display_health -dog1.walk.walk.walk.run.run.pet.display_health \ No newline at end of file diff --git a/Rodolfo_Valdivieso/objects/dog/mammal.rb b/Rodolfo_Valdivieso/objects/dog/mammal.rb deleted file mode 100644 index 9b49b77..0000000 --- a/Rodolfo_Valdivieso/objects/dog/mammal.rb +++ /dev/null @@ -1,17 +0,0 @@ -class Mammal - - attr_accessor :health, :type - def initialize - @health = 150 - @type = "" - end - - def display_health - puts "My Current Health is: " + self.health.to_s - self - end -end - - - - diff --git a/Rodolfo_Valdivieso/objects/human/human.rb b/Rodolfo_Valdivieso/objects/human/human.rb deleted file mode 100644 index b72d945..0000000 --- a/Rodolfo_Valdivieso/objects/human/human.rb +++ /dev/null @@ -1,33 +0,0 @@ -#Assignment Human -class Human - attr_accessor :strength, :intelligence, :stealth, :health - - def initialize - @strength = 3 - @intelligence = 3 - @stealth = 3 - @health = 100 - self - end - - def attack(object) - #p object.class - #p object.class.ancestors - if object.kind_of?(Human) - object.health -= 5 - puts "Human attacked current health: " + object.health.to_s - else - puts "What you are trying to attack is not a HUMAN!!!!" - end - self - end -end - - -human1 = Human.new -human2 = Human.new - -human1.attack(human2).attack(human2).attack(human2).attack(human2) -human1.attack(1) - -human1.attack("DOG") \ No newline at end of file diff --git a/Rodolfo_Valdivieso/objects/lion/dog.rb b/Rodolfo_Valdivieso/objects/lion/dog.rb deleted file mode 100644 index 2815ab8..0000000 --- a/Rodolfo_Valdivieso/objects/lion/dog.rb +++ /dev/null @@ -1,20 +0,0 @@ - -require_relative 'mammal' - -class Dog < Mammal - - def pet - self.health = self.health + 5 - self - end - - def walk - self.health = self.health - 1 - self - end - - def run - self.health = self.health - 10 - self - end -end diff --git a/Rodolfo_Valdivieso/objects/lion/lion.rb b/Rodolfo_Valdivieso/objects/lion/lion.rb deleted file mode 100644 index 8b3f0f5..0000000 --- a/Rodolfo_Valdivieso/objects/lion/lion.rb +++ /dev/null @@ -1,35 +0,0 @@ - -require_relative 'mammal' - -class Lion < Mammal - - def initialize - self.health = 170 - end - - def fly - self.health = self.health - 10 - self - end - - def attack_town - self.health = self.health - 50 - self - end - - def eat_humans - self.health = self.health + 20 - self - end - - - def display_health - super - puts "I'm a LIONNNNNNN....." - end - -end - -lion1 = Lion.new -lion1.display_health -lion1.attack_town.attack_town.attack_town.eat_humans.eat_humans.fly.fly.display_health diff --git a/Rodolfo_Valdivieso/objects/lion/mammal.rb b/Rodolfo_Valdivieso/objects/lion/mammal.rb deleted file mode 100644 index 142b77c..0000000 --- a/Rodolfo_Valdivieso/objects/lion/mammal.rb +++ /dev/null @@ -1,12 +0,0 @@ -class Mammal - attr_accessor :health - - def initialize - self.health = 150 - end - - def display_health - puts "My Current Health is: " + self.health.to_s - self - end -end diff --git a/Rodolfo_Valdivieso/objects/mathDojo/mathDojo.rb b/Rodolfo_Valdivieso/objects/mathDojo/mathDojo.rb deleted file mode 100644 index fc796c4..0000000 --- a/Rodolfo_Valdivieso/objects/mathDojo/mathDojo.rb +++ /dev/null @@ -1,27 +0,0 @@ -#Assignment Ruby OOP. MathDojo - -class MathDojo - # your code here - attr_accessor :number - def initialize - @number = 0 - end - - def add(*args) - @number += args.flatten.reduce(0, :+) - self - end - - def subtract(*args) - @number -= args.flatten.reduce(0, :+) - self - end - - def result - puts @number - return self - end -end - -challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).result # => 4 -challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).result # => 23.15 \ No newline at end of file diff --git a/Rodolfo_Valdivieso/objects/project/project.rb b/Rodolfo_Valdivieso/objects/project/project.rb deleted file mode 100644 index 017b404..0000000 --- a/Rodolfo_Valdivieso/objects/project/project.rb +++ /dev/null @@ -1,18 +0,0 @@ -#Assignment Project Ruby OOP - -class Project - # your code here - attr_accessor :name, :desc - - def initialize(name2, desc) - @name = name2 - @desc = desc - end - - def elevator_pitch - print @name , ", " ,@desc , "\n" - end -end -project1 = Project.new("Project 1", "Description 1") -puts project1.name # => "Project 1" -project1.elevator_pitch # => "Project 1, Description 1" \ No newline at end of file diff --git a/Rodolfo_Valdivieso/objects/wizard/human.rb b/Rodolfo_Valdivieso/objects/wizard/human.rb deleted file mode 100644 index aff0494..0000000 --- a/Rodolfo_Valdivieso/objects/wizard/human.rb +++ /dev/null @@ -1,42 +0,0 @@ -#Assignment Human -class Human - attr_accessor :strength, :intelligence, :stealth, :health - - def initialize - @strength = 3 - @intelligence = 3 - @stealth = 3 - @health = 100 - self - end - - def attack(object) - #p object.class - #p object.class.ancestors - if object.kind_of?(Human) - object.health -= 5 - puts "Human attacked current health: " + object.health.to_s - else - puts "What you are trying to attack is not a HUMAN!!!!" - end - self - end -end -require_relative 'ninja' -require_relative 'samurai' -require_relative 'wizard' - -human1 = Human.new -ninja1 = Ninja.new -wizard1 = Wizard.new -samurai1 = Samurai.new -samurai2 = Samurai.new - -p ninja1.steal(human1).health -p human1.health -samurai1.death_blow(human1) -wizard1.fireball(samurai1) -p samurai1.health -p human1.health - -samurai1.how_many diff --git a/Rodolfo_Valdivieso/objects/wizard/ninja.rb b/Rodolfo_Valdivieso/objects/wizard/ninja.rb deleted file mode 100644 index b318e64..0000000 --- a/Rodolfo_Valdivieso/objects/wizard/ninja.rb +++ /dev/null @@ -1,21 +0,0 @@ - -# require_relative 'human' - -class Ninja < Human - def initialize - super - self.stealth = 175 - self - end - - def steal(object) - self.health += 10 - object.health -= 10 - self - end - - def get_away - self.health -= 15 - self - end -end \ No newline at end of file diff --git a/Rodolfo_Valdivieso/objects/wizard/samurai.rb b/Rodolfo_Valdivieso/objects/wizard/samurai.rb deleted file mode 100644 index eb89272..0000000 --- a/Rodolfo_Valdivieso/objects/wizard/samurai.rb +++ /dev/null @@ -1,28 +0,0 @@ - -#require_relative 'human' - -class Samurai < Human - - @@count = 0 - def initialize - super - self.health = 200 - @@count += 1 - self - end - - def death_blow(object) - object.health = 0 - self - end - - def meditate - self.health = 200 - self - end - - def how_many - puts "There are: " + @@count.to_s + " Samurais out there" - end - -end \ No newline at end of file diff --git a/Rodolfo_Valdivieso/objects/wizard/wizard.rb b/Rodolfo_Valdivieso/objects/wizard/wizard.rb deleted file mode 100644 index 7f53f14..0000000 --- a/Rodolfo_Valdivieso/objects/wizard/wizard.rb +++ /dev/null @@ -1,22 +0,0 @@ - -# require_relative 'human' - -class Wizard < Human - def initialize - super - self.intelligence = 25 - self.health = 50 - self - end - - def heal - self.health += 10 - self - end - - def fireball(object) - object.health -= 20 - self - end - -end \ No newline at end of file diff --git a/Staci_Rodriquez/fundamentals/arrays.rb b/Staci_Rodriquez/fundamentals/arrays.rb deleted file mode 100644 index 5323018..0000000 --- a/Staci_Rodriquez/fundamentals/arrays.rb +++ /dev/null @@ -1,31 +0,0 @@ -a = ["Staci", "Aladin", "Izabella", "Jenna", "Grandma"] -b = [24, 32, 6, 0, 60] -c = ["Staci", 24] - -# returns the first value or the 0th index of the array -puts a[0] - -# adds the two arrays into one array then takes out the things in the new array that match what is in the c array -x = (a+b)-c -puts x.to_s - -puts a.at 2 - -puts b.fetch 4 - -puts a.delete("Grandma") -puts a - -puts b.reverse - -puts c.length - -puts a.sort - -puts a.slice 3 - -puts b.shuffle.join('-') - -puts a.insert(2, "Leia") - -puts a.values_at(1,2,3) \ No newline at end of file diff --git a/Staci_Rodriquez/fundamentals/basic_13.rb b/Staci_Rodriquez/fundamentals/basic_13.rb deleted file mode 100644 index fbeb625..0000000 --- a/Staci_Rodriquez/fundamentals/basic_13.rb +++ /dev/null @@ -1,73 +0,0 @@ -##Print 1-255 -(1..255).each { |i| puts i } - -##Print odd numbers between 1-255 -p (1..255).find_all { |i| i % 2 == 1 } - -## Print Sum -sum = 0 -for i in 0..255 - puts "New number: #{i} Sum: #{sum += i}" -end - -## Iterating through an array -x = [1,3,5,7,9,13] -x.each {|num| print num, ', '} -puts ' ' - -##Find Max -x = [2,8,3,-4,-1,0] -p x.max.to_s - -##Get Average -arr = [2,10,3] -sum = 0 -len = arr.length.to_i -for i in arr - sum += i -end -avg = sum / len -p avg - -##Array with Odd Numbers -x = [] -(1..255).each { |i| x << i if i.odd? } -p x - -## Greater Than Y ## -def greater(arr, y) - arr.count { |i| i > y } -end -p greater([1,3,5,7], 3) - -## Square the values ## -x = [1,5,10,-4] -x.map! { |i| i*i } -p x - -## Eliminate Negative Numbers ## -x = [1,5,10,-2] -x.each_index { |i| x[i] = 0 if x[i] < 0 } -p x - -## Max, Min, and Average ## -x =[1,5,10,-2] -sum = 0 -len = x.length.to_i -for i in x - sum += i -end -avg = sum / len -puts 'max = ' + x.max.to_s+ ', min = ' + x.min.to_s+ ', average = ' + avg.to_s - -## Shifting the Values in the Array ## -x = [1, 5, 10, 7, -2] -x.shift -x.push(0) -p x - -## Number to String ## -# Write a program that takes an array of numbers and replaces any negative number with the string 'Dojo'. For example, if array x is initially [-1, -3, 2] after your program is done that array should be ['Dojo', 'Dojo', 2] -x = [1,5,10,-2] -x.each_index { |i| x[i] = 'dojo' if x[i] < 0 } -p x diff --git a/Staci_Rodriquez/fundamentals/guess_the_number.rb b/Staci_Rodriquez/fundamentals/guess_the_number.rb deleted file mode 100644 index 6f8f299..0000000 --- a/Staci_Rodriquez/fundamentals/guess_the_number.rb +++ /dev/null @@ -1,15 +0,0 @@ - -def guess_number guess - number = 25 - if guess == number - puts "You got it!" - elsif guess > number - puts "Guess was too high!" - else - puts "Guess was too low!" - end -end - -puts guess_number 25 -puts guess_number 30 -puts guess_number 20 \ No newline at end of file diff --git a/Staci_Rodriquez/fundamentals/hashes.rb b/Staci_Rodriquez/fundamentals/hashes.rb deleted file mode 100644 index abe3a12..0000000 --- a/Staci_Rodriquez/fundamentals/hashes.rb +++ /dev/null @@ -1,13 +0,0 @@ -# .delete(key) => deletes and returns a value associated with the key -hash = {:first_name => "Coding", :last_name => "Dojo"} -hash.delete(:last_name) -p hash - -# .empty? => returns true if hash contains no key-value pairs -p hash.empty? - -# .has_key?(key) => true or false -p hash.has_key?(:last_name) - -# .has_value?(value) => true or false -p hash.has_value?('Coding') \ No newline at end of file diff --git a/Staci_Rodriquez/fundamentals/myEnumerable.rb b/Staci_Rodriquez/fundamentals/myEnumerable.rb deleted file mode 100644 index c939933..0000000 --- a/Staci_Rodriquez/fundamentals/myEnumerable.rb +++ /dev/null @@ -1,14 +0,0 @@ -module MyEnumerable - def my_each - for i in 0...self.length - puts self[i] - end - end - end - -class Array - include MyEnumerable -end - -p [1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 -p [1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 diff --git a/Staci_Rodriquez/fundamentals/names.rb b/Staci_Rodriquez/fundamentals/names.rb deleted file mode 100644 index e04c6ea..0000000 --- a/Staci_Rodriquez/fundamentals/names.rb +++ /dev/null @@ -1,12 +0,0 @@ -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - - -puts "You have " + names.length.to_s + " names in the 'names' array" -for i in names - puts 'The name is ' + i[:first_name]+' '+i[:last_name] -end \ No newline at end of file diff --git a/Staci_Rodriquez/fundamentals/range.rb b/Staci_Rodriquez/fundamentals/range.rb deleted file mode 100644 index 1fa3ff3..0000000 --- a/Staci_Rodriquez/fundamentals/range.rb +++ /dev/null @@ -1,13 +0,0 @@ -#Ranges - -a = (1..10) - -puts "Class Name: #{a.class}" - -puts "It does include 7!" if a.include? 7 - -puts "The last number in the range is " + a.last.to_s - -puts "The max number in the range is " + a.max.to_s - -puts "The min number in the range is " + a.min.to_s \ No newline at end of file diff --git a/Staci_Rodriquez/fundamentals/ruby_puzzles.rb b/Staci_Rodriquez/fundamentals/ruby_puzzles.rb deleted file mode 100644 index 13307e4..0000000 --- a/Staci_Rodriquez/fundamentals/ruby_puzzles.rb +++ /dev/null @@ -1,80 +0,0 @@ -##Create an array with the following values: 3,5,1,2,7,9,8,13,25,32. Print the sum of all numbers in the array. Also have the function return an array that only include numbers that are greater than 10 (e.g. when you pass the array above, it should return an array with the values of 13,25,32 - hint: use reject or find_all method) - -# x = [3,5,1,2,7,9,8,13,25,32] -# sum = 0 -# for i in x -# sum =+ i -# end -# p sum -# p x.reject { |i| i < 10 } - - - -#Create an array with the following values: John, KB, Oliver, Cory, Matthew, Christopher. Shuffle the array and print the name of each person. Have the program also return an array with names that are longer than 5 characters. - -# x = ['John', 'KB', 'Oliver', 'Cory', 'Matthew', 'Christopher'] -# p x.shuffle -# p x.find_all { |i| i.length > 5 } - - - -# Create an array that contains all 26 letters in the alphabet (this array must have 26 values). Shuffle the array and display the last letter of the array. Have it also display the first letter of the array. If the first letter in the array is a vowel, have it display a message. - -# y = ('a'..'z').to_a -# p y.shuffle! -# p y.last -# p y.first -# d =['a', 'e', 'i', 'o', 'u'] -# for i in d -# if y.first == i -# puts 'Oh it is vowel!' -# end -# end - - - -# Generate an array with 10 random numbers between 55-100. - -# rnum = Random.new -# arr = [] -# for i in (0...10) -# arr.push(rnum.rand(55..100)) -# end -# p arr - - - -# Generate an array with 10 random numbers between 55-100 and have it be sorted (showing the smallest number in the beginning). Display all the numbers in the array. Next, display the minimum value in the array as well as the maximum value - -# rnum = Random.new -# arr = [] -# for i in (0...10) -# arr.push(rnum.rand(55..100)) -# end -# p arr.sort -# p arr.min -# p arr.max - - - -# Create a random string that is 5 characters long (hint: (65+rand(26)).chr returns a random character) - -# x = '' -# for i in (0...5) -# x << (65+rand(26)).chr -# end -# p x - - - -# Generate an array with 10 random strings that are each 5 characters long - -x = [] -for i in (0...10) - y = '' - for i in (0...5) - y << (65+rand(26)).chr - end - x.push(y) -end -p x \ No newline at end of file diff --git a/Staci_Rodriquez/oop/MathDojo.rb b/Staci_Rodriquez/oop/MathDojo.rb deleted file mode 100644 index 72ad062..0000000 --- a/Staci_Rodriquez/oop/MathDojo.rb +++ /dev/null @@ -1,20 +0,0 @@ -class MathDojo - attr_reader :result - def initialize - @result=0 - self - end - def add * values - @result += values.flatten.reduce(:+) - self - end - def subtract * values - @result -= values.flatten.reduce(:+) - self - end - def display - p @result - end -end -challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).display # => 4 -challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).display # => 23.15 \ No newline at end of file diff --git a/Staci_Rodriquez/oop/dog.rb b/Staci_Rodriquez/oop/dog.rb deleted file mode 100644 index a97869d..0000000 --- a/Staci_Rodriquez/oop/dog.rb +++ /dev/null @@ -1,19 +0,0 @@ -require_relative 'mammal' -class Dog < Mammal - - def pet - @health += 5 - self - end - - def walk - @health -= 1 - self - end - - def run - @health -= 10 - self - end -end -dog1 = Dog.new.walk.walk.walk.run.run.pet.display_health \ No newline at end of file diff --git a/Staci_Rodriquez/oop/mammal.rb b/Staci_Rodriquez/oop/mammal.rb deleted file mode 100644 index ea70d9c..0000000 --- a/Staci_Rodriquez/oop/mammal.rb +++ /dev/null @@ -1,12 +0,0 @@ -class Mammal - attr_reader :health - - def initialize - @health = 150 - self - end - - def display_health - puts @health - end -end \ No newline at end of file diff --git a/Staci_Rodriquez/oop/project.rb b/Staci_Rodriquez/oop/project.rb deleted file mode 100644 index 2c359f4..0000000 --- a/Staci_Rodriquez/oop/project.rb +++ /dev/null @@ -1,16 +0,0 @@ -class Project - attr_reader :name, :description - - def initialize(name, description) - @name = name - @description = description - end - - def elevator_pitch - "#{@name}, #{@description}" - end -end - -project1 = Project.new("Project 1", "Description 1") -puts project1.name -puts project1.elevator_pitch diff --git a/Stephen Weil/Fundamentals/arrays.rb b/Stephen Weil/Fundamentals/arrays.rb deleted file mode 100644 index a073f66..0000000 --- a/Stephen Weil/Fundamentals/arrays.rb +++ /dev/null @@ -1,55 +0,0 @@ -test = [1,2,3,4,5,6,7,0,1.5] - -# these are pretty much the same except fetch throws error if out of bounds (second argument is a default) -# negative indices count backwards (-1 is the last, -2 is the second to last, etc) -puts test.fetch(3) {|i| puts "#{i} is out of bounds"} -puts test.at(-2) -puts test[-2] - -# this will just return a blank line (because puts does \n) -puts test.at(40) - -# throws no error if the item isn't there to delete -test.delete("potato") -test.delete(3) -puts test.to_s - -# reverse with ! will permanently reverse array -puts test.reverse!.to_s -puts test.to_s - -puts test.length - -# sort without ! will return shallow copy, next puts will still be out of order -puts test.sort.to_s -puts test.to_s - -# slice returns a subarray starting at value one with length of value 2 -# (optional - without 2nd arg just returns idx at first val) -puts test.slice(2, 3).to_s -puts test.slice(3..5).to_s - -# using exclamation will actually delete -test.slice!(4) -puts test.to_s - -# shuffle randomizes order of elements, no exclamation = new array, with exclamation = changes in place -puts test.shuffle.to_s -puts test.to_s -test.shuffle!.to_s -puts test.to_s - -# join binds together elements as string, with optional parameter connecting them -puts test.join(" - ") -puts test - -# first argument is index, will insert subsequent values BEFORE element with that index -test.insert(2, "hey", "wassup") -puts test.to_s -# if negative index is used, will insert values AFTER -test.insert(-1, "this is at the end now!") -puts test.to_s - -# returns an array containing elements at given indices or within given ranges (.. is inclusive, ... is EXCLUSIVE of last number) -puts test.values_at(1,4).to_s -puts test.values_at(3..6).to_s \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/basic13.rb b/Stephen Weil/Fundamentals/basic13.rb deleted file mode 100644 index 4eb934f..0000000 --- a/Stephen Weil/Fundamentals/basic13.rb +++ /dev/null @@ -1,123 +0,0 @@ -# print 1-255 -(1..255).each { |i| print i, " " } -print "\n" - -# print odd numbers 1-255 -(1..255).reject { |i| i % 2 == 0 }.each { |i| print i, " " } -print "\n" - -# print sum -sum = 0 -for i in 0..255 - sum += i - puts "New number: #{i} - Sum: #{sum}" -end - -# iterating through array -for el in [1,3,5,7,9,13] - puts el -end - -# find max -def find_max arr - max = arr[0] - for el in arr[1..-1] - if el > max - max = el - end - end - return max -end - -puts find_max [-3,-5,-7] -puts find_max [-400,0,3.5] - -def find_min arr - min = arr[0] - for el in arr[1..-1] - if el < min - min = el - end - end - return min -end - -# get average -def find_avg arr - sum = 0 - for el in arr - sum += el - end - return sum / arr.length -end - -puts find_avg [2,10,3] - -# array with odd numbers - -def create_odd_array - $y = (1..255).reject { |i| i % 2 == 0 } -end - -create_odd_array -print $y, "\n" - -# greater than y - -def greater_than_y arr, val - return arr.count { |x| x > val } -end - -p greater_than_y [1,2,3,4,5,6], 2 - -# square the values - -def square_values arr - arr.map! { |x| x * x } -end - -to_square = [1,5,10,-2] -square_values to_square -p to_square - -# eliminate negative numbers - -def eliminate_negatives arr - arr.each_with_index { |val, idx| arr[idx] = 0 unless val > 0 } -end - -to_eliminate = [1,-3,0,5,-6] -eliminate_negatives to_eliminate -p to_eliminate - -# min, max, avg - -def give_stats arr - return { - max: find_max(arr), - min: find_min(arr), - avg: find_avg(arr) - } -end - -p give_stats [1,5,10,-2] - -# shift values - -def shift_left arr - arr.delete_at(0) - arr.push(0) -end - -to_shift = [1,5,10,7,-2] -p shift_left to_shift - -# number to string - -def negatives_to_string arr - arr.each_with_index { |val, idx| arr[idx] = "Dojo" if val < 0 } -end - -fix_me = [-1,-3,2] -negatives_to_string fix_me -p fix_me \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/guess_the_number.rb b/Stephen Weil/Fundamentals/guess_the_number.rb deleted file mode 100644 index 666bad0..0000000 --- a/Stephen Weil/Fundamentals/guess_the_number.rb +++ /dev/null @@ -1,12 +0,0 @@ -def guess_number guess - number = 25 - if guess == number - puts "You got it!" - elsif guess < number - puts "Guess was too low!" - else - puts "Guess was too high!" - end -end - -guess_number 25 \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/hashes.rb b/Stephen Weil/Fundamentals/hashes.rb deleted file mode 100644 index cf46c91..0000000 --- a/Stephen Weil/Fundamentals/hashes.rb +++ /dev/null @@ -1,16 +0,0 @@ -test_hash = { - name: "Stephen Weil", - age: 28, - birthday: "8/24/89", - gender: "Male" -} - -p "This got some stuff in it!" unless test_hash.empty? - -p "It's got a key for 'age'!'" if test_hash.has_key?(:age) - -p "It doesn't have the value 'Badass'...'" unless test_hash.has_value?('Badass') - -p "But it does have 'Male'..." if test_hash.has_value?('Male') - -p "We're gonna delete the key 'birthday'. It contained: " + test_hash.delete(:birthday) \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/iterators.rb b/Stephen Weil/Fundamentals/iterators.rb deleted file mode 100644 index 69322ba..0000000 --- a/Stephen Weil/Fundamentals/iterators.rb +++ /dev/null @@ -1,36 +0,0 @@ -test = ["some", "test", "words"] - -# any returns true if the block returns true for any of the elements - -puts test.any? { |word| word.length >= 4 } -puts test.any? { |word| word.length < 4 } - -# each calls the block once for each element - -test.each { |word| word.capitalize! } -print test, "\n" - -# collect returns a new array with the results of running block on each element - -new_array = (1..4).collect { |i| 2**i } -print new_array, "\n" - -# detect/find - returns first element for which block is true - -puts test.detect { |word| word.length == 4 } -puts "No words longer than 5!" unless test.detect { |word| word.length > 5 } - -# find_all returns an array containing all elements for which block is true - -found_stuff = (1..100).find_all { |i| i % 25 == 0 } -print found_stuff, "\n" - -# reject is the opposite of find_all - returns array containing all elements for which block is NOT true - -filtered_stuff = (1..100).reject { |i| i % 2 == 0 } -print filtered_stuff, "\n" - -# upto runs block up to the provided number (method of an INT) - -3.upto(7) { |i| puts i**2 } -1.upto(5) { puts "Hey Hey Hey!" } \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/my_enumerable.rb b/Stephen Weil/Fundamentals/my_enumerable.rb deleted file mode 100644 index de6b42f..0000000 --- a/Stephen Weil/Fundamentals/my_enumerable.rb +++ /dev/null @@ -1,12 +0,0 @@ -module MyEnumerable - def my_each - for el in self - yield el - end - end -end -class Array - include MyEnumerable -end -[1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 -[1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/names.rb b/Stephen Weil/Fundamentals/names.rb deleted file mode 100644 index 634230f..0000000 --- a/Stephen Weil/Fundamentals/names.rb +++ /dev/null @@ -1,13 +0,0 @@ -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - -def unpack_names arr - puts "You have " + arr.length.to_s + " names in the 'names' array" - arr.each { |obj| puts "The name is '#{obj[:first_name]} #{obj[:last_name]}'" } -end - -unpack_names names \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/puzzles.rb b/Stephen Weil/Fundamentals/puzzles.rb deleted file mode 100644 index dbff273..0000000 --- a/Stephen Weil/Fundamentals/puzzles.rb +++ /dev/null @@ -1,81 +0,0 @@ -# take array, print sum of numbers and return array with all numbers > 10 - -arr1 = [3,5,1,2,7,9,8,13,25,32] - -def first_puzzle arr - sum = 0 - arr.each {|x| sum += x} - p sum - return arr.find_all {|x| x > 10} -end - -p first_puzzle arr1 - -# given array of names, shuffle them, print all names, and return array with -# all names longer than 5 characters - -arr2 = ['John', 'KB', 'Oliver', 'Cory', 'Matthew', 'Christopher'] - -def second_puzzle arr - arr.shuffle! - arr.each { |name| p name } - return arr.find_all { |name| name.length > 5 } -end - -p second_puzzle arr2 - -# create array with letters a to z - shuffle it, print last and first letter -# add an additional message if first letter is a vowel - -arr3 = ("a".."z").to_a - -def third_puzzle arr - arr.shuffle! - p "Last letter is " + arr[-1] - p "First letter is " + arr[0] - puts "Wow, that first letter was a VOWEL! How cool!" if ['a', 'e', 'i', 'o', 'u', 'y'].include? arr[0] -end - -third_puzzle arr3 - -# generate array with 10 random numbers between 55-100 - -def fourth_puzzle - rng = Random.new - ret = [] - 10.times { ret.push(rng.rand(55..100)) } - return ret -end - -p fourth_puzzle - -# generate above array, have it be sorted, display all numbers and then min and max - -def fifth_puzzle - sample = fourth_puzzle.sort!.each { |x| p x } - p "Min is " + sample[0].to_s - p "Max is " + sample[-1].to_s -end - -fifth_puzzle - -# create a random string that is 5 characters long - -def sixth_puzzle - rng = Random.new - ret = '' - 5.times { ret += (65+rand(26)).chr } - return ret.capitalize -end - -p sixth_puzzle - -# generate an array with 10 random strings that are 5 characters long - -def seventh_puzzle - ret = [] - 10.times { ret.push(sixth_puzzle) } - return ret -end - -p seventh_puzzle \ No newline at end of file diff --git a/Stephen Weil/Fundamentals/range.rb b/Stephen Weil/Fundamentals/range.rb deleted file mode 100644 index 0d7cdae..0000000 --- a/Stephen Weil/Fundamentals/range.rb +++ /dev/null @@ -1,19 +0,0 @@ -# each iterates over range, passing each value as argument to block -(1..5).each { |i| puts i } -("a".."f").each { |letter| puts letter } - -# .. is inclusive, ... is EXCLUSIVE of end value -test = (-10..10) -puts "This includes 10!" if test.include?(10) -test2 = (-10...10) -puts "This does not include 10!" unless test2.include?(10) - -# last returns object with last value, if given argument, returns array with last X values -puts test.last -puts test2.last(3).to_s - -# max returns largest value in range -puts test.max - -# min returns smallest value in range -puts test.min \ No newline at end of file diff --git a/Stephen Weil/OOP/bankaccount.rb b/Stephen Weil/OOP/bankaccount.rb deleted file mode 100644 index 699f363..0000000 --- a/Stephen Weil/OOP/bankaccount.rb +++ /dev/null @@ -1,66 +0,0 @@ -class BankAccount - @@num_of_accts = 0 - @@interest_rate = 0.01 - def initialize - @acct_num = generate_acct_num - @checking = 0 - @savings = 0 - @@num_of_accts += 1 - end - - attr_reader :acct_num - attr_reader :checking - attr_reader :savings - - def deposit acct, amt - @checking += amt if acct == 'checking' - @savings += amt if acct == 'savings' - p "You deposited #{amt} into #{acct}." unless (acct != 'checking' and acct != 'savings') - end - - def withdraw acct, amt - if (acct == 'checking' and amt > @checking) or (acct == 'savings' and amt > @savings) - p "You have insufficient funds to withdraw from " + acct - else - @checking -= amt if acct == 'checking' - @savings -= amt if acct == 'savings' - p "You withdrew #{amt} from #{acct}" unless (acct != 'checking' and acct != 'savings') - end - end - - def total_holdings - p "You have $#{@checking} in checking and $#{@savings} in savings, for a total of $#{@checking + @savings}." - end - - def account_information - p "Account #: #{@acct_num}" - p "Total Balance: $#{@savings + @checking}" - p "Checking Balance: $#{@checking}" - p "Savings Balance: $#{@savings}" - p "Interest Rate: #{@@interest_rate}" - end - - def self.total_accts - p "The bank currently has #{@@num_of_accts} accounts." - end - - private - def generate_acct_num - return rand(1000000) - end -end - -acct1 = BankAccount.new -acct2 = BankAccount.new - -p acct1.acct_num -acct2.deposit('checking', 100) -acct1.deposit('savings', 150) -acct2.withdraw('savings', 100) -acct2.withdraw('checking', 150) -acct2.withdraw('checking', 50) - -acct2.total_holdings -acct1.account_information - -BankAccount.total_accts \ No newline at end of file diff --git a/Stephen Weil/OOP/dog.rb b/Stephen Weil/OOP/dog.rb deleted file mode 100644 index eb41ec2..0000000 --- a/Stephen Weil/OOP/dog.rb +++ /dev/null @@ -1,18 +0,0 @@ -require_relative 'mammal' -class Dog < Mammal - def pet - @health += 5 - return self - end - def walk - @health -= 1 - return self - end - def run - @health -= 10 - return self - end -end - -doggo = Dog.new -doggo.walk.walk.walk.run.run.pet.display_health \ No newline at end of file diff --git a/Stephen Weil/OOP/human.rb b/Stephen Weil/OOP/human.rb deleted file mode 100644 index 7cbe852..0000000 --- a/Stephen Weil/OOP/human.rb +++ /dev/null @@ -1,30 +0,0 @@ -class Human - def initialize - @strength = 3 - @stealth = 3 - @intelligence = 3 - @health = 100 - end - - attr_accessor :health - - def attack(target) - if (target.class.ancestors.include? Human or target.class == Human) - target.health -= 10 - p "You attacked the #{target.class}! They now have #{target.health} health left." - else - p "What is wrong with you? Pick on your own species!" - end - return self - end -end - -=begin -dude = Human.new -otha_dude = Human.new - -dude.attack otha_dude -p otha_dude.health - -dude.attack 5 -=end diff --git a/Stephen Weil/OOP/lion.rb b/Stephen Weil/OOP/lion.rb deleted file mode 100644 index 757776d..0000000 --- a/Stephen Weil/OOP/lion.rb +++ /dev/null @@ -1,26 +0,0 @@ -require_relative 'mammal' - -class Lion < Mammal - def initialize - @health = 170 - end - def fly - @health -= 10 - return self - end - def attack_town - @health -= 50 - return self - end - def eat_humans - @health += 20 - return self - end - def display_health - puts "This is a LION!" - super - end -end - -lion = Lion.new -lion.attack_town.attack_town.attack_town.eat_humans.eat_humans.fly.fly.display_health \ No newline at end of file diff --git a/Stephen Weil/OOP/mammal.rb b/Stephen Weil/OOP/mammal.rb deleted file mode 100644 index e99a66d..0000000 --- a/Stephen Weil/OOP/mammal.rb +++ /dev/null @@ -1,10 +0,0 @@ -class Mammal - def initialize - @health = 150 - end - attr_accessor :health - def display_health - puts "Health is #{@health}" - return self - end -end diff --git a/Stephen Weil/OOP/mathdojo.rb b/Stephen Weil/OOP/mathdojo.rb deleted file mode 100644 index 4b52e40..0000000 --- a/Stephen Weil/OOP/mathdojo.rb +++ /dev/null @@ -1,20 +0,0 @@ -class MathDojo - def initialize - @sum = 0 - end - def add *nums - @sum += nums.flatten.reduce(:+) - return self - end - def subtract *nums - @sum -= nums.flatten.reduce(:+) - return self - end - def result - puts @sum - return self - end -end - -challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).result # => 4 -challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).result # => 23.15 \ No newline at end of file diff --git a/Stephen Weil/OOP/ninja.rb b/Stephen Weil/OOP/ninja.rb deleted file mode 100644 index ae61239..0000000 --- a/Stephen Weil/OOP/ninja.rb +++ /dev/null @@ -1,30 +0,0 @@ -require_relative 'human' -class Ninja < Human - def initialize - super - @stealth = 175 - end - - def steal(target) - if (target.class == Human or target.class.ancestors.include? Human) - @health += 10 - p "You stole from the #{target.class}. You now have #{@health} health!" - else - p "Jeez dude, you can't just be stealin' from a #{target.class}." - end - return self - end - - def get_away - @health -= 15 - p "You escaped danger, but it cost you! You now have #{@health} health." - return self - end -end - -kemosabi = Ninja.new -innocent_bystander = Human.new - -kemosabi.steal innocent_bystander -kemosabi.steal [1,2,3] -kemosabi.get_away \ No newline at end of file diff --git a/Stephen Weil/OOP/project.rb b/Stephen Weil/OOP/project.rb deleted file mode 100644 index 2a6bb83..0000000 --- a/Stephen Weil/OOP/project.rb +++ /dev/null @@ -1,15 +0,0 @@ -class Project - def initialize(name, description) - @name = name - @description = description - end - attr_accessor :name - attr_accessor :description - def elevator_pitch - p "#{@name}, #{@description}" - end -end - -project1 = Project.new("Project 1", "Description 1") -puts project1.name # => "Project 1" -project1.elevator_pitch # => "Project 1, Description 1" \ No newline at end of file diff --git a/Stephen Weil/OOP/samurai.rb b/Stephen Weil/OOP/samurai.rb deleted file mode 100644 index e0bd8df..0000000 --- a/Stephen Weil/OOP/samurai.rb +++ /dev/null @@ -1,40 +0,0 @@ -require_relative 'human' -class Samurai < Human - @@samurai_count = 0 - def initialize - super - @health = 200 - @@samurai_count += 1 - end - - def death_blow(target) - if (target.class == Human or target.class.ancestors.include? Human) - target.health = 0 - p "You executed the DEATH BLOW! The #{target.class} now has #{target.health} health. RIP!" - else - p "I mean, I guess I hate #{target.class} too, but it doesn't mean you can kill 'em...'" - end - return self - end - - def meditate - @health = 200 - p "You centered your body and mind. You are now restored back to #{@health} health!" - return self - end - - def how_many - p "You are (probably) not alone. There are #{@@samurai_count} total Samurai!" - return self - end -end - -not_the_last_samurai = Samurai.new -also_not_the_last_samurai = Samurai.new - -innocent_bystander = Human.new - -not_the_last_samurai.attack innocent_bystander -innocent_bystander.attack also_not_the_last_samurai -also_not_the_last_samurai.how_many.death_blow innocent_bystander -also_not_the_last_samurai.meditate \ No newline at end of file diff --git a/Stephen Weil/OOP/wizard.rb b/Stephen Weil/OOP/wizard.rb deleted file mode 100644 index 0cb188d..0000000 --- a/Stephen Weil/OOP/wizard.rb +++ /dev/null @@ -1,31 +0,0 @@ -require_relative 'human' -class Wizard < Human - def initialize - super - @health = 50 - @intelligence = 50 - end - - def heal - @health += 10 - return self - end - - def fireball(target) - if (target.class.ancestors.include? Human or target.class == Human) - target.health -= 20 - p "You cast a fireball on the #{target.class}! They now have #{target.health} health left." - else - p "What is wrong with you? Pick on your own species! You can't just go attacking a #{target.class}..." - end - return self - end -end - -gandalf = Wizard.new -innocent_bystander = Human.new -sauron = Wizard.new - -gandalf.fireball innocent_bystander -gandalf.fireball "u attakin strings now?" -gandalf.fireball sauron \ No newline at end of file diff --git a/Stephen Weil/Rails/Models/blogs_one.txt b/Stephen Weil/Rails/Models/blogs_one.txt deleted file mode 100644 index 21901ab..0000000 --- a/Stephen Weil/Rails/Models/blogs_one.txt +++ /dev/null @@ -1,20 +0,0 @@ -Blog.create(name: "Super Cool Blog", description: "Just a place for super cool people to talk about super cool stuff") -Blog.create(name: "A Blog of Ice and Fire", description: "For GOT Nerds") -Blog.create(name: "War on the Rocks", description: "Pretty good shit if you're into IR") -Blog.create(name: "SCOTUS Blog", description: "For law nerds") -Blog.create(name: "The Ringer", description: "I mean its basically just a bunch of blogs") -Post.create(title: "This is the coolest shit ever", content: "No seriously, it's so cool. Can you believe how cool it is? The most cool...", blog: Blog.find(1)) -Post.create(title: "This is also cool", content: "This stuff is less cool but still its obviously cool enough", blog: Blog.find(1)) -Post.create(title: "How about that boat scene?", content: "Bow chika bow wow", blog: Blog.find(2)) -Post.create(title: "Night King OP", content: "Zombie dragons 4 real? rough...", blog: Blog.find(2)) -Post.create(title: "Bill Simmons Mailbag", content: "Something something Celtics", blog: Blog.find(5)) -Post.create(title: "Are they gunna strike down the travel ban?", content: "God damnit why dont we have Merrick Garland?", blog: Blog.find(4)) -Post.create(title: "RIP American Diplomatic Credibility", content: "Seriously its almost like this guy has no fucking experience at this shit", blog: Blog.find(3)) -Blog.first.posts -Blog.last.posts.order(title: :desc) -Post.first.update(title: "A different title now") -Message.create(author: "Some Dude", message: "Hey man that's a cool post", post: Post.first) -Message.create(author: "Some High Falutin Asshole", message: "This post is banal", post: Post.first) -Blog.all -Post.find(3).destroy -Blog.where("id < 3") diff --git a/Stephen Weil/Rails/Models/blogs_one/.gitignore b/Stephen Weil/Rails/Models/blogs_one/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Stephen Weil/Rails/Models/blogs_one/Gemfile b/Stephen Weil/Rails/Models/blogs_one/Gemfile deleted file mode 100644 index b6bd2a4..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -gem 'hirb' - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Stephen Weil/Rails/Models/blogs_one/Gemfile.lock b/Stephen Weil/Rails/Models/blogs_one/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Stephen Weil/Rails/Models/blogs_one/README.rdoc b/Stephen Weil/Rails/Models/blogs_one/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Stephen Weil/Rails/Models/blogs_one/Rakefile b/Stephen Weil/Rails/Models/blogs_one/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/app/assets/javascripts/application.js b/Stephen Weil/Rails/Models/blogs_one/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Stephen Weil/Rails/Models/blogs_one/app/assets/stylesheets/application.css b/Stephen Weil/Rails/Models/blogs_one/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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 any plugin's vendor/assets/stylesheets directory 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/Stephen Weil/Rails/Models/blogs_one/app/controllers/application_controller.rb b/Stephen Weil/Rails/Models/blogs_one/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/app/models/blog.rb b/Stephen Weil/Rails/Models/blogs_one/app/models/blog.rb deleted file mode 100644 index 329286c..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/app/models/blog.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Blog < ActiveRecord::Base - validates :name, :description, presence: true - has_many :posts, dependent: :destroy -end diff --git a/Stephen Weil/Rails/Models/blogs_one/app/models/message.rb b/Stephen Weil/Rails/Models/blogs_one/app/models/message.rb deleted file mode 100644 index 273ac26..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/app/models/message.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Message < ActiveRecord::Base - validates :author, :message, presence: true - validates :message, length: { minimum: 15 } - belongs_to :post -end diff --git a/Stephen Weil/Rails/Models/blogs_one/app/models/post.rb b/Stephen Weil/Rails/Models/blogs_one/app/models/post.rb deleted file mode 100644 index 9b62bca..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/app/models/post.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Post < ActiveRecord::Base - validates :title, :content, presence: true - validates :title, length: { minimum: 7 } - belongs_to :blog - has_many :messages, dependent: :destroy -end diff --git a/Stephen Weil/Rails/Models/blogs_one/app/views/layouts/application.html.erb b/Stephen Weil/Rails/Models/blogs_one/app/views/layouts/application.html.erb deleted file mode 100644 index c888c29..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - BlogsOne - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Stephen Weil/Rails/Models/blogs_one/bin/rails b/Stephen Weil/Rails/Models/blogs_one/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/blogs_one/bin/setup b/Stephen Weil/Rails/Models/blogs_one/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Stephen Weil/Rails/Models/blogs_one/config.ru b/Stephen Weil/Rails/Models/blogs_one/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/config/application.rb b/Stephen Weil/Rails/Models/blogs_one/config/application.rb deleted file mode 100644 index 844039e..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module BlogsOne - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/config/boot.rb b/Stephen Weil/Rails/Models/blogs_one/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Stephen Weil/Rails/Models/blogs_one/config/database.yml b/Stephen Weil/Rails/Models/blogs_one/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/config/environment.rb b/Stephen Weil/Rails/Models/blogs_one/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/config/environments/development.rb b/Stephen Weil/Rails/Models/blogs_one/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Stephen Weil/Rails/Models/blogs_one/config/environments/production.rb b/Stephen Weil/Rails/Models/blogs_one/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Stephen Weil/Rails/Models/blogs_one/config/environments/test.rb b/Stephen Weil/Rails/Models/blogs_one/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Stephen Weil/Rails/Models/blogs_one/config/initializers/cookies_serializer.rb b/Stephen Weil/Rails/Models/blogs_one/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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 diff --git a/Stephen Weil/Rails/Models/blogs_one/config/initializers/session_store.rb b/Stephen Weil/Rails/Models/blogs_one/config/initializers/session_store.rb deleted file mode 100644 index 1ebcc3a..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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: '_blogs_one_session' diff --git a/Stephen Weil/Rails/Models/blogs_one/config/initializers/wrap_parameters.rb b/Stephen Weil/Rails/Models/blogs_one/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/config/routes.rb b/Stephen Weil/Rails/Models/blogs_one/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/config/secrets.yml b/Stephen Weil/Rails/Models/blogs_one/config/secrets.yml deleted file mode 100644 index 2ee3543..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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: e95ff8a70bd6b9ddaed1fc9df6433809faa3c0a0c81ce9ef1888fbb99cf0234c720c8206896093c40c5dbdc0952a12c95c9d7f40f9545cc0f4dbd013bc33be34 - -test: - secret_key_base: 101dea84d1fd79ab00b26873ac5174008214d25b3524eb73c2f033af883bc88f7a4002e6c6a35bbea1f174ec26c1f37ff0d8f7f39e4ec8274271fed97745d615 - -# 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/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215414_create_blogs.rb b/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215414_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215414_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215430_create_posts.rb b/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215430_create_posts.rb deleted file mode 100644 index 8796f8e..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215430_create_posts.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215654_add_post_to_blog.rb b/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215654_add_post_to_blog.rb deleted file mode 100644 index c33ed85..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215654_add_post_to_blog.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddPostToBlog < ActiveRecord::Migration - def change - add_reference :blogs, :post, index: true, foreign_key: true - end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215752_create_messages.rb b/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215752_create_messages.rb deleted file mode 100644 index cf927e7..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129215752_create_messages.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :post, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129221530_add_blog_to_post.rb b/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129221530_add_blog_to_post.rb deleted file mode 100644 index 87b00d5..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/db/migrate/20171129221530_add_blog_to_post.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddBlogToPost < ActiveRecord::Migration - def change - add_reference :posts, :blog, index: true, foreign_key: true - end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/db/schema.rb b/Stephen Weil/Rails/Models/blogs_one/db/schema.rb deleted file mode 100644 index 0460603..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/db/schema.rb +++ /dev/null @@ -1,46 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129221530) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "post_id" - end - - add_index "blogs", ["post_id"], name: "index_blogs_on_post_id" - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "post_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "blog_id" - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - -end diff --git a/Stephen Weil/Rails/Models/blogs_one/db/seeds.rb b/Stephen Weil/Rails/Models/blogs_one/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Stephen Weil/Rails/Models/blogs_one/public/404.html b/Stephen Weil/Rails/Models/blogs_one/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/public/422.html b/Stephen Weil/Rails/Models/blogs_one/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/public/500.html b/Stephen Weil/Rails/Models/blogs_one/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/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/Stephen Weil/Rails/Models/blogs_one/test/fixtures/blogs.yml b/Stephen Weil/Rails/Models/blogs_one/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/Stephen Weil/Rails/Models/blogs_one/test/fixtures/messages.yml b/Stephen Weil/Rails/Models/blogs_one/test/fixtures/messages.yml deleted file mode 100644 index e3c84c8..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/test/fixtures/messages.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - post_id: - -two: - author: MyString - message: MyText - post_id: diff --git a/Stephen Weil/Rails/Models/blogs_one/test/fixtures/posts.yml b/Stephen Weil/Rails/Models/blogs_one/test/fixtures/posts.yml deleted file mode 100644 index 19db450..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/test/fixtures/posts.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - -two: - title: MyString - content: MyText diff --git a/Stephen Weil/Rails/Models/blogs_one/test/models/blog_test.rb b/Stephen Weil/Rails/Models/blogs_one/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Stephen Weil/Rails/Models/blogs_one/test/models/message_test.rb b/Stephen Weil/Rails/Models/blogs_one/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/Stephen Weil/Rails/Models/blogs_one/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas.txt b/Stephen Weil/Rails/Models/dojo_ninjas.txt deleted file mode 100644 index d817b45..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas.txt +++ /dev/null @@ -1,20 +0,0 @@ -Dojo.create(name: "CD Silicon Valley", city: "Mountain View", state: "CA") -Dojo.create(name: "CD Seattle", city: "Seattle", state: "WA") -Dojo.create(name: "CD New York", city: "New York", state: "NY") -Dojo.create(name:"This wont work").errors.full_messages -Dojo.create(name:"Neither will this", city: "Imagination Land", state: "WAAAAAAAA").errors.full_messages -Ninja.create(first_name: "Stephen", last_name: "Weil", dojo: Dojo.first) -Ninja.create(first_name: "Bruce", last_name: "Lee", dojo: Dojo.first) -Ninja.create(first_name: "Jackie", last_name: "Chan", dojo: Dojo.first) -Ninja.create(first_name: "Dennis", last_name: "Schroeder", dojo: Dojo.find(2)) -Ninja.create(first_name: "Jean-Luc", last_name: "Picard", dojo: Dojo.find(2)) -Ninja.create(first_name: "Geordi", last_name: "LaForge", dojo: Dojo.find(2)) -Ninja.create(first_name: "Jon", last_name: "Snow", dojo: Dojo.last) -Ninja.create(first_name: "Danaerys", last_name: "Targaryen", dojo: Dojo.last) -Ninja.create(first_name: "Tyrion", last_name: "Lannister", dojo: Dojo.last) -Dojo.first.ninjas -Dojo.find(2).ninjas -Dojo.last.ninjas -Dojo.find(2).ninjas.order(created_at: :desc).select('first_name') -Dojo.find(2).destroy -add dependent: :destroy to dojo.rb diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/.gitignore b/Stephen Weil/Rails/Models/dojo_ninjas/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/Gemfile b/Stephen Weil/Rails/Models/dojo_ninjas/Gemfile deleted file mode 100644 index 7415088..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - gem 'hirb' - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/Gemfile.lock b/Stephen Weil/Rails/Models/dojo_ninjas/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/README.rdoc b/Stephen Weil/Rails/Models/dojo_ninjas/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/Rakefile b/Stephen Weil/Rails/Models/dojo_ninjas/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/app/assets/javascripts/application.js b/Stephen Weil/Rails/Models/dojo_ninjas/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/assets/stylesheets/application.css b/Stephen Weil/Rails/Models/dojo_ninjas/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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 any plugin's vendor/assets/stylesheets directory 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/Stephen Weil/Rails/Models/dojo_ninjas/app/controllers/application_controller.rb b/Stephen Weil/Rails/Models/dojo_ninjas/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/app/models/dojo.rb b/Stephen Weil/Rails/Models/dojo_ninjas/app/models/dojo.rb deleted file mode 100644 index 9dec03e..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/app/models/dojo.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Dojo < ActiveRecord::Base - validates :name, presence: true, length: { maximum: 255 } - validates :city, presence: true, length: { maximum: 255 } - validates :state, presence: true, length: { maximum: 2 } - has_many :ninjas, dependent: :destroy -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/models/ninja.rb b/Stephen Weil/Rails/Models/dojo_ninjas/app/models/ninja.rb deleted file mode 100644 index 4ff7e9f..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/app/models/ninja.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Ninja < ActiveRecord::Base - validates :first_name, presence: true, length: { maximum: 255 } - validates :last_name, presence: true, length: { maximum: 255 } - belongs_to :dojo -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/views/layouts/application.html.erb b/Stephen Weil/Rails/Models/dojo_ninjas/app/views/layouts/application.html.erb deleted file mode 100644 index 40d7e51..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoNinjas - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/bin/rails b/Stephen Weil/Rails/Models/dojo_ninjas/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/bin/setup b/Stephen Weil/Rails/Models/dojo_ninjas/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config.ru b/Stephen Weil/Rails/Models/dojo_ninjas/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/config/application.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/application.rb deleted file mode 100644 index 156a9d5..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoNinjas - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/boot.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/database.yml b/Stephen Weil/Rails/Models/dojo_ninjas/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/config/environment.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/development.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/production.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/test.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/cookies_serializer.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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 diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/session_store.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/session_store.rb deleted file mode 100644 index 313a66f..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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: '_dojo_ninjas_session' diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/wrap_parameters.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/config/routes.rb b/Stephen Weil/Rails/Models/dojo_ninjas/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/secrets.yml b/Stephen Weil/Rails/Models/dojo_ninjas/config/secrets.yml deleted file mode 100644 index e2e1522..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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: d0ed38b67a51b3514481c9189dae710cb0ec9ab67eb7883e6760253aef7e4fc1c81057ddb2f9fb2fe04a9fdcbddc994d5e80a220eff61d4fe0860b4c7ad5c692 - -test: - secret_key_base: 3fd0a68b053e89c5fc3b9d00c355ff64d087ba9a297c95b2948130aa5a59b8fdf45b07f40f21cfd26d90dd7d6a594c45399f5b613a5c77c748abc214ad8f6085 - -# 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/Stephen Weil/Rails/Models/dojo_ninjas/db/migrate/20171129210400_create_dojos.rb b/Stephen Weil/Rails/Models/dojo_ninjas/db/migrate/20171129210400_create_dojos.rb deleted file mode 100644 index ece0705..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/db/migrate/20171129210400_create_dojos.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :name - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/db/migrate/20171129210425_create_ninjas.rb b/Stephen Weil/Rails/Models/dojo_ninjas/db/migrate/20171129210425_create_ninjas.rb deleted file mode 100644 index 8334127..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/db/migrate/20171129210425_create_ninjas.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateNinjas < ActiveRecord::Migration - def change - create_table :ninjas do |t| - t.string :first_name - t.string :last_name - t.references :dojo, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/db/schema.rb b/Stephen Weil/Rails/Models/dojo_ninjas/db/schema.rb deleted file mode 100644 index 2b48cd0..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/db/schema.rb +++ /dev/null @@ -1,34 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129210425) do - - create_table "dojos", force: :cascade do |t| - t.string "name" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "ninjas", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.integer "dojo_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "ninjas", ["dojo_id"], name: "index_ninjas_on_dojo_id" - -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/db/seeds.rb b/Stephen Weil/Rails/Models/dojo_ninjas/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/public/404.html b/Stephen Weil/Rails/Models/dojo_ninjas/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/public/422.html b/Stephen Weil/Rails/Models/dojo_ninjas/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/public/500.html b/Stephen Weil/Rails/Models/dojo_ninjas/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/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/Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/dojos.yml b/Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/dojos.yml deleted file mode 100644 index 07bb5b1..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/dojos.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - city: MyString - state: MyString - -two: - name: MyString - city: MyString - state: MyString diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/ninjas.yml b/Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/ninjas.yml deleted file mode 100644 index ddd337f..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/ninjas.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - dojo_id: - -two: - first_name: MyString - last_name: MyString - dojo_id: diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/models/dojo_test.rb b/Stephen Weil/Rails/Models/dojo_ninjas/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/models/ninja_test.rb b/Stephen Weil/Rails/Models/dojo_ninjas/test/models/ninja_test.rb deleted file mode 100644 index d21c152..0000000 --- a/Stephen Weil/Rails/Models/dojo_ninjas/test/models/ninja_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class NinjaTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Stephen Weil/Rails/Models/optimize/.gitignore b/Stephen Weil/Rails/Models/optimize/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Stephen Weil/Rails/Models/optimize/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Stephen Weil/Rails/Models/optimize/Gemfile b/Stephen Weil/Rails/Models/optimize/Gemfile deleted file mode 100644 index b6bd2a4..0000000 --- a/Stephen Weil/Rails/Models/optimize/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -gem 'hirb' - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Stephen Weil/Rails/Models/optimize/Gemfile.lock b/Stephen Weil/Rails/Models/optimize/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Stephen Weil/Rails/Models/optimize/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Stephen Weil/Rails/Models/optimize/README.rdoc b/Stephen Weil/Rails/Models/optimize/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Stephen Weil/Rails/Models/optimize/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Stephen Weil/Rails/Models/optimize/Rakefile b/Stephen Weil/Rails/Models/optimize/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/app/assets/javascripts/application.js b/Stephen Weil/Rails/Models/optimize/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Stephen Weil/Rails/Models/optimize/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Stephen Weil/Rails/Models/optimize/app/assets/stylesheets/application.css b/Stephen Weil/Rails/Models/optimize/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Stephen Weil/Rails/Models/optimize/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 any plugin's vendor/assets/stylesheets directory 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/Stephen Weil/Rails/Models/optimize/app/controllers/application_controller.rb b/Stephen Weil/Rails/Models/optimize/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/app/models/player.rb b/Stephen Weil/Rails/Models/optimize/app/models/player.rb deleted file mode 100644 index b30fdc9..0000000 --- a/Stephen Weil/Rails/Models/optimize/app/models/player.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Player < ActiveRecord::Base - belongs_to :team -end diff --git a/Stephen Weil/Rails/Models/optimize/app/models/team.rb b/Stephen Weil/Rails/Models/optimize/app/models/team.rb deleted file mode 100644 index 25bddeb..0000000 --- a/Stephen Weil/Rails/Models/optimize/app/models/team.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Team < ActiveRecord::Base - has_many :players -end diff --git a/Stephen Weil/Rails/Models/optimize/app/views/layouts/application.html.erb b/Stephen Weil/Rails/Models/optimize/app/views/layouts/application.html.erb deleted file mode 100644 index 7fc9d5f..0000000 --- a/Stephen Weil/Rails/Models/optimize/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Optimize - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Stephen Weil/Rails/Models/optimize/bin/rails b/Stephen Weil/Rails/Models/optimize/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Stephen Weil/Rails/Models/optimize/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/optimize/bin/setup b/Stephen Weil/Rails/Models/optimize/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Stephen Weil/Rails/Models/optimize/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Stephen Weil/Rails/Models/optimize/config.ru b/Stephen Weil/Rails/Models/optimize/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/config/application.rb b/Stephen Weil/Rails/Models/optimize/config/application.rb deleted file mode 100644 index 82f8fb1..0000000 --- a/Stephen Weil/Rails/Models/optimize/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Optimize - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Stephen Weil/Rails/Models/optimize/config/boot.rb b/Stephen Weil/Rails/Models/optimize/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Stephen Weil/Rails/Models/optimize/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Stephen Weil/Rails/Models/optimize/config/database.yml b/Stephen Weil/Rails/Models/optimize/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/config/environment.rb b/Stephen Weil/Rails/Models/optimize/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/config/environments/development.rb b/Stephen Weil/Rails/Models/optimize/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Stephen Weil/Rails/Models/optimize/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Stephen Weil/Rails/Models/optimize/config/environments/production.rb b/Stephen Weil/Rails/Models/optimize/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Stephen Weil/Rails/Models/optimize/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Stephen Weil/Rails/Models/optimize/config/environments/test.rb b/Stephen Weil/Rails/Models/optimize/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Stephen Weil/Rails/Models/optimize/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Stephen Weil/Rails/Models/optimize/config/initializers/cookies_serializer.rb b/Stephen Weil/Rails/Models/optimize/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Stephen Weil/Rails/Models/optimize/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 diff --git a/Stephen Weil/Rails/Models/optimize/config/initializers/session_store.rb b/Stephen Weil/Rails/Models/optimize/config/initializers/session_store.rb deleted file mode 100644 index 7e5d399..0000000 --- a/Stephen Weil/Rails/Models/optimize/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: '_optimize_session' diff --git a/Stephen Weil/Rails/Models/optimize/config/initializers/wrap_parameters.rb b/Stephen Weil/Rails/Models/optimize/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/config/routes.rb b/Stephen Weil/Rails/Models/optimize/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Stephen Weil/Rails/Models/optimize/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Stephen Weil/Rails/Models/optimize/config/secrets.yml b/Stephen Weil/Rails/Models/optimize/config/secrets.yml deleted file mode 100644 index 55be0ac..0000000 --- a/Stephen Weil/Rails/Models/optimize/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: 9ac132e36f303e6573b90aff7b3870f69329e2ac04c68a5f2f6fea7b637a146d4c3cbdb9177d69a2adc9065c1de6d5732336be7f76743612dd8dd67847aa0794 - -test: - secret_key_base: fa73279d6a405bc464499d4ac3ff8466fe0efaf27824802e4400db1fc5a72c4f7001b15fef967054c8d1ef8434ce0bec7f6569ce2c6e6153f2feeb350a11ab83 - -# 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/Stephen Weil/Rails/Models/optimize/db/migrate/20171129231623_create_teams.rb b/Stephen Weil/Rails/Models/optimize/db/migrate/20171129231623_create_teams.rb deleted file mode 100644 index 5f7137c..0000000 --- a/Stephen Weil/Rails/Models/optimize/db/migrate/20171129231623_create_teams.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateTeams < ActiveRecord::Migration - def change - create_table :teams do |t| - t.string :name - t.string :mascot - t.string :stadium - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/optimize/db/migrate/20171129231701_create_players.rb b/Stephen Weil/Rails/Models/optimize/db/migrate/20171129231701_create_players.rb deleted file mode 100644 index 9949aad..0000000 --- a/Stephen Weil/Rails/Models/optimize/db/migrate/20171129231701_create_players.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePlayers < ActiveRecord::Migration - def change - create_table :players do |t| - t.string :name - t.references :team, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/optimize/db/schema.rb b/Stephen Weil/Rails/Models/optimize/db/schema.rb deleted file mode 100644 index a0d5316..0000000 --- a/Stephen Weil/Rails/Models/optimize/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129231701) do - - create_table "players", force: :cascade do |t| - t.string "name" - t.integer "team_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "players", ["team_id"], name: "index_players_on_team_id" - - create_table "teams", force: :cascade do |t| - t.string "name" - t.string "mascot" - t.string "stadium" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Stephen Weil/Rails/Models/optimize/db/seeds.rb b/Stephen Weil/Rails/Models/optimize/db/seeds.rb deleted file mode 100644 index ccd3c47..0000000 --- a/Stephen Weil/Rails/Models/optimize/db/seeds.rb +++ /dev/null @@ -1,110 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) -require 'open-uri' -teams = [ - ["Atlanta Hawks", "Skyhawk", "Philips Arena"], - ["Boston Celtics", "Lucky the Leprechaun", "TD Garden"], - ["Brooklyn Nets", "BrooklyKnight", "Barclays Center"], - ["Charlotte Hornets", "Hugo the Hornet", "Spectrum Center"], - ["Chicago Bulls", "Benny the Bull", "United Center"], - ["Cleveland Cavaliers", "Moondog", "Quicken Loans Arena"], - ["Dallas Mavericks", "Champ", "American Airlines Center"], - ["Denver Nuggets", "Rocky the Mountain Lion", "Pepsi Center"], - ["Detroit Pistons", "Hooper", "The Palace of Auburn Hills"], - ["Golden State Warriors", "Thunder", "Oracle Arena"], - ["Houston Rockets", "Clutch", "Toyota Center"], - ["Indiana Pacers", "Boomer the Panther", "Bankers Life Fieldhouse"], - ["Los Angeles Clippers", "Chuck", "Staples Center"], - ["Los Angeles Lakers", "Jack Nicholson", "Staples Center"], - ["Memphis Grizzlies", "Griz", "FedExForum"], - ["Miami Heat", "Burnie", "American Airlines Arena"], - ["Milwaukee Bucks", "Bango", "BMO Harris Bradley Center"], - ["Minnesota Timberwolves", "Crunch the Wolf", "Target Center"], - ["New Orleans Pelicans", "Pierre the Pelican", "Smoothie King Center"], - ["New York Knicks", "Spike Lee", "Madison Square Garden"], - ["Oklahoma City Thunder", "Rumble the Bison", "Chesapeake Energy Arena"], - ["Orlando Magic", "Stuff the Magic Dragon", "Amway Center"], - ["Philadelphia 76ers", "Franklin the Dog", "Wells Fargo Center Philadelphia"], - ["Phoenix Suns", "The Suns Gorilla", "Talking Stick Resort Arena"], - ["Portland Trail Blazers", "Blaze the Trail Cat", "Moda Center"], - ["Sacramento Kings", "Slamson the Lion", "Golden 1 Center"], - ["San Antonio Spurs", "The Coyote", "AT&T Center"], - ["Toronto Raptors", "Raptor", "Air Canada Centre"], - ["Utah Jazz", "Jazz Bear", "Vivint Smart Home Arena"], - ["Washington Wizards", "G. Wiz", "Verizon Center"] -] -# Here, we are using the Nokogiri gem (already comes with Rails), to scrape the ESPN website for the list of players. -# For more information on Nokogiri, you can go to their documentation or visit http://www.nokogiri.org/ -atlanta_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/atl/atlanta-hawks")).css("td.sortcell") -boston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bos/boston-celtics")).css("td.sortcell") -brooklyn_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bkn/brooklyn-nets")).css("td.sortcell") -charlotte_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cha/charlotte-hornets")).css("td.sortcell") -chicago_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/chi/chicago-bulls")).css("td.sortcell") -cleveland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cle/cleveland-cavaliers")).css("td.sortcell") -dallas_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/dal/dallas-mavericks")).css("td.sortcell") -denver_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/den/denver-nuggets")).css("td.sortcell") -detroit_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/det/detroit-pistons")).css("td.sortcell") -warriors_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/gs/golden-state-warriors")).css("td.sortcell") -houston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/hou/houston-rockets")).css("td.sortcell") -indiana_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ind/indiana-pacers")).css("td.sortcell") -clippers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lac/la-clippers")).css("td.sortcell") -lakers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lal/los-angeles-lakers")).css("td.sortcell") -memphis_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mem/memphis-grizzlies")).css("td.sortcell") -miami_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mia/miami-heat")).css("td.sortcell") -milwaukee_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mil/milwaukee-bucks")).css("td.sortcell") -minnesota_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/min/minnesota-timberwolves")).css("td.sortcell") -nola_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/no/new-orleans-pelicans")).css("td.sortcell") -knicks_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ny/new-york-knicks")).css("td.sortcell") -okc_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/okc/oklahoma-city-thunder")).css("td.sortcell") -orlando_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/orl/orlando-magic")).css("td.sortcell") -phili_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phi/philadelphia-76ers")).css("td.sortcell") -phoenix_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phx/phoenix-suns")).css("td.sortcell") -portland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/por/portland-trail-blazers")).css("td.sortcell") -sacramento_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sac/sacramento-kings")).css("td.sortcell") -spurs_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sa/san-antonio-spurs")).css("td.sortcell") -toronto_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/tor/toronto-raptors")).css("td.sortcell") -utah_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/utah/utah-jazz")).css("td.sortcell") -washington_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/wsh/washington-wizards")).css("td.sortcell") -players = [ - atlanta_players, - boston_players, - brooklyn_players, - charlotte_players, - chicago_players, - cleveland_players, - dallas_players, - denver_players, - detroit_players, - warriors_players, - houston_players, - indiana_players, - clippers_players, - lakers_players, - memphis_players, - miami_players, - milwaukee_players, - minnesota_players, - nola_players, - knicks_players, - okc_players, - orlando_players, - phili_players, - phoenix_players, - portland_players, - sacramento_players, - spurs_players, - toronto_players, - utah_players, - washington_players -] -players.each_with_index do |roster, index| - Team.create(name: teams[index][0], mascot: teams[index][1], stadium: teams[index][2]) - roster.each do |player| - Team.last.players.create(name: player.text) - end -end diff --git a/Stephen Weil/Rails/Models/optimize/public/404.html b/Stephen Weil/Rails/Models/optimize/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/public/422.html b/Stephen Weil/Rails/Models/optimize/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/public/500.html b/Stephen Weil/Rails/Models/optimize/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Stephen Weil/Rails/Models/optimize/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/Stephen Weil/Rails/Models/optimize/test/fixtures/players.yml b/Stephen Weil/Rails/Models/optimize/test/fixtures/players.yml deleted file mode 100644 index 56a4719..0000000 --- a/Stephen Weil/Rails/Models/optimize/test/fixtures/players.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - team_id: - -two: - name: MyString - team_id: diff --git a/Stephen Weil/Rails/Models/optimize/test/fixtures/teams.yml b/Stephen Weil/Rails/Models/optimize/test/fixtures/teams.yml deleted file mode 100644 index d9c869d..0000000 --- a/Stephen Weil/Rails/Models/optimize/test/fixtures/teams.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - mascot: MyString - stadium: MyString - -two: - name: MyString - mascot: MyString - stadium: MyString diff --git a/Stephen Weil/Rails/Models/optimize/test/models/player_test.rb b/Stephen Weil/Rails/Models/optimize/test/models/player_test.rb deleted file mode 100644 index 3cf71d7..0000000 --- a/Stephen Weil/Rails/Models/optimize/test/models/player_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PlayerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Stephen Weil/Rails/Models/optimize/test/models/team_test.rb b/Stephen Weil/Rails/Models/optimize/test/models/team_test.rb deleted file mode 100644 index 8b101cb..0000000 --- a/Stephen Weil/Rails/Models/optimize/test/models/team_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TeamTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Stephen Weil/Rails/Models/user_login_project/.gitignore b/Stephen Weil/Rails/Models/user_login_project/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Stephen Weil/Rails/Models/user_login_project/Gemfile b/Stephen Weil/Rails/Models/user_login_project/Gemfile deleted file mode 100644 index 7415088..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - gem 'hirb' - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/Stephen Weil/Rails/Models/user_login_project/Gemfile.lock b/Stephen Weil/Rails/Models/user_login_project/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Stephen Weil/Rails/Models/user_login_project/README.rdoc b/Stephen Weil/Rails/Models/user_login_project/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Stephen Weil/Rails/Models/user_login_project/Rakefile b/Stephen Weil/Rails/Models/user_login_project/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/app/assets/javascripts/application.js b/Stephen Weil/Rails/Models/user_login_project/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Stephen Weil/Rails/Models/user_login_project/app/assets/stylesheets/application.css b/Stephen Weil/Rails/Models/user_login_project/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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 any plugin's vendor/assets/stylesheets directory 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/Stephen Weil/Rails/Models/user_login_project/app/controllers/application_controller.rb b/Stephen Weil/Rails/Models/user_login_project/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/app/models/user.rb b/Stephen Weil/Rails/Models/user_login_project/app/models/user.rb deleted file mode 100644 index 3274600..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/app/models/user.rb +++ /dev/null @@ -1,4 +0,0 @@ -class User < ActiveRecord::Base - validates :first_name, :last_name, :email_address, presence: true, length: { minimum: 2 } - validates :age, presence: true, numericality: { greater_than_or_equal_to: 10, less_than_or_equal_to: 150 } -end diff --git a/Stephen Weil/Rails/Models/user_login_project/app/views/layouts/application.html.erb b/Stephen Weil/Rails/Models/user_login_project/app/views/layouts/application.html.erb deleted file mode 100644 index 03b8954..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - UserLoginProject - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Stephen Weil/Rails/Models/user_login_project/bin/rails b/Stephen Weil/Rails/Models/user_login_project/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/user_login_project/bin/setup b/Stephen Weil/Rails/Models/user_login_project/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Stephen Weil/Rails/Models/user_login_project/config.ru b/Stephen Weil/Rails/Models/user_login_project/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/config/application.rb b/Stephen Weil/Rails/Models/user_login_project/config/application.rb deleted file mode 100644 index 49c5e84..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module UserLoginProject - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Stephen Weil/Rails/Models/user_login_project/config/boot.rb b/Stephen Weil/Rails/Models/user_login_project/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Stephen Weil/Rails/Models/user_login_project/config/database.yml b/Stephen Weil/Rails/Models/user_login_project/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/config/environment.rb b/Stephen Weil/Rails/Models/user_login_project/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/config/environments/development.rb b/Stephen Weil/Rails/Models/user_login_project/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Stephen Weil/Rails/Models/user_login_project/config/environments/production.rb b/Stephen Weil/Rails/Models/user_login_project/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Stephen Weil/Rails/Models/user_login_project/config/environments/test.rb b/Stephen Weil/Rails/Models/user_login_project/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Stephen Weil/Rails/Models/user_login_project/config/initializers/cookies_serializer.rb b/Stephen Weil/Rails/Models/user_login_project/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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 diff --git a/Stephen Weil/Rails/Models/user_login_project/config/initializers/session_store.rb b/Stephen Weil/Rails/Models/user_login_project/config/initializers/session_store.rb deleted file mode 100644 index d692eec..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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: '_user_login_project_session' diff --git a/Stephen Weil/Rails/Models/user_login_project/config/initializers/wrap_parameters.rb b/Stephen Weil/Rails/Models/user_login_project/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/config/routes.rb b/Stephen Weil/Rails/Models/user_login_project/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Stephen Weil/Rails/Models/user_login_project/config/secrets.yml b/Stephen Weil/Rails/Models/user_login_project/config/secrets.yml deleted file mode 100644 index 64339c8..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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: 6dc2604ae26992389dfa66ea72e5c033e1e35587114e8cbdf297b29eed7994a18c948dec48c9c769fcb85a2075be4147553fda0fe0817c748ad5165d75d01678 - -test: - secret_key_base: 5b548dfad8559b4e33403ebb66dd2c9bfbf82dfb79e5e24f9f0d997cdbdc95a92fa07aea3fe7a540a74ddab5137cf7c84c64a7bc652e02ed01e3dbdda4137e4b - -# 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/Stephen Weil/Rails/Models/user_login_project/db/migrate/20171129201433_create_users.rb b/Stephen Weil/Rails/Models/user_login_project/db/migrate/20171129201433_create_users.rb deleted file mode 100644 index 349b478..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/db/migrate/20171129201433_create_users.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email_address - t.integer :age - - t.timestamps null: false - end - end -end diff --git a/Stephen Weil/Rails/Models/user_login_project/db/schema.rb b/Stephen Weil/Rails/Models/user_login_project/db/schema.rb deleted file mode 100644 index 3c5009f..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129201433) do - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email_address" - t.integer "age" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Stephen Weil/Rails/Models/user_login_project/db/seeds.rb b/Stephen Weil/Rails/Models/user_login_project/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Stephen Weil/Rails/Models/user_login_project/public/404.html b/Stephen Weil/Rails/Models/user_login_project/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/public/422.html b/Stephen Weil/Rails/Models/user_login_project/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/public/500.html b/Stephen Weil/Rails/Models/user_login_project/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/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/Stephen Weil/Rails/Models/user_login_project/test/fixtures/users.yml b/Stephen Weil/Rails/Models/user_login_project/test/fixtures/users.yml deleted file mode 100644 index 9fbebe7..0000000 --- a/Stephen Weil/Rails/Models/user_login_project/test/fixtures/users.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email_address: MyString - age: 1 - -two: - first_name: MyString - last_name: MyString - email_address: MyString - age: 1 diff --git a/Stephen Weil/Rails/Models/users.txt b/Stephen Weil/Rails/Models/users.txt deleted file mode 100644 index 36b3b57..0000000 --- a/Stephen Weil/Rails/Models/users.txt +++ /dev/null @@ -1,12 +0,0 @@ -User.create(first_name: "Stephen").errors.full_messages -user = User.new -user.age = 5 -user.save -user.errors.full_messages -user.valid? -User.all -User.first -User.last -User.order(first_name: :desc) -User.find(3).update(last_name: "Somethingelse").save -User.find(4).destroy diff --git a/Tamisha_Damas/Models_Specs/Gemfile b/Tamisha_Damas/Models_Specs/Gemfile deleted file mode 100644 index ac8e4ab..0000000 --- a/Tamisha_Damas/Models_Specs/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - gem 'rspec-rails' - gem 'factory_girl_rails'ß - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Personal Exercises/Number_Game.rb b/Tamisha_Damas/Personal Exercises/Number_Game.rb deleted file mode 100644 index 293bfed..0000000 --- a/Tamisha_Damas/Personal Exercises/Number_Game.rb +++ /dev/null @@ -1,47 +0,0 @@ -# The Number Game -# By Tamisha Damas - -# Get the player's name and Greet them by name -puts "Welcome to 'Get My Number!'" -print "What's your name?" -input = gets -name = input.chomp -puts "Welcome, #{name}!" - -# Store a random number for the player to guess -puts "I've got a random number between 1 and 100.", "Can you guess it?" -target_num = rand(100) + 1 - -# Keep track of how many guesses the player made. -num_guesses = 0 - -# Track wheter the player has guessed correctly. -guessed_it = false - -until num_guesses == 10 || guessed_it - - # Before each guess, let them know how many guesses they have left out of 10. - puts "You've got #{10 - num_guesses} guesses left" - # Prompt the player to make a guess as to what the target number is - print "Make a guess." - guess = gets.to_i - - num_guesses += 1 - - # Compare player's guess to random target Number - # Print the appropriate message - if guess < target_num - puts "Oops. Your guess is too LOW." - elsif guess > target_num - puts "Oops. Your guess was too HIGH." - elsif guess == target_num - puts "Great job, #{name}!" - puts "You guessed my number in #{num_guesses} guesses." - guessed_it = true - end -end - -# If player ran out of turns, tell them what the number was. -unless guessed_it - puts "Sorry. You didn't get my number. (It was #{target_num}.)" -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/.gitignore b/Tamisha_Damas/Rails II/dojo_secrets/.gitignore deleted file mode 100644 index 5b61ab0..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/.gitignore +++ /dev/null @@ -1,13 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails II/dojo_secrets/Gemfile b/Tamisha_Damas/Rails II/dojo_secrets/Gemfile deleted file mode 100644 index cfe08c8..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/Gemfile +++ /dev/null @@ -1,51 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use postgresql as the database for Active Record -gem 'pg', '~> 0.18' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'bcrypt', '~> 3.1.7' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' - gem 'rspec-rails' - gem 'factory_girl_rails' - gem 'capybara' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/Gemfile.lock b/Tamisha_Damas/Rails II/dojo_secrets/Gemfile.lock deleted file mode 100644 index af15293..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/Gemfile.lock +++ /dev/null @@ -1,218 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - capybara (2.15.4) - addressable - mini_mime (>= 0.1.3) - nokogiri (>= 1.3.3) - rack (>= 1.0.0) - rack-test (>= 0.5.4) - xpath (~> 2.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - diff-lcs (1.3) - erubis (2.7.0) - execjs (2.7.0) - factory_girl (4.8.1) - activesupport (>= 3.0.0) - factory_girl_rails (4.8.0) - factory_girl (~> 4.8.0) - railties (>= 3.0.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.0) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_mime (0.1.4) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - pg (0.21.0) - public_suffix (3.0.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - rspec-core (3.7.0) - rspec-support (~> 3.7.0) - rspec-expectations (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-mocks (3.7.0) - diff-lcs (>= 1.2.0, < 2.0) - rspec-support (~> 3.7.0) - rspec-rails (3.7.1) - actionpack (>= 3.0) - activesupport (>= 3.0) - railties (>= 3.0) - rspec-core (~> 3.7.0) - rspec-expectations (~> 3.7.0) - rspec-mocks (~> 3.7.0) - rspec-support (~> 3.7.0) - rspec-support (3.7.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - xpath (2.1.0) - nokogiri (~> 1.3) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - capybara - coffee-rails (~> 4.1.0) - factory_girl_rails - hirb - jbuilder (~> 2.0) - jquery-rails - pg (~> 0.18) - rails (= 4.2.7) - rails-footnotes (~> 4.0) - rspec-rails - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails II/dojo_secrets/README.rdoc b/Tamisha_Damas/Rails II/dojo_secrets/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails II/dojo_secrets/Rakefile b/Tamisha_Damas/Rails II/dojo_secrets/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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/Tamisha_Damas/Rails II/dojo_secrets/app/assets/javascripts/application.js b/Tamisha_Damas/Rails II/dojo_secrets/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails II/dojo_secrets/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/application_controller.rb b/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/application_controller.rb deleted file mode 100644 index 26b5b69..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/application_controller.rb +++ /dev/null @@ -1,10 +0,0 @@ -class ApplicationController < ActionController::Base - protect_from_forgery with: :exception - - def current_user - #How to get current user from session. - User.find(session[:user_id]) if session[:user_id] - end - - helper_method :current_user -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/sessions_controller.rb b/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/sessions_controller.rb deleted file mode 100644 index 0c70697..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/sessions_controller.rb +++ /dev/null @@ -1,29 +0,0 @@ -class SessionsController < ApplicationController - def new - # render login page - end - def create - # Log User In - @user = User.find_by_email(params[:email]) - # if authenticate true - # save user id to session - # redirect to users profile page - if @user && @user.authenticate(params[:password]) - session[:user_id] = @user.id - redirect_to "/users/#{@user.id}" - else - # if authenticate false - # add an error message -> flash[:errors] = ["Invalid"] - # redirect to login page - flash[:errors] = ["Invalid Combination"] - redirect_to "/sessions/new" - end - end - def destroy - # Log User out - reset_session - redirect_to "/sessions/new" - # set session[:user_id] to null - # redirect to login page - end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/users_controller.rb b/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/users_controller.rb deleted file mode 100644 index 40fcea0..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/users_controller.rb +++ /dev/null @@ -1,16 +0,0 @@ -class UsersController < ApplicationController - def new - #This will show the registration page, to register the User. - - end - - def create - #This will save them to the database. - - end - - def show - @user = User.find(params[:id]) - end - -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/models/user.rb b/Tamisha_Damas/Rails II/dojo_secrets/app/models/user.rb deleted file mode 100644 index 895ae65..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/models/user.rb +++ /dev/null @@ -1,13 +0,0 @@ -class User < ActiveRecord::Base - has_secure_password - - before_validation :downcase_email - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :name, presence: true, length: {in: 2..20} - validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } - - private - def downcase_email - self.email = email.downcase if email.present? - end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails II/dojo_secrets/app/views/layouts/application.html.erb deleted file mode 100644 index fac3c15..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/views/layouts/application.html.erb +++ /dev/null @@ -1,15 +0,0 @@ - -<% if flash[:errors] %> - <% flash[:errors].each do |e| %> - <%= e %> - <% end %> -<% end %> -<% if current_user %> -
- - - -
-<% end %> -<%= yield %> - diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/views/sessions/destroy.html.erb b/Tamisha_Damas/Rails II/dojo_secrets/app/views/sessions/destroy.html.erb deleted file mode 100644 index 76c21ae..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/views/sessions/destroy.html.erb +++ /dev/null @@ -1,5 +0,0 @@ -
- - - -
diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/views/sessions/new.html.erb b/Tamisha_Damas/Rails II/dojo_secrets/app/views/sessions/new.html.erb deleted file mode 100644 index 2baac31..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/views/sessions/new.html.erb +++ /dev/null @@ -1,7 +0,0 @@ -

Sessions#new

-
- - - - -
diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/create.html.erb b/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/create.html.erb deleted file mode 100644 index 48ea02e..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/create.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#create

-

Find me in app/views/users/create.html.erb

diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/new.html.erb b/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/new.html.erb deleted file mode 100644 index c21a1ad..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/new.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#new

-

Find me in app/views/users/new.html.erb

diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/show.html.erb b/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/show.html.erb deleted file mode 100644 index 54ded79..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/app/views/users/show.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -

Users#show

-

Find me in app/views/users/show.html.erb

-

<%= @user.name %>

diff --git a/Tamisha_Damas/Rails II/dojo_secrets/bin/rails b/Tamisha_Damas/Rails II/dojo_secrets/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails II/dojo_secrets/bin/setup b/Tamisha_Damas/Rails II/dojo_secrets/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config.ru b/Tamisha_Damas/Rails II/dojo_secrets/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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/Tamisha_Damas/Rails II/dojo_secrets/config/application.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/application.rb deleted file mode 100644 index 7b88c7a..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/config/application.rb +++ /dev/null @@ -1,35 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require "rails" -# Pick the frameworks you want: -require "active_model/railtie" -require "active_job/railtie" -require "active_record/railtie" -require "action_controller/railtie" -require "action_mailer/railtie" -require "action_view/railtie" -require "sprockets/railtie" -# require "rails/test_unit/railtie" - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoSecrets - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/boot.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/database.yml b/Tamisha_Damas/Rails II/dojo_secrets/config/database.yml deleted file mode 100644 index 63dcf00..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/config/database.yml +++ /dev/null @@ -1,85 +0,0 @@ -# PostgreSQL. Versions 8.2 and up are supported. -# -# Install the pg driver: -# gem install pg -# On OS X with Homebrew: -# gem install pg -- --with-pg-config=/usr/local/bin/pg_config -# On OS X with MacPorts: -# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config -# On Windows: -# gem install pg -# Choose the win32 build. -# Install PostgreSQL and put its /bin directory on your path. -# -# Configure Using Gemfile -# gem 'pg' -# -default: &default - adapter: postgresql - encoding: unicode - # For details on connection pooling, see rails configuration guide - # http://guides.rubyonrails.org/configuring.html#database-pooling - pool: 5 - -development: - <<: *default - database: dojo_secrets_development - - # The specified database role being used to connect to postgres. - # To create additional roles in postgres see `$ createuser --help`. - # When left blank, postgres will use the default role. This is - # the same name as the operating system user that initialized the database. - #username: dojo_secrets - - # The password associated with the postgres role (username). - #password: - - # Connect on a TCP socket. Omitted by default since the client uses a - # domain socket that doesn't need configuration. Windows does not have - # domain sockets, so uncomment these lines. - #host: localhost - - # The TCP port the server listens on. Defaults to 5432. - # If your server runs on a different port number, change accordingly. - #port: 5432 - - # Schema search path. The server defaults to $user,public - #schema_search_path: myapp,sharedapp,public - - # Minimum log levels, in increasing order: - # debug5, debug4, debug3, debug2, debug1, - # log, notice, warning, error, fatal, and panic - # Defaults to warning. - #min_messages: notice - -# 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: dojo_secrets_test - -# As with config/secrets.yml, you never want to store sensitive information, -# like your database password, in your source code. If your source code is -# ever seen by anyone, they now have access to your database. -# -# Instead, provide the password as a unix environment variable when you boot -# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database -# for a full rundown on how to provide these environment variables in a -# production deployment. -# -# On Heroku and other platform providers, you may have a full connection URL -# available as an environment variable. For example: -# -# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" -# -# You can use this database configuration with: -# -# production: -# url: <%= ENV['DATABASE_URL'] %> -# -production: - <<: *default - database: dojo_secrets_production - username: dojo_secrets - password: <%= ENV['DOJO_SECRETS_DATABASE_PASSWORD'] %> diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/environment.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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/Tamisha_Damas/Rails II/dojo_secrets/config/environments/development.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails II/dojo_secrets/config/environments/production.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails II/dojo_secrets/config/environments/test.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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 diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/session_store.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/session_store.rb deleted file mode 100644 index faf497a..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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: '_dojo_secrets_session' diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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/Tamisha_Damas/Rails II/dojo_secrets/config/routes.rb b/Tamisha_Damas/Rails II/dojo_secrets/config/routes.rb deleted file mode 100644 index 7f6a33a..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/config/routes.rb +++ /dev/null @@ -1,80 +0,0 @@ -Rails.application.routes.draw do - root 'users#new' - - # New USer - get 'register' => 'users#new', as: 'new_register' - get 'users/new' => 'users#new' - - # Create User - post 'register' => 'users#create', as: 'register' - post 'users' => 'users#create' - - # Show User - get 'users/:id' => 'users#show' - - # New Login - get 'login' => 'sessions#new', as: 'new_login' - get 'sessions/new' => 'sessions#new' - - # Login - post 'login' => 'sessions#create', as: 'login' - post 'sessions' => 'sessions#create' - - # Logout - delete 'logout' => 'sessions#destroy', as: 'logout' - delete 'sessions' => 'sessions#destroy' - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/secrets.yml b/Tamisha_Damas/Rails II/dojo_secrets/config/secrets.yml deleted file mode 100644 index 2bbff66..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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: 2c747b4b3f6732d8fbdf457162c6c80e461e751725053a396230cdd9db28ccb86df87f5b30dc3931065e91a08de2bac2cfed907bb3856e0cd961c2c90457f06c - -test: - secret_key_base: 8cd361e241fdeed12d6b641f8072e4b9b9770a8c07a4fc1d76f144c3629f964699f1ef9d7702a6f6d3845d70c1a8355d23cca2c104b1f1c47646cabb0cd4c2e7 - -# 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/Tamisha_Damas/Rails II/dojo_secrets/db/migrate/20171019230004_create_users.rb b/Tamisha_Damas/Rails II/dojo_secrets/db/migrate/20171019230004_create_users.rb deleted file mode 100644 index c9fe2c1..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/db/migrate/20171019230004_create_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :name - t.string :email - t.string :password_digest - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/db/schema.rb b/Tamisha_Damas/Rails II/dojo_secrets/db/schema.rb deleted file mode 100644 index b212bad..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/db/schema.rb +++ /dev/null @@ -1,27 +0,0 @@ -# encoding: UTF-8 -# 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: 20171019230004) do - - # These are extensions that must be enabled in order to support this database - enable_extension "plpgsql" - - create_table "users", force: :cascade do |t| - t.string "name" - t.string "email" - t.string "password_digest" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/db/seeds.rb b/Tamisha_Damas/Rails II/dojo_secrets/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails II/dojo_secrets/public/404.html b/Tamisha_Damas/Rails II/dojo_secrets/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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/Tamisha_Damas/Rails II/dojo_secrets/public/422.html b/Tamisha_Damas/Rails II/dojo_secrets/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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/Tamisha_Damas/Rails II/dojo_secrets/public/500.html b/Tamisha_Damas/Rails II/dojo_secrets/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/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/Tamisha_Damas/Rails II/dojo_secrets/spec/factories/users.rb b/Tamisha_Damas/Rails II/dojo_secrets/spec/factories/users.rb deleted file mode 100644 index 1afb90e..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/spec/factories/users.rb +++ /dev/null @@ -1,8 +0,0 @@ -FactoryGirl.define do - factory :user do - name "Oscar Vazquez" - email "oscar@gmail.com" - password "password" - password_confirmation "password" - end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/spec/features/authentication_spec.rb b/Tamisha_Damas/Rails II/dojo_secrets/spec/features/authentication_spec.rb deleted file mode 100644 index fec01ac..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/spec/features/authentication_spec.rb +++ /dev/null @@ -1,40 +0,0 @@ -require 'rails_helper' -feature 'authentication' do - before do - @user = create(:user) - end - feature "user sign-in" do - scenario 'visits sign-in page' do - visit '/sessions/new' - expect(page).to have_field('Email') - expect(page).to have_field('Password') - end - scenario 'logs in user if email/password combination is valid' do - log_in - expect(current_path).to eq("/users/#{@user.id}") - expect(page).to have_text(@user.name) - end - scenario 'does not sign in user if email is not found' do - log_in email: 'wrong email' - expect(current_path).to eq("/sessions/new") - expect(page).to have_text('Invalid Combination') - end - scenario 'does not sign in user if email/password combination is invalid' do - log_in password: 'wrong password' - expect(current_path).to eq("/sessions/new") - expect(page).to have_text('Invalid Combination') - end - end - feature "user to log out" do - before do - log_in - end - scenario 'displays "Log Out" button when user is logged on' do - expect(page).to have_button('Log Out') - end - scenario 'logs out user and redirects to login page' do - click_button 'Log Out' - expect(current_path).to eq('/sessions/new') - end - end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/spec/models/user_spec.rb b/Tamisha_Damas/Rails II/dojo_secrets/spec/models/user_spec.rb deleted file mode 100644 index f513146..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/spec/models/user_spec.rb +++ /dev/null @@ -1,38 +0,0 @@ -require 'rails_helper' -RSpec.describe User, type: :model do - context "with valid attributes" do - it "should save" do - expect(build(:user)).to be_valid - end - it 'automatically encrypts the password into the password_digest attribute' do - expect(build(:user).password_digest.present?).to eq(true) - end - it 'email as lowercase' do - expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') - end - end - context "with invalid attributes should not save if" do - it 'name is blank' do - expect(build(:user, name: '')).to be_invalid - end - it 'email is blank' do - expect(build(:user, email: '')).to be_invalid - end - it 'email format is wrong' do - emails = %w[@ user@ @example.com] - emails.each do |email| - expect(build(:user, email: email)).to be_invalid - end - end - it 'email is not unique' do - create(:user) - expect(build(:user)).to be_invalid - end - it 'password is blank' do - expect(build(:user, password: '')).to be_invalid - end - it "password doesn't match password_confirmation" do - expect(build(:user, password_confirmation: 'notpassword')).to be_invalid - end - end -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/spec/rails_helper.rb b/Tamisha_Damas/Rails II/dojo_secrets/spec/rails_helper.rb deleted file mode 100644 index 072c493..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/spec/rails_helper.rb +++ /dev/null @@ -1,59 +0,0 @@ -# This file is copied to spec/ when you run 'rails generate rspec:install' -require 'spec_helper' -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -# Prevent database truncation if the environment is production -abort("The Rails environment is running in production mode!") if Rails.env.production? -require 'rspec/rails' -# Add additional requires below this line. Rails is not loaded until this point! -require 'factory_girl_rails' - -# Requires supporting ruby files with custom matchers and macros, etc, in -# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are -# run as spec files by default. This means that files in spec/support that end -# in _spec.rb will both be required and run as specs, causing the specs to be -# run twice. It is recommended that you do not name files matching this glob to -# end with _spec.rb. You can configure this pattern with the --pattern -# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. -# -# The following line is provided for convenience purposes. It has the downside -# of increasing the boot-up time by auto-requiring all files in the support -# directory. Alternatively, in the individual `*_spec.rb` files, manually -# require only the support files necessary. -# -# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } - -# Checks for pending migrations and applies them before tests are run. -# If you are not using ActiveRecord, you can remove this line. -ActiveRecord::Migration.maintain_test_schema! - -RSpec.configure do |config| - # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures - config.include FactoryGirl::Syntax::Methods - config.fixture_path = "#{::Rails.root}/spec/fixtures" - - # If you're not using ActiveRecord, or you'd prefer not to run each of your - # examples within a transaction, remove the following line or assign false - # instead of true. - config.use_transactional_fixtures = true - - # RSpec Rails can automatically mix in different behaviours to your tests - # based on their file location, for example enabling you to call `get` and - # `post` in specs under `spec/controllers`. - # - # You can disable this behaviour by removing the line below, and instead - # explicitly tag your specs with their type, e.g.: - # - # RSpec.describe UsersController, :type => :controller do - # # ... - # end - # - # The different available types are documented in the features, such as in - # https://relishapp.com/rspec/rspec-rails/docs - config.infer_spec_type_from_file_location! - - # Filter lines from Rails gems in backtraces. - config.filter_rails_from_backtrace! - # arbitrary gems may also be filtered via: - # config.filter_gems_from_backtrace("gem name") -end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/spec/spec_helper.rb b/Tamisha_Damas/Rails II/dojo_secrets/spec/spec_helper.rb deleted file mode 100644 index ce250cd..0000000 --- a/Tamisha_Damas/Rails II/dojo_secrets/spec/spec_helper.rb +++ /dev/null @@ -1,111 +0,0 @@ -def log_in email: "oscar@gmail.com", password: "password" - visit '/sessions/new' unless current_path == "/sessions/new" - fill_in 'Email', with: email - fill_in 'Password', with: password - click_button 'Log In' -end -# The code below should already be included in your file -RSpec.configure do |config| - config.expect_with :rspec do |expectations| - expectations.include_chain_clauses_in_custom_matcher_descriptions = true - end - config.mock_with :rspec do |mocks| - mocks.verify_partial_doubles = true - end -end -# This file was generated by the `rails generate rspec:install` command. Conventionally, all -# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. -# The generated `.rspec` file contains `--require spec_helper` which will cause -# this file to always be loaded, without a need to explicitly require it in any -# files. -# -# Given that it is always loaded, you are encouraged to keep this file as -# light-weight as possible. Requiring heavyweight dependencies from this file -# will add to the boot time of your test suite on EVERY test run, even for an -# individual file that may not need all of that loaded. Instead, consider making -# a separate helper file that requires the additional dependencies and performs -# the additional setup, and require it from the spec files that actually need -# it. -# -# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration -RSpec.configure do |config| - # rspec-expectations config goes here. You can use an alternate - # assertion/expectation library such as wrong or the stdlib/minitest - # assertions if you prefer. - config.expect_with :rspec do |expectations| - # This option will default to `true` in RSpec 4. It makes the `description` - # and `failure_message` of custom matchers include text for helper methods - # defined using `chain`, e.g.: - # be_bigger_than(2).and_smaller_than(4).description - # # => "be bigger than 2 and smaller than 4" - # ...rather than: - # # => "be bigger than 2" - expectations.include_chain_clauses_in_custom_matcher_descriptions = true - end - - # rspec-mocks config goes here. You can use an alternate test double - # library (such as bogus or mocha) by changing the `mock_with` option here. - config.mock_with :rspec do |mocks| - # Prevents you from mocking or stubbing a method that does not exist on - # a real object. This is generally recommended, and will default to - # `true` in RSpec 4. - mocks.verify_partial_doubles = true - end - - # This option will default to `:apply_to_host_groups` in RSpec 4 (and will - # have no way to turn it off -- the option exists only for backwards - # compatibility in RSpec 3). It causes shared context metadata to be - # inherited by the metadata hash of host groups and examples, rather than - # triggering implicit auto-inclusion in groups with matching metadata. - config.shared_context_metadata_behavior = :apply_to_host_groups - -# The settings below are suggested to provide a good initial experience -# with RSpec, but feel free to customize to your heart's content. -=begin - # This allows you to limit a spec run to individual examples or groups - # you care about by tagging them with `:focus` metadata. When nothing - # is tagged with `:focus`, all examples get run. RSpec also provides - # aliases for `it`, `describe`, and `context` that include `:focus` - # metadata: `fit`, `fdescribe` and `fcontext`, respectively. - config.filter_run_when_matching :focus - - # Allows RSpec to persist some state between runs in order to support - # the `--only-failures` and `--next-failure` CLI options. We recommend - # you configure your source control system to ignore this file. - config.example_status_persistence_file_path = "spec/examples.txt" - - # Limits the available syntax to the non-monkey patched syntax that is - # recommended. For more details, see: - # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ - # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ - # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode - config.disable_monkey_patching! - - # Many RSpec users commonly either run the entire suite or an individual - # file, and it's useful to allow more verbose output when running an - # individual spec file. - if config.files_to_run.one? - # Use the documentation formatter for detailed output, - # unless a formatter has already been configured - # (e.g. via a command-line flag). - config.default_formatter = "doc" - end - - # Print the 10 slowest examples and example groups at the - # end of the spec run, to help surface which specs are running - # particularly slow. - config.profile_examples = 10 - - # Run specs in random order to surface order dependencies. If you find an - # order dependency and want to debug it, you can fix the order by providing - # the seed, which is printed after each run. - # --seed 1234 - config.order = :random - - # Seed global randomization in this process using the `--seed` CLI option. - # Setting this allows you to use `--seed` to deterministically reproduce - # test failures related to randomization by passing the same `--seed` value - # as the one that triggered the failure. - Kernel.srand config.seed -=end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/.gitignore b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Gemfile b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Gemfile deleted file mode 100644 index 394b9b1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Gemfile.lock b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Gemfile.lock deleted file mode 100644 index 9937b63..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Gemfile.lock +++ /dev/null @@ -1,176 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/README.rdoc b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Rakefile b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/controllers/users_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/controllers/users_controller.rb deleted file mode 100644 index 03d30e2..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/controllers/users_controller.rb +++ /dev/null @@ -1,22 +0,0 @@ -class UsersController < ApplicationController - def index - session[:count] ||= 0 - # session.clear - # index method will only render my index.html template - end - - def create - # here the user will enter their info onto the index.html template and when they click submit will be redirected to the show page, show.html - # their data saved into session from this create method will be rendered onto the html template. - # puts params - session[:survey] = params - session[:count] += 1 - - redirect_to '/result' - end - - def show - @survey = session[:survey] - @count = session[:count] - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/layouts/application.html.erb deleted file mode 100644 index 7247c82..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - SurveyForm - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/users/index.html.erb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/users/index.html.erb deleted file mode 100644 index b70e4a6..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/users/index.html.erb +++ /dev/null @@ -1,38 +0,0 @@ -

Welcome!

- -
- - - - - -
- - - - -
- - - - -
- - -
- - -
- - -
diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/users/show.html.erb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/users/show.html.erb deleted file mode 100644 index 9f76456..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/views/users/show.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

Thanks for submitting this form! You have submitted this form <%= @count %> times now.

- -

Submitted Information

- - - - - - - - - - - - - - - - - -
Name:<%= @survey['name'] %>
Dojo Location:<%= @survey['location'] %>
Favorite Language:<%= @survey['language'] %>
Comment:<%= @survey['comment'] %>
diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/rails b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/setup b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config.ru b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/application.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/application.rb deleted file mode 100644 index d948a28..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module SurveyForm - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/boot.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/database.yml b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environment.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/development.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/production.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/test.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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 diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/rails_footnotes.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/session_store.rb deleted file mode 100644 index a70bcd8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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: '_Survey_Form_session' diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/routes.rb deleted file mode 100644 index 2aa5fc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/routes.rb +++ /dev/null @@ -1,64 +0,0 @@ -Rails.application.routes.draw do - root 'users#index' - # index method is where we will render the template to be submitted - - post 'users' => 'users#create' - - get 'result' => 'users#show' - - resource :users - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/secrets.yml b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/secrets.yml deleted file mode 100644 index 4500074..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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: 3522640cad3b2992b5e8baba689ee2b1326dcd3d7c6c86d5ee8fe33549373b3ad41f4d1e91813a41879342034e2c7bd4dd6cb4fd84dbb6394501f4b8e6fab50a - -test: - secret_key_base: 4914538634f3a9a58ef7f57d6785434a3f1980848cfa52d7ad5b7d170b573469dcc3b734da154f4acc35b4fd2cab11f2178a5a6ee1f4c97425689c2c3d5627d8 - -# 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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/db/seeds.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/404.html b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/422.html b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/500.html b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/controllers/users_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/controllers/users_controller_test.rb deleted file mode 100644 index de78e39..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/controllers/users_controller_test.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'test_helper' - -class UsersControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get create" do - get :create - assert_response :success - end - - test "should get show" do - get :show - assert_response :success - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/.gitignore b/Tamisha_Damas/Rails/Controllers & Views /Time_display/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/Gemfile b/Tamisha_Damas/Rails/Controllers & Views /Time_display/Gemfile deleted file mode 100644 index 394b9b1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/Gemfile.lock b/Tamisha_Damas/Rails/Controllers & Views /Time_display/Gemfile.lock deleted file mode 100644 index 9937b63..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/Gemfile.lock +++ /dev/null @@ -1,176 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/README.rdoc b/Tamisha_Damas/Rails/Controllers & Views /Time_display/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/Rakefile b/Tamisha_Damas/Rails/Controllers & Views /Time_display/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/stylesheets/times.scss b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/stylesheets/times.scss deleted file mode 100644 index 8aca602..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/stylesheets/times.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Times controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/controllers/times_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/controllers/times_controller.rb deleted file mode 100644 index 2517879..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/controllers/times_controller.rb +++ /dev/null @@ -1,5 +0,0 @@ -class TimesController < ApplicationController - def main - @time = Time.new - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/helpers/times_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/helpers/times_helper.rb deleted file mode 100644 index db171a4..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/helpers/times_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module TimesHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/views/layouts/application.html.erb deleted file mode 100644 index 8b25576..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - TimeDisplay - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/views/times/main.html.erb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/views/times/main.html.erb deleted file mode 100644 index 6a8b703..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/views/times/main.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -
- -

The current time and date:

-

<%= @time.strftime("%b %d, %Y") %>

-

<%= @time.strftime("%I:%M %p") %>

-
diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/bundle b/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/rails b/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/rake b/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/setup b/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/spring b/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config.ru b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/application.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/application.rb deleted file mode 100644 index 94c66d8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module TimeDisplay - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/boot.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/database.yml b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environment.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/development.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/production.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/test.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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 diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/rails_footnotes.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/session_store.rb deleted file mode 100644 index 0d2498e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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: '_Time_display_session' diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/locales/en.yml b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/routes.rb deleted file mode 100644 index e5115e5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/routes.rb +++ /dev/null @@ -1,58 +0,0 @@ -Rails.application.routes.draw do - get 'times' => 'times#main' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/secrets.yml b/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/secrets.yml deleted file mode 100644 index e506b7d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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: 0e672e901b1d08ee0c6f5175cb3cec13fcc441712838bfff888fb7c723544aa70eec85839513ecd8f3f9435fa192fb8f5b92e22dc62a765ac72904ba5d5ba8a1 - -test: - secret_key_base: 4bfdb21bac95c8fd5ccaf947998e750d5bdf7049cae32d11a53ccbd4437e30b11e04db505199a66f14e0e4863d663b83f26e2713b62872b7f0c0dd9efecb00e6 - -# 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/Tamisha_Damas/Rails/Controllers & Views /Time_display/db/seeds.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/404.html b/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/422.html b/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/500.html b/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/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/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/robots.txt b/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/controllers/times_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/controllers/times_controller_test.rb deleted file mode 100644 index 649dafa..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/controllers/times_controller_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -class TimesControllerTest < ActionController::TestCase - test "should get main" do - get :main - assert_response :success - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/test_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/.gitignore b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Gemfile b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Gemfile deleted file mode 100644 index 394b9b1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Gemfile.lock b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Gemfile.lock deleted file mode 100644 index 9937b63..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Gemfile.lock +++ /dev/null @@ -1,176 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/README.rdoc b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Rakefile b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/stylesheets/dojos.scss b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/stylesheets/dojos.scss deleted file mode 100644 index 0964a70..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/stylesheets/dojos.scss +++ /dev/null @@ -1,10 +0,0 @@ -// Place all the styles related to the Dojos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ -th, td { - padding: 15px; -} -table, th, td { - border: 1px solid black; - border-collapse: collapse; -} diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/controllers/dojos_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/controllers/dojos_controller.rb deleted file mode 100644 index ef8a086..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,55 +0,0 @@ -class DojosController < ApplicationController - - def index - @count = Dojo.all.count - @dojos = Dojo.all - end - - def new - @dojo = Dojo.new - end - - def create - # you do not need to use instance variables in the create method because post - # doesn't render an HTML form. - - dojo = Dojo.new(dojo_params) - - if dojo.save - puts "Your form was successfully entered." - return redirect_to root_path - else - flash[:errors] = dojo.errors.full_messages - redirect_to :back - end - end - - def show - @dojo = Dojo.find(params[:id]) - end - - def edit - @dojo = Dojo.find(params[:id]) - end - - def update - @dojo = Dojo.find(params[:id]) - - if @dojo.update(dojo_params) - redirect_to root_path, notice: "You have successfully updated a Dojo!" - else - flash[:errors] = @dojo.errors.full_messages - redirect_to :back - end - end - - def destroy - Dojo.find(params[:id]).destroy - redirect_to :root - end - - private - def dojo_params - params.require(:dojo).permit(:branch, :street, :city, :state) - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/helpers/dojos_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/helpers/dojos_helper.rb deleted file mode 100644 index 194211a..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/helpers/dojos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DojosHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/models/dojo.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/models/dojo.rb deleted file mode 100644 index 178451f..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/models/dojo.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Dojo < ActiveRecord::Base - validates :branch, :street, :city, :state, presence: true - validates :state, length: { is: 2} -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/destroy.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/destroy.html.erb deleted file mode 100644 index 0079ae0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/destroy.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Dojos#destroy

-

Find me in app/views/dojos/destroy.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/edit.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/edit.html.erb deleted file mode 100644 index fc21b7d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/edit.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

Editing <%= @dojo.branch %>

- -<% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> -<% end %> - -
- - - - -
-
- - -
-
- - -
-
- - -
-
- -
-Home -Show diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/index.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/index.html.erb deleted file mode 100644 index 5e18ff3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/index.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Listing <%= @count %> Dojos!

- -<% if flash[:notice] %> -

<%= flash[:notice] %>

-<% end %> - - - - - - - - - <% @dojos.each do |dojo| %> - - - - - - - - <% end %> -
Coding Dojo BranchStreetCityStateAction
<%= dojo.branch %><%= dojo.street %><%= dojo.city %><%= dojo.state %>Show - Edit - Delete -
-
-
-New Dojo diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/new.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/new.html.erb deleted file mode 100644 index 68e69b7..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/new.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

New Dojo

- -<% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> -<% end %> - -
- - - -
-
- - -
-
- - -
-
- - -
-
- -
-
-
-Home diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/show.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/show.html.erb deleted file mode 100644 index efa0a42..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/dojos/show.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -

<%= @dojo.branch %>

-
-
- - -
-
- -
-
- -
-
-Home -Edit diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/layouts/application.html.erb deleted file mode 100644 index 0a5ffc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoDashboard - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/bundle b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/rails b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/rake b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/setup b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/spring b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config.ru b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/application.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/application.rb deleted file mode 100644 index 0e5ac64..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoDashboard - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/boot.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/database.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environment.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/development.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/production.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/test.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/assets.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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 diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/rails_footnotes.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/session_store.rb deleted file mode 100644 index d8522bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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: '_dojo_dashboard_session' diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/locales/en.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/routes.rb deleted file mode 100644 index ec00d91..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/routes.rb +++ /dev/null @@ -1,71 +0,0 @@ -Rails.application.routes.draw do - root 'dojos#index' - - get 'dojos/new' => 'dojos#new' - - post '/' => 'dojos#create' - - get 'dojos/:id' => 'dojos#show' - - get 'dojos/:id/edit' => 'dojos#edit' - - patch 'dojos/:id' => 'dojos#update' - - delete 'dojos/:id' => 'dojos#destroy' - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/secrets.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/config/secrets.yml deleted file mode 100644 index 62d4cd0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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: 6a064b0fe2ffda54b60a328301b3842ad7c5126648b94d6676eb27f954a2535c8a49dd3d4544060b03cf288b8c4725ef21837b9fa77ff58260993ee100334920 - -test: - secret_key_base: 1d691f7cf31f3e11e55aad752facd40dbf853be5a1ab837cf5f05fd44c718588dc6cb1d442e87ac93cef13bb442a92375c7a2973f7e67a6b55dcf105d25ba10b - -# 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/migrate/20171015215328_create_dojos.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/migrate/20171015215328_create_dojos.rb deleted file mode 100644 index 0df8b3d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/migrate/20171015215328_create_dojos.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :branch - t.string :street - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/schema.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/schema.rb deleted file mode 100644 index d03cd84..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171015215328) do - - create_table "dojos", force: :cascade do |t| - t.string "branch" - t.string "street" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/seeds.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/404.html b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/422.html b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/500.html b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/robots.txt b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/controllers/dojos_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/controllers/dojos_controller_test.rb deleted file mode 100644 index fe24085..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get show" do - get :show - assert_response :success - end - - test "should get edit" do - get :edit - assert_response :success - end - - test "should get destroy" do - get :destroy - assert_response :success - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/fixtures/dojos.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/fixtures/dojos.yml deleted file mode 100644 index 215263e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/fixtures/dojos.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - branch: MyString - street: MyString - city: MyString - state: MyString - -two: - branch: MyString - street: MyString - city: MyString - state: MyString diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/models/dojo_test.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/test_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/.gitignore b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Gemfile b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Gemfile deleted file mode 100644 index 394b9b1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Gemfile.lock b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Gemfile.lock deleted file mode 100644 index 9937b63..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Gemfile.lock +++ /dev/null @@ -1,176 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/README.rdoc b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Rakefile b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/stylesheets/dojos.scss b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/stylesheets/dojos.scss deleted file mode 100644 index 0964a70..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/stylesheets/dojos.scss +++ /dev/null @@ -1,10 +0,0 @@ -// Place all the styles related to the Dojos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ -th, td { - padding: 15px; -} -table, th, td { - border: 1px solid black; - border-collapse: collapse; -} diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/controllers/dojos_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/controllers/dojos_controller.rb deleted file mode 100644 index ef8a086..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,55 +0,0 @@ -class DojosController < ApplicationController - - def index - @count = Dojo.all.count - @dojos = Dojo.all - end - - def new - @dojo = Dojo.new - end - - def create - # you do not need to use instance variables in the create method because post - # doesn't render an HTML form. - - dojo = Dojo.new(dojo_params) - - if dojo.save - puts "Your form was successfully entered." - return redirect_to root_path - else - flash[:errors] = dojo.errors.full_messages - redirect_to :back - end - end - - def show - @dojo = Dojo.find(params[:id]) - end - - def edit - @dojo = Dojo.find(params[:id]) - end - - def update - @dojo = Dojo.find(params[:id]) - - if @dojo.update(dojo_params) - redirect_to root_path, notice: "You have successfully updated a Dojo!" - else - flash[:errors] = @dojo.errors.full_messages - redirect_to :back - end - end - - def destroy - Dojo.find(params[:id]).destroy - redirect_to :root - end - - private - def dojo_params - params.require(:dojo).permit(:branch, :street, :city, :state) - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/helpers/dojos_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/helpers/dojos_helper.rb deleted file mode 100644 index 194211a..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/helpers/dojos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DojosHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/models/dojo.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/models/dojo.rb deleted file mode 100644 index 178451f..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/models/dojo.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Dojo < ActiveRecord::Base - validates :branch, :street, :city, :state, presence: true - validates :state, length: { is: 2} -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/destroy.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/destroy.html.erb deleted file mode 100644 index 0079ae0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/destroy.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Dojos#destroy

-

Find me in app/views/dojos/destroy.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/edit.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/edit.html.erb deleted file mode 100644 index fc21b7d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/edit.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

Editing <%= @dojo.branch %>

- -<% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> -<% end %> - -
- - - - -
-
- - -
-
- - -
-
- - -
-
- -
-Home -Show diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/index.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/index.html.erb deleted file mode 100644 index 5e18ff3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/index.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Listing <%= @count %> Dojos!

- -<% if flash[:notice] %> -

<%= flash[:notice] %>

-<% end %> - - - - - - - - - <% @dojos.each do |dojo| %> - - - - - - - - <% end %> -
Coding Dojo BranchStreetCityStateAction
<%= dojo.branch %><%= dojo.street %><%= dojo.city %><%= dojo.state %>Show - Edit - Delete -
-
-
-New Dojo diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/new.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/new.html.erb deleted file mode 100644 index 68e69b7..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/new.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

New Dojo

- -<% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> -<% end %> - -
- - - -
-
- - -
-
- - -
-
- - -
-
- -
-
-
-Home diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/show.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/show.html.erb deleted file mode 100644 index efa0a42..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/dojos/show.html.erb +++ /dev/null @@ -1,15 +0,0 @@ -

<%= @dojo.branch %>

-
-
- - -
-
- -
-
- -
-
-Home -Edit diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/layouts/application.html.erb deleted file mode 100644 index 0a5ffc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoDashboard - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/bundle b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/rails b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/rake b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/setup b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/spring b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config.ru b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/application.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/application.rb deleted file mode 100644 index 0e5ac64..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoDashboard - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/boot.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/database.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environment.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/development.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/production.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/test.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/assets.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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 diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/rails_footnotes.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/session_store.rb deleted file mode 100644 index d8522bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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: '_dojo_dashboard_session' diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/locales/en.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/routes.rb deleted file mode 100644 index ec00d91..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/routes.rb +++ /dev/null @@ -1,71 +0,0 @@ -Rails.application.routes.draw do - root 'dojos#index' - - get 'dojos/new' => 'dojos#new' - - post '/' => 'dojos#create' - - get 'dojos/:id' => 'dojos#show' - - get 'dojos/:id/edit' => 'dojos#edit' - - patch 'dojos/:id' => 'dojos#update' - - delete 'dojos/:id' => 'dojos#destroy' - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/secrets.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/config/secrets.yml deleted file mode 100644 index 62d4cd0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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: 6a064b0fe2ffda54b60a328301b3842ad7c5126648b94d6676eb27f954a2535c8a49dd3d4544060b03cf288b8c4725ef21837b9fa77ff58260993ee100334920 - -test: - secret_key_base: 1d691f7cf31f3e11e55aad752facd40dbf853be5a1ab837cf5f05fd44c718588dc6cb1d442e87ac93cef13bb442a92375c7a2973f7e67a6b55dcf105d25ba10b - -# 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/migrate/20171015215328_create_dojos.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/migrate/20171015215328_create_dojos.rb deleted file mode 100644 index 0df8b3d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/migrate/20171015215328_create_dojos.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :branch - t.string :street - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/schema.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/schema.rb deleted file mode 100644 index d03cd84..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171015215328) do - - create_table "dojos", force: :cascade do |t| - t.string "branch" - t.string "street" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/seeds.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/404.html b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/422.html b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/500.html b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/robots.txt b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/controllers/dojos_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/controllers/dojos_controller_test.rb deleted file mode 100644 index fe24085..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get show" do - get :show - assert_response :success - end - - test "should get edit" do - get :edit - assert_response :success - end - - test "should get destroy" do - get :destroy - assert_response :success - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/fixtures/dojos.yml b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/fixtures/dojos.yml deleted file mode 100644 index 215263e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/fixtures/dojos.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - branch: MyString - street: MyString - city: MyString - state: MyString - -two: - branch: MyString - street: MyString - city: MyString - state: MyString diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/models/dojo_test.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/test_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard/app/models/dojo.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard/app/models/dojo.rb deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard/config/routes.rb deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/.gitignore b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Gemfile b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Gemfile deleted file mode 100644 index 7ef2c56..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Gemfile +++ /dev/null @@ -1,46 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Gemfile.lock b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Gemfile.lock deleted file mode 100644 index b07f42d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Gemfile.lock +++ /dev/null @@ -1,173 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/README.rdoc b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Rakefile b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/controllers/users_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/controllers/users_controller.rb deleted file mode 100644 index 31daeec..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/controllers/users_controller.rb +++ /dev/null @@ -1,32 +0,0 @@ -class UsersController < ApplicationController - def index - render json: User.all - end - - def new - render - end - - def create - User.create(name: params[:name]) - redirect_to "/users" - end - - def show - render json: User.find(params[:id]) - end - - def edit - @user = User.find(params[:id]) - end - - def total - render json: { total: User.count } - end - - def update - u = User.find(params[:id]) - u.update(name: params[:name]) - redirect_to "/users/#{params[:id]}" - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/models/user.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/models/user.rb deleted file mode 100644 index 4a57cf0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/models/user.rb +++ /dev/null @@ -1,2 +0,0 @@ -class User < ActiveRecord::Base -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/layouts/application.html.erb deleted file mode 100644 index 2795116..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - IntergratingM - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/users/edit.html.erb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/users/edit.html.erb deleted file mode 100644 index 9c1ed20..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/users/edit.html.erb +++ /dev/null @@ -1,11 +0,0 @@ -

Edit User

- -
- - -

- - -

- -
diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/users/new.html.erb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/users/new.html.erb deleted file mode 100644 index d8c3490..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/views/users/new.html.erb +++ /dev/null @@ -1,10 +0,0 @@ -

Please Enter Your Name

- -
- -

- - -

- -
diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/bundle b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/rails b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/rake b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/setup b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/spring b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config.ru b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/application.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/application.rb deleted file mode 100644 index 968f2ba..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module IntergratingM - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/boot.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/database.yml b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environment.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/development.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/production.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/test.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/assets.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/session_store.rb deleted file mode 100644 index af0b318..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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: '_intergrating_m_session' diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/locales/en.yml b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/routes.rb deleted file mode 100644 index 7fd4417..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/routes.rb +++ /dev/null @@ -1,69 +0,0 @@ -Rails.application.routes.draw do - get 'users' => 'users#index' - - get 'users/new' => 'users#new' - - post 'users' => 'users#create' - - get 'users/:id' => 'users#show' - patch 'users/:id' => 'users#update' - - get 'users/:id/edit' => 'users#edit' - - get 'users/total' => 'users#total' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/secrets.yml b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/config/secrets.yml deleted file mode 100644 index f6f965d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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: f7484ed212a3fa3d2cea005f4d768f5e0f4cd13769d904ce97bac577a97e1eba2850395cb9cff932cfa8bcde89545ab3f93eb1f339fd2a621fce708551c570a3 - -test: - secret_key_base: 99a2ead8b781f16646f8c6dd36326d5978a1d4aefa3e0b77c980929ec299e5884d7d59c9f5d6eef9fc15cd3045b0f1361debb190ad7da62f8c9633f9b2396478 - -# 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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/migrate/20171011222406_create_users.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/migrate/20171011222406_create_users.rb deleted file mode 100644 index 5494756..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/migrate/20171011222406_create_users.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :name - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/schema.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/schema.rb deleted file mode 100644 index 4faa1f5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/schema.rb +++ /dev/null @@ -1,22 +0,0 @@ -# encoding: UTF-8 -# 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: 20171011222406) do - - create_table "users", force: :cascade do |t| - t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/seeds.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/lib/assets/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/lib/tasks/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/log/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/404.html b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/422.html b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/500.html b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/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/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/robots.txt b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/controllers/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/controllers/users_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/controllers/users_controller_test.rb deleted file mode 100644 index 33f71fd..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/controllers/users_controller_test.rb +++ /dev/null @@ -1,34 +0,0 @@ -require 'test_helper' - -class UsersControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get new" do - get :new - assert_response :success - end - - test "should get create" do - get :create - assert_response :success - end - - test "should get show" do - get :show - assert_response :success - end - - test "should get edit" do - get :edit - assert_response :success - end - - test "should get total" do - get :total - assert_response :success - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/fixtures/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/fixtures/users.yml b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/fixtures/users.yml deleted file mode 100644 index 56066c6..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/fixtures/users.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - -two: - name: MyString diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/helpers/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/integration/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/mailers/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/models/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/test_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/.gitignore b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Gemfile b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Gemfile deleted file mode 100644 index 394b9b1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Gemfile.lock b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Gemfile.lock deleted file mode 100644 index 9937b63..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Gemfile.lock +++ /dev/null @@ -1,176 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/README.rdoc b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Rakefile b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/images/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/stylesheets/displays.scss b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/stylesheets/displays.scss deleted file mode 100644 index 45477a0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/stylesheets/displays.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Displays controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/controllers/displays_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/controllers/displays_controller.rb deleted file mode 100644 index d36b457..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/controllers/displays_controller.rb +++ /dev/null @@ -1,31 +0,0 @@ -class DisplaysController < ApplicationController - def index - render text: 'What do you want???' - end - - def hello - render text: 'Hello CodingDojo!' - end - - def say - unless params[:name] #:name params is coming from routes.rb - render text: 'Saying Hello!' - else - if params[:name] == "michael" - redirect_to "/displays/say/hello/joe" - else - render text: "Saying Hello #{params[:name]}!" - end - end - end - - def times - session[:count] ||= 0 - render text: "You have visited this url #{session[:count] += 1} time(s)" - end - - def restart - reset_session - render text: "Destroy Session" - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/helpers/displays_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/helpers/displays_helper.rb deleted file mode 100644 index a9c960a..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/helpers/displays_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DisplaysHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/mailers/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/models/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/models/concerns/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/hello.html.erb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/hello.html.erb deleted file mode 100644 index 4ae4d38..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/hello.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Displays#hello

-

Find me in app/views/displays/hello.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/index.html.erb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/index.html.erb deleted file mode 100644 index 7550e79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Displays#index

-

Find me in app/views/displays/index.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/restart.html.erb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/restart.html.erb deleted file mode 100644 index 40919c0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/restart.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Displays#restart

-

Find me in app/views/displays/restart.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/say.html.erb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/say.html.erb deleted file mode 100644 index 6197667..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/say.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Displays#say

-

Find me in app/views/displays/say.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/times.html.erb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/times.html.erb deleted file mode 100644 index c2f579a..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/displays/times.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Displays#times

-

Find me in app/views/displays/times.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/layouts/application.html.erb deleted file mode 100644 index 26beefc..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - RoutesControllers - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/bundle b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/rails b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/rake b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/setup b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/spring b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config.ru b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/application.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/application.rb deleted file mode 100644 index 2e2368b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module RoutesControllers - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/boot.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/database.yml b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environment.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/development.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/production.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/test.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/assets.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/session_store.rb deleted file mode 100644 index 7544e56..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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: '_routes_controllers_session' diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/locales/en.yml b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/routes.rb deleted file mode 100644 index d55633a..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/routes.rb +++ /dev/null @@ -1,68 +0,0 @@ -Rails.application.routes.draw do - get 'displays/index' - - get 'displays/hello' - - get 'displays/say' - get 'displays/say/hello' => 'displays#say' - get 'displays/say/hello/:name' => 'displays#say' - - get 'displays/times' - - get 'displays/restart' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/secrets.yml b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/config/secrets.yml deleted file mode 100644 index 449846c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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: 5f40a07535b11535c3334b46c06bacb71aa65f608eb3bbe9274a3049f0bebe499949d8277cddf20d85ac18f103851d24e77c91f70af4df6db6c9b757dcefab16 - -test: - secret_key_base: 4f07d6b45178f74ff2a76339d0bc130aacbe2da511cb2af35890ca961bbf4273c2cae311605f1813a7ea0f64b5df3aed9eba6276f0a438239f1c05145826d660 - -# 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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/db/seeds.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/lib/assets/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/lib/tasks/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/log/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/404.html b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/422.html b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/500.html b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/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/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/favicon.ico b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/robots.txt b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/controllers/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/controllers/displays_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/controllers/displays_controller_test.rb deleted file mode 100644 index 2428414..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/controllers/displays_controller_test.rb +++ /dev/null @@ -1,29 +0,0 @@ -require 'test_helper' - -class DisplaysControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get hello" do - get :hello - assert_response :success - end - - test "should get say" do - get :say - assert_response :success - end - - test "should get times" do - get :times - assert_response :success - end - - test "should get restart" do - get :restart - assert_response :success - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/fixtures/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/helpers/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/integration/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/mailers/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/models/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/test_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/.gitignore b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Gemfile b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Gemfile deleted file mode 100644 index 394b9b1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -gem 'rails-footnotes', '~> 4.0' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Gemfile.lock b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Gemfile.lock deleted file mode 100644 index 9937b63..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Gemfile.lock +++ /dev/null @@ -1,176 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/README.rdoc b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Rakefile b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/images/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/stylesheets/dojos.scss b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/stylesheets/dojos.scss deleted file mode 100644 index 0964a70..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/stylesheets/dojos.scss +++ /dev/null @@ -1,10 +0,0 @@ -// Place all the styles related to the Dojos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ -th, td { - padding: 15px; -} -table, th, td { - border: 1px solid black; - border-collapse: collapse; -} diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/dojos_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/dojos_controller.rb deleted file mode 100644 index 69201f8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,56 +0,0 @@ -class DojosController < ApplicationController - - def index - @count = Dojo.all.count - @dojos = Dojo.all - end - - def new - @dojo = Dojo.new - end - - def create - # you do not need to use instance variables in the create method because post - # doesn't render an HTML form. - - dojo = Dojo.new(dojo_params) - - if dojo.save - puts "Your form was successfully entered." - return redirect_to root_path - else - flash[:errors] = dojo.errors.full_messages - redirect_to :back - end - end - - def show - @dojo = Dojo.find(params[:id]) - @students = @dojo.students - end - - def edit - @dojo = Dojo.find(params[:id]) - end - - def update - @dojo = Dojo.find(params[:id]) - - if @dojo.update(dojo_params) - redirect_to root_path, notice: "You have successfully updated a Dojo!" - else - flash[:errors] = @dojo.errors.full_messages - redirect_to :back - end - end - - def destroy - Dojo.find(params[:id]).destroy - redirect_to :root - end - - private - def dojo_params - params.require(:dojo).permit(:branch, :street, :city, :state) - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/students_controller.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/students_controller.rb deleted file mode 100644 index 1bdf7ed..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/controllers/students_controller.rb +++ /dev/null @@ -1,46 +0,0 @@ -class StudentsController < ApplicationController - - def index - @dojo = Dojo.find(params[:id]) - end - - def new - @dojos = Dojo.all - return render :new - end - - def create - @student = Student.create(student_params) - return redirect_to create_dojo_path params[:dojo_id] if @student.valid? - flash[:errors] = @student.errors.full_messages - return redirect_to new_student_path - end - - def show - @student = Student.find(params[:id]) - @students = Student.where(dojo_id: @student.dojo.id).where.not(id: @student.id) - end - - def edit - @student = Student.find(params[:id]) - @dojos = Dojo.all - end - - def update - @student = Student.find(params[:id]) - @student.update(student_params) - return redirect_to dojo_path params[:dojo_id] if @student.valid? - flash[:errors] = @student.errors.full_messages - return redirect_to edit_student_path @student.dojo.id, @student.id - - end - - def destroy - Student.find(params[:id]).destroy - redirect_to create_dojo_path params[:dojo_id] - end - private - def student_params - params.require(:student).permit(:first_name, :last_name, :email, :dojo_id) - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/dojos_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/dojos_helper.rb deleted file mode 100644 index 194211a..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/dojos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DojosHelper -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/mailers/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/concerns/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/dojo.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/dojo.rb deleted file mode 100644 index b53fe10..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/dojo.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Dojo < ActiveRecord::Base - has_many :students - validates :branch, :street, :city, :state, presence: true - validates :state, length: { is: 2} -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/student.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/student.rb deleted file mode 100644 index 69a9ea9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/models/student.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Student < ActiveRecord::Base - belongs_to :dojo - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, presence: true, length: { in: 2..20 } - validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/destroy.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/destroy.html.erb deleted file mode 100644 index 0079ae0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/destroy.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Dojos#destroy

-

Find me in app/views/dojos/destroy.html.erb

diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/edit.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/edit.html.erb deleted file mode 100644 index fc21b7d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/edit.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

Editing <%= @dojo.branch %>

- -<% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> -<% end %> - -
- - - - -
-
- - -
-
- - -
-
- - -
-
- -
-Home -Show diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/index.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/index.html.erb deleted file mode 100644 index 5e18ff3..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/index.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Listing <%= @count %> Dojos!

- -<% if flash[:notice] %> -

<%= flash[:notice] %>

-<% end %> - - - - - - - - - <% @dojos.each do |dojo| %> - - - - - - - - <% end %> -
Coding Dojo BranchStreetCityStateAction
<%= dojo.branch %><%= dojo.street %><%= dojo.city %><%= dojo.state %>Show - Edit - Delete -
-
-
-New Dojo diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/new.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/new.html.erb deleted file mode 100644 index 124319b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/new.html.erb +++ /dev/null @@ -1,28 +0,0 @@ -

New Dojo

- - - -
- - - -
-
- - -
-
- - -
-
- - -
-
- -
-
-
-Home diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/show.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/show.html.erb deleted file mode 100644 index 051c135..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/dojos/show.html.erb +++ /dev/null @@ -1,38 +0,0 @@ -

<%= @dojo.branch %>

Edit -
-
- - -
-
- -
-
- -<% if flash[:notice] %> -

<%= flash[:notice] %>

-<% end %> - -

Student Rooster

-
- - - - - - - - <% @students.each do |student| %> - - - - - - - <% end %> -
First NameLast NameEmailAction
<%= student.first_name %><%= student.last_name %><%= student.email %>Show - Edit - Delete -
-Home -Add Student diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/layouts/application.html.erb deleted file mode 100644 index d71ed70..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/layouts/application.html.erb +++ /dev/null @@ -1,18 +0,0 @@ - - - - DojoDashboard - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - <% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> - <% end %> -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/edit.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/edit.html.erb deleted file mode 100644 index 8896f44..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/edit.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -
- - - - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-Home diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/index.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/index.html.erb deleted file mode 100644 index 3854cd8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/index.html.erb +++ /dev/null @@ -1 +0,0 @@ -

!

diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/new.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/new.html.erb deleted file mode 100644 index 1bea4b1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/new.html.erb +++ /dev/null @@ -1,32 +0,0 @@ -

New Student

- - - -
- - - -
-
- - -
-
- - -
-
- - -
-
- - -
-
-Home diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/show.html.erb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/show.html.erb deleted file mode 100644 index 0f52ab8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/views/students/show.html.erb +++ /dev/null @@ -1,23 +0,0 @@ -

<%= @student.dojo.branch %>'s <%= @student.first_name %>'

-
-

Email: <%= @student.email %>

-
-

Cohort

-
- - - - - - - <% @students.each do |student| %> - - - - - - <% end %> -
First NameLast NameEmail
<%= student.first_name %><%= student.last_name %><%= student.email %>
- -Home -Edit diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/bundle b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/rails b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/rake b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/setup b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/spring b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config.ru b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/application.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/application.rb deleted file mode 100644 index 0e5ac64..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoDashboard - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/boot.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/database.yml b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environment.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/development.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/production.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/test.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/assets.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/rails_footnotes.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/session_store.rb deleted file mode 100644 index d8522bf..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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: '_dojo_dashboard_session' diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/locales/en.yml b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/routes.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/routes.rb deleted file mode 100644 index 84c6d27..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/routes.rb +++ /dev/null @@ -1,74 +0,0 @@ -Rails.application.routes.draw do - - root 'dojos#index' - get 'dojos' => 'dojos#index', as: 'dojos' - get 'dojos/new' => 'dojos#new', as: 'new_dojos' - post '/' => 'dojos#create', as: 'dojo' - get 'dojos/:id' => 'dojos#show', as: 'create_dojo' - get 'dojos/:id/edit' => 'dojos#edit', as: 'edit_dojo' - patch 'dojos/:id' => 'dojos#update', as: 'update_dojo' - delete 'dojos/:id' => 'dojos#destroy', as: 'delete_dojo' - - get 'dojos/:dojo_id/students' => 'students#index', as: 'students' - get 'dojos/:dojo_id/students/new' => 'students#new', as: 'new_student' - post 'dojos/:dojo_id/students' => 'students#create', as: 'create_student' - get 'dojos/:dojo_id/students/:id' => 'students#show', as: 'student' - get 'dojos/:dojo_id/students/:id/edit' => 'students#edit', as: 'edit_student' - patch 'dojos/:dojo_id/students/:id' => 'students#update', as: 'update_student' - delete 'dojos/:dojo_id/students/:id' => 'students#destroy', as: 'remove_student' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/secrets.yml b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/config/secrets.yml deleted file mode 100644 index 62d4cd0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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: 6a064b0fe2ffda54b60a328301b3842ad7c5126648b94d6676eb27f954a2535c8a49dd3d4544060b03cf288b8c4725ef21837b9fa77ff58260993ee100334920 - -test: - secret_key_base: 1d691f7cf31f3e11e55aad752facd40dbf853be5a1ab837cf5f05fd44c718588dc6cb1d442e87ac93cef13bb442a92375c7a2973f7e67a6b55dcf105d25ba10b - -# 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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/migrate/20171015215328_create_dojos.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/migrate/20171015215328_create_dojos.rb deleted file mode 100644 index 0df8b3d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/migrate/20171015215328_create_dojos.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :branch - t.string :street - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/migrate/20171016232721_create_students.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/migrate/20171016232721_create_students.rb deleted file mode 100644 index 886ff7e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/migrate/20171016232721_create_students.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateStudents < ActiveRecord::Migration - def change - create_table :students do |t| - t.string :first_name - t.string :last_name - t.string :email - t.references :dojo, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/schema.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/schema.rb deleted file mode 100644 index 8c8ce4e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/schema.rb +++ /dev/null @@ -1,36 +0,0 @@ -# encoding: UTF-8 -# 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: 20171016232721) do - - create_table "dojos", force: :cascade do |t| - t.string "branch" - t.string "street" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "students", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email" - t.integer "dojo_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "students", ["dojo_id"], name: "index_students_on_dojo_id" - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/seeds.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/lib/assets/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/lib/tasks/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/log/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/404.html b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/422.html b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/500.html b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/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/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/favicon.ico b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/robots.txt b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/dojos_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/dojos_controller_test.rb deleted file mode 100644 index fe24085..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get show" do - get :show - assert_response :success - end - - test "should get edit" do - get :edit - assert_response :success - end - - test "should get destroy" do - get :destroy - assert_response :success - end - -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/students_controller_test.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/students_controller_test.rb deleted file mode 100644 index 0d88f7d..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/controllers/students_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class StudentsControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/dojos.yml b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/dojos.yml deleted file mode 100644 index 215263e..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/dojos.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - branch: MyString - street: MyString - city: MyString - state: MyString - -two: - branch: MyString - street: MyString - city: MyString - state: MyString diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/students.yml b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/students.yml deleted file mode 100644 index 6a94c30..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/fixtures/students.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email: MyString - dojo_id: - -two: - first_name: MyString - last_name: MyString - email: MyString - dojo_id: diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/helpers/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/integration/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/mailers/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/models/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/models/dojo_test.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/test_helper.rb b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/.gitignore b/Tamisha_Damas/Rails/Models /Blogs/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Models /Blogs/Gemfile b/Tamisha_Damas/Rails/Models /Blogs/Gemfile deleted file mode 100644 index 7ef2c56..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/Gemfile +++ /dev/null @@ -1,46 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/Gemfile.lock b/Tamisha_Damas/Rails/Models /Blogs/Gemfile.lock deleted file mode 100644 index b07f42d..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/Gemfile.lock +++ /dev/null @@ -1,173 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Models /Blogs/README.rdoc b/Tamisha_Damas/Rails/Models /Blogs/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Models /Blogs/Rakefile b/Tamisha_Damas/Rails/Models /Blogs/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/app/assets/images/.keep b/Tamisha_Damas/Rails/Models /Blogs/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Models /Blogs/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Models /Blogs/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Models /Blogs/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Models /Blogs/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Models /Blogs/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Models /Blogs/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/mailers/.keep b/Tamisha_Damas/Rails/Models /Blogs/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/models/.keep b/Tamisha_Damas/Rails/Models /Blogs/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/models/blog.rb b/Tamisha_Damas/Rails/Models /Blogs/app/models/blog.rb deleted file mode 100644 index 6853340..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/app/models/blog.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Blog < ActiveRecord::Base - has_many :posts - validates :name, :description, presence: true -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/models/concerns/.keep b/Tamisha_Damas/Rails/Models /Blogs/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/models/message.rb b/Tamisha_Damas/Rails/Models /Blogs/app/models/message.rb deleted file mode 100644 index 54c6506..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/app/models/message.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Message < ActiveRecord::Base - belongs_to :post - validates :author, :message, presence: true - validates :message, length: { minimum: 15 } -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/models/post.rb b/Tamisha_Damas/Rails/Models /Blogs/app/models/post.rb deleted file mode 100644 index 05f3485..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/app/models/post.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Post < ActiveRecord::Base - belongs_to :blog - has_many :messages, dependent: :destroy - validates :title, :content, presence: true, length: { minimum: 7 } -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Models /Blogs/app/views/layouts/application.html.erb deleted file mode 100644 index 5cd984b..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Blogs - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Models /Blogs/bin/bundle b/Tamisha_Damas/Rails/Models /Blogs/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/bin/rails b/Tamisha_Damas/Rails/Models /Blogs/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Models /Blogs/bin/rake b/Tamisha_Damas/Rails/Models /Blogs/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Models /Blogs/bin/setup b/Tamisha_Damas/Rails/Models /Blogs/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/bin/spring b/Tamisha_Damas/Rails/Models /Blogs/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/config.ru b/Tamisha_Damas/Rails/Models /Blogs/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/application.rb b/Tamisha_Damas/Rails/Models /Blogs/config/application.rb deleted file mode 100644 index c39e324..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Blogs - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/config/boot.rb b/Tamisha_Damas/Rails/Models /Blogs/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Models /Blogs/config/database.yml b/Tamisha_Damas/Rails/Models /Blogs/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/environment.rb b/Tamisha_Damas/Rails/Models /Blogs/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/environments/development.rb b/Tamisha_Damas/Rails/Models /Blogs/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Models /Blogs/config/environments/production.rb b/Tamisha_Damas/Rails/Models /Blogs/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Models /Blogs/config/environments/test.rb b/Tamisha_Damas/Rails/Models /Blogs/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Models /Blogs/config/initializers/assets.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Models /Blogs/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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 diff --git a/Tamisha_Damas/Rails/Models /Blogs/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/session_store.rb deleted file mode 100644 index eabcaa8..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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: '_Blogs_session' diff --git a/Tamisha_Damas/Rails/Models /Blogs/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Models /Blogs/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/locales/en.yml b/Tamisha_Damas/Rails/Models /Blogs/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/config/routes.rb b/Tamisha_Damas/Rails/Models /Blogs/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/config/secrets.yml b/Tamisha_Damas/Rails/Models /Blogs/config/secrets.yml deleted file mode 100644 index 9f51ee9..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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: 7cb6cdcc0308b9d934cbe213a29a5b2f799d3a26f883577938649f6da9dbff5b531e53f77ef8ba57338a3536c7017e3d35e724434a6271827d3347faf0a50908 - -test: - secret_key_base: 8e5bb78496e881297dd7585db156c226a0d2bd2695c4f9ec22b60cf61d731b608cb5b4297870037bd3cbe2d70b8a4f497a09e53d2838e1ff0211fa0765897fac - -# 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/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009180749_create_blogs.rb b/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009180749_create_blogs.rb deleted file mode 100644 index 3dd2ad7..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009180749_create_blogs.rb +++ /dev/null @@ -1,23 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end - -# ///////retrieving all post for the first blog -# Blog.first.posts -# ////////know how to retrieve all posts for the last blog (sorted by title in the DESC order). -# Blog.last.posts.order(title: :DESC) -# /////////know how to update the first post's title. -# Post.first.update(title:"Red Bottoms") -# /////////know how to delete the third post (have the model automatically delete all messages associated with the third post when you delete the third post). -# Post.third.messages.destroy_all -# know how to retrieve all blogs -# Blog.all -# know how to retrieve all blogs whose id is less than 5. -# Blog.where("id < ?", 5) diff --git a/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009180920_create_posts.rb b/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009180920_create_posts.rb deleted file mode 100644 index 90e2db8..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009180920_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009181240_create_messages.rb b/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009181240_create_messages.rb deleted file mode 100644 index cf927e7..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/db/migrate/20171009181240_create_messages.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :post, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/db/schema.rb b/Tamisha_Damas/Rails/Models /Blogs/db/schema.rb deleted file mode 100644 index 20b00c3..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/db/schema.rb +++ /dev/null @@ -1,43 +0,0 @@ -# encoding: UTF-8 -# 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: 20171009181240) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "post_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/db/seeds.rb b/Tamisha_Damas/Rails/Models /Blogs/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Models /Blogs/lib/assets/.keep b/Tamisha_Damas/Rails/Models /Blogs/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/lib/tasks/.keep b/Tamisha_Damas/Rails/Models /Blogs/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/log/.keep b/Tamisha_Damas/Rails/Models /Blogs/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/public/404.html b/Tamisha_Damas/Rails/Models /Blogs/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/public/422.html b/Tamisha_Damas/Rails/Models /Blogs/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/public/500.html b/Tamisha_Damas/Rails/Models /Blogs/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/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/Tamisha_Damas/Rails/Models /Blogs/public/favicon.ico b/Tamisha_Damas/Rails/Models /Blogs/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/public/robots.txt b/Tamisha_Damas/Rails/Models /Blogs/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/controllers/.keep b/Tamisha_Damas/Rails/Models /Blogs/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/.keep b/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/blogs.yml b/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/messages.yml b/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/messages.yml deleted file mode 100644 index e3c84c8..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/messages.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - post_id: - -two: - author: MyString - message: MyText - post_id: diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/posts.yml b/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/posts.yml deleted file mode 100644 index dcc822e..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/test/fixtures/posts.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - blog_id: - -two: - title: MyString - content: MyText - blog_id: diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/helpers/.keep b/Tamisha_Damas/Rails/Models /Blogs/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/integration/.keep b/Tamisha_Damas/Rails/Models /Blogs/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/mailers/.keep b/Tamisha_Damas/Rails/Models /Blogs/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/models/.keep b/Tamisha_Damas/Rails/Models /Blogs/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/models/blog_test.rb b/Tamisha_Damas/Rails/Models /Blogs/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/models/message_test.rb b/Tamisha_Damas/Rails/Models /Blogs/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/models/post_test.rb b/Tamisha_Damas/Rails/Models /Blogs/test/models/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/test/test_helper.rb b/Tamisha_Damas/Rails/Models /Blogs/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Models /Blogs/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Models /Blogs/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Models /Blogs/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Blogs/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Models /Blogs/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/.gitignore b/Tamisha_Damas/Rails/Models /Friends(self_join)/.gitignore deleted file mode 100644 index dcc5b36..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/.gitignore +++ /dev/null @@ -1,23 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -/tmp/* -!/log/.keep -!/tmp/.keep - -/node_modules -/yarn-error.log - -.byebug_history diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/Gemfile b/Tamisha_Damas/Rails/Models /Friends(self_join)/Gemfile deleted file mode 100644 index 5a49bc9..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/Gemfile +++ /dev/null @@ -1,54 +0,0 @@ -source 'https://rubygems.org' - -git_source(:github) do |repo_name| - repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") - "https://github.com/#{repo_name}.git" -end - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '~> 5.1.4' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use Puma as the app server -gem 'puma', '~> 3.7' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.2' -# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks -gem 'turbolinks', '~> 5' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.5' -# Use Redis adapter to run Action Cable in production -# gem 'redis', '~> 3.0' -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug', platforms: [:mri, :mingw, :x64_mingw] - # Adds support for Capybara system testing and selenium driver - gem 'capybara', '~> 2.13' - gem 'selenium-webdriver' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. - gem 'web-console', '>= 3.3.0' - gem 'listen', '>= 3.0.5', '< 3.2' - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' - gem 'spring-watcher-listen', '~> 2.0.0' -end - -# Windows does not include zoneinfo files, so bundle the tzinfo-data gem -gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/Gemfile.lock b/Tamisha_Damas/Rails/Models /Friends(self_join)/Gemfile.lock deleted file mode 100644 index 44460ff..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/Gemfile.lock +++ /dev/null @@ -1,198 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actioncable (5.1.4) - actionpack (= 5.1.4) - nio4r (~> 2.0) - websocket-driver (~> 0.6.1) - actionmailer (5.1.4) - actionpack (= 5.1.4) - actionview (= 5.1.4) - activejob (= 5.1.4) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 2.0) - actionpack (5.1.4) - actionview (= 5.1.4) - activesupport (= 5.1.4) - rack (~> 2.0) - rack-test (>= 0.6.3) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (5.1.4) - activesupport (= 5.1.4) - builder (~> 3.1) - erubi (~> 1.4) - rails-dom-testing (~> 2.0) - rails-html-sanitizer (~> 1.0, >= 1.0.3) - activejob (5.1.4) - activesupport (= 5.1.4) - globalid (>= 0.3.6) - activemodel (5.1.4) - activesupport (= 5.1.4) - activerecord (5.1.4) - activemodel (= 5.1.4) - activesupport (= 5.1.4) - arel (~> 8.0) - activesupport (5.1.4) - concurrent-ruby (~> 1.0, >= 1.0.2) - i18n (~> 0.7) - minitest (~> 5.1) - tzinfo (~> 1.1) - addressable (2.5.2) - public_suffix (>= 2.0.2, < 4.0) - arel (8.0.0) - bindex (0.5.0) - builder (3.2.3) - byebug (9.1.0) - capybara (2.16.1) - addressable - mini_mime (>= 0.1.3) - nokogiri (>= 1.3.3) - rack (>= 1.0.0) - rack-test (>= 0.5.4) - xpath (~> 2.0) - childprocess (0.8.0) - ffi (~> 1.0, >= 1.0.11) - coffee-rails (4.2.2) - coffee-script (>= 2.2.0) - railties (>= 4.0.0) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - erubi (1.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - listen (3.1.5) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - ruby_dep (~> 1.2) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - method_source (0.9.0) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nio4r (2.1.0) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - public_suffix (3.0.1) - puma (3.11.0) - rack (2.0.3) - rack-test (0.8.2) - rack (>= 1.0, < 3) - rails (5.1.4) - actioncable (= 5.1.4) - actionmailer (= 5.1.4) - actionpack (= 5.1.4) - actionview (= 5.1.4) - activejob (= 5.1.4) - activemodel (= 5.1.4) - activerecord (= 5.1.4) - activesupport (= 5.1.4) - bundler (>= 1.3.0) - railties (= 5.1.4) - sprockets-rails (>= 2.0.0) - rails-dom-testing (2.0.3) - activesupport (>= 4.2.0) - nokogiri (>= 1.6) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (5.1.4) - actionpack (= 5.1.4) - activesupport (= 5.1.4) - method_source - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - ruby_dep (1.5.0) - rubyzip (1.2.1) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - selenium-webdriver (3.8.0) - childprocess (~> 0.5) - rubyzip (~> 1.0) - spring (2.0.2) - activesupport (>= 4.2) - spring-watcher-listen (2.0.1) - listen (>= 2.7, < 4.0) - spring (>= 1.2, < 3.0) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (3.5.1) - actionview (>= 5.0) - activemodel (>= 5.0) - bindex (>= 0.4.0) - railties (>= 5.0) - websocket-driver (0.6.5) - websocket-extensions (>= 0.1.0) - websocket-extensions (0.1.3) - xpath (2.1.0) - nokogiri (~> 1.3) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - capybara (~> 2.13) - coffee-rails (~> 4.2) - hirb - jbuilder (~> 2.5) - listen (>= 3.0.5, < 3.2) - puma (~> 3.7) - rails (~> 5.1.4) - sass-rails (~> 5.0) - selenium-webdriver - spring - spring-watcher-listen (~> 2.0.0) - sqlite3 - turbolinks (~> 5) - tzinfo-data - uglifier (>= 1.3.0) - web-console (>= 3.3.0) - -BUNDLED WITH - 1.16.0 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/images/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/application.js deleted file mode 100644 index 46b2035..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/application.js +++ /dev/null @@ -1,15 +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, or any plugin's -// vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. -// -// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require rails-ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/cable.js b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/cable.js deleted file mode 100644 index 739aa5f..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/cable.js +++ /dev/null @@ -1,13 +0,0 @@ -// Action Cable provides the framework to deal with WebSockets in Rails. -// You can generate new channels where WebSocket features live using the `rails generate channel` command. -// -//= require action_cable -//= require_self -//= require_tree ./channels - -(function() { - this.App || (this.App = {}); - - App.cable = ActionCable.createConsumer(); - -}).call(this); diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/channels/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/javascripts/channels/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/stylesheets/application.css deleted file mode 100644 index d05ea0f..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/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, or any plugin's - * vendor/assets/stylesheets directory 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 other CSS/SCSS - * files in this directory. Styles in this file should be added after the last require_* statement. - * It is generally better to create a new file per style scope. - * - *= require_tree . - *= require_self - */ diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/concerns/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/friendship.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/friendship.rb deleted file mode 100644 index 3941175..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/friendship.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Friendship < ApplicationRecord - belongs_to :user, foreign_key: "user_id", class_name: "User" - belongs_to :friend, foreign_key: "friend_id", class_name: "User" -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/user.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/user.rb deleted file mode 100644 index dbb08ff..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/user.rb +++ /dev/null @@ -1,21 +0,0 @@ -class User < ApplicationRecord - has_many :friendships, foreign_key: "user_id", class_name: "Friendship" - has_many :friends, through: :friendships -end - -# # Create Users -# User.create(first_name: "John", last_name: "Doe") -# User.create(first_name: "Jane", last_name: "Smith") -# User.create(first_name: "Michael", last_name: "Harris") -# User.create(first_name: "Lisa", last_name: "Johnson") -# User.create(first_name: "Ben", last_name: "Thompson") -# -# # Create Friendships -# Friendship.create(user: User.first, friend: User.last) -# Friendship.create(user: User.first, friend: User.second) -# Friendship.create(user: User.third, friend: User.third) -# Friendship.create(user: User.third, friend: User.find(4)) - -# Retrieve all frinds of the first Users -User.first.friends -User.third.friends diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Models /Friends(self_join)/app/views/layouts/application.html.erb deleted file mode 100644 index bc33024..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Friends - <%= csrf_meta_tags %> - - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> - <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> - - - - <%= yield %> - - diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/bundle b/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/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/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/rake b/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/setup b/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/setup deleted file mode 100755 index 78c4e86..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/setup +++ /dev/null @@ -1,38 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' -require 'fileutils' -include FileUtils - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -def system!(*args) - system(*args) || abort("\n== Command #{args} failed ==") -end - -chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file. - - puts '== Installing dependencies ==' - system! 'gem install bundler --conservative' - system('bundle check') || system!('bundle install') - - # Install JavaScript dependencies if using Yarn - # system('bin/yarn') - - - # puts "\n== Copying sample files ==" - # unless File.exist?('config/database.yml') - # cp 'config/database.yml.sample', 'config/database.yml' - # end - - puts "\n== Preparing database ==" - system! 'bin/rails db:setup' - - puts "\n== Removing old logs and tempfiles ==" - system! 'bin/rails log:clear tmp:clear' - - puts "\n== Restarting application server ==" - system! 'bin/rails restart' -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/spring b/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/yarn b/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/yarn deleted file mode 100755 index c2bacef..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/yarn +++ /dev/null @@ -1,11 +0,0 @@ -#!/usr/bin/env ruby -VENDOR_PATH = File.expand_path('..', __dir__) -Dir.chdir(VENDOR_PATH) do - begin - exec "yarnpkg #{ARGV.join(" ")}" - rescue Errno::ENOENT - $stderr.puts "Yarn executable was not detected in the system." - $stderr.puts "Download Yarn at https://yarnpkg.com/en/docs/install" - exit 1 - end -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/application.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/application.rb deleted file mode 100644 index ccb0cf1..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/application.rb +++ /dev/null @@ -1,18 +0,0 @@ -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) - -module Friends - class Application < Rails::Application - # Initialize configuration defaults for originally generated Rails version. - config.load_defaults 5.1 - - # 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. - end -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/cable.yml b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/cable.yml deleted file mode 100644 index 32a8d08..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/cable.yml +++ /dev/null @@ -1,10 +0,0 @@ -development: - adapter: async - -test: - adapter: async - -production: - adapter: redis - url: redis://localhost:6379/1 - channel_prefix: Friends_production diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/database.yml b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/database.yml deleted file mode 100644 index 0d02f24..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/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: <%= ENV.fetch("RAILS_MAX_THREADS") { 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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/development.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/development.rb deleted file mode 100644 index 5187e22..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/development.rb +++ /dev/null @@ -1,54 +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. - config.consider_all_requests_local = true - - # Enable/disable caching. By default caching is disabled. - if Rails.root.join('tmp/caching-dev.txt').exist? - config.action_controller.perform_caching = true - - config.cache_store = :memory_store - config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{2.days.seconds.to_i}" - } - else - config.action_controller.perform_caching = false - - config.cache_store = :null_store - end - - # Don't care if the mailer can't send. - config.action_mailer.raise_delivery_errors = false - - config.action_mailer.perform_caching = 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 - - # Suppress logger output for asset requests. - config.assets.quiet = true - - # Raises error for missing translations - # config.action_view.raise_on_missing_translations = true - - # Use an evented file watcher to asynchronously detect changes in source code, - # routes, locales, etc. This feature depends on the listen gem. - config.file_watcher = ActiveSupport::EventedFileUpdateChecker -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/production.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/production.rb deleted file mode 100644 index ee9483d..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/production.rb +++ /dev/null @@ -1,91 +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 - - # Attempt to read encrypted secrets from `config/secrets.yml.enc`. - # Requires an encryption key in `ENV["RAILS_MASTER_KEY"]` or - # `config/secrets.yml.key`. - config.read_encrypted_secrets = true - - # Disable serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # Enable serving of images, stylesheets, and JavaScripts from an asset server. - # config.action_controller.asset_host = 'http://assets.example.com' - - # 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 - - # Mount Action Cable outside main process or domain - # config.action_cable.mount_path = nil - # config.action_cable.url = 'wss://example.com/cable' - # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] - - # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. - # config.force_ssl = true - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # Prepend all log lines with the following tags. - config.log_tags = [ :request_id ] - - # Use a different cache store in production. - # config.cache_store = :mem_cache_store - - # Use a real queuing backend for Active Job (and separate queues per environment) - # config.active_job.queue_adapter = :resque - # config.active_job.queue_name_prefix = "Friends_#{Rails.env}" - config.action_mailer.perform_caching = false - - # 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 - - # Use default logging formatter so that PID and timestamp are not suppressed. - config.log_formatter = ::Logger::Formatter.new - - # Use a different logger for distributed setups. - # require 'syslog/logger' - # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') - - if ENV["RAILS_LOG_TO_STDOUT"].present? - logger = ActiveSupport::Logger.new(STDOUT) - logger.formatter = config.log_formatter - config.logger = ActiveSupport::TaggedLogging.new(logger) - end - - # Do not dump schema after migrations. - config.active_record.dump_schema_after_migration = false -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/test.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/test.rb deleted file mode 100644 index 8e5cbde..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 public file server for tests with Cache-Control for performance. - config.public_file_server.enabled = true - config.public_file_server.headers = { - 'Cache-Control' => "public, max-age=#{1.hour.seconds.to_i}" - } - - # 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 - config.action_mailer.perform_caching = 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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/assets.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/assets.rb deleted file mode 100644 index 4b828e8..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/assets.rb +++ /dev/null @@ -1,14 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path. -# Rails.application.config.assets.paths << Emoji.images_path -# Add Yarn node_modules folder to the asset load path. -Rails.application.config.assets.paths << Rails.root.join('node_modules') - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in the app/assets -# folder are already added. -# Rails.application.config.assets.precompile += %w( admin.js admin.css ) diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/locales/en.yml b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/locales/en.yml deleted file mode 100644 index decc5a8..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/locales/en.yml +++ /dev/null @@ -1,33 +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. -# -# The following keys must be escaped otherwise they will not be retrieved by -# the default I18n backend: -# -# true, false, on, off, yes, no -# -# Instead, surround them with single quotes. -# -# en: -# 'true': 'foo' -# -# To learn more, please read the Rails Internationalization guide -# available at http://guides.rubyonrails.org/i18n.html. - -en: - hello: "Hello world" diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/puma.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/puma.rb deleted file mode 100644 index 1e19380..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/puma.rb +++ /dev/null @@ -1,56 +0,0 @@ -# Puma can serve each request in a thread from an internal thread pool. -# The `threads` method setting takes two numbers: a minimum and maximum. -# Any libraries that use thread pools should be configured to match -# the maximum value specified for Puma. Default is set to 5 threads for minimum -# and maximum; this matches the default thread size of Active Record. -# -threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 } -threads threads_count, threads_count - -# Specifies the `port` that Puma will listen on to receive requests; default is 3000. -# -port ENV.fetch("PORT") { 3000 } - -# Specifies the `environment` that Puma will run in. -# -environment ENV.fetch("RAILS_ENV") { "development" } - -# Specifies the number of `workers` to boot in clustered mode. -# Workers are forked webserver processes. If using threads and workers together -# the concurrency of the application would be max `threads` * `workers`. -# Workers do not work on JRuby or Windows (both of which do not support -# processes). -# -# workers ENV.fetch("WEB_CONCURRENCY") { 2 } - -# Use the `preload_app!` method when specifying a `workers` number. -# This directive tells Puma to first boot the application and load code -# before forking the application. This takes advantage of Copy On Write -# process behavior so workers use less memory. If you use this option -# you need to make sure to reconnect any threads in the `on_worker_boot` -# block. -# -# preload_app! - -# If you are preloading your application and using Active Record, it's -# recommended that you close any connections to the database before workers -# are forked to prevent connection leakage. -# -# before_fork do -# ActiveRecord::Base.connection_pool.disconnect! if defined?(ActiveRecord) -# end - -# The code in the `on_worker_boot` will be called if you are using -# clustered mode by specifying a number of `workers`. After each worker -# process is booted, this block will be run. If you are using the `preload_app!` -# option, you will want to use this block to reconnect to any threads -# or connections that may have been created at application boot, as Ruby -# cannot share connections between processes. -# -# on_worker_boot do -# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) -# end -# - -# Allow puma to be restarted by `rails restart` command. -plugin :tmp_restart diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/secrets.yml b/Tamisha_Damas/Rails/Models /Friends(self_join)/config/secrets.yml deleted file mode 100644 index cb6c480..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/secrets.yml +++ /dev/null @@ -1,32 +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 `rails secret` to generate a secure secret key. - -# Make sure the secrets in this file are kept private -# if you're sharing your code publicly. - -# Shared secrets are available across all environments. - -# shared: -# api_key: a1B2c3D4e5F6 - -# Environmental secrets are only available for that specific environment. - -development: - secret_key_base: d26264c90f5ac0b58ab08398645764138154152b91c0fb1c0c191d91e9f87261765b9c3eecd0e130887e013de6acc830fdb1217d79de4f0bf7849e373fdcf494 - -test: - secret_key_base: f4cdd113cb96ef03e07bcb9b2c0b60a53f189427838cf8f6cd8da180ff448e3c99d911447a0f59e14dc7338d9639789fe06baffec6e79ff6b9bb5644bf322c72 - -# Do not keep production secrets in the unencrypted secrets file. -# Instead, either read values from the environment. -# Or, use `bin/rails secrets:setup` to configure encrypted secrets -# and move the `production:` environment over there. - -production: - secret_key_base: <%= ENV["SECRET_KEY_BASE"] %> diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/db/migrate/20171202200608_create_users.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/db/migrate/20171202200608_create_users.rb deleted file mode 100644 index 08bcad4..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/db/migrate/20171202200608_create_users.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateUsers < ActiveRecord::Migration[5.1] - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - - t.timestamps - end - end -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/db/migrate/20171202200623_create_friendships.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/db/migrate/20171202200623_create_friendships.rb deleted file mode 100644 index 45d30ec..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/db/migrate/20171202200623_create_friendships.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateFriendships < ActiveRecord::Migration[5.1] - def change - create_table :friendships do |t| - t.integer :user_id - t.integer :friend_id - - t.timestamps - end - end -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/db/schema.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/db/schema.rb deleted file mode 100644 index 945962a..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/db/schema.rb +++ /dev/null @@ -1,29 +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: 20171202200623) do - - create_table "friendships", force: :cascade do |t| - t.integer "user_id" - t.integer "friend_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/lib/assets/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/lib/tasks/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/log/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/package.json b/Tamisha_Damas/Rails/Models /Friends(self_join)/package.json deleted file mode 100644 index 9746068..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/package.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "name": "Friends", - "private": true, - "dependencies": {} -} diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/public/favicon.ico b/Tamisha_Damas/Rails/Models /Friends(self_join)/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/public/robots.txt b/Tamisha_Damas/Rails/Models /Friends(self_join)/public/robots.txt deleted file mode 100644 index 37b576a..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/public/robots.txt +++ /dev/null @@ -1 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/application_system_test_case.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/application_system_test_case.rb deleted file mode 100644 index d19212a..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/application_system_test_case.rb +++ /dev/null @@ -1,5 +0,0 @@ -require "test_helper" - -class ApplicationSystemTestCase < ActionDispatch::SystemTestCase - driven_by :selenium, using: :chrome, screen_size: [1400, 1400] -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/controllers/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/files/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/files/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/friendships.yml b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/friendships.yml deleted file mode 100644 index 0f22a6e..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/friendships.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user_id: 1 - friend_id: 1 - -two: - user_id: 1 - friend_id: 1 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/users.yml b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/users.yml deleted file mode 100644 index afdaa6a..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/fixtures/users.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - -two: - first_name: MyString - last_name: MyString diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/helpers/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/integration/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/mailers/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/friendship_test.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/friendship_test.rb deleted file mode 100644 index aa27b3f..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/friendship_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class FriendshipTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/user_test.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/system/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/system/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/test_helper.rb b/Tamisha_Damas/Rails/Models /Friends(self_join)/test/test_helper.rb deleted file mode 100644 index e3c4ff0..0000000 --- a/Tamisha_Damas/Rails/Models /Friends(self_join)/test/test_helper.rb +++ /dev/null @@ -1,9 +0,0 @@ -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/tmp/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/tmp/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/vendor/.keep b/Tamisha_Damas/Rails/Models /Friends(self_join)/vendor/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/.gitignore b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Gemfile b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Gemfile deleted file mode 100644 index 55197da..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Gemfile +++ /dev/null @@ -1,46 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc -gem 'rails-footnotes', '~> 4.0' -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Gemfile.lock b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Gemfile.lock deleted file mode 100644 index 2445273..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/README.rdoc b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Rakefile b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/assets/images/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/mailers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/models/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/models/blog.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/models/blog.rb deleted file mode 100644 index 25674e8..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/app/models/blog.rb +++ /dev/null @@ -1,79 +0,0 @@ -class Blog < ActiveRecord::Base - has_many :owners - has_many :posts - - # all the users that own a specific blog - has_many :users, through: :owners - #all the users that posted on a specific blog - has_many :user_posts, through: :posts, source: :user - - validates :name, :description, presence: true, length: { minimum: 3 } -end - - -# # Have the first 3 blogs be owned by the first user -# Blog.find(2).users< - - - BlogPostsMessages2 - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/bundle b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/rails b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/rake b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/setup b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/spring b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config.ru b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/application.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/application.rb deleted file mode 100644 index 32ae995..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module BlogPostsMessages2 - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/boot.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/database.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environment.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/development.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/production.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/assets.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/session_store.rb deleted file mode 100644 index ef77624..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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: '_blog_posts_messages_2_session' diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/locales/en.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/routes.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/secrets.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/config/secrets.yml deleted file mode 100644 index a72781d..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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: 80adff02180413cd4cd55f5b02eae2d3dbffdd6d6d2ee72b6a20c7d275ee599f1aa22c4533df2f3495a04a7cdf93aaa4e3e9257da9f2196d5640a7ac725cc77f - -test: - secret_key_base: 31577b453f7d09a4ca89fe7f9600a3d3bd21de94e33dd13828d2d0511417416698ca76cba4d6f29772966475c340129a08c18f8c1005b703d9847bb7e0679cf5 - -# 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201211552_create_users.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201211552_create_users.rb deleted file mode 100644 index b09cf3f..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201211552_create_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email_address - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201214740_create_blogs.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201214740_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201214740_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201214910_create_owners.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201214910_create_owners.rb deleted file mode 100644 index e76114e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201214910_create_owners.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateOwners < ActiveRecord::Migration - def change - create_table :owners do |t| - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201215007_create_posts.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201215007_create_posts.rb deleted file mode 100644 index c1075fd..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201215007_create_posts.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201215115_create_messages.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201215115_create_messages.rb deleted file mode 100644 index 82f5dc3..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/migrate/20171201215115_create_messages.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :post, index: true, foreign_key: true - t.references :user, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/schema.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/schema.rb deleted file mode 100644 index 55d0c44..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/schema.rb +++ /dev/null @@ -1,65 +0,0 @@ -# encoding: UTF-8 -# 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: 20171201215115) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "post_id" - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - add_index "messages", ["user_id"], name: "index_messages_on_user_id" - - create_table "owners", force: :cascade do |t| - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "owners", ["blog_id"], name: "index_owners_on_blog_id" - add_index "owners", ["user_id"], name: "index_owners_on_user_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - add_index "posts", ["user_id"], name: "index_posts_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email_address" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/seeds.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/lib/assets/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/lib/tasks/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/log/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/404.html b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/422.html b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/500.html b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/favicon.ico b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/robots.txt b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/controllers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/blogs.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/messages.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/messages.yml deleted file mode 100644 index 5496958..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/messages.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - post_id: - user_id: - -two: - author: MyString - message: MyText - post_id: - user_id: diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/owners.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/owners.yml deleted file mode 100644 index 99a91f2..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/owners.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user_id: - blog_id: - -two: - user_id: - blog_id: diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/posts.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/posts.yml deleted file mode 100644 index de7c3d7..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/posts.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - user_id: - blog_id: - -two: - title: MyString - content: MyText - user_id: - blog_id: diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/users.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/users.yml deleted file mode 100644 index f49e8d5..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email_address: MyString - -two: - first_name: MyString - last_name: MyString - email_address: MyString diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/helpers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/integration/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/mailers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/blog_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/message_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/owner_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/owner_test.rb deleted file mode 100644 index d857cee..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/owner_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class OwnerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/post_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/user_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/test_helper.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/.gitignore b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Gemfile b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Gemfile deleted file mode 100644 index 55197da..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Gemfile +++ /dev/null @@ -1,46 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc -gem 'rails-footnotes', '~> 4.0' -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Gemfile.lock b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Gemfile.lock deleted file mode 100644 index 2445273..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/README.rdoc b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Rakefile b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/assets/images/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/mailers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/models/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/models/blog.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/models/blog.rb deleted file mode 100644 index aa6c93c..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/app/models/blog.rb +++ /dev/null @@ -1,91 +0,0 @@ -class Blog < ActiveRecord::Base - has_many :owners - has_many :posts - has_many :comments, as: :commentable - - # all the users that own a specific blog - has_many :users, through: :owners - #all the users that posted on a specific blog - has_many :user_posts, through: :posts, source: :user - - validates :name, :description, presence: true, length: { minimum: 3 } -end - - -# # Have the first 3 blogs be owned by the first user -# Blog.find(2).users< - - - BlogPostsMessages2 - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/bundle b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/rails b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/rake b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/setup b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/spring b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config.ru b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/application.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/application.rb deleted file mode 100644 index 32ae995..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module BlogPostsMessages2 - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/boot.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/database.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environment.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/development.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/production.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/assets.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/session_store.rb deleted file mode 100644 index ef77624..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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: '_blog_posts_messages_2_session' diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/locales/en.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/routes.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/secrets.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/config/secrets.yml deleted file mode 100644 index a72781d..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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: 80adff02180413cd4cd55f5b02eae2d3dbffdd6d6d2ee72b6a20c7d275ee599f1aa22c4533df2f3495a04a7cdf93aaa4e3e9257da9f2196d5640a7ac725cc77f - -test: - secret_key_base: 31577b453f7d09a4ca89fe7f9600a3d3bd21de94e33dd13828d2d0511417416698ca76cba4d6f29772966475c340129a08c18f8c1005b703d9847bb7e0679cf5 - -# 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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201211552_create_users.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201211552_create_users.rb deleted file mode 100644 index b09cf3f..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201211552_create_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email_address - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201214740_create_blogs.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201214740_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201214740_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201214910_create_owners.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201214910_create_owners.rb deleted file mode 100644 index e76114e..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201214910_create_owners.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateOwners < ActiveRecord::Migration - def change - create_table :owners do |t| - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201215007_create_posts.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201215007_create_posts.rb deleted file mode 100644 index c1075fd..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201215007_create_posts.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201215115_create_messages.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201215115_create_messages.rb deleted file mode 100644 index 82f5dc3..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171201215115_create_messages.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :post, index: true, foreign_key: true - t.references :user, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171202190136_create_comments.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171202190136_create_comments.rb deleted file mode 100644 index 89f2227..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/migrate/20171202190136_create_comments.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateComments < ActiveRecord::Migration - def change - create_table :comments do |t| - t.text :content - t.references :commentable, polymorphic: true, index: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/schema.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/schema.rb deleted file mode 100644 index 754d183..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/schema.rb +++ /dev/null @@ -1,75 +0,0 @@ -# encoding: UTF-8 -# 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: 20171202190136) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "comments", force: :cascade do |t| - t.text "content" - t.integer "commentable_id" - t.string "commentable_type" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "comments", ["commentable_type", "commentable_id"], name: "index_comments_on_commentable_type_and_commentable_id" - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "post_id" - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - add_index "messages", ["user_id"], name: "index_messages_on_user_id" - - create_table "owners", force: :cascade do |t| - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "owners", ["blog_id"], name: "index_owners_on_blog_id" - add_index "owners", ["user_id"], name: "index_owners_on_user_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - add_index "posts", ["user_id"], name: "index_posts_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email_address" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/seeds.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/lib/assets/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/lib/tasks/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/log/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/404.html b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/422.html b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/500.html b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/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/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/favicon.ico b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/robots.txt b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/controllers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/blogs.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/comments.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/comments.yml deleted file mode 100644 index 01eef4d..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/comments.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - content: MyText - commentable_id: - commentable_type: Commentable - -two: - content: MyText - commentable_id: - commentable_type: Commentable diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/messages.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/messages.yml deleted file mode 100644 index 5496958..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/messages.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - post_id: - user_id: - -two: - author: MyString - message: MyText - post_id: - user_id: diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/owners.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/owners.yml deleted file mode 100644 index 99a91f2..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/owners.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user_id: - blog_id: - -two: - user_id: - blog_id: diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/posts.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/posts.yml deleted file mode 100644 index de7c3d7..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/posts.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - user_id: - blog_id: - -two: - title: MyString - content: MyText - user_id: - blog_id: diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/users.yml b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/users.yml deleted file mode 100644 index f49e8d5..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email_address: MyString - -two: - first_name: MyString - last_name: MyString - email_address: MyString diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/helpers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/integration/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/mailers/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/blog_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/message_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/owner_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/owner_test.rb deleted file mode 100644 index d857cee..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/owner_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class OwnerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/post_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/user_test.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/test_helper.rb b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/.gitignore b/Tamisha_Damas/Rails/Models /dojo_ninja/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/Gemfile b/Tamisha_Damas/Rails/Models /dojo_ninja/Gemfile deleted file mode 100644 index 7ef2c56..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/Gemfile +++ /dev/null @@ -1,46 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/Gemfile.lock b/Tamisha_Damas/Rails/Models /dojo_ninja/Gemfile.lock deleted file mode 100644 index b07f42d..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/Gemfile.lock +++ /dev/null @@ -1,173 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/README.rdoc b/Tamisha_Damas/Rails/Models /dojo_ninja/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/Rakefile b/Tamisha_Damas/Rails/Models /dojo_ninja/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/app/assets/images/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Models /dojo_ninja/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Models /dojo_ninja/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Models /dojo_ninja/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/mailers/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/concerns/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/dojo.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/dojo.rb deleted file mode 100644 index af72807..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/dojo.rb +++ /dev/null @@ -1,13 +0,0 @@ -class Dojo < ActiveRecord::Base - has_many :ninjas, dependent: :destroy - validates :name, :city, :state, presence: true - validates :state, length: { is: 2 } -end - -# 8. How would you only retrieve the first_name of the ninja that belongs to the second dojo and order the result by created_at DESC order? -# Ninja.where(dojo: Dojo.second).select(:id, :first_name).order(created_at: :desc) - -# 7. Make sure you understand how to get all of the ninjas for any dojo (e.g. get all the ninjas for the first dojo, second dojo, etc) -# Dojo.first.ninjas -# Dojo.second.ninjas -# Dojo.third.ninjas diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/ninja.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/ninja.rb deleted file mode 100644 index 93e430c..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/app/models/ninja.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Ninja < ActiveRecord::Base - belongs_to :dojo - validates :first_name, :last_name, presence: true -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Models /dojo_ninja/app/views/layouts/application.html.erb deleted file mode 100644 index b995da6..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoNinja - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/bundle b/Tamisha_Damas/Rails/Models /dojo_ninja/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/bin/rails b/Tamisha_Damas/Rails/Models /dojo_ninja/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/rake b/Tamisha_Damas/Rails/Models /dojo_ninja/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/setup b/Tamisha_Damas/Rails/Models /dojo_ninja/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/spring b/Tamisha_Damas/Rails/Models /dojo_ninja/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/config.ru b/Tamisha_Damas/Rails/Models /dojo_ninja/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/application.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/application.rb deleted file mode 100644 index 6cd6120..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoNinja - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/config/boot.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/config/database.yml b/Tamisha_Damas/Rails/Models /dojo_ninja/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/environment.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/development.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/production.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/test.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/assets.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/session_store.rb deleted file mode 100644 index 23eba5c..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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: '_dojo_ninja_session' diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/locales/en.yml b/Tamisha_Damas/Rails/Models /dojo_ninja/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/config/routes.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/config/secrets.yml b/Tamisha_Damas/Rails/Models /dojo_ninja/config/secrets.yml deleted file mode 100644 index 369eead..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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: 59d34b177411700e7b55c75c2b24d23da1a225aa031c1b4e5bb51ce011ecf2cd0793e954b389eeb8aa0377f5b7d389e8802b33de41a5c3344bf016c4a61fa194 - -test: - secret_key_base: 0d9487ad4acd3c25fdf4992efad35b6841ff3745bfad77da4020239ef3f94e5d29176ccc1f0c53040ad0c34ae25f4de0b56e14955793e4aa8c320f1aa256d927 - -# 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/Tamisha_Damas/Rails/Models /dojo_ninja/db/migrate/20171009015736_create_dojos.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/db/migrate/20171009015736_create_dojos.rb deleted file mode 100644 index ece0705..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/db/migrate/20171009015736_create_dojos.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :name - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/db/migrate/20171009130935_create_ninjas.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/db/migrate/20171009130935_create_ninjas.rb deleted file mode 100644 index 8334127..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/db/migrate/20171009130935_create_ninjas.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateNinjas < ActiveRecord::Migration - def change - create_table :ninjas do |t| - t.string :first_name - t.string :last_name - t.references :dojo, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/db/schema.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/db/schema.rb deleted file mode 100644 index 7a48a81..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/db/schema.rb +++ /dev/null @@ -1,34 +0,0 @@ -# encoding: UTF-8 -# 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: 20171009130935) do - - create_table "dojos", force: :cascade do |t| - t.string "name" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "ninjas", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.integer "dojo_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "ninjas", ["dojo_id"], name: "index_ninjas_on_dojo_id" - -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/db/seeds.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/lib/assets/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/lib/tasks/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/log/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/public/404.html b/Tamisha_Damas/Rails/Models /dojo_ninja/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/public/422.html b/Tamisha_Damas/Rails/Models /dojo_ninja/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/public/500.html b/Tamisha_Damas/Rails/Models /dojo_ninja/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/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/Tamisha_Damas/Rails/Models /dojo_ninja/public/favicon.ico b/Tamisha_Damas/Rails/Models /dojo_ninja/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/public/robots.txt b/Tamisha_Damas/Rails/Models /dojo_ninja/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/controllers/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/dojos.yml b/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/dojos.yml deleted file mode 100644 index 07bb5b1..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/dojos.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - city: MyString - state: MyString - -two: - name: MyString - city: MyString - state: MyString diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/ninjas.yml b/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/ninjas.yml deleted file mode 100644 index ddd337f..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/test/fixtures/ninjas.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - dojo_id: - -two: - first_name: MyString - last_name: MyString - dojo_id: diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/helpers/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/integration/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/mailers/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/dojo_test.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/ninja_test.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/ninja_test.rb deleted file mode 100644 index d21c152..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/test/models/ninja_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class NinjaTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/test/test_helper.rb b/Tamisha_Damas/Rails/Models /dojo_ninja/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Models /dojo_ninja/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /dojo_ninja/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Models /dojo_ninja/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/.each do |player| b/Tamisha_Damas/Rails/Models /optimize/.each do |player| deleted file mode 100644 index e351df7..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/.each do |player| +++ /dev/null @@ -1,1158 +0,0 @@ -+-----+--------------------------+---------+-------------------------+-------------------------+ -| id | name | team_id | created_at | updated_at | -+-----+--------------------------+---------+-------------------------+-------------------------+ -| 1 | Luke Babbitt | 1 | 2017-10-09 20:56:06 UTC | 2017-10-09 20:56:06 UTC | -| 2 | Kent Bazemore | 1 | 2017-10-09 20:56:06 UTC | 2017-10-09 20:56:06 UTC | -| 3 | Marco Belinelli | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 4 | DeAndre' Bembry | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 5 | Nicolas Brussino | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 6 | Tyler Cavanaugh | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 7 | John Collins | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 8 | Quinn Cook | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 9 | Dewayne Dedmon | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 10 | Malcolm Delaney | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 11 | Tyler Dorsey | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 12 | Jeremy Evans | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 13 | Ersan Ilyasova | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 14 | Josh Magette | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 15 | Mike Muscala | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 16 | Miles Plumlee | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 17 | Taurean Prince | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 18 | Dennis Schroder | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 19 | Kadeem Allen | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 20 | Aron Baynes | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 21 | Jabari Bird | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 22 | Jaylen Brown | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 23 | Daniel Dixon | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 24 | Gordon Hayward | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 25 | Jonathan Holmes | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 26 | Al Horford | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 27 | Kyrie Irving | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 28 | Shane Larkin | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 29 | Marcus Morris | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 30 | Abdel Nader | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 31 | Semi Ojeleye | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 32 | L.J. Peak | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 33 | Terry Rozier | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 34 | Marcus Smart | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 35 | Jayson Tatum | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 36 | Daniel Theis | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 37 | Andrew White III | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 38 | Guerschon Yabusele | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 39 | Quincy Acy | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 40 | Jarrett Allen | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 41 | Trevor Booker | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 42 | DeMarre Carroll | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 43 | Allen Crabbe | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 44 | Spencer Dinwiddie | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 45 | Milton Doyle | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 46 | Joe Harris | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 47 | Rondae Hollis-Jefferson | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 48 | Sean Kilpatrick | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 49 | Caris LeVert | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 50 | Jeremy Lin | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 51 | Akil Mitchell | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 52 | Timofey Mozgov | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 53 | Yakuba Ouattara | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 54 | D'Angelo Russell | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 55 | Jeremy Senglin | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 56 | Isaiah Whitehead | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 57 | Jacob Wiley | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 58 | Tyler Zeller | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 59 | Dwayne Bacon | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 60 | Nicolas Batum | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 61 | Michael Carter-Williams | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 62 | Treveon Graham | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 63 | Terry Henderson | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 64 | Isaiah Hicks | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 65 | Dwight Howard | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 66 | Frank Kaminsky | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 67 | Michael Kidd-Gilchrist | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 68 | Jeremy Lamb | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 69 | Mangok Mathiang | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 70 | Malik Monk | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 71 | Johnny O'Bryant III | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 72 | Marcus Paige | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 73 | Luke Petrasek | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 74 | Julyan Stone | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 75 | Kemba Walker | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 76 | Marvin Williams | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 77 | T.J. Williams | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 78 | Cody Zeller | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 79 | Ryan Arcidiacono | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 80 | Antonio Blakeney | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 81 | Kris Dunn | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 82 | Jarell Eddie | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 83 | Cristiano Felicio | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 84 | Jerian Grant | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 85 | Justin Holiday | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 86 | Jaylen Johnson | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 87 | Bronson Koenig | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 88 | Zach LaVine | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 89 | Robin Lopez | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 90 | Lauri Markkanen | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 91 | Nikola Mirotic | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 92 | David Nwaba | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 93 | Cameron Payne | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 94 | Quincy Pondexter | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 95 | Bobby Portis | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 96 | Diamond Stone | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 97 | Denzel Valentine | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 98 | Paul Zipser | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 99 | Jose Calderon | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 100 | Jae Crowder | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 101 | Kay Felder | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 102 | Channing Frye | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 103 | Jeff Green | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 104 | John Holland | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 105 | LeBron James | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 106 | Richard Jefferson | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 107 | Kyle Korver | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 108 | Kevin Love | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 109 | Cedi Osman | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 110 | Kendrick Perkins | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 111 | Derrick Rose | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 112 | Iman Shumpert | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 113 | JR Smith | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 114 | Edy Tavares | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 115 | Isaiah Thomas | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 116 | Tristan Thompson | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 117 | Dwyane Wade | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 118 | Ante Zizic | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 119 | Brandon Ashley | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 120 | J.J. Barea | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 121 | Harrison Barnes | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 122 | Gian Clavell | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 123 | Seth Curry | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 124 | PJ Dozier | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 125 | Yogi Ferrell | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 126 | Dorian Finney-Smith | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 127 | Devin Harris | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 128 | Maximilian Kleber | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 129 | Wesley Matthews | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 130 | Josh McRoberts | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 131 | Salah Mejri | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 132 | Johnathan Motley | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 133 | Nerlens Noel | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 134 | Dirk Nowitzki | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 135 | Dwight Powell | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 136 | Dennis Smith Jr. | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 137 | Maalik Wayns | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 138 | Jeff Withey | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 139 | Darrell Arthur | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 140 | Will Barton | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 141 | Malik Beasley | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 142 | Wilson Chandler | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 143 | Josh Childress | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 144 | Torrey Craig | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 145 | Kenneth Faried | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 146 | Gary Harris | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 147 | Juan Hernangomez | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 148 | Nikola Jokic | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 149 | Tyler Lydon | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 150 | Trey Lyles | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 151 | Paul Millsap | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 152 | Monte Morris | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 153 | Emmanuel Mudiay | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 154 | Jamal Murray | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 155 | Jameer Nelson | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 156 | Mason Plumlee | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 157 | Avery Bradley | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 158 | Reggie Bullock | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 159 | Dwight Buycks | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 160 | Andre Drummond | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 161 | Henry Ellenson | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 162 | Langston Galloway | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 163 | Tobias Harris | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 164 | Reggie Jackson | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 165 | Stanley Johnson | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 166 | Luke Kennard | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 167 | Jon Leuer | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 168 | Boban Marjanovic | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 169 | Luis Montero | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 170 | Eric Moreland | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 171 | Landry Nnoko | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 172 | Ish Smith | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 173 | Anthony Tolliver | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 174 | Beno Udrih | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 175 | Derek Willis | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 176 | Jordan Bell | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 177 | Chris Boucher | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 178 | Omri Casspi | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 179 | Stephen Curry | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 180 | Kevin Durant | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 181 | Michael Gbinije | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 182 | Draymond Green | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 183 | Andre Iguodala | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 184 | Damian Jones | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 185 | Shaun Livingston | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 186 | Kevon Looney | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 187 | Patrick McCaw | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 188 | JaVale McGee | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 189 | Georges Niang | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 190 | Zaza Pachulia | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 191 | Klay Thompson | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 192 | David West | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 193 | Nick Young | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 194 | Ryan Anderson | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 195 | Trevor Ariza | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 196 | Tarik Black | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 197 | Bobby Brown | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 198 | Clint Capela | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 199 | George de Paula | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 200 | Eric Gordon | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 201 | James Harden | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 202 | Nene Hilario | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 203 | Demetrius Jackson | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 204 | Chris Johnson | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 205 | Luc Mbah a Moute | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 206 | Cameron Oliver | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 207 | Chinanu Onuaku | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 208 | Chris Paul | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 209 | Zhou Qi | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 210 | Tim Quarterman | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 211 | Isaiah Taylor | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 212 | PJ Tucker | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 213 | Troy Williams | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 214 | Ike Anigbogu | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 215 | Bojan Bogdanovic | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 216 | Darren Collison | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 217 | Al Jefferson | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 218 | DeQuan Jones | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 219 | Cory Joseph | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 220 | T.J. Leaf | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 221 | Trey McKinney-Jones | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 222 | Ben Moore | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 223 | Victor Oladipo | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 224 | Alex Poythress | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 225 | Glenn Robinson III | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 226 | Domantas Sabonis | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 227 | Lance Stephenson | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 228 | Edmond Sumner | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 229 | Myles Turner | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 230 | Jarrod Uthoff | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 231 | Damien Wilkins | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 232 | Joe Young | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 233 | Thaddeus Young | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 234 | Patrick Beverley | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 235 | Sam Dekker | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 236 | Jawun Evans | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 237 | Danilo Gallinari | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 238 | Blake Griffin | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 239 | Montrezl Harrell | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 240 | LaDontae Henton | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 241 | Brice Johnson | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 242 | Wesley Johnson | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 243 | DeAndre Jordan | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 244 | Marshall Plumlee | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 245 | Willie Reed | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 246 | Austin Rivers | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 247 | Milos Teodosic | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 248 | Sindarius Thornwell | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 249 | Tyrone Wallace | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 250 | C.J. Williams | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 251 | Lou Williams | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 252 | Jamil Wilson | 13 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 253 | Lonzo Ball | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 254 | Vander Blue | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 255 | Andrew Bogut | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 256 | Corey Brewer | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 257 | Thomas Bryant | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 258 | Kentavious Caldwell-Pope | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 259 | Alex Caruso | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 260 | Jordan Clarkson | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 261 | Luol Deng | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 262 | Tyler Ennis | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 263 | Josh Hart | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 264 | Brandon Ingram | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 265 | Kyle Kuzma | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 266 | Brook Lopez | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 267 | Larry Nance Jr. | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 268 | Julius Randle | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 269 | Briante Weber | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 270 | Ivica Zubac | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 271 | Wade Baldwin IV | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 272 | Dillon Brooks | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 273 | Mario Chalmers | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 274 | Mike Conley | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 275 | Deyonta Davis | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 276 | James Ennis III | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 277 | Tyreke Evans | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 278 | Marc Gasol | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 279 | JaMychal Green | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 280 | Andrew Harrison | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 281 | Vince Hunter | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 282 | Jarell Martin | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 283 | Ben McLemore | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 284 | Chandler Parsons | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 285 | Ivan Rabb | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 286 | Durand Scott | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 287 | Wayne Selden | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 288 | Kobi Simmons | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 289 | Brandan Wright | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 290 | Rade Zagorac | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 291 | Bam Adebayo | 16 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 292 | Goran Dragic | 16 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 293 | Larry Drew II | 16 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 294 | Wayne Ellington | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 295 | AJ Hammons | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 296 | Udonis Haslem | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 297 | James Johnson | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 298 | Tyler Johnson | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 299 | Erik McCree | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 300 | Rodney McGruder | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 301 | Jordan Mickey | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 302 | Kelly Olynyk | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 303 | Josh Richardson | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 304 | Dion Waiters | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 305 | Derrick Walton Jr. | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 306 | Okaro White | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 307 | Hassan Whiteside | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 308 | Matt Williams | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 309 | Justise Winslow | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 310 | Giannis Antetokounmpo | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 311 | Joel Anthony | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 312 | Malcolm Brogdon | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 313 | Sterling Brown | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 314 | Matthew Dellavedova | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 315 | Gerald Green | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 316 | John Henson | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 317 | Thon Maker | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 318 | Khris Middleton | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 319 | Greg Monroe | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 320 | Xavier Munford | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 321 | Jabari Parker | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 322 | Gary Payton II | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 323 | Brandon Rush | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 324 | Tony Snell | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 325 | Mirza Teletovic | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 326 | Jason Terry | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 327 | Rashad Vaughn | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 328 | D.J. Wilson | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 329 | Cole Aldrich | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 330 | Nemanja Bjelica | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 331 | Aaron Brooks | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 332 | Anthony Brown | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 333 | Jimmy Butler | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 334 | Jamal Crawford | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 335 | Gorgui Dieng | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 336 | Marcus Georges-Hunt | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 337 | Taj Gibson | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 338 | Amile Jefferson | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 339 | Tyus Jones | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 340 | Shabazz Muhammad | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 341 | Justin Patton | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 342 | Jeff Teague | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 343 | Karl-Anthony Towns | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 344 | Melo Trimble | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 345 | Andrew Wiggins | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 346 | Alexis Ajinca | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 347 | Cliff Alexander | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 348 | Tony Allen | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 349 | Omer Asik | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 350 | Ian Clark | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 351 | Charles Cooke | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 352 | DeMarcus Cousins | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 353 | Jordan Crawford | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 354 | Dante Cunningham | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 355 | Anthony Davis | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 356 | Cheick Diallo | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 357 | Solomon Hill | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 358 | Jrue Holiday | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 359 | Frank Jackson | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 360 | Jalen Jones | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 361 | Perry Jones | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 362 | Darius Miller | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 363 | E'Twaun Moore | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 364 | Rajon Rondo | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 365 | Martell Webster | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 366 | Ron Baker | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 367 | Michael Beasley | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 368 | Damyean Dotson | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 369 | Tim Hardaway Jr. | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 370 | Nigel Hayes | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 371 | Willy Hernangomez | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 372 | Jarrett Jack | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 373 | Enes Kanter | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 374 | Luke Kornet | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 375 | Mindaugas Kuzminskas | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 376 | Courtney Lee | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 377 | Doug McDermott | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 378 | Joakim Noah | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 379 | Frank Ntilikina | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 380 | Kyle O'Quinn | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 381 | Kristaps Porzingis | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 382 | Xavier Rathan-Mayes | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 383 | Ramon Sessions | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 384 | Lance Thomas | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 385 | Alex Abrines | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 386 | Steven Adams | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 387 | Bryce Alford | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 388 | Carmelo Anthony | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 389 | Markel Brown | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 390 | Isaiah Canaan | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 391 | Semaj Christon | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 392 | Nick Collison | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 393 | Raymond Felton | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 394 | Terrance Ferguson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 395 | Paul George | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 396 | Jerami Grant | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 397 | Daniel Hamilton | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 398 | Josh Huestis | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 399 | Dakari Johnson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 400 | Patrick Patterson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 401 | Andre Roberson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 402 | Kyle Singler | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 403 | Rashawn Thomas | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 404 | Russell Westbrook | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 405 | Arron Afflalo | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 406 | D.J. Augustin | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 407 | Khem Birch | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 408 | Bismack Biyombo | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 409 | Troy Caupain | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 410 | Evan Fournier | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 411 | Aaron Gordon | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 412 | Mario Hezonja | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 413 | Jonathan Isaac | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 414 | Wesley Iwundu | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 415 | Kalin Lucas | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 416 | Shelvin Mack | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 417 | Adreian Payne | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 418 | Elfrid Payton | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 419 | Rodney Purvis | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 420 | Terrence Ross | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 421 | Damjan Rudez | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 422 | Jonathon Simmons | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 423 | Marreese Speights | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 424 | Nikola Vucevic | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 425 | Justin Anderson | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 426 | Jerryd Bayless | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 427 | James Blackmon Jr. | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 428 | Robert Covington | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 429 | Joel Embiid | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 430 | Markelle Fultz | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 431 | Richaun Holmes | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 432 | Kris Humphries | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 433 | Amir Johnson | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 434 | Furkan Korkmaz | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 435 | Timothe Luwawu-Cabarrot | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 436 | James Michael McAdoo | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 437 | T.J. McConnell | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 438 | Emeka Okafor | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 439 | Jahlil Okafor | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 440 | Jacob Pullen | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 441 | JJ Redick | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 442 | Dario Saric | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 443 | Ben Simmons | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 444 | Nik Stauskas | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 445 | Dragan Bender | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 446 | Anthony Bennett | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 447 | Eric Bledsoe | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 448 | Devin Booker | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 449 | Tyson Chandler | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 450 | Marquese Chriss | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 451 | Troy Daniels | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 452 | Jared Dudley | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 453 | Josh Jackson | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 454 | Mike James | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 455 | Peter Jok | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 456 | Derrick Jones Jr. | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 457 | Brandon Knight | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 458 | Alex Len | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 459 | Elijah Millsap | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 460 | Alec Peters | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 461 | Davon Reed | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 462 | Tyler Ulis | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 463 | TJ Warren | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 464 | Alan Williams | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 465 | Al-Farouq Aminu | 25 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 466 | Isaiah Briscoe | 25 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 467 | Zach Collins | 25 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 468 | Pat Connaughton | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 469 | Ed Davis | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 470 | Archie Goodwin | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 471 | Maurice Harkless | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 472 | Jake Layman | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 473 | Meyers Leonard | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 474 | Damian Lillard | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 475 | CJ McCollum | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 476 | Anthony Morrow | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 477 | Shabazz Napier | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 478 | Jusuf Nurkic | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 479 | Caleb Swanigan | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 480 | Evan Turner | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 481 | Noah Vonleh | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 482 | CJ Wilcox | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 483 | Bogdan Bogdanovic | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 484 | Vince Carter | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 485 | Willie Cauley-Stein | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 486 | Jack Cooley | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 487 | De'Aaron Fox | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 488 | Harry Giles | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 489 | Buddy Hield | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 490 | George Hill | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 491 | Justin Jackson | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 492 | Matt Jones | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 493 | Kosta Koufos | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 494 | Skal Labissiere | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 495 | Frank Mason III | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 496 | Georgios Papagiannis | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 497 | Zach Randolph | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 498 | Malachi Richardson | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 499 | JaKarr Sampson | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 500 | Garrett Temple | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 501 | Marcus Williams | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 502 | LaMarcus Aldridge | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 503 | Kyle Anderson | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 504 | Davis Bertans | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 505 | Amida Brimah | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 506 | Matt Costello | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 507 | Bryn Forbes | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 508 | Pau Gasol | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 509 | Rudy Gay | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 510 | Manu Ginobili | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 511 | Danny Green | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 512 | Darrun Hilliard | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 513 | Joffrey Lauvergne | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 514 | Kawhi Leonard | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 515 | Patty Mills | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 516 | Dejounte Murray | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 517 | Tony Parker | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 518 | Brandon Paul | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 519 | London Perrantes | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 520 | Derrick White | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 521 | OG Anunoby | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 522 | Lorenzo Brown | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 523 | Bruno Caboclo | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 524 | DeMar DeRozan | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 525 | Serge Ibaka | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 526 | Kyle Lowry | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 527 | KJ McDaniels | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 528 | Alfonzo McKinnie | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 529 | CJ Miles | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 530 | Malcolm Miller | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 531 | Lucas Nogueira | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 532 | Jakob Poeltl | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 533 | Norman Powell | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 534 | Pascal Siakam | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 535 | Jonas Valanciunas | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 536 | Fred VanVleet | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 537 | Delon Wright | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 538 | Joel Bolomboy | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 539 | Tony Bradley | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 540 | Alec Burks | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 541 | Dante Exum | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 542 | Derrick Favors | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 543 | Rudy Gobert | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 544 | Eric Griffin | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 545 | Rodney Hood | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 546 | Joe Ingles | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 547 | Jonas Jerebko | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 548 | Joe Johnson | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 549 | Donovan Mitchell | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 550 | Nazareth Mitrou-Long | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 551 | Raul Neto | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 552 | Royce O'Neale | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 553 | Ricky Rubio | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 554 | Thabo Sefolosha | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 555 | Ekpe Udoh | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 556 | Nate Wolters | 29 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 557 | Bradley Beal | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 558 | Carrick Felix | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 559 | Tim Frazier | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 560 | Marcin Gortat | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 561 | Sheldon Mac | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 562 | Ian Mahinmi | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 563 | Chris McCullough | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 564 | Jodie Meeks | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 565 | Markieff Morris | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 566 | Kelly Oubre Jr. | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 567 | Otto Porter Jr. | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 568 | Devin Robinson | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 569 | Tomas Satoransky | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 570 | Mike Scott | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 571 | Donald Sloan | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 572 | Jason Smith | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 573 | John Wall | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 574 | Michael Young | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -+-----+--------------------------+---------+-------------------------+-------------------------+ -574 rows in set -+-----+--------------------------+---------+-------------------------+-------------------------+ -| id | name | team_id | created_at | updated_at | -+-----+--------------------------+---------+-------------------------+-------------------------+ -| 1 | Luke Babbitt | 1 | 2017-10-09 20:56:06 UTC | 2017-10-09 20:56:06 UTC | -| 2 | Kent Bazemore | 1 | 2017-10-09 20:56:06 UTC | 2017-10-09 20:56:06 UTC | -| 3 | Marco Belinelli | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 4 | DeAndre' Bembry | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 5 | Nicolas Brussino | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 6 | Tyler Cavanaugh | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 7 | John Collins | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 8 | Quinn Cook | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 9 | Dewayne Dedmon | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 10 | Malcolm Delaney | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 11 | Tyler Dorsey | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 12 | Jeremy Evans | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 13 | Ersan Ilyasova | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 14 | Josh Magette | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 15 | Mike Muscala | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 16 | Miles Plumlee | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 17 | Taurean Prince | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 18 | Dennis Schroder | 1 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 19 | Kadeem Allen | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 20 | Aron Baynes | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 21 | Jabari Bird | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 22 | Jaylen Brown | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 23 | Daniel Dixon | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 24 | Gordon Hayward | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 25 | Jonathan Holmes | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 26 | Al Horford | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 27 | Kyrie Irving | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 28 | Shane Larkin | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 29 | Marcus Morris | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 30 | Abdel Nader | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 31 | Semi Ojeleye | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 32 | L.J. Peak | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 33 | Terry Rozier | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 34 | Marcus Smart | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 35 | Jayson Tatum | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 36 | Daniel Theis | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 37 | Andrew White III | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 38 | Guerschon Yabusele | 2 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 39 | Quincy Acy | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 40 | Jarrett Allen | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 41 | Trevor Booker | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 42 | DeMarre Carroll | 3 | 2017-10-09 20:56:07 UTC | 2017-10-09 20:56:07 UTC | -| 43 | Allen Crabbe | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 44 | Spencer Dinwiddie | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 45 | Milton Doyle | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 46 | Joe Harris | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 47 | Rondae Hollis-Jefferson | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 48 | Sean Kilpatrick | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 49 | Caris LeVert | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 50 | Jeremy Lin | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 51 | Akil Mitchell | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 52 | Timofey Mozgov | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 53 | Yakuba Ouattara | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 54 | D'Angelo Russell | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 55 | Jeremy Senglin | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 56 | Isaiah Whitehead | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 57 | Jacob Wiley | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 58 | Tyler Zeller | 3 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 59 | Dwayne Bacon | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 60 | Nicolas Batum | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 61 | Michael Carter-Williams | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 62 | Treveon Graham | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 63 | Terry Henderson | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 64 | Isaiah Hicks | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 65 | Dwight Howard | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 66 | Frank Kaminsky | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 67 | Michael Kidd-Gilchrist | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 68 | Jeremy Lamb | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 69 | Mangok Mathiang | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 70 | Malik Monk | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 71 | Johnny O'Bryant III | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 72 | Marcus Paige | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 73 | Luke Petrasek | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 74 | Julyan Stone | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 75 | Kemba Walker | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 76 | Marvin Williams | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 77 | T.J. Williams | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 78 | Cody Zeller | 4 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 79 | Ryan Arcidiacono | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 80 | Antonio Blakeney | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 81 | Kris Dunn | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 82 | Jarell Eddie | 5 | 2017-10-09 20:56:08 UTC | 2017-10-09 20:56:08 UTC | -| 83 | Cristiano Felicio | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 84 | Jerian Grant | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 85 | Justin Holiday | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 86 | Jaylen Johnson | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 87 | Bronson Koenig | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 88 | Zach LaVine | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 89 | Robin Lopez | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 90 | Lauri Markkanen | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 91 | Nikola Mirotic | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 92 | David Nwaba | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 93 | Cameron Payne | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 94 | Quincy Pondexter | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 95 | Bobby Portis | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 96 | Diamond Stone | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 97 | Denzel Valentine | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 98 | Paul Zipser | 5 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 99 | Jose Calderon | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 100 | Jae Crowder | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 101 | Kay Felder | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 102 | Channing Frye | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 103 | Jeff Green | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 104 | John Holland | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 105 | LeBron James | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 106 | Richard Jefferson | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 107 | Kyle Korver | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 108 | Kevin Love | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 109 | Cedi Osman | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 110 | Kendrick Perkins | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 111 | Derrick Rose | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 112 | Iman Shumpert | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 113 | JR Smith | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 114 | Edy Tavares | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 115 | Isaiah Thomas | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 116 | Tristan Thompson | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 117 | Dwyane Wade | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 118 | Ante Zizic | 6 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 119 | Brandon Ashley | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 120 | J.J. Barea | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 121 | Harrison Barnes | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 122 | Gian Clavell | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 123 | Seth Curry | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 124 | PJ Dozier | 7 | 2017-10-09 20:56:09 UTC | 2017-10-09 20:56:09 UTC | -| 125 | Yogi Ferrell | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 126 | Dorian Finney-Smith | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 127 | Devin Harris | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 128 | Maximilian Kleber | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 129 | Wesley Matthews | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 130 | Josh McRoberts | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 131 | Salah Mejri | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 132 | Johnathan Motley | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 133 | Nerlens Noel | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 134 | Dirk Nowitzki | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 135 | Dwight Powell | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 136 | Dennis Smith Jr. | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 137 | Maalik Wayns | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 138 | Jeff Withey | 7 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 139 | Darrell Arthur | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 140 | Will Barton | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 141 | Malik Beasley | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 142 | Wilson Chandler | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 143 | Josh Childress | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 144 | Torrey Craig | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 145 | Kenneth Faried | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 146 | Gary Harris | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 147 | Juan Hernangomez | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 148 | Nikola Jokic | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 149 | Tyler Lydon | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 150 | Trey Lyles | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 151 | Paul Millsap | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 152 | Monte Morris | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 153 | Emmanuel Mudiay | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 154 | Jamal Murray | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 155 | Jameer Nelson | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 156 | Mason Plumlee | 8 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 157 | Avery Bradley | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 158 | Reggie Bullock | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 159 | Dwight Buycks | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 160 | Andre Drummond | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 161 | Henry Ellenson | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 162 | Langston Galloway | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 163 | Tobias Harris | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 164 | Reggie Jackson | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 165 | Stanley Johnson | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 166 | Luke Kennard | 9 | 2017-10-09 20:56:10 UTC | 2017-10-09 20:56:10 UTC | -| 167 | Jon Leuer | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 168 | Boban Marjanovic | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 169 | Luis Montero | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 170 | Eric Moreland | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 171 | Landry Nnoko | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 172 | Ish Smith | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 173 | Anthony Tolliver | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 174 | Beno Udrih | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 175 | Derek Willis | 9 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 176 | Jordan Bell | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 177 | Chris Boucher | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 178 | Omri Casspi | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 179 | Stephen Curry | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 180 | Kevin Durant | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 181 | Michael Gbinije | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 182 | Draymond Green | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 183 | Andre Iguodala | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 184 | Damian Jones | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 185 | Shaun Livingston | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 186 | Kevon Looney | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 187 | Patrick McCaw | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 188 | JaVale McGee | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 189 | Georges Niang | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 190 | Zaza Pachulia | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 191 | Klay Thompson | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 192 | David West | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 193 | Nick Young | 10 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 194 | Ryan Anderson | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 195 | Trevor Ariza | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 196 | Tarik Black | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 197 | Bobby Brown | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 198 | Clint Capela | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 199 | George de Paula | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 200 | Eric Gordon | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 201 | James Harden | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 202 | Nene Hilario | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 203 | Demetrius Jackson | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 204 | Chris Johnson | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 205 | Luc Mbah a Moute | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 206 | Cameron Oliver | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 207 | Chinanu Onuaku | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 208 | Chris Paul | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 209 | Zhou Qi | 11 | 2017-10-09 20:56:11 UTC | 2017-10-09 20:56:11 UTC | -| 210 | Tim Quarterman | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 211 | Isaiah Taylor | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 212 | PJ Tucker | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 213 | Troy Williams | 11 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 214 | Ike Anigbogu | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 215 | Bojan Bogdanovic | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 216 | Darren Collison | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 217 | Al Jefferson | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 218 | DeQuan Jones | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 219 | Cory Joseph | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 220 | T.J. Leaf | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 221 | Trey McKinney-Jones | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 222 | Ben Moore | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 223 | Victor Oladipo | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 224 | Alex Poythress | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 225 | Glenn Robinson III | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 226 | Domantas Sabonis | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 227 | Lance Stephenson | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 228 | Edmond Sumner | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 229 | Myles Turner | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 230 | Jarrod Uthoff | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 231 | Damien Wilkins | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 232 | Joe Young | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 233 | Thaddeus Young | 12 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 234 | Patrick Beverley | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 235 | Sam Dekker | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 236 | Jawun Evans | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 237 | Danilo Gallinari | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 238 | Blake Griffin | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 239 | Montrezl Harrell | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 240 | LaDontae Henton | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 241 | Brice Johnson | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 242 | Wesley Johnson | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 243 | DeAndre Jordan | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 244 | Marshall Plumlee | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 245 | Willie Reed | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 246 | Austin Rivers | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 247 | Milos Teodosic | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 248 | Sindarius Thornwell | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 249 | Tyrone Wallace | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 250 | C.J. Williams | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 251 | Lou Williams | 13 | 2017-10-09 20:56:12 UTC | 2017-10-09 20:56:12 UTC | -| 252 | Jamil Wilson | 13 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 253 | Lonzo Ball | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 254 | Vander Blue | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 255 | Andrew Bogut | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 256 | Corey Brewer | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 257 | Thomas Bryant | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 258 | Kentavious Caldwell-Pope | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 259 | Alex Caruso | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 260 | Jordan Clarkson | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 261 | Luol Deng | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 262 | Tyler Ennis | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 263 | Josh Hart | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 264 | Brandon Ingram | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 265 | Kyle Kuzma | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 266 | Brook Lopez | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 267 | Larry Nance Jr. | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 268 | Julius Randle | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 269 | Briante Weber | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 270 | Ivica Zubac | 14 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 271 | Wade Baldwin IV | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 272 | Dillon Brooks | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 273 | Mario Chalmers | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 274 | Mike Conley | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 275 | Deyonta Davis | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 276 | James Ennis III | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 277 | Tyreke Evans | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 278 | Marc Gasol | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 279 | JaMychal Green | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 280 | Andrew Harrison | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 281 | Vince Hunter | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 282 | Jarell Martin | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 283 | Ben McLemore | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 284 | Chandler Parsons | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 285 | Ivan Rabb | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 286 | Durand Scott | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 287 | Wayne Selden | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 288 | Kobi Simmons | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 289 | Brandan Wright | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 290 | Rade Zagorac | 15 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 291 | Bam Adebayo | 16 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 292 | Goran Dragic | 16 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 293 | Larry Drew II | 16 | 2017-10-09 20:56:13 UTC | 2017-10-09 20:56:13 UTC | -| 294 | Wayne Ellington | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 295 | AJ Hammons | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 296 | Udonis Haslem | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 297 | James Johnson | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 298 | Tyler Johnson | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 299 | Erik McCree | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 300 | Rodney McGruder | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 301 | Jordan Mickey | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 302 | Kelly Olynyk | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 303 | Josh Richardson | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 304 | Dion Waiters | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 305 | Derrick Walton Jr. | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 306 | Okaro White | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 307 | Hassan Whiteside | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 308 | Matt Williams | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 309 | Justise Winslow | 16 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 310 | Giannis Antetokounmpo | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 311 | Joel Anthony | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 312 | Malcolm Brogdon | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 313 | Sterling Brown | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 314 | Matthew Dellavedova | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 315 | Gerald Green | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 316 | John Henson | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 317 | Thon Maker | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 318 | Khris Middleton | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 319 | Greg Monroe | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 320 | Xavier Munford | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 321 | Jabari Parker | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 322 | Gary Payton II | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 323 | Brandon Rush | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 324 | Tony Snell | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 325 | Mirza Teletovic | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 326 | Jason Terry | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 327 | Rashad Vaughn | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 328 | D.J. Wilson | 17 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 329 | Cole Aldrich | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 330 | Nemanja Bjelica | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 331 | Aaron Brooks | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 332 | Anthony Brown | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 333 | Jimmy Butler | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 334 | Jamal Crawford | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 335 | Gorgui Dieng | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 336 | Marcus Georges-Hunt | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 337 | Taj Gibson | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 338 | Amile Jefferson | 18 | 2017-10-09 20:56:14 UTC | 2017-10-09 20:56:14 UTC | -| 339 | Tyus Jones | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 340 | Shabazz Muhammad | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 341 | Justin Patton | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 342 | Jeff Teague | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 343 | Karl-Anthony Towns | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 344 | Melo Trimble | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 345 | Andrew Wiggins | 18 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 346 | Alexis Ajinca | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 347 | Cliff Alexander | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 348 | Tony Allen | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 349 | Omer Asik | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 350 | Ian Clark | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 351 | Charles Cooke | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 352 | DeMarcus Cousins | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 353 | Jordan Crawford | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 354 | Dante Cunningham | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 355 | Anthony Davis | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 356 | Cheick Diallo | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 357 | Solomon Hill | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 358 | Jrue Holiday | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 359 | Frank Jackson | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 360 | Jalen Jones | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 361 | Perry Jones | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 362 | Darius Miller | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 363 | E'Twaun Moore | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 364 | Rajon Rondo | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 365 | Martell Webster | 19 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 366 | Ron Baker | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 367 | Michael Beasley | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 368 | Damyean Dotson | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 369 | Tim Hardaway Jr. | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 370 | Nigel Hayes | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 371 | Willy Hernangomez | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 372 | Jarrett Jack | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 373 | Enes Kanter | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 374 | Luke Kornet | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 375 | Mindaugas Kuzminskas | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 376 | Courtney Lee | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 377 | Doug McDermott | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 378 | Joakim Noah | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 379 | Frank Ntilikina | 20 | 2017-10-09 20:56:15 UTC | 2017-10-09 20:56:15 UTC | -| 380 | Kyle O'Quinn | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 381 | Kristaps Porzingis | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 382 | Xavier Rathan-Mayes | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 383 | Ramon Sessions | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 384 | Lance Thomas | 20 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 385 | Alex Abrines | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 386 | Steven Adams | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 387 | Bryce Alford | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 388 | Carmelo Anthony | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 389 | Markel Brown | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 390 | Isaiah Canaan | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 391 | Semaj Christon | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 392 | Nick Collison | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 393 | Raymond Felton | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 394 | Terrance Ferguson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 395 | Paul George | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 396 | Jerami Grant | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 397 | Daniel Hamilton | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 398 | Josh Huestis | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 399 | Dakari Johnson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 400 | Patrick Patterson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 401 | Andre Roberson | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 402 | Kyle Singler | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 403 | Rashawn Thomas | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 404 | Russell Westbrook | 21 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 405 | Arron Afflalo | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 406 | D.J. Augustin | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 407 | Khem Birch | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 408 | Bismack Biyombo | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 409 | Troy Caupain | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 410 | Evan Fournier | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 411 | Aaron Gordon | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 412 | Mario Hezonja | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 413 | Jonathan Isaac | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 414 | Wesley Iwundu | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 415 | Kalin Lucas | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 416 | Shelvin Mack | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 417 | Adreian Payne | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 418 | Elfrid Payton | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 419 | Rodney Purvis | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 420 | Terrence Ross | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 421 | Damjan Rudez | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 422 | Jonathon Simmons | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 423 | Marreese Speights | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 424 | Nikola Vucevic | 22 | 2017-10-09 20:56:16 UTC | 2017-10-09 20:56:16 UTC | -| 425 | Justin Anderson | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 426 | Jerryd Bayless | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 427 | James Blackmon Jr. | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 428 | Robert Covington | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 429 | Joel Embiid | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 430 | Markelle Fultz | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 431 | Richaun Holmes | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 432 | Kris Humphries | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 433 | Amir Johnson | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 434 | Furkan Korkmaz | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 435 | Timothe Luwawu-Cabarrot | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 436 | James Michael McAdoo | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 437 | T.J. McConnell | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 438 | Emeka Okafor | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 439 | Jahlil Okafor | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 440 | Jacob Pullen | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 441 | JJ Redick | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 442 | Dario Saric | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 443 | Ben Simmons | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 444 | Nik Stauskas | 23 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 445 | Dragan Bender | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 446 | Anthony Bennett | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 447 | Eric Bledsoe | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 448 | Devin Booker | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 449 | Tyson Chandler | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 450 | Marquese Chriss | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 451 | Troy Daniels | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 452 | Jared Dudley | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 453 | Josh Jackson | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 454 | Mike James | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 455 | Peter Jok | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 456 | Derrick Jones Jr. | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 457 | Brandon Knight | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 458 | Alex Len | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 459 | Elijah Millsap | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 460 | Alec Peters | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 461 | Davon Reed | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 462 | Tyler Ulis | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 463 | TJ Warren | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 464 | Alan Williams | 24 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 465 | Al-Farouq Aminu | 25 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 466 | Isaiah Briscoe | 25 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 467 | Zach Collins | 25 | 2017-10-09 20:56:17 UTC | 2017-10-09 20:56:17 UTC | -| 468 | Pat Connaughton | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 469 | Ed Davis | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 470 | Archie Goodwin | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 471 | Maurice Harkless | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 472 | Jake Layman | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 473 | Meyers Leonard | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 474 | Damian Lillard | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 475 | CJ McCollum | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 476 | Anthony Morrow | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 477 | Shabazz Napier | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 478 | Jusuf Nurkic | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 479 | Caleb Swanigan | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 480 | Evan Turner | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 481 | Noah Vonleh | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 482 | CJ Wilcox | 25 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 483 | Bogdan Bogdanovic | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 484 | Vince Carter | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 485 | Willie Cauley-Stein | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 486 | Jack Cooley | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 487 | De'Aaron Fox | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 488 | Harry Giles | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 489 | Buddy Hield | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 490 | George Hill | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 491 | Justin Jackson | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 492 | Matt Jones | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 493 | Kosta Koufos | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 494 | Skal Labissiere | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 495 | Frank Mason III | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 496 | Georgios Papagiannis | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 497 | Zach Randolph | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 498 | Malachi Richardson | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 499 | JaKarr Sampson | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 500 | Garrett Temple | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 501 | Marcus Williams | 26 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 502 | LaMarcus Aldridge | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 503 | Kyle Anderson | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 504 | Davis Bertans | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 505 | Amida Brimah | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 506 | Matt Costello | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 507 | Bryn Forbes | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 508 | Pau Gasol | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 509 | Rudy Gay | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 510 | Manu Ginobili | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 511 | Danny Green | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 512 | Darrun Hilliard | 27 | 2017-10-09 20:56:18 UTC | 2017-10-09 20:56:18 UTC | -| 513 | Joffrey Lauvergne | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 514 | Kawhi Leonard | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 515 | Patty Mills | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 516 | Dejounte Murray | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 517 | Tony Parker | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 518 | Brandon Paul | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 519 | London Perrantes | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 520 | Derrick White | 27 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 521 | OG Anunoby | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 522 | Lorenzo Brown | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 523 | Bruno Caboclo | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 524 | DeMar DeRozan | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 525 | Serge Ibaka | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 526 | Kyle Lowry | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 527 | KJ McDaniels | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 528 | Alfonzo McKinnie | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 529 | CJ Miles | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 530 | Malcolm Miller | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 531 | Lucas Nogueira | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 532 | Jakob Poeltl | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 533 | Norman Powell | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 534 | Pascal Siakam | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 535 | Jonas Valanciunas | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 536 | Fred VanVleet | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 537 | Delon Wright | 28 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 538 | Joel Bolomboy | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 539 | Tony Bradley | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 540 | Alec Burks | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 541 | Dante Exum | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 542 | Derrick Favors | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 543 | Rudy Gobert | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 544 | Eric Griffin | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 545 | Rodney Hood | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 546 | Joe Ingles | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 547 | Jonas Jerebko | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 548 | Joe Johnson | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 549 | Donovan Mitchell | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 550 | Nazareth Mitrou-Long | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 551 | Raul Neto | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 552 | Royce O'Neale | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 553 | Ricky Rubio | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 554 | Thabo Sefolosha | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 555 | Ekpe Udoh | 29 | 2017-10-09 20:56:19 UTC | 2017-10-09 20:56:19 UTC | -| 556 | Nate Wolters | 29 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 557 | Bradley Beal | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 558 | Carrick Felix | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 559 | Tim Frazier | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 560 | Marcin Gortat | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 561 | Sheldon Mac | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 562 | Ian Mahinmi | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 563 | Chris McCullough | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 564 | Jodie Meeks | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 565 | Markieff Morris | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 566 | Kelly Oubre Jr. | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 567 | Otto Porter Jr. | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 568 | Devin Robinson | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 569 | Tomas Satoransky | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 570 | Mike Scott | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 571 | Donald Sloan | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 572 | Jason Smith | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 573 | John Wall | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -| 574 | Michael Young | 30 | 2017-10-09 20:56:20 UTC | 2017-10-09 20:56:20 UTC | -+-----+--------------------------+---------+-------------------------+-------------------------+ -574 rows in set diff --git a/Tamisha_Damas/Rails/Models /optimize/.gitignore b/Tamisha_Damas/Rails/Models /optimize/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Models /optimize/Gemfile b/Tamisha_Damas/Rails/Models /optimize/Gemfile deleted file mode 100644 index 840f5c0..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/Gemfile +++ /dev/null @@ -1,46 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc -gem 'nokogiri' -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' -gem 'rails-footnotes', '~> 4.0' -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Models /optimize/Gemfile.lock b/Tamisha_Damas/Rails/Models /optimize/Gemfile.lock deleted file mode 100644 index 868d36e..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - nokogiri - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Models /optimize/README.rdoc b/Tamisha_Damas/Rails/Models /optimize/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Models /optimize/Rakefile b/Tamisha_Damas/Rails/Models /optimize/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/app/assets/images/.keep b/Tamisha_Damas/Rails/Models /optimize/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Models /optimize/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Models /optimize/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Models /optimize/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Models /optimize/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Models /optimize/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Models /optimize/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Models /optimize/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Models /optimize/app/mailers/.keep b/Tamisha_Damas/Rails/Models /optimize/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/app/models/.keep b/Tamisha_Damas/Rails/Models /optimize/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/app/models/concerns/.keep b/Tamisha_Damas/Rails/Models /optimize/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/app/models/player.rb b/Tamisha_Damas/Rails/Models /optimize/app/models/player.rb deleted file mode 100644 index b30fdc9..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/app/models/player.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Player < ActiveRecord::Base - belongs_to :team -end diff --git a/Tamisha_Damas/Rails/Models /optimize/app/models/team.rb b/Tamisha_Damas/Rails/Models /optimize/app/models/team.rb deleted file mode 100644 index c73f8bb..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/app/models/team.rb +++ /dev/null @@ -1,29 +0,0 @@ -class Team < ActiveRecord::Base - has_many :players -end - -# 1. Retrive all players, then write a program that will loop through each player and display their team name, mascot and stadium. How many queries have we done? -# players = Player.all -# players.each do |player| -# team = player.team -# puts "Player: #{player.name}, Team: #{team.name}, Mascot: #{team.mascot}, Stadium: #{team.stadium}" -# end - -# 2. Retrive all players and their team by using .includes -# players = Player.includes(:team) -# players.each do |player| -# puts "Player: #{player.name}, Team: #{player.team.name}, Mascot: #{player.team.mascot}, Stadium: #{player.team.stadium}" -# end -# -# # 3. Retrieve all players from the 'Chicago Bulls' by using .includes -# Player.includes(:team).where("teams.name = 'Chicago Bulls'").references(:team) -# -# # 4. Retrieve all players along with the team name that play at the 'Staples Center' -# Player.joins(:team).select('players.*', 'teams.name as franchise', 'teams.stadium as stadium').where("teams.stadium = 'Staples Center'") -# -# # 5 Retrive all teams that have any player that start their name with the letter 'A' by both .includes and .joins -# Team.includes(:players).where("players.name LIKE 'Z%'").references(:players) -# Team.joins(:players).where("players.name LIKE 'Z%'") -# -# # With .joins, we can also fetch more information. For example, we can retrieve the player's name as well -# Team.joins(:players).where("players.name LIKE 'Z%'").select("teams.name as team_name", "teams.*", "players.*") diff --git a/Tamisha_Damas/Rails/Models /optimize/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Models /optimize/app/views/layouts/application.html.erb deleted file mode 100644 index 7fc9d5f..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Optimize - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Models /optimize/bin/bundle b/Tamisha_Damas/Rails/Models /optimize/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/bin/rails b/Tamisha_Damas/Rails/Models /optimize/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Models /optimize/bin/rake b/Tamisha_Damas/Rails/Models /optimize/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Models /optimize/bin/setup b/Tamisha_Damas/Rails/Models /optimize/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Models /optimize/bin/spring b/Tamisha_Damas/Rails/Models /optimize/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/config.ru b/Tamisha_Damas/Rails/Models /optimize/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/application.rb b/Tamisha_Damas/Rails/Models /optimize/config/application.rb deleted file mode 100644 index 82f8fb1..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Optimize - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/config/boot.rb b/Tamisha_Damas/Rails/Models /optimize/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Models /optimize/config/database.yml b/Tamisha_Damas/Rails/Models /optimize/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/environment.rb b/Tamisha_Damas/Rails/Models /optimize/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/environments/development.rb b/Tamisha_Damas/Rails/Models /optimize/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Models /optimize/config/environments/production.rb b/Tamisha_Damas/Rails/Models /optimize/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Models /optimize/config/environments/test.rb b/Tamisha_Damas/Rails/Models /optimize/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Models /optimize/config/initializers/assets.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Models /optimize/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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 diff --git a/Tamisha_Damas/Rails/Models /optimize/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/session_store.rb deleted file mode 100644 index 7e5d399..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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: '_optimize_session' diff --git a/Tamisha_Damas/Rails/Models /optimize/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Models /optimize/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/locales/en.yml b/Tamisha_Damas/Rails/Models /optimize/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/config/routes.rb b/Tamisha_Damas/Rails/Models /optimize/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/config/secrets.yml b/Tamisha_Damas/Rails/Models /optimize/config/secrets.yml deleted file mode 100644 index b8283c7..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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: fb58d588d193b963ac7c53559b5769b198d2a23dce798463b76a46ffb43fdf32da40315e9e2ba91b7bd2306c94545479476f238a82cb99baab49ad305c4aeb00 - -test: - secret_key_base: cea7599618e24e4263bffcb734a69a346bf265146a61137f09d4f8819d474ac31c86798345feb61b8be69c05a75eb00d8a9aef907f88da538be495467769270b - -# 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/Tamisha_Damas/Rails/Models /optimize/db/migrate/20171009205208_create_teams.rb b/Tamisha_Damas/Rails/Models /optimize/db/migrate/20171009205208_create_teams.rb deleted file mode 100644 index 5f7137c..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/db/migrate/20171009205208_create_teams.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateTeams < ActiveRecord::Migration - def change - create_table :teams do |t| - t.string :name - t.string :mascot - t.string :stadium - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/db/migrate/20171009205259_create_players.rb b/Tamisha_Damas/Rails/Models /optimize/db/migrate/20171009205259_create_players.rb deleted file mode 100644 index 9949aad..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/db/migrate/20171009205259_create_players.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePlayers < ActiveRecord::Migration - def change - create_table :players do |t| - t.string :name - t.references :team, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/db/schema.rb b/Tamisha_Damas/Rails/Models /optimize/db/schema.rb deleted file mode 100644 index 141c4e3..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171009205259) do - - create_table "players", force: :cascade do |t| - t.string "name" - t.integer "team_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "players", ["team_id"], name: "index_players_on_team_id" - - create_table "teams", force: :cascade do |t| - t.string "name" - t.string "mascot" - t.string "stadium" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Models /optimize/db/seeds.rb b/Tamisha_Damas/Rails/Models /optimize/db/seeds.rb deleted file mode 100644 index d8051d4..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/db/seeds.rb +++ /dev/null @@ -1,111 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) -# we require 'open-uri' to request the html files -require 'open-uri' -teams = [ - ["Atlanta Hawks", "Skyhawk", "Philips Arena"], - ["Boston Celtics", "Lucky the Leprechaun", "TD Garden"], - ["Brooklyn Nets", "BrooklyKnight", "Barclays Center"], - ["Charlotte Hornets", "Hugo the Hornet", "Spectrum Center"], - ["Chicago Bulls", "Benny the Bull", "United Center"], - ["Cleveland Cavaliers", "Moondog", "Quicken Loans Arena"], - ["Dallas Mavericks", "Champ", "American Airlines Center"], - ["Denver Nuggets", "Rocky the Mountain Lion", "Pepsi Center"], - ["Detroit Pistons", "Hooper", "The Palace of Auburn Hills"], - ["Golden State Warriors", "Thunder", "Oracle Arena"], - ["Houston Rockets", "Clutch", "Toyota Center"], - ["Indiana Pacers", "Boomer the Panther", "Bankers Life Fieldhouse"], - ["Los Angeles Clippers", "Chuck", "Staples Center"], - ["Los Angeles Lakers", "Jack Nicholson", "Staples Center"], - ["Memphis Grizzlies", "Griz", "FedExForum"], - ["Miami Heat", "Burnie", "American Airlines Arena"], - ["Milwaukee Bucks", "Bango", "BMO Harris Bradley Center"], - ["Minnesota Timberwolves", "Crunch the Wolf", "Target Center"], - ["New Orleans Pelicans", "Pierre the Pelican", "Smoothie King Center"], - ["New York Knicks", "Spike Lee", "Madison Square Garden"], - ["Oklahoma City Thunder", "Rumble the Bison", "Chesapeake Energy Arena"], - ["Orlando Magic", "Stuff the Magic Dragon", "Amway Center"], - ["Philadelphia 76ers", "Franklin the Dog", "Wells Fargo Center Philadelphia"], - ["Phoenix Suns", "The Suns Gorilla", "Talking Stick Resort Arena"], - ["Portland Trail Blazers", "Blaze the Trail Cat", "Moda Center"], - ["Sacramento Kings", "Slamson the Lion", "Golden 1 Center"], - ["San Antonio Spurs", "The Coyote", "AT&T Center"], - ["Toronto Raptors", "Raptor", "Air Canada Centre"], - ["Utah Jazz", "Jazz Bear", "Vivint Smart Home Arena"], - ["Washington Wizards", "G. Wiz", "Verizon Center"] -] -# Here, we are using the Nokogiri gem (already comes with Rails), to scrape the ESPN website for the list of players. -# For more information on Nokogiri, you can go to their documentation or visit http://www.nokogiri.org/ -atlanta_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/atl/atlanta-hawks")).css("td.sortcell") -boston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bos/boston-celtics")).css("td.sortcell") -brooklyn_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bkn/brooklyn-nets")).css("td.sortcell") -charlotte_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cha/charlotte-hornets")).css("td.sortcell") -chicago_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/chi/chicago-bulls")).css("td.sortcell") -cleveland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cle/cleveland-cavaliers")).css("td.sortcell") -dallas_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/dal/dallas-mavericks")).css("td.sortcell") -denver_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/den/denver-nuggets")).css("td.sortcell") -detroit_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/det/detroit-pistons")).css("td.sortcell") -warriors_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/gs/golden-state-warriors")).css("td.sortcell") -houston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/hou/houston-rockets")).css("td.sortcell") -indiana_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ind/indiana-pacers")).css("td.sortcell") -clippers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lac/la-clippers")).css("td.sortcell") -lakers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lal/los-angeles-lakers")).css("td.sortcell") -memphis_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mem/memphis-grizzlies")).css("td.sortcell") -miami_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mia/miami-heat")).css("td.sortcell") -milwaukee_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mil/milwaukee-bucks")).css("td.sortcell") -minnesota_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/min/minnesota-timberwolves")).css("td.sortcell") -nola_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/no/new-orleans-pelicans")).css("td.sortcell") -knicks_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ny/new-york-knicks")).css("td.sortcell") -okc_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/okc/oklahoma-city-thunder")).css("td.sortcell") -orlando_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/orl/orlando-magic")).css("td.sortcell") -phili_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phi/philadelphia-76ers")).css("td.sortcell") -phoenix_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phx/phoenix-suns")).css("td.sortcell") -portland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/por/portland-trail-blazers")).css("td.sortcell") -sacramento_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sac/sacramento-kings")).css("td.sortcell") -spurs_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sa/san-antonio-spurs")).css("td.sortcell") -toronto_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/tor/toronto-raptors")).css("td.sortcell") -utah_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/utah/utah-jazz")).css("td.sortcell") -washington_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/wsh/washington-wizards")).css("td.sortcell") -players = [ - atlanta_players, - boston_players, - brooklyn_players, - charlotte_players, - chicago_players, - cleveland_players, - dallas_players, - denver_players, - detroit_players, - warriors_players, - houston_players, - indiana_players, - clippers_players, - lakers_players, - memphis_players, - miami_players, - milwaukee_players, - minnesota_players, - nola_players, - knicks_players, - okc_players, - orlando_players, - phili_players, - phoenix_players, - portland_players, - sacramento_players, - spurs_players, - toronto_players, - utah_players, - washington_players -] -players.each_with_index do |roster, index| - Team.create(name: teams[index][0], mascot: teams[index][1], stadium: teams[index][2]) - roster.each do |player| - Team.last.players.create(name: player.text) - end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/lib/assets/.keep b/Tamisha_Damas/Rails/Models /optimize/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/lib/tasks/.keep b/Tamisha_Damas/Rails/Models /optimize/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/log/.keep b/Tamisha_Damas/Rails/Models /optimize/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/public/404.html b/Tamisha_Damas/Rails/Models /optimize/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/public/422.html b/Tamisha_Damas/Rails/Models /optimize/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/public/500.html b/Tamisha_Damas/Rails/Models /optimize/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/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/Tamisha_Damas/Rails/Models /optimize/public/favicon.ico b/Tamisha_Damas/Rails/Models /optimize/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/public/robots.txt b/Tamisha_Damas/Rails/Models /optimize/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Models /optimize/test/controllers/.keep b/Tamisha_Damas/Rails/Models /optimize/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/test/fixtures/.keep b/Tamisha_Damas/Rails/Models /optimize/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/test/fixtures/players.yml b/Tamisha_Damas/Rails/Models /optimize/test/fixtures/players.yml deleted file mode 100644 index 56a4719..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/test/fixtures/players.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - team_id: - -two: - name: MyString - team_id: diff --git a/Tamisha_Damas/Rails/Models /optimize/test/fixtures/teams.yml b/Tamisha_Damas/Rails/Models /optimize/test/fixtures/teams.yml deleted file mode 100644 index d9c869d..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/test/fixtures/teams.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - mascot: MyString - stadium: MyString - -two: - name: MyString - mascot: MyString - stadium: MyString diff --git a/Tamisha_Damas/Rails/Models /optimize/test/helpers/.keep b/Tamisha_Damas/Rails/Models /optimize/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/test/integration/.keep b/Tamisha_Damas/Rails/Models /optimize/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/test/mailers/.keep b/Tamisha_Damas/Rails/Models /optimize/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/test/models/.keep b/Tamisha_Damas/Rails/Models /optimize/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/test/models/player_test.rb b/Tamisha_Damas/Rails/Models /optimize/test/models/player_test.rb deleted file mode 100644 index 3cf71d7..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/test/models/player_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PlayerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/test/models/team_test.rb b/Tamisha_Damas/Rails/Models /optimize/test/models/team_test.rb deleted file mode 100644 index 8b101cb..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/test/models/team_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TeamTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /optimize/test/test_helper.rb b/Tamisha_Damas/Rails/Models /optimize/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Models /optimize/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Models /optimize/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Models /optimize/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /optimize/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Models /optimize/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/.gitignore b/Tamisha_Damas/Rails/Models /user_login_project/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/Tamisha_Damas/Rails/Models /user_login_project/Gemfile b/Tamisha_Damas/Rails/Models /user_login_project/Gemfile deleted file mode 100644 index 7ef2c56..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/Gemfile +++ /dev/null @@ -1,46 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/Gemfile.lock b/Tamisha_Damas/Rails/Models /user_login_project/Gemfile.lock deleted file mode 100644 index b07f42d..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/Gemfile.lock +++ /dev/null @@ -1,173 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.2) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.2) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.0) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.8.6) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.6.6) - mime-types (>= 1.16, < 4) - mime-types (3.1) - mime-types-data (~> 3.2015) - mime-types-data (3.2016.0521) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.1.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.2) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.6) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.3) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.15.4 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/README.rdoc b/Tamisha_Damas/Rails/Models /user_login_project/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/Tamisha_Damas/Rails/Models /user_login_project/Rakefile b/Tamisha_Damas/Rails/Models /user_login_project/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/app/assets/images/.keep b/Tamisha_Damas/Rails/Models /user_login_project/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/assets/javascripts/application.js b/Tamisha_Damas/Rails/Models /user_login_project/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/assets/stylesheets/application.css b/Tamisha_Damas/Rails/Models /user_login_project/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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 any plugin's vendor/assets/stylesheets directory 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/Tamisha_Damas/Rails/Models /user_login_project/app/controllers/application_controller.rb b/Tamisha_Damas/Rails/Models /user_login_project/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/app/controllers/concerns/.keep b/Tamisha_Damas/Rails/Models /user_login_project/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/helpers/application_helper.rb b/Tamisha_Damas/Rails/Models /user_login_project/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/mailers/.keep b/Tamisha_Damas/Rails/Models /user_login_project/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/models/.keep b/Tamisha_Damas/Rails/Models /user_login_project/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/models/concerns/.keep b/Tamisha_Damas/Rails/Models /user_login_project/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/models/user.rb b/Tamisha_Damas/Rails/Models /user_login_project/app/models/user.rb deleted file mode 100644 index 790b930..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/app/models/user.rb +++ /dev/null @@ -1,6 +0,0 @@ -class User < ActiveRecord::Base - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, :age, :email_address, presence: true - validates :first_name, :last_name, length: { minimum: 2} - validates :age, numericality: { greater_than_or_equal_to: 10, less_than: 150 } -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/app/views/layouts/application.html.erb b/Tamisha_Damas/Rails/Models /user_login_project/app/views/layouts/application.html.erb deleted file mode 100644 index 03b8954..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - UserLoginProject - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/Tamisha_Damas/Rails/Models /user_login_project/bin/bundle b/Tamisha_Damas/Rails/Models /user_login_project/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/bin/rails b/Tamisha_Damas/Rails/Models /user_login_project/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Models /user_login_project/bin/rake b/Tamisha_Damas/Rails/Models /user_login_project/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/Tamisha_Damas/Rails/Models /user_login_project/bin/setup b/Tamisha_Damas/Rails/Models /user_login_project/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/bin/spring b/Tamisha_Damas/Rails/Models /user_login_project/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/config.ru b/Tamisha_Damas/Rails/Models /user_login_project/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/application.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/application.rb deleted file mode 100644 index 49c5e84..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module UserLoginProject - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/config/boot.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/Tamisha_Damas/Rails/Models /user_login_project/config/database.yml b/Tamisha_Damas/Rails/Models /user_login_project/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/environment.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/environments/development.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/Tamisha_Damas/Rails/Models /user_login_project/config/environments/production.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/Tamisha_Damas/Rails/Models /user_login_project/config/environments/test.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/assets.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/backtrace_silencers.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/cookies_serializer.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/filter_parameter_logging.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/inflections.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/mime_types.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/session_store.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/session_store.rb deleted file mode 100644 index d692eec..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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: '_user_login_project_session' diff --git a/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/wrap_parameters.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/locales/en.yml b/Tamisha_Damas/Rails/Models /user_login_project/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/config/routes.rb b/Tamisha_Damas/Rails/Models /user_login_project/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/config/secrets.yml b/Tamisha_Damas/Rails/Models /user_login_project/config/secrets.yml deleted file mode 100644 index 31c1a04..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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: 6c462b1db8f6b3f303edd1758fa04f72cd770bec91b582da3758eebd00fc67c371242de03eefbebc8760860f2b376506bac7e4c0617ee89a8e20964929095728 - -test: - secret_key_base: 96c7cf59da978badd8fb42ebdfd7deeb489505bab5ca49f679c121ac7b5fa8a461bed6f51ed2e906fae9c54c43d36d3f637b3f473ea2a1949437d77bf830f6f5 - -# 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/Tamisha_Damas/Rails/Models /user_login_project/db/migrate/20171008003509_create_users.rb b/Tamisha_Damas/Rails/Models /user_login_project/db/migrate/20171008003509_create_users.rb deleted file mode 100644 index 349b478..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/db/migrate/20171008003509_create_users.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email_address - t.integer :age - - t.timestamps null: false - end - end -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/db/schema.rb b/Tamisha_Damas/Rails/Models /user_login_project/db/schema.rb deleted file mode 100644 index 9d2d23a..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171008003509) do - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email_address" - t.integer "age" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/db/seeds.rb b/Tamisha_Damas/Rails/Models /user_login_project/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/Tamisha_Damas/Rails/Models /user_login_project/lib/assets/.keep b/Tamisha_Damas/Rails/Models /user_login_project/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/lib/tasks/.keep b/Tamisha_Damas/Rails/Models /user_login_project/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/log/.keep b/Tamisha_Damas/Rails/Models /user_login_project/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/public/404.html b/Tamisha_Damas/Rails/Models /user_login_project/public/404.html deleted file mode 100644 index b612547..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/public/422.html b/Tamisha_Damas/Rails/Models /user_login_project/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/public/500.html b/Tamisha_Damas/Rails/Models /user_login_project/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/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/Tamisha_Damas/Rails/Models /user_login_project/public/favicon.ico b/Tamisha_Damas/Rails/Models /user_login_project/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/public/robots.txt b/Tamisha_Damas/Rails/Models /user_login_project/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/controllers/.keep b/Tamisha_Damas/Rails/Models /user_login_project/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/fixtures/.keep b/Tamisha_Damas/Rails/Models /user_login_project/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/fixtures/users.yml b/Tamisha_Damas/Rails/Models /user_login_project/test/fixtures/users.yml deleted file mode 100644 index 9fbebe7..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/test/fixtures/users.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email_address: MyString - age: 1 - -two: - first_name: MyString - last_name: MyString - email_address: MyString - age: 1 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/helpers/.keep b/Tamisha_Damas/Rails/Models /user_login_project/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/integration/.keep b/Tamisha_Damas/Rails/Models /user_login_project/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/mailers/.keep b/Tamisha_Damas/Rails/Models /user_login_project/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/models/.keep b/Tamisha_Damas/Rails/Models /user_login_project/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/models/user_test.rb b/Tamisha_Damas/Rails/Models /user_login_project/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/test/test_helper.rb b/Tamisha_Damas/Rails/Models /user_login_project/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/Tamisha_Damas/Rails/Models /user_login_project/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/Tamisha_Damas/Rails/Models /user_login_project/vendor/assets/javascripts/.keep b/Tamisha_Damas/Rails/Models /user_login_project/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Rails/Models /user_login_project/vendor/assets/stylesheets/.keep b/Tamisha_Damas/Rails/Models /user_login_project/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/Tamisha_Damas/Ruby/Fundammentals/Arrays.rb b/Tamisha_Damas/Ruby/Fundammentals/Arrays.rb deleted file mode 100644 index 50c5b34..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/Arrays.rb +++ /dev/null @@ -1,16 +0,0 @@ -a = [ "I", "am", "always", "hungry", "in", "the", "mornings"] -b = [7, 14, 21, 55, 37, 52, 34] -c = ["always", 55] - -puts "I am #{b.at(2)} years old" -puts "I love waking up early in the #{a.fetch(6)}." -a.delete_at(2) -puts a.join(" ") -puts (a.length + b.length) -puts b.sort.to_s -puts b[1, 3].to_s -puts b.shuffle.to_s -puts a.join(" ") -puts b.join(" : ") -puts a.insert(2, b).to_s -puts b.values_at(1, 3, 5).to_s diff --git a/Tamisha_Damas/Ruby/Fundammentals/Basic13.rb b/Tamisha_Damas/Ruby/Fundammentals/Basic13.rb deleted file mode 100644 index 980809f..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/Basic13.rb +++ /dev/null @@ -1,86 +0,0 @@ -# # Print numbers 1-255 -# for i in 1..255 -# puts "#{i}" -# end - -#Print odd numbers between 1-255 -# for i in 1..255 -# if i % 2 == 1 -# puts i -# end -# end - -# Print sum -# def sum_num() -# sum = 0 -# for i in 0..255 -# puts sum = i + sum -# end -# end -# p sum_num - -# iterating through an Array -# def it_arr() -# x = [1, 3, 5, 7, 9, 13] -# x.each {|y| p y} -# end -# it_arr - -# Find max value for the Array -# def max_arr() -# x = [-3, -5, -7] -# x.max -# end -# puts max_arr - -# Find the average of an Array -# def avg() -# arr = [2, 10, 3] -# arr.reduce(:+) / arr.size -# end -# puts avg - -# Greater than Y -# def greater() -# arr = [1, 3, 5, 7] -# y = 3 -# p arr.find_all {|i| i > y} -# end -# greater - -# Square the Values -# def square() -# x = [1, 5, 10, -2] -# p x.collect { |i| i * i } -# end -# square - -#Eliminate negative numbers -# def elem() -# x = [1, 5, 10, -2] -# p x.map {|i| if i < 0 then i = 0 else i end} -# end -# elem - -# Max Min average -# def max_min_avg() -# x = [1, 5, 10 ,-2] -# puts x.max -# puts x.min -# puts x.reduce(:+) / x.size -# end -# max_min_avg - -# Shifting values in the array -# def shift() -# x = [1, 5, 7, 10, -2] -# p x.rotate -# end -# shift - -# Number to strings -# def num_str() -# x = [-1, -3, 2] -# p x.map {|i| if i < 0 then i = "Dojo" else i end} -# end -# num_str diff --git a/Tamisha_Damas/Ruby/Fundammentals/Guess_the_Number.rb b/Tamisha_Damas/Ruby/Fundammentals/Guess_the_Number.rb deleted file mode 100644 index 080cb1f..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/Guess_the_Number.rb +++ /dev/null @@ -1,7 +0,0 @@ -def guess_number guess - number = 25 - puts "Guess was too high" unless guess <= number - puts "Guess was too low" unless guess >= number - puts "You got it" if guess == number -end -guess_number 25 diff --git a/Tamisha_Damas/Ruby/Fundammentals/Hashes.rb b/Tamisha_Damas/Ruby/Fundammentals/Hashes.rb deleted file mode 100644 index 89c09f3..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/Hashes.rb +++ /dev/null @@ -1,42 +0,0 @@ -# def hash() -# h = {:first_name => "Coding", :last_name => "Dojo"} -# h.delete(:last_name) -# p h[:first_name]# => {:first_name => "Coding"} -# end -# hash() - -# def our_h() -# our_hash = {:first_name => "Coding", :last_name => "Dojo"} -# p our_hash[:first_name] -# end -# our_h() - - -# def new_user user = {first_name: "first", last_name: "last"} -# puts "Welcome to our site, #{user[:first_name]} #{user[:last_name]}!" -# end -# our_user = {first_name: 'Oscar', last_name: "Vazquez"} -# new_user # => "Welcome to our site, first last!" -# new_user our_user # => "Welcome to our site, Oscar Vasquez!" - -# def new_user first_name: "first", last_name: "last" -# puts "Welcome to our site, #{first_name} #{last_name}!" -# end -# new_user -# -# def new_user greeting="Welcome", first_name: "first", last_name: "last" -# puts "#{greeting}, #{first_name} #{last_name}" -# end -# our_user = {first_name: "Oscar", last_name: "Vazquez"} -# new_user # => Welcome, first last -# new_user "Hello", our_user # => Hello, Oscar Vazquez - -def student wel_message="Welcome to the Coding Dojo,", stu_first: "first", stu_last: "last" - puts "#{wel_message} #{stu_first} #{stu_last}" -end - -user1 = {stu_first: "Jane", stu_last: "Doe"} -puts user1.empty? -puts user1.has_key?(:stu_last) -puts user1.delete(:stu_last) -puts user1.has_value?("Jane") diff --git a/Tamisha_Damas/Ruby/Fundammentals/Range.rb b/Tamisha_Damas/Ruby/Fundammentals/Range.rb deleted file mode 100644 index c8bcc1e..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/Range.rb +++ /dev/null @@ -1,8 +0,0 @@ -arr = [ 101, 2000, 11, 45, 709] - -puts arr.include?(29) -puts arr.include?(11) - -puts arr.min -puts arr.max -puts arr.last diff --git a/Tamisha_Damas/Ruby/Fundammentals/my_enumerable.rb b/Tamisha_Damas/Ruby/Fundammentals/my_enumerable.rb deleted file mode 100644 index 173c912..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/my_enumerable.rb +++ /dev/null @@ -1,14 +0,0 @@ -module MyEnumerable - def my_each - #loop through the Array - for i in 0...self.length - #pass each element into the yield function - yield(self[i]) - end - end -end -class Array - include MyEnumerable -end -[1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 -# [1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 diff --git a/Tamisha_Damas/Ruby/Fundammentals/names.rb b/Tamisha_Damas/Ruby/Fundammentals/names.rb deleted file mode 100644 index 8a61eb9..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/names.rb +++ /dev/null @@ -1,12 +0,0 @@ -def name -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - -puts "You have #{names.length} in the 'names' array" -names.each{|x| puts "The name is #{x[:first_name]} #{x[:last_name]}"} -end -name diff --git a/Tamisha_Damas/Ruby/Fundammentals/ruby_puzzles.rb b/Tamisha_Damas/Ruby/Fundammentals/ruby_puzzles.rb deleted file mode 100644 index e0c781a..0000000 --- a/Tamisha_Damas/Ruby/Fundammentals/ruby_puzzles.rb +++ /dev/null @@ -1,46 +0,0 @@ -# # Create an Array with the following values -# arr = [3,5,1,2,7,9,8,13,25,32] -# -# # Print the sum of the values in the Array -# p arr.reduce(:+) -# -# # Return only values greater than 10 -# p arr.reject {|i| i < 10} - -# Create an Array with the following values -# x = ["John", "KB", "Oliver", "Cory", "Matthew", "Christopher"] -# # p x.shuffle.each {|i| puts i} -# puts x.select {|x| x.length > 5} - -#Create an array that contains all 26 letters in the alphabet -# arr = ("a".."z").to_a -# # p arr -# # p arr.shuffle.last -# p arr.shuffle.first -# p shuffled = arr.shuffle -# p "#{shuffled.first} is a vowel" if ["a","e","i","o","u"].include? shuffled.first - -# Generate an array with 10 random numbers between 55-100. -# # first create an empty array -# arr = Array.new -# # p Array.new(10) { Random.new.rand(55..100) } -# arr2 = Array.new(10) { Random.new.rand(55..100) } -# p arr2.sort { |a, b| a <=> b } -# p arr2.max -# p arr2.min - -#Create a random string that is 5 characters long (hint: (65+rand(26)).chr returns a random character; use a map function and a range to do this) -#Create an empty string - -def stringrand() - str = "" - for i in 1..5 - str << (65+rand(25)).chr - end - return str -end -p stringrand - -# #Generate an array with 10 random strings that are each 5 characters long -# arr = Array.new -# p Array.new(10) { Random.new.rand(55..100).to_s } diff --git a/Tamisha_Damas/Ruby/OOP/Animals/dog.rb b/Tamisha_Damas/Ruby/OOP/Animals/dog.rb deleted file mode 100644 index 73dd999..0000000 --- a/Tamisha_Damas/Ruby/OOP/Animals/dog.rb +++ /dev/null @@ -1,30 +0,0 @@ -require_relative 'mammals' -class Dog < Mammal # Dog inherits from Mammal - def pet - @health += 5 - self - end - def walk - @health -= 1 - self - end - def run - @health -= 10 - self - end -end -Dog1 = Dog.new -Dog1.health.display_all -Dog1.walk.walk.walk.run.run.pet.display_all - -3.times { Dog1.walk } -2.times { Dog1.run } -Dog1.pet.display_all - -3.times do - Dog1.walk.run.display_all -end - -for i in 1..3 - Dog1.walk.display_all -end diff --git a/Tamisha_Damas/Ruby/OOP/Animals/lion.rb b/Tamisha_Damas/Ruby/OOP/Animals/lion.rb deleted file mode 100644 index 02eae4d..0000000 --- a/Tamisha_Damas/Ruby/OOP/Animals/lion.rb +++ /dev/null @@ -1,25 +0,0 @@ -require_relative 'mammals' -class Lion < Mammal #Lion inherits from Mammal - def health - #S - super - @health = 170 - puts "This is a Lion #{@health}" - self - end - def fly - @health -= 10 - self - end - def attack_town - @health -= 20 - self - end - def eat_humans - @health += 20 - self - end -end -Lion1 = Lion.new -Lion1.health -Lion1.attack_town.attack_town.attack_town.eat_humans.eat_humans.fly.fly.display_all diff --git a/Tamisha_Damas/Ruby/OOP/Animals/mammals.rb b/Tamisha_Damas/Ruby/OOP/Animals/mammals.rb deleted file mode 100644 index f193f03..0000000 --- a/Tamisha_Damas/Ruby/OOP/Animals/mammals.rb +++ /dev/null @@ -1,10 +0,0 @@ -class Mammal - def health - @health = 150 - self - end - - def display_all - puts "Mammals health is #{@health}" - end -end diff --git a/Tamisha_Damas/Ruby/OOP/MathDojo.rb b/Tamisha_Damas/Ruby/OOP/MathDojo.rb deleted file mode 100644 index 91776c2..0000000 --- a/Tamisha_Damas/Ruby/OOP/MathDojo.rb +++ /dev/null @@ -1,46 +0,0 @@ -# class MathDojo -# attr_reader :result -# -# def initialize -# @result = 0 -# end -# -# def add *numbers -# # numbers.each { |num| @result += num} -# @result += numbers.flatten.reduce(0, :+) -# self -# end -# -# def subtract *numbers -# # numbers.each { |num| @result -= num} -# @result -= numbers.flatten.reduce(0, :+) -# self -# end -# end -# addition1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).answer -# addition2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).answer -# puts addition1 -# puts addition2 - -class MathDojo - attr_reader :answer - - def initialize - @answer = 0 - end - - def add(*numbers) - @answer += numbers.flatten.reduce(0, :+) - self - end - - def subtract(*numbers) - @answer -= numbers.flatten.reduce(0, :+) - self - end -end - -challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).answer -challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).answer -puts challenge1 -puts challenge2 diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/dog.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/dog.rb deleted file mode 100755 index 9df35bd..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/dog.rb +++ /dev/null @@ -1,24 +0,0 @@ -require_relative 'mammal' - -class Dog < Mammal - def pet(num) - @health += 5*num - self - end - - def walk(num) - @health -= 1*num - self - end - - def run(num) - @health -= 10*num - self - end -end - -fido = Dog.new -p fido - - -fido.walk(3).run(2).pet(1).display_health \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/dog2.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/dog2.rb deleted file mode 100755 index fdb521d..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/dog2.rb +++ /dev/null @@ -1,22 +0,0 @@ -require_relative "mammal" - -class Dog < Mammal - def pet - @health +=5 - self - end - - def walk - @health -=1 - self - end - - def run - @health -=10 - self - end -end - -d = Dog.new -d.display_health -d.walk.walk.walk.run.run.pet.display_health \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/lion.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/lion.rb deleted file mode 100755 index 8a8423c..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/lion.rb +++ /dev/null @@ -1,29 +0,0 @@ -require_relative 'mammal' - -class Lion < Mammal - - def initialize - super - @health = 170 - end - - def fly(num) - @health -= 10*num - self - end - - def attack_town(num) - @health -= 50*num - self - end - - def eat_humans(num) - @health -= 20*num - self - end -end - -leo = Lion.new -p leo - -p leo.attack_town(3).eat_humans(2).fly(2).display_health diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/mammal.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/mammal.rb deleted file mode 100755 index 095e801..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/animals/mammal.rb +++ /dev/null @@ -1,14 +0,0 @@ -class Mammal - attr_accessor :health - - def initialize - @health = 150 - end - - def display_health - p @health - end -end - -m = Mammal.new -p m \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/arrays.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/arrays.rb deleted file mode 100755 index 10dbfb7..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/arrays.rb +++ /dev/null @@ -1,74 +0,0 @@ -BEGIN { - puts "this is in the begin block" -} - -END { - - puts "thethethethe that's all, folks!" -} -a = ["cartman", "kyle", "kenny", "stan", "wendy", "bebe"] -b = [2,4,7,2,7,5,1,23,9,5,33,0] - -puts "--------------------" - -puts b.class - -puts "--------------------" - -puts b.shuffle.join("-") - -puts "--------------------" - -puts a.to_s - -puts "--------------------" - - -puts a.at(2) - -puts "--------------------" - -puts b.delete(7) -puts b - -puts "--------------------" - -puts a.push("mr. hat") - -puts "--------------------" - -puts a.pop() - -puts "--------------------" - -puts b.length - -puts "--------------------" - -puts a.sort -puts b.sort - -puts "--------------------" - -puts a.slice(3..5) -puts a.slice(3...5) - -puts "--------------------" - - -puts a.join - -puts "--------------------" - -puts a.insert(2, "mr. slave") - -puts "--------------------" - -puts b.values_at(2...4) - -puts "--------------------" - -puts a.values_at(1..4).join(' and ') - -puts "--------------------" - diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/bankaccount.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/bankaccount.rb deleted file mode 100755 index 3ad4828..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/bankaccount.rb +++ /dev/null @@ -1,95 +0,0 @@ -class BankAccount - @@count = 0 - @interest_rate = 0.01 - @user - @account_no - @checking_balance - @saving_balance - - attr_reader :user, :account_no, :checking_balance, :saving_balance - - def count - p @@count - self - end - - def user - p @user - self - end - - def account_no - p @account_no.join("") - self - end - - def checking_balance - p @checking_balance - self - end - - def saving_balance - p @saving_balance - self - end - - def deposit(amt, acct) - @checking_balance = amt if acct == "checking" - @saving_balance = amt if acct == "saving" - self - end - - def withdraw(amt, acct) - if acct == "checking" - if @checking_balance > amt - @checking_balance -= amt - else puts "Insufficient Funds" - end - end - if acct == "saving" - if @saving_balance > amt - @saving_balance -= amt - end - end - self - end - - def total - p @checking_balance += @saving_balance - self - end - - def account_information - puts "User name: #{@user}" - puts "Account No.: #{@account_no.join("")}" - puts "Checking Balance: #{@checking_balance}" - puts "Saving Balance: #{@saving_balance}" - self - end - - private - def initialize(user) - @@count += 1 - @user = user - @account_no = [] - 8.times {@account_no.push(rand(0..9))} - @checking_balance = 0 - @saving_balance = 0 - end -end - -a = BankAccount.new("Stan") -b = BankAccount.new("Kenny") -c = BankAccount.new("Kyle") -d = BankAccount.new("Cartman") - -b.deposit(100, "saving") -b.deposit(200, "checking") - -p b - -p a.count - -c.deposit(600, "checking") -c.withdraw(50, "checking") -c.account_information \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/basic13.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/basic13.rb deleted file mode 100755 index 31c9c24..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/basic13.rb +++ /dev/null @@ -1,88 +0,0 @@ -# # Print 1-255 - -# (1..255).collect{ |i| puts i} - -# # Print odd numbers between 1-255 - -# puts (1..255).reject{ |i| i % 2 == 0} - -# # Print Sum - -# sum = 0 -# (0..255).each { |i| sum+=i; puts "New number: #{i}, Sum: #{sum}" } - -# Iterating through an array - -# x = [1,3,5,7,9,13] - -# x.collect { |i| puts i } - -# # Find max - -# x = [1,4,0,-4,5,-9,13,4] - -# x.sort!; puts x[x.length-1] -# puts.max - -# # Average - -# a = [1,2,3,4,5,6,34,56,7,3,2,4,15567,5] - -# sum = 0; count = 0; a.each { |i| sum+=i; count+=1 }; puts sum/count - -# # Odd Numbers - -# y = [] - -# (0..255).each { |i| y.push(i) if i % 2 != 0 } -# p y - -# # Greater than Y - -# a = [2,3,4,5,68,8,5,1,2,4,56,3,] -# y = 8 - -# count = 0; a.each { |i| count += 1 if i > y} -# p count - - -# # Square the values - -# x = [2,4,5,7,8,42,4,457,67,34] - -# x = x.collect { |i| i*i }; p x - -# Eliminate Negative Numbers - -p "each_index:" -x = [3,-4,6,-78,12,-3,4,1] -p x.each_index{ |n| if x[n] < 0 then x[n] = 0 end} - - -# Max Min Ave - -x = [3,4,5,7,4,245,456,78,34,2,4,532,2,5,76] - -p x.max - -p x.min - -count = 0; sum = 0; x.each{ |i| count+=1; sum+=i} -p sum/count - -# Shifting the Values in the Array - -x = [1,2,3,4,5] - -p x.rotate!(1)[x.length-1]=0 - -# Number to String - -x = [2,-4,5,7,-2,8] - -x.each { |i| if i < 0 - puts "dojo" -else - puts i -end } - diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/cardgame.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/cardgame.rb deleted file mode 100755 index 90bc986..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/cardgame.rb +++ /dev/null @@ -1,89 +0,0 @@ -class Card - value = %w(2 3 4 5 6 7 8 9 10 J Q K A) - suit = %w(Spade Heart Club Diamond) - attr_reader :value, :suit - def initialize(value, suit) - @value = value - @suit = suit - self - end -end - -class Deck - @cards - attr_accessor :cards - - def initialize - @cards=[] - value = %w(2 3 4 5 6 7 8 9 10 J Q K A) - suit = %w(Spade Heart Club Diamond) - for i in suit - for x in value - @cards << Card.new(x,i) - end - end - end - - def deal - @cards.pop - end - - def shuffle - self.cards.shuffle! - end - - def return_card(card) - #Needs to insert card to the front of the deck when discarded - self - end -end - -deck = Deck.new -deck.shuffle - -class Player - @@no_of_players - @name - @hand - attr_accessor :hand, :name - - def initialize(name) - @name = name - @hand = [] - self - end - - def draw(num, deck) - 5.times { @hand << deck.deal } #need to deal a card - self - end - - def hand - - - def discard(card) - # Needs to remove a specific card and return to .return method in deck - self - end -end - - -hermione = Player.new("hermione").draw(5, deck) -p hermione.hand - -ron = Player.new("ron").draw(5, deck) -p ron.hand - -harry = Player.new("harry").draw(5, deck) -p harry.hand - -ginny = Player.new("ginny").draw(5, deck) -p ginny.hand - - -#----------------- PLAY GO FISH ---------------------- - - -end - - diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/guessnumber.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/guessnumber.rb deleted file mode 100755 index 866f4be..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/guessnumber.rb +++ /dev/null @@ -1,33 +0,0 @@ -def guess_number guess - number = 25 - if guess > number - puts "#{guess} is too high!" - elsif guess < number - puts "#{guess} is too low!" - elsif guess == number - puts "#{guess} is just right!" - end -end - -guess_number 22 -guess_number 89 -guess_number 25 - -puts "----------------------" - -def guess_number guess - number = 25 - unless guess <= number - puts "#{guess} is too high!" - end - unless guess >= number - puts "#{guess} is too low!" - end - unless guess != number - puts "#{guess} is just right!" - end -end - -guess_number 22 -guess_number 89 -guess_number 25 diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/hashes.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/hashes.rb deleted file mode 100755 index 8383ef9..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/hashes.rb +++ /dev/null @@ -1,24 +0,0 @@ -# Delete - -song = {:first => "Happy", :second => "Birthday"} -song.delete(:first) -p song - -# empty? - -song.delete(:second) -p song.empty? - -# has_key?(key) - -cats = {:first => "Percy", :second => "Charlie", :third => "Frost", :fourth => "Seamus"} - -p cats.has_key?(:fifth) - -p cats.has_value?("Charlie") - - -# has_value?(value) - - - diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/human/human.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/human/human.rb deleted file mode 100755 index f56269a..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/human/human.rb +++ /dev/null @@ -1,149 +0,0 @@ -#NOTE-- this assignments was supposed to be "Wizard, Ninja, Samurai", all objects inheriting from the class Human. I made some changes. Enjoy. - -p "------------HUMAN----------------" - -class Human - @strength - @intelligence - @stealth - @health - - attr_accessor :strength, :intelligence, :stealth, :health - - def initialize strength: 3, stealth: 3, intelligence: 3, health: 100 - @strength = strength - @stealth = stealth - @intelligence = intelligence - @health = health - end - - def health - p @health - if @health < 1 - puts "Deceased" - end - self - end - - def weaken(amt) - @health -= amt - self - end - - - def attack(opponent) - if opponent.class.ancestors.include?Human - opponent.weaken(10) - self - end - end -end - - -bob = Human.new -jane = Human.new - -jane.attack(bob) - -p bob - -p "------------WITCH----------------" - -class Witch < Human - def initialize - puts "Magic is everywhere" - options = {health: 50, intelligence: 25} - super options - self - end - - def heal - puts "Reparifors" - @health += 10 - self - end - - def fireball(opponent) - puts "Fiendfyre" - if opponent.class.ancestors.include?Human - opponent.weaken(20) - self - end - end -end - -hermione = Witch.new - -hermione.fireball(bob) - -p bob - -p "------------SHIELDMAIDEN----------------" - - -class Shieldmaiden < Human - def initialize - puts "I am no man" - options = {stealth: 175} - super options - self - end - - def plunder(opponent) - puts "Pay the iron price" - opponent.weaken(10) - @health += 10 - self - end - - def get_away - puts "Retreat is the better part of valour" - @health -= 15 - self - end -end - -eowyn = Shieldmaiden.new - -eowyn.plunder(bob) - -p bob - - -p "------------VALKYRIE----------------" - -class Valkyrie < Human - @@how_many = 0 - - def initialize - puts "Not sure what a valkyrie even sounds like..." - options = {health: 200} - super options - @@how_many += 1 - self - end - - def meditate - @health = 200 - self - end - - def deathblow(opponent) - health = opponent.health - opponent.weaken(health) - self - end - - def how_many - p @@how_many - self - end -end - -brunhilde = Valkyrie.new - -p brunhilde.health # still not able to call this in order to evaluate and delete - -brunhilde.deathblow(bob) - -p bob \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/mathdojo.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/mathdojo.rb deleted file mode 100755 index ea9689f..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/mathdojo.rb +++ /dev/null @@ -1,70 +0,0 @@ -# class MathDojo -# @val -# attr_accessor :val - -# def initialize -# @val = 0 -# self -# end - -# def add(a,b=0) -# @val += (a+b) -# p @val -# self -# end - -# def subtract(a,b=0) -# @val -= a -# @val -= b -# p @val -# self -# end - -# def result -# puts @val -# end - - -# MathDojo.new.add(2).add(2, 5).subtract(3, 2).result - - -class MathDojo2 - @val - attr_accessor :val - - def initialize - @val = 0 - self - end - - def add(*a) - a.flatten! - p a - for item in a - @val += item - p @val - end - self - end - - def subtract(*a) - a.flatten! - p a - for item in a - @val -= item - p @val - end - self - end - - def result - puts @val - end - -end - -MathDojo2.new.add(1).add(3, 5, 7, 8, 2, 4.3, 1.25).subtract(2,3, 1.1, 2.3).result - -p "--------------------" - -MathDojo2.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).result \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/names.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/names.rb deleted file mode 100755 index 134957a..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/names.rb +++ /dev/null @@ -1,14 +0,0 @@ -a = {first_name: "Hermione", last_name: "Granger"} -b = {first_name: "Ron", last_name: "Weasley"} -c = {first_name: "Ginny", last_name: "Weasley"} -d = {first_name: "Harry", last_name: "Potter"} -e = {first_name: "Draco", last_name: "Malfoy"} -names = [a, b, c, d, e] - -puts "You have #{names.length} names in the names array." - -names.each {|name| puts "The name is '#{name[:first_name]} #{name[:last_name]}'"} - -puts "----------------------------------" - -puts names.select { |i| i == 0} { |i| i == 5 } diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/oopquiz.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/oopquiz.rb deleted file mode 100755 index 0cbf9ab..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/oopquiz.rb +++ /dev/null @@ -1,24 +0,0 @@ -class CodingDojo - @@no_of_branches = 0 - def initialize(id, name, address) - @branch_id = id - @branch_name = name - @branch_address = address - @@no_of_branches += 1 - puts "Created branch #{@@no_of_branches}" - end - def hello - puts "Hello CodingDojo!" - end - def display_all - puts "Branch ID: #{@branch_id}" - puts "Branch Name: #{@branch_name}" - puts "Branch Address: #{@branch_address}" - end - def self.num_of_branches - @@no_of_branches - end -end -seattle = CodingDojo.new(1, "Seattle", "123 Seattle Avenue") -san_jose = CodingDojo.new(2, "San Jose", "456 San Jose Boulevard") -burbank = CodingDojo.new(3, "Burbank", "789 Burbank Street") \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/practice.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/practice.rb deleted file mode 100755 index 9d60fc9..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/practice.rb +++ /dev/null @@ -1,84 +0,0 @@ -puts "hello" -puts "coding" -puts "dojo" - -x = puts "hello, ninjas" - -puts x - -firstname = "Katherine" -lastname = "Krueger" - -puts "your name is" -puts firstname+lastname - -BEGIN { - puts "this is in the begin block" -} - -END { - puts "this is in the end block " -} - -puts "Firstname is #{firstname} and the last name is #{lastname}" - - -puts "--------------------------" - -age = 20 - -if age <=21 - puts "you are too young" -else - puts "not yet" -end - -unless age >= 21 - puts "you are too young" -end - - - -puts "first name is %s last name %s" % [firstname, lastname] - -number = 30 -if number % 3 == 0 && number % 5 == 0 - puts "FizzBuzz" -elsif number % 3 == 0 - puts "Fizz" -elsif number % 5 == 0 - puts "Buzz" -end - -print "------------------------" - -age = 13 - -if !(age < 21) - puts "welcome to the party!" -else - puts "not yet" -end - -unless !(age <21) - puts "welcome" -else - puts "go home" -end - -for i in 0..5 - puts "Value of local variable is #{i}" -end - -i = 0 -num = 5 -while i < num do - puts "Inside the loop i = #{i}" - i += 1 - break if i == 2 -end - -for i in 0..5 - next if i == 2 - puts "Value of local variable is #{i}" -end \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/project.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/project.rb deleted file mode 100755 index 8f872d4..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/project.rb +++ /dev/null @@ -1,29 +0,0 @@ -class Project - @name - @description - - attr_accessor :name, :description - - def initialize(name, description) - @name = name - @description = description - end - - def elevator_pitch - puts @name, @description - end - - def self.about - puts "this is a project" - - -end - - -lab = Project.new("lab", "diagnostic laboratory") - - -puts lab.elevator_pitch -puts Project.about - -end \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/puzzles.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/puzzles.rb deleted file mode 100755 index e5dc1df..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/puzzles.rb +++ /dev/null @@ -1,68 +0,0 @@ - -# 1 - -x = [3,5,1,2,7,9,8,13,25,32] - -sum = 0 -x.each{ |i| sum+=i } -p sum -p x.reject { |i| i < 10 } - -# 2 - -x = ["stan", "kenny", "kyle", "mr hat", "mr garrison", "wendy", "butters"] -p x.shuffle; p x.find_all { |i| i.length > 5} - -# 3 - -x = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] -vowels = ["a", "e", "i", "o", "u"] - -x.shuffle!; p x.last; p x.first -if vowels.include? x.first - puts "by golly, that's a vowel!" -end - -# 4 - -x = []; -for i in 0...10 - x.push(rand(55..100)) -end -p x -p x.length - -# 5 - -x = []; -for i in 0...10 - x.push(rand(55..100)) -end -p x.sort!; p x.min; p x.max - -# 6 - - -x = ""; 5.times{x << (65 + rand(25)).chr} -p x - -# 7 - -y = [] -x = "" - -for i in 0..9 - for a in 0..4 - x << (65 + rand(25)).chr - end - y.push(x) - x = "" -end -p y - -# 7 the ruby way -x = [] - -10.times do - x << (0...5).map {(65 + rand(25)).chr}.join("") -end \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/OOP Assignments/range.rb b/Tamisha_Damas/Ruby/OOP/OOP Assignments/range.rb deleted file mode 100755 index 0b0c2db..0000000 --- a/Tamisha_Damas/Ruby/OOP/OOP Assignments/range.rb +++ /dev/null @@ -1,28 +0,0 @@ -a = [1,2,5,6,7,3,9,4,2,6,8,9,10] - -# puts a.include?(15) - -# puts a.include?(5) - -# puts a.last - -# puts a.max - -# puts a.min - -# puts a.keep_if { |i| i%2 == 0} - - - -user = {"name": "kittens"} - -puts user - -puts user[:name] - -def test - yield 5 - puts "You you have many kittens." - yield 100 -end -test { |i| puts "You have #{i} kittens." } \ No newline at end of file diff --git a/Tamisha_Damas/Ruby/OOP/Project/project.rb b/Tamisha_Damas/Ruby/OOP/Project/project.rb deleted file mode 100644 index 17580c5..0000000 --- a/Tamisha_Damas/Ruby/OOP/Project/project.rb +++ /dev/null @@ -1,16 +0,0 @@ -class Project - - attr_accessor :name, :description - def initialize name, description - @name = name - @description = description - end - def elevator_pitch - puts " #{@name}, #{@description}" - end -end - -project1 =Project.new("CodingDojo", "Software programming bootcamp") -project2 =Project.new("Tech Talent South", "Instructor") -project1.elevator_pitch -project2.elevator_pitch diff --git a/Tamisha_Damas/Ruby/OOP/Project/project_spec.rb b/Tamisha_Damas/Ruby/OOP/Project/project_spec.rb deleted file mode 100644 index b4cac30..0000000 --- a/Tamisha_Damas/Ruby/OOP/Project/project_spec.rb +++ /dev/null @@ -1,15 +0,0 @@ -require_relative 'project' -RSpec.describe Project do - before(:each) do - # updated this block to create two projects - @project1 = Project.new('Project 1', 'description 1') - @project2 = Project.new('Project 2', 'description 2') - end - ... - # Code from the previous tab removed for brevity. Leave it in. - ... - it 'has a method elevator_pitch to explain name and description' do - expect(@project1.elevator_pitch).to eq("Project 1, description 1") - expect(@project2.elevator_pitch).to eq("Project 2, description 2") - end -end diff --git a/Tamisha_Damas/Ruby/OOP/Sammple_code.rb b/Tamisha_Damas/Ruby/OOP/Sammple_code.rb deleted file mode 100644 index d9aefee..0000000 --- a/Tamisha_Damas/Ruby/OOP/Sammple_code.rb +++ /dev/null @@ -1,20 +0,0 @@ -class Mammal - def breath - puts "Inhale and exhale" - end - - def eat - puts "Yum yum yum" - end -end -class Human < Mammal # Human inherits from Mammal - def subclass_method - breath - end - def another_method - eat - end -end -person = Human.new -person.subclass_method -person.another_method diff --git a/Tamisha_Damas/Ruby/OOP/bank_account.rb b/Tamisha_Damas/Ruby/OOP/bank_account.rb deleted file mode 100644 index abc3feb..0000000 --- a/Tamisha_Damas/Ruby/OOP/bank_account.rb +++ /dev/null @@ -1,54 +0,0 @@ -class BankAccount - attr_reader :account_number, :checking, :saving - - @@number_of_accounts = 0 - def initialize - @account_number = new_account - @checking = 0 - @saving = 0 - @@number_of_accounts += 1 - @interest_rate += 0.01 - end - - def deposit(account, amount) - if account.downcase == "checking" - @checking += amount - puts "You have insufficient" - else - @saving += amount - end - end - - def withdrawl(account, number) - if account.downcase == "checking" - if @checking - amount < 0 - puts "You have insufficient funds for the amount of $#{@checking}" - else - @checking -= amount - end - else - if @saving - amount < 0 - puts "You have insufficient funds for the amount of $#{@saving}" - else - @savings -= amount - end - end - end - - def total - "Checking Balance: #{@checking}\nSaving Balance: #{@saving}\nTotal Balance: #{@checking + @saving}" - end - - def account_information - "Account Number: #{@account_number}\nInterest Rate: #{@interest_rate}\n#{self.total}" - end - - def self.number_of_accounts - @@number_of_accounts - end - - private - def new_account - Account.new(9) { rand(1..9)}.join - end -end diff --git a/Tamisha_Damas/Ruby/OOP/humans.rb b/Tamisha_Damas/Ruby/OOP/humans.rb deleted file mode 100644 index 0520051..0000000 --- a/Tamisha_Damas/Ruby/OOP/humans.rb +++ /dev/null @@ -1,24 +0,0 @@ -class Human - - attr_accessor :strength, :stealth, :intelligence, :health - def initialize - @strength = 3 - @stealth = 3 - @intelligence = 3 - @health = 100 - end - - def attack(obj) - if obj.class.ancestors.include?(Human) - obj.health -= 10 - true - else - false - end - end -end - -human1 = Human.new -human2 = Human.new -puts human1.attack(human2) -puts human2.health diff --git a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai.zip b/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai.zip deleted file mode 100644 index 9276778..0000000 Binary files a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai.zip and /dev/null differ diff --git a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/human.rb b/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/human.rb deleted file mode 100644 index b627ff5..0000000 --- a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/human.rb +++ /dev/null @@ -1,24 +0,0 @@ -class Human - attr_accessor :strength, :intelligence, :health, :stealth - def initialize - @strength = 3 - @intelligence = 3 - @stealth = 3 - @health = 100 - self - end - def attack(obj) - # check if the attacked object's class is Human or inherits from the Human class - if obj.class.ancestors.include?(Human) - obj.health -= 10 - # remember that we don't need to write "return" in ruby - # stating true below will automatically return the boolean true - true - else - false - end - end - def display_all - puts "Health is #{@health}" - end -end diff --git a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/ninja.rb b/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/ninja.rb deleted file mode 100644 index 2699924..0000000 --- a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/ninja.rb +++ /dev/null @@ -1,15 +0,0 @@ -require_relative 'human' -class Ninja < humans - def initialize - super - @stealth = 175 - self - end - def steal(victim) - attack(victim) - @health += 10 - end - def get_away - @health -= 15 - end -end diff --git a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/samurai.rb b/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/samurai.rb deleted file mode 100644 index 7f4b065..0000000 --- a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/samurai.rb +++ /dev/null @@ -1,23 +0,0 @@ -require_relative 'human' -class Samurai < Human # Samurai inherits from humans - @@count = 0 - def initialize - super - @health = 200 - @@count +=1 - end - def death_blow(obj) - if obj.class.ancestors.include?(Human) - obj.health = 0 - true - else - false - end - end - def meditate - @health = 200 - end - def self.count - @@count - end -end diff --git a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/wizard.rb b/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/wizard.rb deleted file mode 100644 index a678210..0000000 --- a/Tamisha_Damas/Ruby/OOP/wizard_ninja_samurai/wizard.rb +++ /dev/null @@ -1,27 +0,0 @@ -require_relative 'human' -class Wizard < Human # Wizard inherits from Human - def initialize - super - @health = 50 - @intelligence = 25 - self - end - - def heal - @health += 10 - self - end - - def fireball(obj) - # Wizard should have a method called fireball, which when invoked, decrease the health of whichever object it attacked by 20 - if obj.class.ancestors.include?(Human) - obj.health -= 20 - true - else - false - end - end -end - -Wizard1 = Wizard.new -Wizard1.display_all diff --git a/arden_zhan/Fundamentals/arrays.rb b/arden_zhan/Fundamentals/arrays.rb deleted file mode 100644 index 2f72079..0000000 --- a/arden_zhan/Fundamentals/arrays.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Arrays - -# a = ["matz", "guido", "dojo", "note", "join"] -# b = [5, 6, 7, 8, 9] -# c = ["dojo", 9] - -# puts a[0] -# puts a[4] -# puts a+b - -# x = a+b -# puts x.to_s -# x = a+b-c -# puts x.to_s - -# puts b.class -# puts b.shuffle -# puts b.shuffle.join(', ') -# puts b.delete(5) -# puts b.length - -#values_at returns new array -d = %w(nothing0 nothing1 nothing2) -# puts d.values_at(1,2).join(' and ') -# puts d.values_at(0,1,2).shuffle -# puts d - -puts d.slice(0,2) - - diff --git a/arden_zhan/Fundamentals/basic_13.rb b/arden_zhan/Fundamentals/basic_13.rb deleted file mode 100644 index 3b87204..0000000 --- a/arden_zhan/Fundamentals/basic_13.rb +++ /dev/null @@ -1,62 +0,0 @@ -# Basic 13 - -# Print 1 - 255 -# (1..255).each { |i| puts i } - -# Print odd numbers between 1 - 255 -# (1..255).each { |i| puts i if i.odd? } - -# Print Sum -# sum = 0 -# (0..255).each { |i| puts "New number: #{i} Sum: #{sum += i}" } - -# Iterating through an array -# [1,3,5,7,9,13].each { |i| puts i } - -# Find Max -# def findMax arr -# puts arr.max -# end -# findMax [-3, -5, -7] - -# Get Average -# def getAvg arr -# puts "Average: " + (arr.reduce(:+) / arr.length.to_f).to_s -# end -# getAvg [2, 11, 3] - -# Array with Odd Numbers -# y = [] -# (1..255).each { |i| y << i if i.odd? } -# puts y.to_s - -# Greater Than Y -# arr = [1,3,5,7] -# y = 3 -# def greaterY(arr, y) -# return arr.count { |i| i > y } -# end -# puts greaterY(arr, y) - -# Square the values -# x = [1, 5, 10, -2] -# x.collect! { |i| i*i } -# puts x - -# Eliminate Negative Numbers -# x = [1, 5, 10, -2] -# puts x.each_index { |i| x[i] = 0 if x[i] < 0 } - -# Max, Min, and Average -# x = [1, 5, 10, -2] -# hash = { max: x.max, min: x.min, avg: x.reduce(:+) / x.length.to_f } -# puts hash - -# Shifting the Values in the Array -# x = [1, 5, 10, 7, -2] -# x.rotate!(1)[x.length-1] = 0 -# puts x - -# Number to String -x = [-1, -3, 2] -puts x.each_index { |i| x[i] = "Dojo" if x[i] < 0 } \ No newline at end of file diff --git a/arden_zhan/Fundamentals/blocks.rb b/arden_zhan/Fundamentals/blocks.rb deleted file mode 100644 index f232ae4..0000000 --- a/arden_zhan/Fundamentals/blocks.rb +++ /dev/null @@ -1,6 +0,0 @@ -# Blocks - -# yield -# if you call method and also pass a {block}, then yield in the method will execute the passed block - -# yield can also have parameter, will just replace |obj| in passed block \ No newline at end of file diff --git a/arden_zhan/Fundamentals/conditionals.rb b/arden_zhan/Fundamentals/conditionals.rb deleted file mode 100644 index 262f0e6..0000000 --- a/arden_zhan/Fundamentals/conditionals.rb +++ /dev/null @@ -1,42 +0,0 @@ -# Conditionals - -# elsif for else if -# end keyword after every conditional block (like in html templates) - -# if not can be replaced with keyword unless -age = 12 -unless age < 21 - puts "WELCOME" -else - puts "NOPE" -end - -#unless is the negated if statement, same as if not - - -# NIL -# In ruby, only 2 things are false: nil and false -# which means empty string returns true - -#positive energy -if "" - puts "I am positive" -end -if 0 - puts "I am positive" -end - -#negative energy -unless nil - puts "I am negative" -end -unless false - puts "I am negative" -end - -# INLINE CONDITIONALS -# we can write if/unless statements in one line -puts "I am positive" if "hello" -puts "I am positive" if 24 -puts "I am negative" unless nil -puts "I am negative" unless false \ No newline at end of file diff --git a/arden_zhan/Fundamentals/guess_the_number.rb b/arden_zhan/Fundamentals/guess_the_number.rb deleted file mode 100644 index 207ce44..0000000 --- a/arden_zhan/Fundamentals/guess_the_number.rb +++ /dev/null @@ -1,13 +0,0 @@ -# Guess the Number -def guess_number guess - number = 25 - - return "You got it!" unless guess != number - return "Guess was too high!" unless guess < number - return "Guess was too low!" - -end - -puts guess_number 25 -puts guess_number 100 -puts guess_number 0 \ No newline at end of file diff --git a/arden_zhan/Fundamentals/hashes.rb b/arden_zhan/Fundamentals/hashes.rb deleted file mode 100644 index 61ef264..0000000 --- a/arden_zhan/Fundamentals/hashes.rb +++ /dev/null @@ -1,12 +0,0 @@ -# Hashes -# h = {:first_name => "Coding", :last_name => "Dojo"} -h = { first_name: "Coding", last_name: "Dojo" } -h.delete :last_name -puts h -puts h.empty? -puts h.has_key?(:first_name) -puts h.has_value?("Coding") - -#Keyword Arguments -# basically same as regular paramenters except default vars values are defined with : instead of = -# cleaner way to use hash as argument \ No newline at end of file diff --git a/arden_zhan/Fundamentals/intro.rb b/arden_zhan/Fundamentals/intro.rb deleted file mode 100644 index ef7c43a..0000000 --- a/arden_zhan/Fundamentals/intro.rb +++ /dev/null @@ -1,34 +0,0 @@ -# JavaScript -# var arr = ["Ruby", "Is", "Life"]; -# for(var i = 0; i < arr.length; i++) { -# console.log(arr[i]); -# } - -#Ruby -arr = ["I", "code", "therefore", "I", "am"] -for i in 0...arr.count - puts arr[i] -end - - -#irb is used for Ruby feedback - -# Welcome to the World of Objects -# everything is an object, even primitive datatypes like numbers, strings are all instances of an object - -# 24 + 8 is sugar syntax for sending the :+ (8) message to our instance of the Fixnum class - -# All methods work this way: -# - when call method, send message to object -# - when object receives message, interprets message and returns appropriate response - -24.send(:+, 8) -24.+ (8) -24 + 8 -# all => 32 -# send method, . notation, and sugar - -# Ruby syntax is meant to be very readable. Every change of Ruby makes sure to be backwards compatible with older versions, which also allows many different versions of ruby code - -# The Evolution of Ruby 'tabs' -# will explain these changes, and show examples \ No newline at end of file diff --git a/arden_zhan/Fundamentals/iterators.rb b/arden_zhan/Fundamentals/iterators.rb deleted file mode 100644 index 4fff462..0000000 --- a/arden_zhan/Fundamentals/iterators.rb +++ /dev/null @@ -1,40 +0,0 @@ -# Iterators - -# .any -# .any? { |obj| block } => true or false -a = ["ant", "bear", "cat"] -puts a.any? { |word| word.length >= 3} - -# .each -# calls block once for each element in ruby self, passing that element as a block parameter. -a.each { |word| print word, "--"} -# => ant--bear--cat-- - -# .collect { |obj| block } -# returns a new array with the results of running block once for every element in enum -(1..4).collect { |i| i*i } -# => [1, 4, 9, 16] -(1..4).collect { "cat" } -# => ["cat", "cat", "cat", "cat"] - -# .detect/.find -# returns the first for which block is not false. -(1..10).detect { |i| i % 5 == 0 and i % 7 == 0 } -# => nil -(1..100).detect { |i| i % 5 == 0 and i % 7 == 0 } -# => 35 - -# .find_all { |obj| block } or .select { |obj| block } -# returns an array containing all elements of enum for which block is not false -(1..10).find_all { |i| i % 3 == 0 } -# => [3, 6, 9] - -# .reject { |obj| block } -# opposite of find_all -(1..10).reject { |i| i % 3 == 0 } -# => [1, 2, 4, 5, 7, 8, 10] - -# .upto(limit) -# iterates block up to the int number -5.upto(10) { |i| print i, " " } -# => 5 6 7 8 9 10 \ No newline at end of file diff --git a/arden_zhan/Fundamentals/loops.rb b/arden_zhan/Fundamentals/loops.rb deleted file mode 100644 index 87ad680..0000000 --- a/arden_zhan/Fundamentals/loops.rb +++ /dev/null @@ -1,24 +0,0 @@ -# While Loop - -i = 0 -num = 5 -while i < num do - puts "Inside the loop i = #{i}" - i += 1 - break if i == 2 -end - -# For Loop -for i in 0..5 - puts "Value of local variable is #{i}" - break if i == 2 -end -# .. to make range - - -# next is also a useful method -# like continue. instead of terminating loop like break, can use next to skip to next index -for i in 0..5 - next if i == 2 - puts "Value of local variable is #{i}" -end \ No newline at end of file diff --git a/arden_zhan/Fundamentals/methods.rb b/arden_zhan/Fundamentals/methods.rb deleted file mode 100644 index 3750bd0..0000000 --- a/arden_zhan/Fundamentals/methods.rb +++ /dev/null @@ -1,30 +0,0 @@ -# Ruby Methods -# can define methods similarly to other languages -def hello_world - puts "hello world" -end -hello_world - -# Breakdown -# use snake_case for method names -# parenthesis are optional - -# Input -def say_hello name1, name2 - puts "hello, #{name1} and #{name2}" -end -say_hello "oscar", "eduardo" -# feel free to use parenthesis for readability - -# Default parameters -# def say_hello name1="arden", name2="gobby" - -# Regular Return Statements -# if need to escape function early, return behaves normally -def say_what name1, name2 - if name1.empty? or name2.empty? - return "what" - end - "hello, #{name1} and #{name2}" -end -puts say_what "test", "test" \ No newline at end of file diff --git a/arden_zhan/Fundamentals/module_practice/main.rb b/arden_zhan/Fundamentals/module_practice/main.rb deleted file mode 100644 index 0f834d6..0000000 --- a/arden_zhan/Fundamentals/module_practice/main.rb +++ /dev/null @@ -1,9 +0,0 @@ -require_relative 'printer_module' -class Array - include Printer -end -class String - include Printer -end -[1,2,3].print_each_element -"hello".print_each_element \ No newline at end of file diff --git a/arden_zhan/Fundamentals/module_practice/modules.txt b/arden_zhan/Fundamentals/module_practice/modules.txt deleted file mode 100644 index 6dc01ac..0000000 --- a/arden_zhan/Fundamentals/module_practice/modules.txt +++ /dev/null @@ -1,28 +0,0 @@ -# Modules - -Enumerable is most important module to master in Ruby. -Module is similar to Classes, is actually a superclass of Class - -Class.superclass #> Module - -Provides collection classes the ability to sort, search, and traverse - -Module is used to group together collection of variables and methods (similar to class). Use modules if it's meant to be included within a class. Use class if we are instantiating something. - -What does including a module mean? - - -Enumerable is just a module that is included in Arrays and Hashes -- can verify by looking at ancestors -- ancestors contain list of Classes and Modules that a class inherits / includes - -Array.ancestors # => [Array, Enumerable, Object, Kernel, BasicObject] -Hash.ancestors # => [Hash, Enumerable, Object, Kernel, BasicObject] - -Enumerable module is equivalent to the underscore library for JavaScript except that it comes with Ruby - - -Method Lookup -When sending message to object, first checks within own class if method exists. If not, moves up ancestor chain to see if method exists. Go up until found or doesn't exist. - -Most methods from Iterators section is from Enumerable module \ No newline at end of file diff --git a/arden_zhan/Fundamentals/module_practice/printer_module.rb b/arden_zhan/Fundamentals/module_practice/printer_module.rb deleted file mode 100644 index 429afef..0000000 --- a/arden_zhan/Fundamentals/module_practice/printer_module.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Printer - def print_each_element - for i in 0...self.length - puts self[i] - end - end -end \ No newline at end of file diff --git a/arden_zhan/Fundamentals/my_enumerable.rb b/arden_zhan/Fundamentals/my_enumerable.rb deleted file mode 100644 index d833384..0000000 --- a/arden_zhan/Fundamentals/my_enumerable.rb +++ /dev/null @@ -1,18 +0,0 @@ -# My Enumerable - -# each method is important - -module MyEnumerable - def my_each - for i in 0...self.length - yield self[i] - end - end -end - -class Array - include MyEnumerable -end - -[1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 -[1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 \ No newline at end of file diff --git a/arden_zhan/Fundamentals/names.rb b/arden_zhan/Fundamentals/names.rb deleted file mode 100644 index 880ba6d..0000000 --- a/arden_zhan/Fundamentals/names.rb +++ /dev/null @@ -1,24 +0,0 @@ -# Names -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - -=begin -Create a ruby method that goes over each name in the names array and prints something like below. - -You have 5 names in the 'names' array -The name is 'Michael Choi' -The name is 'John Doe' -The name is 'Jane Doe' -The name is 'James Smith' -The name is 'Jennifer Smith' -=end - -def names(hash) - puts "You have #{hash.length} names in the 'names' array" #figure out how to print name of variable later - hash.each { |i| puts "The name is '#{i[:first_name]} #{i[:last_name]}'"} -end -names(names) \ No newline at end of file diff --git a/arden_zhan/Fundamentals/puts.rb b/arden_zhan/Fundamentals/puts.rb deleted file mode 100644 index 732bc84..0000000 --- a/arden_zhan/Fundamentals/puts.rb +++ /dev/null @@ -1,27 +0,0 @@ -# puts echoes onto console -puts "hello" -puts "Coding" -puts "Dojo" - - -# print does not use new line automatically; puts does -print "hello" -print "coding" - - -# comment -=begin - long comment - another comment - =begin and =end for comment block -=end - -BEGIN { - puts "this is the begin block" -} -#puts at the beginning, implemented before all the other code - -END { - puts "this is the end block" -} -#puts at the end, code implemented last \ No newline at end of file diff --git a/arden_zhan/Fundamentals/puts2.rb b/arden_zhan/Fundamentals/puts2.rb deleted file mode 100644 index 6037b32..0000000 --- a/arden_zhan/Fundamentals/puts2.rb +++ /dev/null @@ -1,40 +0,0 @@ -# How to print using puts -=begin -variables, and how to print - -new line assumes new statement -or you can use semicolons to separate statements in same line - -=end - -x = 5 -y = 10 -z = x + y -puts z -x = 5; y = 10; z = x + y; puts z - -first_name = "Arden" -last_name = "Zhan" - -# new line before each -puts "My Name is ", first_name, last_name - -# can put + between each to concatenate onto same line -puts "My Name is " + first_name + " " + last_name - -# #{var} to insert var into string -# % and array -puts "First Name is #{first_name} and last name is %s" % [last_name] - -z = 50 -puts "Value of z is %d" % [z] -puts "Value of z is %d" % z -# %f for float - -# \ used for escaping quotes \" -# \t adds a tab - -# Important Note -# puts method always returns nil, it just outputs the string to the console -x = puts "hello world" -puts x \ No newline at end of file diff --git a/arden_zhan/Fundamentals/puzzles.rb b/arden_zhan/Fundamentals/puzzles.rb deleted file mode 100644 index 137e42d..0000000 --- a/arden_zhan/Fundamentals/puzzles.rb +++ /dev/null @@ -1,51 +0,0 @@ -# 1 sum, reject array -# arr1 = [3, 5, 1, 2, 7, 9, 8, 13, 25, 32] -# def one(arr) -# puts "sum: " + arr.reduce(:+).to_s -# return arr.find_all { |i| i > 10 } -# end -# puts one(arr1).to_s - -# # 2 names array -# arr2 = ["John", "KB", "Oliver", "Corey", "Matthew", "Christopher"] -# def two(arr) -# puts arr.shuffle -# return arr.find_all { |i| i.length > 5 } -# end -# puts two(arr2).to_s - -# 3 alphabet array -# arr3 = ('a'..'z').to_a -# def three(arr) -# shuffled = arr.shuffle -# puts "last: " + shuffled.last.to_s -# puts "first: " + shuffled.first.to_s -# puts "#{shuffled.first} is a vowel" if ['a','e','i','o','u'].include? shuffled.first -# end -# puts three(arr3) - -# 4 array with 10 different numbers between 55-100 -# arr4 = [] -# 10.times { arr4 << rand(55..100) } -# puts arr4.to_s - -# 5 expanding on 4 -# arr5 = [] -# 10.times { arr5 << rand(55..100) } -# puts arr5.sort!.to_s -# puts "min: " + arr5.min.to_s -# puts "max: " + arr5.max.to_s - -# 6 random 5 char string -# str6 = "" -# 5.times { str6 << (65 + rand(26)).chr } -# puts str6 - -# 7 array with 10 random strings that are 5 chars long -arr7 = [] -10.times do - str = "" - 5.times { str << (65 + rand(26)).chr } - arr7 << str -end -puts arr7.to_s \ No newline at end of file diff --git a/arden_zhan/Fundamentals/range.rb b/arden_zhan/Fundamentals/range.rb deleted file mode 100644 index 4702173..0000000 --- a/arden_zhan/Fundamentals/range.rb +++ /dev/null @@ -1,20 +0,0 @@ -# Range -=begin - -.include?(value) => true or false -.last => returns last object in range -.max => returns maximum value in range -.min => returns minimum value in range - -=end - -a = (1..10) -puts a.include?(15) -puts a.include?(10) - -puts "last number in range is " + a.last.to_s -puts a.max -puts a.min - -alphabet = ('a'..'z') -puts alphabet.to_a.shuffle.to_s \ No newline at end of file diff --git a/arden_zhan/Fundamentals/strings.rb b/arden_zhan/Fundamentals/strings.rb deleted file mode 100644 index 7bd5082..0000000 --- a/arden_zhan/Fundamentals/strings.rb +++ /dev/null @@ -1,28 +0,0 @@ -=begin -Anything in single quotes or double quotes is an instance of the class String - -Using quotes is just syntax sugar, could also use class.new method -String.new("I am a string") - -STRING INTERPOLATION -- cannot perform string interpolation on single quotes -- string interpolation is easier way to concat 2 objects to product string - - even if one of objects is not a string -Examples: -"24 plus 8 is #{24 + 8}" # => "24 plus 8 is 32" -'24 plus 8 is #{24 + 8}' # => "24 plus 8 is #{24 + 8}" -"24 plus 8 is " + (24 + 8).to_s # => "24 plus 8 is 32" -^ had to convert (24+8) into string if not using string interpolation -"24 plus 8 is " + (24 + 8) # => TypeError: no implicit conversion of Fixnum into String - -USEFUL METHODS -some methods, can append method call with exclamation point (!) -- used when want to have method make permanent change to that instance of String - -methods ending with ? mark return a Boolean value. - -Exclamation point is called bang -- need to attach bang to end of method call to make change permanent, otherwise will just be copy of string - - -Strings are mutable in Ruby \ No newline at end of file diff --git a/arden_zhan/Fundamentals/symbols.rb b/arden_zhan/Fundamentals/symbols.rb deleted file mode 100644 index a7dea32..0000000 --- a/arden_zhan/Fundamentals/symbols.rb +++ /dev/null @@ -1,18 +0,0 @@ -# Symbols - -=begin -symbols often defined as lightweight strings. -Every string created is an instance of the String class -When creating symbol, also instantiating from the Symbol class - -Unlike strings, there can only be one UNIQUE symbol in ruby program - -Symbols are immutable, so are great identifiers -Good as being used for keys in a hash - -Symbol also used as keyword arguments - -Symbols are faster than strings when app needs to retrieve and compare values -Symbol comparisons only need to check memory address, strings need to check if sequence of characters is same - -Try to use symbols as needed instead of using strings for every occasion \ No newline at end of file diff --git a/brittney_jackson/modulePractice/main.rb b/brittney_jackson/modulePractice/main.rb deleted file mode 100644 index 92e147b..0000000 --- a/brittney_jackson/modulePractice/main.rb +++ /dev/null @@ -1,18 +0,0 @@ -#### Main (module practice) #### - -require_relative 'printer_module' - -class Array - include Printer -end -class String - include Printer -end -[1,2,3].print_each_element -"hello".print_each_element - - - - - - diff --git a/brittney_jackson/modulePractice/printerModule.rb b/brittney_jackson/modulePractice/printerModule.rb deleted file mode 100644 index 6dc1034..0000000 --- a/brittney_jackson/modulePractice/printerModule.rb +++ /dev/null @@ -1,19 +0,0 @@ -#### Module Practice #### - -module Printer - def print_each_element - for i in 0...self.length - puts self[i] - end - end -end - - - - - - - - - - diff --git a/brittney_jackson/oop/animals/dog.rb b/brittney_jackson/oop/animals/dog.rb deleted file mode 100644 index e8a5372..0000000 --- a/brittney_jackson/oop/animals/dog.rb +++ /dev/null @@ -1,21 +0,0 @@ - -require_relative 'mammal' -class Dog < Mammal - - def pet - @health += 5 - self - end - - def walk - @health -= 1 - self - end - - def run - @health -= 10 - self - end -end - -barko = Dog.new.walk.walk.walk.run.run.pet.display_health \ No newline at end of file diff --git a/brittney_jackson/oop/animals/human.rb b/brittney_jackson/oop/animals/human.rb deleted file mode 100644 index e690c16..0000000 --- a/brittney_jackson/oop/animals/human.rb +++ /dev/null @@ -1,7 +0,0 @@ -puts 'I am in the human file' -require_relative 'mammal' - -class Human < Mammal - # previous code removed for brevity -end -human = Human.new \ No newline at end of file diff --git a/brittney_jackson/oop/animals/lion.rb b/brittney_jackson/oop/animals/lion.rb deleted file mode 100644 index 2c737a2..0000000 --- a/brittney_jackson/oop/animals/lion.rb +++ /dev/null @@ -1,35 +0,0 @@ - -require_relative 'mammal' -class Lion < Mammal - attr_accessor :health - - def initialize - super - @health = 170 - - end - - def fly - @health -= 10 - self - end - - def attack_town - @health -= 50 - self - end - - def eat_humans - @health += 20 - self - end - - def display_health - puts 'This is a lion' - super - end - -end - -simba = Lion.new -simba.attack_town.attack_town.attack_town.eat_humans.eat_humans.fly.fly.display_health \ No newline at end of file diff --git a/brittney_jackson/oop/animals/mammal.rb b/brittney_jackson/oop/animals/mammal.rb deleted file mode 100644 index 676f741..0000000 --- a/brittney_jackson/oop/animals/mammal.rb +++ /dev/null @@ -1,20 +0,0 @@ - -class Mammal - def initialize - @health = 150 - self - end - - def display_health - puts @health - end - -end - - - - - - - - diff --git a/brittney_jackson/oop/bankaccount.rb b/brittney_jackson/oop/bankaccount.rb deleted file mode 100644 index bff7098..0000000 --- a/brittney_jackson/oop/bankaccount.rb +++ /dev/null @@ -1,19 +0,0 @@ - - -class BankAccount - # your code here - def initialize - @actnum - @chkbal - @savbal - @totbal = @chkbal + @savbal - - - - end - - def - - - -end diff --git a/brittney_jackson/oop/mathDojo.rb b/brittney_jackson/oop/mathDojo.rb deleted file mode 100644 index 2377ce6..0000000 --- a/brittney_jackson/oop/mathDojo.rb +++ /dev/null @@ -1,40 +0,0 @@ -###### Math Dojo Assignment ###### - -class MathDojo - # your code here - attr_reader :result - def initialize - @result=0 - puts 'hello' - self - end - - def add *params - @result += params.flatten.inject(:+) - - self - end - - def subtract *params - @result -= params.flatten.inject(:+) - - self - end - - def result - p @result - end -end - - -challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).result # => 4 -challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).result # => 23.15 - - - - - - - - - diff --git a/brittney_jackson/oop/project.rb b/brittney_jackson/oop/project.rb deleted file mode 100644 index eaa98dc..0000000 --- a/brittney_jackson/oop/project.rb +++ /dev/null @@ -1,18 +0,0 @@ -##### Project Assignment ##### - -class Project - attr_reader :name, :description - - def initialize(name, description) - @name = name - @description = description - end - - def elevator_pitch - "#{@name}, #{@description}" - end - end - - project1 = Project.new("Project 1", "Description 1") - puts project1.name - puts project1.elevator_pitch diff --git a/brittney_jackson/oop/user.rb b/brittney_jackson/oop/user.rb deleted file mode 100644 index 46b23da..0000000 --- a/brittney_jackson/oop/user.rb +++ /dev/null @@ -1,55 +0,0 @@ -### user practice ### - - -# class User -# attr_accessor :first_name, :last_name - -# def initialize(f_name, l_name) -# @first_name = f_name -# @last_name = l_name -# end - -# def full_name -# puts "I am #{@first_name} #{@last_name}" -# end - -# def say_hello -# puts "Hello!" -# end -# end - -# u = User.new("John", "Doe") -# u.full_name # => "I am John Doe" -# u.say_hello - - - -class CodingDojo - @@no_of_branches = 0 - def initialize(id, name, address) - @branch_id = id - @branch_name = name - @branch_address = address - @@no_of_branches += 1 - puts "Created branch #{@@no_of_branches}" - end - def hello - puts "Hello CodingDojo!" - end - def display_all - puts "Branch ID: #{@branch_id}" - puts "Branch Name: #{@branch_name}" - puts "Branch Address: #{@branch_address}" - end -end -# now using above class to create objects -branch = CodingDojo.new(253, "SF CodingDojo", "Sunnyvale CA") -branch.display_all -branch2 = CodingDojo.new(155, "Boston CodingDojo", "Boston MA") -branch2.display_all - - - - - - diff --git a/brittney_jackson/rails/BMPcommands.rb b/brittney_jackson/rails/BMPcommands.rb deleted file mode 100644 index 1beef26..0000000 --- a/brittney_jackson/rails/BMPcommands.rb +++ /dev/null @@ -1,21 +0,0 @@ -1. know how to retrieve all posts for the first blog. - Blog.first.posts - -2. know how to retrieve all posts for the last blog (sorted by title in the DESC order). - Blog.last.posts.order(title: :desc) - -3. know how to update the first post's title. - post = Post.first - post.title = 'new title' - post.save - -4. know how to delete the third post (have the model automatically delete all messages associated with the third post when you delete the third post). - in models: - has_many :items , dependent: :destroy - in console: - Post.third.destroy - -5. know how to retrieve all blogs. - Blog.all -6. know how to retrieve all blogs whose id is less than 5. - Blog.where('id<5') \ No newline at end of file diff --git a/brittney_jackson/rails/bpm/.gitignore b/brittney_jackson/rails/bpm/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/brittney_jackson/rails/bpm/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/brittney_jackson/rails/bpm/Gemfile b/brittney_jackson/rails/bpm/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/brittney_jackson/rails/bpm/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/brittney_jackson/rails/bpm/Gemfile.lock b/brittney_jackson/rails/bpm/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/brittney_jackson/rails/bpm/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/brittney_jackson/rails/bpm/README.rdoc b/brittney_jackson/rails/bpm/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/brittney_jackson/rails/bpm/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/brittney_jackson/rails/bpm/Rakefile b/brittney_jackson/rails/bpm/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/app/assets/images/.keep b/brittney_jackson/rails/bpm/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/app/assets/javascripts/application.js b/brittney_jackson/rails/bpm/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/brittney_jackson/rails/bpm/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/brittney_jackson/rails/bpm/app/assets/stylesheets/application.css b/brittney_jackson/rails/bpm/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/brittney_jackson/rails/bpm/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 any plugin's vendor/assets/stylesheets directory 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/brittney_jackson/rails/bpm/app/controllers/application_controller.rb b/brittney_jackson/rails/bpm/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/app/controllers/concerns/.keep b/brittney_jackson/rails/bpm/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/app/helpers/application_helper.rb b/brittney_jackson/rails/bpm/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/brittney_jackson/rails/bpm/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/brittney_jackson/rails/bpm/app/mailers/.keep b/brittney_jackson/rails/bpm/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/app/models/.keep b/brittney_jackson/rails/bpm/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/app/models/blog.rb b/brittney_jackson/rails/bpm/app/models/blog.rb deleted file mode 100644 index d797bcb..0000000 --- a/brittney_jackson/rails/bpm/app/models/blog.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Blog < ActiveRecord::Base - has_many :posts - - #validations - validates :name, :description, presence: true -end diff --git a/brittney_jackson/rails/bpm/app/models/concerns/.keep b/brittney_jackson/rails/bpm/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/app/models/message.rb b/brittney_jackson/rails/bpm/app/models/message.rb deleted file mode 100644 index 755f9b0..0000000 --- a/brittney_jackson/rails/bpm/app/models/message.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Message < ActiveRecord::Base - belongs_to :post - - #validations - validates :author, :message, presence: true - validates :message, length: { minimum: 15} - -end diff --git a/brittney_jackson/rails/bpm/app/models/post.rb b/brittney_jackson/rails/bpm/app/models/post.rb deleted file mode 100644 index 498dc83..0000000 --- a/brittney_jackson/rails/bpm/app/models/post.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Post < ActiveRecord::Base - belongs_to :blog - has_many :messages, dependent: :destroy - - #validations - validates :title, :content, presence: true - validates :title, length: { minimum: 7} -end diff --git a/brittney_jackson/rails/bpm/app/views/layouts/application.html.erb b/brittney_jackson/rails/bpm/app/views/layouts/application.html.erb deleted file mode 100644 index 534513e..0000000 --- a/brittney_jackson/rails/bpm/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Bpm - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/brittney_jackson/rails/bpm/bin/bundle b/brittney_jackson/rails/bpm/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/bin/rails b/brittney_jackson/rails/bpm/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/brittney_jackson/rails/bpm/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/brittney_jackson/rails/bpm/bin/rake b/brittney_jackson/rails/bpm/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/brittney_jackson/rails/bpm/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/brittney_jackson/rails/bpm/bin/setup b/brittney_jackson/rails/bpm/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/brittney_jackson/rails/bpm/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/brittney_jackson/rails/bpm/bin/spring b/brittney_jackson/rails/bpm/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/brittney_jackson/rails/bpm/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/brittney_jackson/rails/bpm/config.ru b/brittney_jackson/rails/bpm/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/application.rb b/brittney_jackson/rails/bpm/config/application.rb deleted file mode 100644 index e10519e..0000000 --- a/brittney_jackson/rails/bpm/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Bpm - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/brittney_jackson/rails/bpm/config/boot.rb b/brittney_jackson/rails/bpm/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/brittney_jackson/rails/bpm/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/brittney_jackson/rails/bpm/config/database.yml b/brittney_jackson/rails/bpm/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/environment.rb b/brittney_jackson/rails/bpm/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/environments/development.rb b/brittney_jackson/rails/bpm/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/brittney_jackson/rails/bpm/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/brittney_jackson/rails/bpm/config/environments/production.rb b/brittney_jackson/rails/bpm/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/brittney_jackson/rails/bpm/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/brittney_jackson/rails/bpm/config/environments/test.rb b/brittney_jackson/rails/bpm/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/brittney_jackson/rails/bpm/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/brittney_jackson/rails/bpm/config/initializers/assets.rb b/brittney_jackson/rails/bpm/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/brittney_jackson/rails/bpm/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/brittney_jackson/rails/bpm/config/initializers/backtrace_silencers.rb b/brittney_jackson/rails/bpm/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/initializers/cookies_serializer.rb b/brittney_jackson/rails/bpm/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/brittney_jackson/rails/bpm/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 diff --git a/brittney_jackson/rails/bpm/config/initializers/filter_parameter_logging.rb b/brittney_jackson/rails/bpm/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/initializers/inflections.rb b/brittney_jackson/rails/bpm/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/initializers/mime_types.rb b/brittney_jackson/rails/bpm/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/initializers/wrap_parameters.rb b/brittney_jackson/rails/bpm/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/locales/en.yml b/brittney_jackson/rails/bpm/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/config/routes.rb b/brittney_jackson/rails/bpm/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/brittney_jackson/rails/bpm/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/brittney_jackson/rails/bpm/config/secrets.yml b/brittney_jackson/rails/bpm/config/secrets.yml deleted file mode 100644 index d9e62f6..0000000 --- a/brittney_jackson/rails/bpm/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: e1a39a7af271266777872f740f18fa2704c931668bbc8375253c14fb0a8baa6e8ef8849fdc6dc7ffe4010466a457fec75b28ba04c69486e2f888bd1e1455bbe5 - -test: - secret_key_base: d58ca187408faa88c06ab71d8314f514488355170d7e91661aa26af0c1fe6fb45a72359137c6d4b5dbbd61c00253e7b1b4711c2dfe189843b6da1fce23e29cf9 - -# 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/brittney_jackson/rails/bpm/db/migrate/20171130194150_create_blogs.rb b/brittney_jackson/rails/bpm/db/migrate/20171130194150_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/brittney_jackson/rails/bpm/db/migrate/20171130194150_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/bpm/db/migrate/20171130194230_create_posts.rb b/brittney_jackson/rails/bpm/db/migrate/20171130194230_create_posts.rb deleted file mode 100644 index 90e2db8..0000000 --- a/brittney_jackson/rails/bpm/db/migrate/20171130194230_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/bpm/db/migrate/20171130194306_create_messages.rb b/brittney_jackson/rails/bpm/db/migrate/20171130194306_create_messages.rb deleted file mode 100644 index cf927e7..0000000 --- a/brittney_jackson/rails/bpm/db/migrate/20171130194306_create_messages.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :post, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/bpm/db/schema.rb b/brittney_jackson/rails/bpm/db/schema.rb deleted file mode 100644 index 41da3c0..0000000 --- a/brittney_jackson/rails/bpm/db/schema.rb +++ /dev/null @@ -1,43 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130194306) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "post_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - -end diff --git a/brittney_jackson/rails/bpm/db/seeds.rb b/brittney_jackson/rails/bpm/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/brittney_jackson/rails/bpm/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/brittney_jackson/rails/bpm/lib/assets/.keep b/brittney_jackson/rails/bpm/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/lib/tasks/.keep b/brittney_jackson/rails/bpm/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/log/.keep b/brittney_jackson/rails/bpm/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/public/404.html b/brittney_jackson/rails/bpm/public/404.html deleted file mode 100644 index b612547..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/public/422.html b/brittney_jackson/rails/bpm/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/public/500.html b/brittney_jackson/rails/bpm/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/brittney_jackson/rails/bpm/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/brittney_jackson/rails/bpm/public/favicon.ico b/brittney_jackson/rails/bpm/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/public/robots.txt b/brittney_jackson/rails/bpm/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/brittney_jackson/rails/bpm/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/brittney_jackson/rails/bpm/test/controllers/.keep b/brittney_jackson/rails/bpm/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/test/fixtures/.keep b/brittney_jackson/rails/bpm/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/test/fixtures/blogs.yml b/brittney_jackson/rails/bpm/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/brittney_jackson/rails/bpm/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/brittney_jackson/rails/bpm/test/fixtures/messages.yml b/brittney_jackson/rails/bpm/test/fixtures/messages.yml deleted file mode 100644 index e3c84c8..0000000 --- a/brittney_jackson/rails/bpm/test/fixtures/messages.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - post_id: - -two: - author: MyString - message: MyText - post_id: diff --git a/brittney_jackson/rails/bpm/test/fixtures/posts.yml b/brittney_jackson/rails/bpm/test/fixtures/posts.yml deleted file mode 100644 index dcc822e..0000000 --- a/brittney_jackson/rails/bpm/test/fixtures/posts.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - blog_id: - -two: - title: MyString - content: MyText - blog_id: diff --git a/brittney_jackson/rails/bpm/test/helpers/.keep b/brittney_jackson/rails/bpm/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/test/integration/.keep b/brittney_jackson/rails/bpm/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/test/mailers/.keep b/brittney_jackson/rails/bpm/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/test/models/.keep b/brittney_jackson/rails/bpm/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/test/models/blog_test.rb b/brittney_jackson/rails/bpm/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/brittney_jackson/rails/bpm/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/bpm/test/models/message_test.rb b/brittney_jackson/rails/bpm/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/brittney_jackson/rails/bpm/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/bpm/test/models/post_test.rb b/brittney_jackson/rails/bpm/test/models/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/brittney_jackson/rails/bpm/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/bpm/test/test_helper.rb b/brittney_jackson/rails/bpm/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/brittney_jackson/rails/bpm/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/brittney_jackson/rails/bpm/vendor/assets/javascripts/.keep b/brittney_jackson/rails/bpm/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/bpm/vendor/assets/stylesheets/.keep b/brittney_jackson/rails/bpm/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojoNinjacommands.rb b/brittney_jackson/rails/dojoNinjacommands.rb deleted file mode 100644 index 4a61d0a..0000000 --- a/brittney_jackson/rails/dojoNinjacommands.rb +++ /dev/null @@ -1,86 +0,0 @@ -# 1. Start a new project (the name of the project should be 'dojo_ninjas') -rails new dojo_ninjas - -# 2. Create appropriate tables/models. -rails g model Dojo name:string city:string state:string -rails g model Ninja first_name:string last_name:string dojo:references -rake db:migrate - -# 3. Using Ruby console: -# 3.1 Create 3 dojos (insert some blank entries just to make sure it's allowing you to insert empty entries) -Dojo.create(name: "CodingDojo Silicon Valley", city: "Mountain View", state: "CA") -Dojo.create(name: "CodingDojo Seattle", city: "Seattle", state: "WA") -Dojo.create(name: "CodingDojo New York", city: "New York", state: "NY") -Dojo.create(name: "CodingDojo Los Angeles", state: "CA") - -# 4. Change your models so that it does the following validations: -class Dojo < ActiveRecord::Base - # 5. Make sure that a dojo has many ninjas - has_many :ninjas - # 4.1 require the presence of the name, city, and state; also require the state to be two characters long - validates :name, :city, :state, presence: true - validates :state, length: { is: 2 } -end - -class Ninja < ActiveRecord::Base - # 5. Make sure that a ninja belongs to a dojo - belongs_to :dojo - # 4.2 require the presence of the first name and last name - validates :first_name, :last_name, presence: true -end - -# 6. Using ruby console -# 6.1 Delete the three dojos you created -Dojo.destroy_all - -# 6.2 Create 3 additional dojos by using Dojo.new. -dojo1 = Dojo.new(name: "CodingDojo Seattle", city: "Seattle", state: "WA") -dojo1.save -dojo2 = Dojo.new(name: "CodingDojo Silicon Valley", city: "Mountain View", state: "CA") -dojo2.save -dojo3 = Dojo.new(name: "CodingDojo New York", city: "New York", state: "NY") -dojo3.save - -# 6.3 Try to create a few more dojos but without specifying some of the required fields. Make sure that the validation works and generates the errors. -dojo = Dojo.new(name: "CodingDojo Los Angeles", city: "Los Angeles") -dojo.save -dojo.errors.full_messages # => ["State can't be blank", "State is the wrong length (should be 2 characters)"] - -dojo = Dojo.new(name: "CodingDojo Los Angeles", state: "CA") -dojo.save -dojo.errors.full_messages # => ["City can't be blank"] - -dojo = Dojo.new(city: "Los Angeles", state: "CA") -dojo.save -dojo.errors.full_messages # => ["Name can't be blank"] - -# 6.4 Create 3 ninjas that belong to the first dojo you created. -Dojo.first.ninjas.create(first_name: "John", last_name: "Doe") -Dojo.first.ninjas.create(first_name: "Jane", last_name: "Doe") -Dojo.first.ninjas.create(first_name: "Jennifer", last_name: "Doe") - -# 6.5 Create 3 more ninjas and have them belong to the second dojo you created. -Dojo.second.ninjas.create(first_name: "Michael", last_name: "Smith") -Dojo.second.ninjas.create(first_name: "Michelle", last_name: "Smith") -Dojo.second.ninjas.create(first_name: "Mitchell", last_name: "Smith") - -# 6.6 Create 3 more ninjas and have them belong to the second dojo you created. -Dojo.third.ninjas.create(first_name: "Kevin", last_name: "Johnson") -Dojo.third.ninjas.create(first_name: "Kyle", last_name: "Johnson") -Dojo.third.ninjas.create(first_name: "Kurt", last_name: "Johnson") - -# 7. Make sure you understand how to get all of the ninjas for any dojo (e.g. get all the ninjas for the first dojo, second dojo, etc) -Dojo.first.ninjas -Dojo.second.ninjas -Dojo.third.ninjas - -# 8. How would you only retrieve the first_name of the ninja that belongs to the second dojo and order the result by created_at DESC order? -Ninja.where(dojo: Dojo.second).select(:id, :first_name).order(created_at: :desc) - -# 9. Delete the second dojo. How could you adjust your model so that it automatically removes all of the ninjas associated with that dojo? -class Dojo < ActiveRecord::Base - # add dependent: :destroy - has_many :ninjas, dependent: :destroy - validates :name, :city, :state, presence: true - validates :state, length: { is: 2 } -end \ No newline at end of file diff --git a/brittney_jackson/rails/dojo_ninjas/.gitignore b/brittney_jackson/rails/dojo_ninjas/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/brittney_jackson/rails/dojo_ninjas/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/brittney_jackson/rails/dojo_ninjas/Gemfile b/brittney_jackson/rails/dojo_ninjas/Gemfile deleted file mode 100644 index 0ee61bd..0000000 --- a/brittney_jackson/rails/dojo_ninjas/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' diff --git a/brittney_jackson/rails/dojo_ninjas/Gemfile.lock b/brittney_jackson/rails/dojo_ninjas/Gemfile.lock deleted file mode 100644 index c2e340f..0000000 --- a/brittney_jackson/rails/dojo_ninjas/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/brittney_jackson/rails/dojo_ninjas/README.rdoc b/brittney_jackson/rails/dojo_ninjas/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/brittney_jackson/rails/dojo_ninjas/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/brittney_jackson/rails/dojo_ninjas/Rakefile b/brittney_jackson/rails/dojo_ninjas/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/app/assets/images/.keep b/brittney_jackson/rails/dojo_ninjas/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/app/assets/javascripts/application.js b/brittney_jackson/rails/dojo_ninjas/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/brittney_jackson/rails/dojo_ninjas/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/brittney_jackson/rails/dojo_ninjas/app/assets/stylesheets/application.css b/brittney_jackson/rails/dojo_ninjas/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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 any plugin's vendor/assets/stylesheets directory 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/brittney_jackson/rails/dojo_ninjas/app/controllers/application_controller.rb b/brittney_jackson/rails/dojo_ninjas/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/app/controllers/concerns/.keep b/brittney_jackson/rails/dojo_ninjas/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/app/helpers/application_helper.rb b/brittney_jackson/rails/dojo_ninjas/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/brittney_jackson/rails/dojo_ninjas/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/brittney_jackson/rails/dojo_ninjas/app/mailers/.keep b/brittney_jackson/rails/dojo_ninjas/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/app/models/.keep b/brittney_jackson/rails/dojo_ninjas/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/app/models/concerns/.keep b/brittney_jackson/rails/dojo_ninjas/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/app/models/dojo.rb b/brittney_jackson/rails/dojo_ninjas/app/models/dojo.rb deleted file mode 100644 index d8ad7ed..0000000 --- a/brittney_jackson/rails/dojo_ninjas/app/models/dojo.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Dojo < ActiveRecord::Base - has_many :ninjas - - #validations - validates :name, :city, presence: true - validates :state, presence: true, length: { is: 2 } -end diff --git a/brittney_jackson/rails/dojo_ninjas/app/models/ninja.rb b/brittney_jackson/rails/dojo_ninjas/app/models/ninja.rb deleted file mode 100644 index 5d7952c..0000000 --- a/brittney_jackson/rails/dojo_ninjas/app/models/ninja.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Ninja < ActiveRecord::Base - belongs_to :dojo - - #validations - validates :firstname, :lastname, presence: true -end diff --git a/brittney_jackson/rails/dojo_ninjas/app/views/layouts/application.html.erb b/brittney_jackson/rails/dojo_ninjas/app/views/layouts/application.html.erb deleted file mode 100644 index 40d7e51..0000000 --- a/brittney_jackson/rails/dojo_ninjas/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoNinjas - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/brittney_jackson/rails/dojo_ninjas/bin/bundle b/brittney_jackson/rails/dojo_ninjas/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/bin/rails b/brittney_jackson/rails/dojo_ninjas/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/brittney_jackson/rails/dojo_ninjas/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/brittney_jackson/rails/dojo_ninjas/bin/rake b/brittney_jackson/rails/dojo_ninjas/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/brittney_jackson/rails/dojo_ninjas/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/brittney_jackson/rails/dojo_ninjas/bin/setup b/brittney_jackson/rails/dojo_ninjas/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/brittney_jackson/rails/dojo_ninjas/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/brittney_jackson/rails/dojo_ninjas/bin/spring b/brittney_jackson/rails/dojo_ninjas/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/brittney_jackson/rails/dojo_ninjas/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/brittney_jackson/rails/dojo_ninjas/config.ru b/brittney_jackson/rails/dojo_ninjas/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/application.rb b/brittney_jackson/rails/dojo_ninjas/config/application.rb deleted file mode 100644 index 156a9d5..0000000 --- a/brittney_jackson/rails/dojo_ninjas/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoNinjas - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/brittney_jackson/rails/dojo_ninjas/config/boot.rb b/brittney_jackson/rails/dojo_ninjas/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/brittney_jackson/rails/dojo_ninjas/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/brittney_jackson/rails/dojo_ninjas/config/database.yml b/brittney_jackson/rails/dojo_ninjas/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/environment.rb b/brittney_jackson/rails/dojo_ninjas/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/environments/development.rb b/brittney_jackson/rails/dojo_ninjas/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/brittney_jackson/rails/dojo_ninjas/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/brittney_jackson/rails/dojo_ninjas/config/environments/production.rb b/brittney_jackson/rails/dojo_ninjas/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/brittney_jackson/rails/dojo_ninjas/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/brittney_jackson/rails/dojo_ninjas/config/environments/test.rb b/brittney_jackson/rails/dojo_ninjas/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/brittney_jackson/rails/dojo_ninjas/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/brittney_jackson/rails/dojo_ninjas/config/initializers/assets.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/brittney_jackson/rails/dojo_ninjas/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/brittney_jackson/rails/dojo_ninjas/config/initializers/backtrace_silencers.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/initializers/cookies_serializer.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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 diff --git a/brittney_jackson/rails/dojo_ninjas/config/initializers/filter_parameter_logging.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/initializers/inflections.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/initializers/mime_types.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/initializers/session_store.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/session_store.rb deleted file mode 100644 index 313a66f..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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: '_dojo_ninjas_session' diff --git a/brittney_jackson/rails/dojo_ninjas/config/initializers/wrap_parameters.rb b/brittney_jackson/rails/dojo_ninjas/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/locales/en.yml b/brittney_jackson/rails/dojo_ninjas/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/config/routes.rb b/brittney_jackson/rails/dojo_ninjas/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/brittney_jackson/rails/dojo_ninjas/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/brittney_jackson/rails/dojo_ninjas/config/secrets.yml b/brittney_jackson/rails/dojo_ninjas/config/secrets.yml deleted file mode 100644 index d5a9c0c..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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: e69e8af7e7c3afe7f025444751a69ae897782d0b4418773bfeb81f2cc144c63beb0d6c575ade346f29971472a1155276762afcd0ef7e1a29fd291df91cb23044 - -test: - secret_key_base: 17fac7f3554f6039a91bb256022189d9242c7100470082d76c0a351c8c34e04a9bdff3d694603c1be1a2e1670b483a053766c5b818067757247b9de60a339758 - -# 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/brittney_jackson/rails/dojo_ninjas/db/migrate/20171130163305_create_dojos.rb b/brittney_jackson/rails/dojo_ninjas/db/migrate/20171130163305_create_dojos.rb deleted file mode 100644 index ece0705..0000000 --- a/brittney_jackson/rails/dojo_ninjas/db/migrate/20171130163305_create_dojos.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :name - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/dojo_ninjas/db/migrate/20171130163410_create_ninjas.rb b/brittney_jackson/rails/dojo_ninjas/db/migrate/20171130163410_create_ninjas.rb deleted file mode 100644 index 6be70fc..0000000 --- a/brittney_jackson/rails/dojo_ninjas/db/migrate/20171130163410_create_ninjas.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateNinjas < ActiveRecord::Migration - def change - create_table :ninjas do |t| - t.string :firstname - t.string :lastname - t.references :dojo, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/dojo_ninjas/db/schema.rb b/brittney_jackson/rails/dojo_ninjas/db/schema.rb deleted file mode 100644 index fb4f65d..0000000 --- a/brittney_jackson/rails/dojo_ninjas/db/schema.rb +++ /dev/null @@ -1,34 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130163410) do - - create_table "dojos", force: :cascade do |t| - t.string "name" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "ninjas", force: :cascade do |t| - t.string "firstname" - t.string "lastname" - t.integer "dojo_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "ninjas", ["dojo_id"], name: "index_ninjas_on_dojo_id" - -end diff --git a/brittney_jackson/rails/dojo_ninjas/db/seeds.rb b/brittney_jackson/rails/dojo_ninjas/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/brittney_jackson/rails/dojo_ninjas/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/brittney_jackson/rails/dojo_ninjas/lib/assets/.keep b/brittney_jackson/rails/dojo_ninjas/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/lib/tasks/.keep b/brittney_jackson/rails/dojo_ninjas/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/log/.keep b/brittney_jackson/rails/dojo_ninjas/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/public/404.html b/brittney_jackson/rails/dojo_ninjas/public/404.html deleted file mode 100644 index b612547..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/public/422.html b/brittney_jackson/rails/dojo_ninjas/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/public/500.html b/brittney_jackson/rails/dojo_ninjas/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/brittney_jackson/rails/dojo_ninjas/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/brittney_jackson/rails/dojo_ninjas/public/favicon.ico b/brittney_jackson/rails/dojo_ninjas/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/public/robots.txt b/brittney_jackson/rails/dojo_ninjas/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/brittney_jackson/rails/dojo_ninjas/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/brittney_jackson/rails/dojo_ninjas/test/controllers/.keep b/brittney_jackson/rails/dojo_ninjas/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/test/fixtures/.keep b/brittney_jackson/rails/dojo_ninjas/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/test/fixtures/dojos.yml b/brittney_jackson/rails/dojo_ninjas/test/fixtures/dojos.yml deleted file mode 100644 index 07bb5b1..0000000 --- a/brittney_jackson/rails/dojo_ninjas/test/fixtures/dojos.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - city: MyString - state: MyString - -two: - name: MyString - city: MyString - state: MyString diff --git a/brittney_jackson/rails/dojo_ninjas/test/fixtures/ninjas.yml b/brittney_jackson/rails/dojo_ninjas/test/fixtures/ninjas.yml deleted file mode 100644 index 1a59da8..0000000 --- a/brittney_jackson/rails/dojo_ninjas/test/fixtures/ninjas.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - firstname: MyString - lastname: MyString - dojo_id: - -two: - firstname: MyString - lastname: MyString - dojo_id: diff --git a/brittney_jackson/rails/dojo_ninjas/test/helpers/.keep b/brittney_jackson/rails/dojo_ninjas/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/test/integration/.keep b/brittney_jackson/rails/dojo_ninjas/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/test/mailers/.keep b/brittney_jackson/rails/dojo_ninjas/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/test/models/.keep b/brittney_jackson/rails/dojo_ninjas/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/test/models/dojo_test.rb b/brittney_jackson/rails/dojo_ninjas/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/brittney_jackson/rails/dojo_ninjas/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/dojo_ninjas/test/models/ninja_test.rb b/brittney_jackson/rails/dojo_ninjas/test/models/ninja_test.rb deleted file mode 100644 index d21c152..0000000 --- a/brittney_jackson/rails/dojo_ninjas/test/models/ninja_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class NinjaTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/dojo_ninjas/test/test_helper.rb b/brittney_jackson/rails/dojo_ninjas/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/brittney_jackson/rails/dojo_ninjas/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/brittney_jackson/rails/dojo_ninjas/vendor/assets/javascripts/.keep b/brittney_jackson/rails/dojo_ninjas/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/dojo_ninjas/vendor/assets/stylesheets/.keep b/brittney_jackson/rails/dojo_ninjas/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/.gitignore b/brittney_jackson/rails/integrateModels/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/brittney_jackson/rails/integrateModels/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/brittney_jackson/rails/integrateModels/Gemfile b/brittney_jackson/rails/integrateModels/Gemfile deleted file mode 100644 index 53b91be..0000000 --- a/brittney_jackson/rails/integrateModels/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -gem 'hirb' -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/brittney_jackson/rails/integrateModels/Gemfile.lock b/brittney_jackson/rails/integrateModels/Gemfile.lock deleted file mode 100644 index be50182..0000000 --- a/brittney_jackson/rails/integrateModels/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/brittney_jackson/rails/integrateModels/README.rdoc b/brittney_jackson/rails/integrateModels/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/brittney_jackson/rails/integrateModels/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/brittney_jackson/rails/integrateModels/Rakefile b/brittney_jackson/rails/integrateModels/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/app/assets/images/.keep b/brittney_jackson/rails/integrateModels/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/app/assets/javascripts/application.js b/brittney_jackson/rails/integrateModels/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/brittney_jackson/rails/integrateModels/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/brittney_jackson/rails/integrateModels/app/assets/stylesheets/application.css b/brittney_jackson/rails/integrateModels/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/brittney_jackson/rails/integrateModels/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 any plugin's vendor/assets/stylesheets directory 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/brittney_jackson/rails/integrateModels/app/controllers/application_controller.rb b/brittney_jackson/rails/integrateModels/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/app/controllers/concerns/.keep b/brittney_jackson/rails/integrateModels/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/app/controllers/users_controller.rb b/brittney_jackson/rails/integrateModels/app/controllers/users_controller.rb deleted file mode 100644 index f3bd519..0000000 --- a/brittney_jackson/rails/integrateModels/app/controllers/users_controller.rb +++ /dev/null @@ -1,47 +0,0 @@ -class UsersController < ApplicationController - - def index - render json: User.all - end - - def new - return render 'new.html.erb' - end - - def create - @user=User.create(user_params) - return redirect_to '/users' - end - - def info - render json: User.find(params[:id]) - end - - def edituser - @name = User.find(params[:id]).name - session[:id] = params[:id] - return render 'edit.html.erb' - end - - def edit - @user= User.find(session[:id]).update(user_params) - return redirect_to '/users' - end - - def total - @count = User.all.count - puts @count - render text: "There are #{@count} total users!" - end - - - private - def user_params - params.require(:user).permit(:name) - end - - - - - -end diff --git a/brittney_jackson/rails/integrateModels/app/helpers/application_helper.rb b/brittney_jackson/rails/integrateModels/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/brittney_jackson/rails/integrateModels/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/brittney_jackson/rails/integrateModels/app/mailers/.keep b/brittney_jackson/rails/integrateModels/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/app/models/.keep b/brittney_jackson/rails/integrateModels/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/app/models/concerns/.keep b/brittney_jackson/rails/integrateModels/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/app/models/user.rb b/brittney_jackson/rails/integrateModels/app/models/user.rb deleted file mode 100644 index 4a57cf0..0000000 --- a/brittney_jackson/rails/integrateModels/app/models/user.rb +++ /dev/null @@ -1,2 +0,0 @@ -class User < ActiveRecord::Base -end diff --git a/brittney_jackson/rails/integrateModels/app/views/layouts/application.html.erb b/brittney_jackson/rails/integrateModels/app/views/layouts/application.html.erb deleted file mode 100644 index 7391c75..0000000 --- a/brittney_jackson/rails/integrateModels/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - IntegrateModels - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/brittney_jackson/rails/integrateModels/app/views/users/edit.html.erb b/brittney_jackson/rails/integrateModels/app/views/users/edit.html.erb deleted file mode 100644 index e2960e0..0000000 --- a/brittney_jackson/rails/integrateModels/app/views/users/edit.html.erb +++ /dev/null @@ -1,15 +0,0 @@ - - - - Edit a User - - -
- - - - -
- - - \ No newline at end of file diff --git a/brittney_jackson/rails/integrateModels/app/views/users/new.html.erb b/brittney_jackson/rails/integrateModels/app/views/users/new.html.erb deleted file mode 100644 index b89c51e..0000000 --- a/brittney_jackson/rails/integrateModels/app/views/users/new.html.erb +++ /dev/null @@ -1,15 +0,0 @@ - - - - Add a User - - -
- - - - -
- - - \ No newline at end of file diff --git a/brittney_jackson/rails/integrateModels/bin/bundle b/brittney_jackson/rails/integrateModels/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/bin/rails b/brittney_jackson/rails/integrateModels/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/brittney_jackson/rails/integrateModels/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/brittney_jackson/rails/integrateModels/bin/rake b/brittney_jackson/rails/integrateModels/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/brittney_jackson/rails/integrateModels/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/brittney_jackson/rails/integrateModels/bin/setup b/brittney_jackson/rails/integrateModels/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/brittney_jackson/rails/integrateModels/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/brittney_jackson/rails/integrateModels/bin/spring b/brittney_jackson/rails/integrateModels/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/brittney_jackson/rails/integrateModels/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/brittney_jackson/rails/integrateModels/config.ru b/brittney_jackson/rails/integrateModels/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/application.rb b/brittney_jackson/rails/integrateModels/config/application.rb deleted file mode 100644 index fe089a8..0000000 --- a/brittney_jackson/rails/integrateModels/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module IntegrateModels - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/brittney_jackson/rails/integrateModels/config/boot.rb b/brittney_jackson/rails/integrateModels/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/brittney_jackson/rails/integrateModels/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/brittney_jackson/rails/integrateModels/config/database.yml b/brittney_jackson/rails/integrateModels/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/environment.rb b/brittney_jackson/rails/integrateModels/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/environments/development.rb b/brittney_jackson/rails/integrateModels/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/brittney_jackson/rails/integrateModels/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/brittney_jackson/rails/integrateModels/config/environments/production.rb b/brittney_jackson/rails/integrateModels/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/brittney_jackson/rails/integrateModels/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/brittney_jackson/rails/integrateModels/config/environments/test.rb b/brittney_jackson/rails/integrateModels/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/brittney_jackson/rails/integrateModels/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/brittney_jackson/rails/integrateModels/config/initializers/assets.rb b/brittney_jackson/rails/integrateModels/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/brittney_jackson/rails/integrateModels/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/brittney_jackson/rails/integrateModels/config/initializers/backtrace_silencers.rb b/brittney_jackson/rails/integrateModels/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/initializers/cookies_serializer.rb b/brittney_jackson/rails/integrateModels/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/brittney_jackson/rails/integrateModels/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 diff --git a/brittney_jackson/rails/integrateModels/config/initializers/filter_parameter_logging.rb b/brittney_jackson/rails/integrateModels/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/initializers/inflections.rb b/brittney_jackson/rails/integrateModels/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/initializers/mime_types.rb b/brittney_jackson/rails/integrateModels/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/initializers/session_store.rb b/brittney_jackson/rails/integrateModels/config/initializers/session_store.rb deleted file mode 100644 index 4c1d4cb..0000000 --- a/brittney_jackson/rails/integrateModels/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: '_integrateModels_session' diff --git a/brittney_jackson/rails/integrateModels/config/initializers/wrap_parameters.rb b/brittney_jackson/rails/integrateModels/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/locales/en.yml b/brittney_jackson/rails/integrateModels/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/config/routes.rb b/brittney_jackson/rails/integrateModels/config/routes.rb deleted file mode 100644 index 7b38784..0000000 --- a/brittney_jackson/rails/integrateModels/config/routes.rb +++ /dev/null @@ -1,68 +0,0 @@ -Rails.application.routes.draw do - - - get 'users' => 'users#index' - get 'users/new' => 'users#new' - post 'users/create' => 'users#create' - get 'users/new(/:id)' => 'users#info' - get 'users(/:id)/edit' => 'users#edituser' - post 'users/edit' => 'users#edit' - get 'users/total' => 'users#total' - - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/brittney_jackson/rails/integrateModels/config/secrets.yml b/brittney_jackson/rails/integrateModels/config/secrets.yml deleted file mode 100644 index 2411f92..0000000 --- a/brittney_jackson/rails/integrateModels/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: a30e18a7546f12e40b3d0ebc555c07fbfe85eb3eca19ce5a77f65d6d1dab983a47da6c524f624bf746dd86d24179343379b052a41b4ab0fdf9ecd06fe6775276 - -test: - secret_key_base: 7874ed7860c1b8c77ce68b7478bfa43853cce7d16a56754c748039079056bd7d624c0707d2c8db17a186a3f87a1ae913d96b00aa11eb69156690644a707dc4ea - -# 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/brittney_jackson/rails/integrateModels/db/migrate/20171202213734_create_users.rb b/brittney_jackson/rails/integrateModels/db/migrate/20171202213734_create_users.rb deleted file mode 100644 index 5494756..0000000 --- a/brittney_jackson/rails/integrateModels/db/migrate/20171202213734_create_users.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :name - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/integrateModels/db/schema.rb b/brittney_jackson/rails/integrateModels/db/schema.rb deleted file mode 100644 index d789c9a..0000000 --- a/brittney_jackson/rails/integrateModels/db/schema.rb +++ /dev/null @@ -1,22 +0,0 @@ -# encoding: UTF-8 -# 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: 20171202213734) do - - create_table "users", force: :cascade do |t| - t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/brittney_jackson/rails/integrateModels/db/seeds.rb b/brittney_jackson/rails/integrateModels/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/brittney_jackson/rails/integrateModels/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/brittney_jackson/rails/integrateModels/lib/assets/.keep b/brittney_jackson/rails/integrateModels/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/lib/tasks/.keep b/brittney_jackson/rails/integrateModels/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/log/.keep b/brittney_jackson/rails/integrateModels/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/public/404.html b/brittney_jackson/rails/integrateModels/public/404.html deleted file mode 100644 index b612547..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/public/422.html b/brittney_jackson/rails/integrateModels/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/public/500.html b/brittney_jackson/rails/integrateModels/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/brittney_jackson/rails/integrateModels/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/brittney_jackson/rails/integrateModels/public/favicon.ico b/brittney_jackson/rails/integrateModels/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/public/robots.txt b/brittney_jackson/rails/integrateModels/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/brittney_jackson/rails/integrateModels/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/brittney_jackson/rails/integrateModels/test/controllers/.keep b/brittney_jackson/rails/integrateModels/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/test/controllers/users_controller_test.rb b/brittney_jackson/rails/integrateModels/test/controllers/users_controller_test.rb deleted file mode 100644 index d23f182..0000000 --- a/brittney_jackson/rails/integrateModels/test/controllers/users_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UsersControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/integrateModels/test/fixtures/.keep b/brittney_jackson/rails/integrateModels/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/test/fixtures/users.yml b/brittney_jackson/rails/integrateModels/test/fixtures/users.yml deleted file mode 100644 index 56066c6..0000000 --- a/brittney_jackson/rails/integrateModels/test/fixtures/users.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - -two: - name: MyString diff --git a/brittney_jackson/rails/integrateModels/test/helpers/.keep b/brittney_jackson/rails/integrateModels/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/test/integration/.keep b/brittney_jackson/rails/integrateModels/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/test/mailers/.keep b/brittney_jackson/rails/integrateModels/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/test/models/.keep b/brittney_jackson/rails/integrateModels/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/test/models/user_test.rb b/brittney_jackson/rails/integrateModels/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/brittney_jackson/rails/integrateModels/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/integrateModels/test/test_helper.rb b/brittney_jackson/rails/integrateModels/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/brittney_jackson/rails/integrateModels/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/brittney_jackson/rails/integrateModels/vendor/assets/javascripts/.keep b/brittney_jackson/rails/integrateModels/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/integrateModels/vendor/assets/stylesheets/.keep b/brittney_jackson/rails/integrateModels/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/.gitignore b/brittney_jackson/rails/optimize/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/brittney_jackson/rails/optimize/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/brittney_jackson/rails/optimize/Gemfile b/brittney_jackson/rails/optimize/Gemfile deleted file mode 100644 index 353a4cf..0000000 --- a/brittney_jackson/rails/optimize/Gemfile +++ /dev/null @@ -1,50 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - - diff --git a/brittney_jackson/rails/optimize/Gemfile.lock b/brittney_jackson/rails/optimize/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/brittney_jackson/rails/optimize/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/brittney_jackson/rails/optimize/README.rdoc b/brittney_jackson/rails/optimize/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/brittney_jackson/rails/optimize/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/brittney_jackson/rails/optimize/Rakefile b/brittney_jackson/rails/optimize/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/app/assets/images/.keep b/brittney_jackson/rails/optimize/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/app/assets/javascripts/application.js b/brittney_jackson/rails/optimize/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/brittney_jackson/rails/optimize/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/brittney_jackson/rails/optimize/app/assets/stylesheets/application.css b/brittney_jackson/rails/optimize/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/brittney_jackson/rails/optimize/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 any plugin's vendor/assets/stylesheets directory 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/brittney_jackson/rails/optimize/app/controllers/application_controller.rb b/brittney_jackson/rails/optimize/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/app/controllers/concerns/.keep b/brittney_jackson/rails/optimize/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/app/helpers/application_helper.rb b/brittney_jackson/rails/optimize/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/brittney_jackson/rails/optimize/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/brittney_jackson/rails/optimize/app/mailers/.keep b/brittney_jackson/rails/optimize/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/app/models/.keep b/brittney_jackson/rails/optimize/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/app/models/concerns/.keep b/brittney_jackson/rails/optimize/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/app/models/player.rb b/brittney_jackson/rails/optimize/app/models/player.rb deleted file mode 100644 index 2f4ba64..0000000 --- a/brittney_jackson/rails/optimize/app/models/player.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Player < ActiveRecord::Base - - belongs_to :team - - -end diff --git a/brittney_jackson/rails/optimize/app/models/team.rb b/brittney_jackson/rails/optimize/app/models/team.rb deleted file mode 100644 index 4028526..0000000 --- a/brittney_jackson/rails/optimize/app/models/team.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Team < ActiveRecord::Base - - has_many :players - -end diff --git a/brittney_jackson/rails/optimize/app/views/layouts/application.html.erb b/brittney_jackson/rails/optimize/app/views/layouts/application.html.erb deleted file mode 100644 index 7fc9d5f..0000000 --- a/brittney_jackson/rails/optimize/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Optimize - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/brittney_jackson/rails/optimize/bin/bundle b/brittney_jackson/rails/optimize/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/bin/rails b/brittney_jackson/rails/optimize/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/brittney_jackson/rails/optimize/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/brittney_jackson/rails/optimize/bin/rake b/brittney_jackson/rails/optimize/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/brittney_jackson/rails/optimize/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/brittney_jackson/rails/optimize/bin/setup b/brittney_jackson/rails/optimize/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/brittney_jackson/rails/optimize/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/brittney_jackson/rails/optimize/bin/spring b/brittney_jackson/rails/optimize/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/brittney_jackson/rails/optimize/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/brittney_jackson/rails/optimize/config.ru b/brittney_jackson/rails/optimize/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/application.rb b/brittney_jackson/rails/optimize/config/application.rb deleted file mode 100644 index 82f8fb1..0000000 --- a/brittney_jackson/rails/optimize/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Optimize - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/brittney_jackson/rails/optimize/config/boot.rb b/brittney_jackson/rails/optimize/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/brittney_jackson/rails/optimize/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/brittney_jackson/rails/optimize/config/database.yml b/brittney_jackson/rails/optimize/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/environment.rb b/brittney_jackson/rails/optimize/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/environments/development.rb b/brittney_jackson/rails/optimize/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/brittney_jackson/rails/optimize/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/brittney_jackson/rails/optimize/config/environments/production.rb b/brittney_jackson/rails/optimize/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/brittney_jackson/rails/optimize/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/brittney_jackson/rails/optimize/config/environments/test.rb b/brittney_jackson/rails/optimize/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/brittney_jackson/rails/optimize/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/brittney_jackson/rails/optimize/config/initializers/assets.rb b/brittney_jackson/rails/optimize/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/brittney_jackson/rails/optimize/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/brittney_jackson/rails/optimize/config/initializers/backtrace_silencers.rb b/brittney_jackson/rails/optimize/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/initializers/cookies_serializer.rb b/brittney_jackson/rails/optimize/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/brittney_jackson/rails/optimize/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 diff --git a/brittney_jackson/rails/optimize/config/initializers/filter_parameter_logging.rb b/brittney_jackson/rails/optimize/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/initializers/inflections.rb b/brittney_jackson/rails/optimize/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/initializers/mime_types.rb b/brittney_jackson/rails/optimize/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/initializers/session_store.rb b/brittney_jackson/rails/optimize/config/initializers/session_store.rb deleted file mode 100644 index 7e5d399..0000000 --- a/brittney_jackson/rails/optimize/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: '_optimize_session' diff --git a/brittney_jackson/rails/optimize/config/initializers/wrap_parameters.rb b/brittney_jackson/rails/optimize/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/locales/en.yml b/brittney_jackson/rails/optimize/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/config/routes.rb b/brittney_jackson/rails/optimize/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/brittney_jackson/rails/optimize/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/brittney_jackson/rails/optimize/config/secrets.yml b/brittney_jackson/rails/optimize/config/secrets.yml deleted file mode 100644 index 8a25fbd..0000000 --- a/brittney_jackson/rails/optimize/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: 7bafcf83e6300c9ff8079df9d3862825cc424054a67e3ea7ab507f39c9260da1fd50d4ab37d427469e7997d53733c20134e87439c169d822a14ddf936c7b91f0 - -test: - secret_key_base: 7eeb321983bac9bb6a8a90f4c4028166e6807cb0e027d57ca1baff4c01e2ef27f1814810b9d3bb328355f5eb2f2abdecbd7aec9c96881ba4673e010ea09d1c8d - -# 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/brittney_jackson/rails/optimize/db/migrate/20171201021151_create_teams.rb b/brittney_jackson/rails/optimize/db/migrate/20171201021151_create_teams.rb deleted file mode 100644 index 5f7137c..0000000 --- a/brittney_jackson/rails/optimize/db/migrate/20171201021151_create_teams.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateTeams < ActiveRecord::Migration - def change - create_table :teams do |t| - t.string :name - t.string :mascot - t.string :stadium - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/optimize/db/migrate/20171201021205_create_players.rb b/brittney_jackson/rails/optimize/db/migrate/20171201021205_create_players.rb deleted file mode 100644 index 9949aad..0000000 --- a/brittney_jackson/rails/optimize/db/migrate/20171201021205_create_players.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePlayers < ActiveRecord::Migration - def change - create_table :players do |t| - t.string :name - t.references :team, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/optimize/db/schema.rb b/brittney_jackson/rails/optimize/db/schema.rb deleted file mode 100644 index 48c1597..0000000 --- a/brittney_jackson/rails/optimize/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171201021205) do - - create_table "players", force: :cascade do |t| - t.string "name" - t.integer "team_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "players", ["team_id"], name: "index_players_on_team_id" - - create_table "teams", force: :cascade do |t| - t.string "name" - t.string "mascot" - t.string "stadium" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/brittney_jackson/rails/optimize/db/seeds.rb b/brittney_jackson/rails/optimize/db/seeds.rb deleted file mode 100644 index d0073f3..0000000 --- a/brittney_jackson/rails/optimize/db/seeds.rb +++ /dev/null @@ -1,113 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) - - -# we require 'open-uri' to request the html files -require 'open-uri' -teams = [ - ["Atlanta Hawks", "Skyhawk", "Philips Arena"], - ["Boston Celtics", "Lucky the Leprechaun", "TD Garden"], - ["Brooklyn Nets", "BrooklyKnight", "Barclays Center"], - ["Charlotte Hornets", "Hugo the Hornet", "Spectrum Center"], - ["Chicago Bulls", "Benny the Bull", "United Center"], - ["Cleveland Cavaliers", "Moondog", "Quicken Loans Arena"], - ["Dallas Mavericks", "Champ", "American Airlines Center"], - ["Denver Nuggets", "Rocky the Mountain Lion", "Pepsi Center"], - ["Detroit Pistons", "Hooper", "The Palace of Auburn Hills"], - ["Golden State Warriors", "Thunder", "Oracle Arena"], - ["Houston Rockets", "Clutch", "Toyota Center"], - ["Indiana Pacers", "Boomer the Panther", "Bankers Life Fieldhouse"], - ["Los Angeles Clippers", "Chuck", "Staples Center"], - ["Los Angeles Lakers", "Jack Nicholson", "Staples Center"], - ["Memphis Grizzlies", "Griz", "FedExForum"], - ["Miami Heat", "Burnie", "American Airlines Arena"], - ["Milwaukee Bucks", "Bango", "BMO Harris Bradley Center"], - ["Minnesota Timberwolves", "Crunch the Wolf", "Target Center"], - ["New Orleans Pelicans", "Pierre the Pelican", "Smoothie King Center"], - ["New York Knicks", "Spike Lee", "Madison Square Garden"], - ["Oklahoma City Thunder", "Rumble the Bison", "Chesapeake Energy Arena"], - ["Orlando Magic", "Stuff the Magic Dragon", "Amway Center"], - ["Philadelphia 76ers", "Franklin the Dog", "Wells Fargo Center Philadelphia"], - ["Phoenix Suns", "The Suns Gorilla", "Talking Stick Resort Arena"], - ["Portland Trail Blazers", "Blaze the Trail Cat", "Moda Center"], - ["Sacramento Kings", "Slamson the Lion", "Golden 1 Center"], - ["San Antonio Spurs", "The Coyote", "AT&T Center"], - ["Toronto Raptors", "Raptor", "Air Canada Centre"], - ["Utah Jazz", "Jazz Bear", "Vivint Smart Home Arena"], - ["Washington Wizards", "G. Wiz", "Verizon Center"] -] -# Here, we are using the Nokogiri gem (already comes with Rails), to scrape the ESPN website for the list of players. -# For more information on Nokogiri, you can go to their documentation or visit http://www.nokogiri.org/ -atlanta_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/atl/atlanta-hawks")).css("td.sortcell") -boston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bos/boston-celtics")).css("td.sortcell") -brooklyn_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bkn/brooklyn-nets")).css("td.sortcell") -charlotte_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cha/charlotte-hornets")).css("td.sortcell") -chicago_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/chi/chicago-bulls")).css("td.sortcell") -cleveland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cle/cleveland-cavaliers")).css("td.sortcell") -dallas_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/dal/dallas-mavericks")).css("td.sortcell") -denver_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/den/denver-nuggets")).css("td.sortcell") -detroit_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/det/detroit-pistons")).css("td.sortcell") -warriors_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/gs/golden-state-warriors")).css("td.sortcell") -houston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/hou/houston-rockets")).css("td.sortcell") -indiana_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ind/indiana-pacers")).css("td.sortcell") -clippers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lac/la-clippers")).css("td.sortcell") -lakers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lal/los-angeles-lakers")).css("td.sortcell") -memphis_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mem/memphis-grizzlies")).css("td.sortcell") -miami_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mia/miami-heat")).css("td.sortcell") -milwaukee_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mil/milwaukee-bucks")).css("td.sortcell") -minnesota_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/min/minnesota-timberwolves")).css("td.sortcell") -nola_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/no/new-orleans-pelicans")).css("td.sortcell") -knicks_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ny/new-york-knicks")).css("td.sortcell") -okc_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/okc/oklahoma-city-thunder")).css("td.sortcell") -orlando_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/orl/orlando-magic")).css("td.sortcell") -phili_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phi/philadelphia-76ers")).css("td.sortcell") -phoenix_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phx/phoenix-suns")).css("td.sortcell") -portland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/por/portland-trail-blazers")).css("td.sortcell") -sacramento_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sac/sacramento-kings")).css("td.sortcell") -spurs_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sa/san-antonio-spurs")).css("td.sortcell") -toronto_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/tor/toronto-raptors")).css("td.sortcell") -utah_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/utah/utah-jazz")).css("td.sortcell") -washington_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/wsh/washington-wizards")).css("td.sortcell") -players = [ - atlanta_players, - boston_players, - brooklyn_players, - charlotte_players, - chicago_players, - cleveland_players, - dallas_players, - denver_players, - detroit_players, - warriors_players, - houston_players, - indiana_players, - clippers_players, - lakers_players, - memphis_players, - miami_players, - milwaukee_players, - minnesota_players, - nola_players, - knicks_players, - okc_players, - orlando_players, - phili_players, - phoenix_players, - portland_players, - sacramento_players, - spurs_players, - toronto_players, - utah_players, - washington_players -] -players.each_with_index do |roster, index| - Team.create(name: teams[index][0], mascot: teams[index][1], stadium: teams[index][2]) - roster.each do |player| - Team.last.players.create(name: player.text) - end -end diff --git a/brittney_jackson/rails/optimize/lib/assets/.keep b/brittney_jackson/rails/optimize/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/lib/tasks/.keep b/brittney_jackson/rails/optimize/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/log/.keep b/brittney_jackson/rails/optimize/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/public/404.html b/brittney_jackson/rails/optimize/public/404.html deleted file mode 100644 index b612547..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/public/422.html b/brittney_jackson/rails/optimize/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/public/500.html b/brittney_jackson/rails/optimize/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/brittney_jackson/rails/optimize/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/brittney_jackson/rails/optimize/public/favicon.ico b/brittney_jackson/rails/optimize/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/public/robots.txt b/brittney_jackson/rails/optimize/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/brittney_jackson/rails/optimize/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/brittney_jackson/rails/optimize/test/controllers/.keep b/brittney_jackson/rails/optimize/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/test/fixtures/.keep b/brittney_jackson/rails/optimize/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/test/fixtures/players.yml b/brittney_jackson/rails/optimize/test/fixtures/players.yml deleted file mode 100644 index 56a4719..0000000 --- a/brittney_jackson/rails/optimize/test/fixtures/players.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - team_id: - -two: - name: MyString - team_id: diff --git a/brittney_jackson/rails/optimize/test/fixtures/teams.yml b/brittney_jackson/rails/optimize/test/fixtures/teams.yml deleted file mode 100644 index d9c869d..0000000 --- a/brittney_jackson/rails/optimize/test/fixtures/teams.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - mascot: MyString - stadium: MyString - -two: - name: MyString - mascot: MyString - stadium: MyString diff --git a/brittney_jackson/rails/optimize/test/helpers/.keep b/brittney_jackson/rails/optimize/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/test/integration/.keep b/brittney_jackson/rails/optimize/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/test/mailers/.keep b/brittney_jackson/rails/optimize/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/test/models/.keep b/brittney_jackson/rails/optimize/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/test/models/player_test.rb b/brittney_jackson/rails/optimize/test/models/player_test.rb deleted file mode 100644 index 3cf71d7..0000000 --- a/brittney_jackson/rails/optimize/test/models/player_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PlayerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/optimize/test/models/team_test.rb b/brittney_jackson/rails/optimize/test/models/team_test.rb deleted file mode 100644 index 8b101cb..0000000 --- a/brittney_jackson/rails/optimize/test/models/team_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TeamTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/optimize/test/test_helper.rb b/brittney_jackson/rails/optimize/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/brittney_jackson/rails/optimize/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/brittney_jackson/rails/optimize/vendor/assets/javascripts/.keep b/brittney_jackson/rails/optimize/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimize/vendor/assets/stylesheets/.keep b/brittney_jackson/rails/optimize/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/optimizeCommands.rb b/brittney_jackson/rails/optimizeCommands.rb deleted file mode 100644 index 4315077..0000000 --- a/brittney_jackson/rails/optimizeCommands.rb +++ /dev/null @@ -1,30 +0,0 @@ -# 1. Retrive all players, then write a program that will loop through each player and display their team name, mascot and stadium. How many queries have we done? -players = Player.all -players.each do |player| - team = player.team - puts "Player: #{player.name}, Team: #{team.name}, Mascot: #{team.mascot}, Stadium: #{team.stadium}" -end - -1 query to retrieve all the players + 447 queries to get the team of each player = 448 total queries - -# 2. Retrive all players and their team by using .includes -players = Player.includes(:team) -players.each do |player| - puts "Player: #{player.name}, Team: #{player.team.name}, Mascot: #{player.team.mascot}, Stadium: #{player.team.stadium}" -end - -Active Record has eager loaded our association. When we call on the .team method on a player, we are not making another query but instead using the loaded assoication. -We only executed 2 queries - -# 3. Retrieve all players from the 'Chicago Bulls' by using .includes -Player.includes(:team).where("teams.name = 'Chicago Bulls'").references(:team) - -# 4. Retrieve all players along with the team name that play at the 'Staples Center' -Player.joins(:team).select('players.*', 'teams.name as franchise', 'teams.stadium as stadium').where("teams.stadium = 'Staples Center'") - -# 5 Retrive all teams that have any player that start their name with the letter 'A' by both .includes and .joins -Team.includes(:players).where("players.name LIKE 'Z%'").references(:players) -Team.joins(:players).where("players.name LIKE 'Z%'") - -# With .joins, we can also fetch more information. For example, we can retrieve the player's name as well -Team.joins(:players).where("players.name LIKE 'Z%'").select("teams.name as team_name", "teams.*", "players.*") \ No newline at end of file diff --git a/brittney_jackson/rails/routesControllers/.gitignore b/brittney_jackson/rails/routesControllers/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/brittney_jackson/rails/routesControllers/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/brittney_jackson/rails/routesControllers/Gemfile b/brittney_jackson/rails/routesControllers/Gemfile deleted file mode 100644 index 70e13ae..0000000 --- a/brittney_jackson/rails/routesControllers/Gemfile +++ /dev/null @@ -1,52 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -gem 'hirb' - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' - - # Provides details on current information for the page - gem 'rails-footnotes' -end - diff --git a/brittney_jackson/rails/routesControllers/Gemfile.lock b/brittney_jackson/rails/routesControllers/Gemfile.lock deleted file mode 100644 index 8fdca6c..0000000 --- a/brittney_jackson/rails/routesControllers/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/brittney_jackson/rails/routesControllers/README.rdoc b/brittney_jackson/rails/routesControllers/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/brittney_jackson/rails/routesControllers/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/brittney_jackson/rails/routesControllers/Rakefile b/brittney_jackson/rails/routesControllers/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/app/assets/images/.keep b/brittney_jackson/rails/routesControllers/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/app/assets/javascripts/application.js b/brittney_jackson/rails/routesControllers/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/brittney_jackson/rails/routesControllers/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/brittney_jackson/rails/routesControllers/app/assets/stylesheets/application.css b/brittney_jackson/rails/routesControllers/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/brittney_jackson/rails/routesControllers/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 any plugin's vendor/assets/stylesheets directory 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/brittney_jackson/rails/routesControllers/app/assets/stylesheets/hellos.scss b/brittney_jackson/rails/routesControllers/app/assets/stylesheets/hellos.scss deleted file mode 100644 index 4ecc3ef..0000000 --- a/brittney_jackson/rails/routesControllers/app/assets/stylesheets/hellos.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the hellos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/brittney_jackson/rails/routesControllers/app/controllers/application_controller.rb b/brittney_jackson/rails/routesControllers/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/app/controllers/concerns/.keep b/brittney_jackson/rails/routesControllers/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/app/controllers/hellos_controller.rb b/brittney_jackson/rails/routesControllers/app/controllers/hellos_controller.rb deleted file mode 100644 index 57ef646..0000000 --- a/brittney_jackson/rails/routesControllers/app/controllers/hellos_controller.rb +++ /dev/null @@ -1,34 +0,0 @@ -class HellosController < ApplicationController - - def index - render text: 'What do you want me to say?' - end - - def hello - render text: 'Hello CodingDojo!' - end - - def say - unless params[:name] - render text: 'Saying Hello?' - else - if params[:name] == 'michael' - redirect_to '/say/hello/joe' - else - render text: "saying hello #{params[:name]}!" - end - end - end - - def times - session[:counter] ||= 0 - session[:counter] += 1 - render text: "You visited this url #{session[:counter]} time(s)!" - end - - def restart - session.clear - render text: 'Destroyed the session...HAHAHAHAHA!' - end - -end diff --git a/brittney_jackson/rails/routesControllers/app/helpers/application_helper.rb b/brittney_jackson/rails/routesControllers/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/brittney_jackson/rails/routesControllers/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/brittney_jackson/rails/routesControllers/app/helpers/hellos_helper.rb b/brittney_jackson/rails/routesControllers/app/helpers/hellos_helper.rb deleted file mode 100644 index b91478f..0000000 --- a/brittney_jackson/rails/routesControllers/app/helpers/hellos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module HellosHelper -end diff --git a/brittney_jackson/rails/routesControllers/app/mailers/.keep b/brittney_jackson/rails/routesControllers/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/app/models/.keep b/brittney_jackson/rails/routesControllers/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/app/models/concerns/.keep b/brittney_jackson/rails/routesControllers/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/app/views/layouts/application.html.erb b/brittney_jackson/rails/routesControllers/app/views/layouts/application.html.erb deleted file mode 100644 index 26beefc..0000000 --- a/brittney_jackson/rails/routesControllers/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - RoutesControllers - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/brittney_jackson/rails/routesControllers/bin/bundle b/brittney_jackson/rails/routesControllers/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/bin/rails b/brittney_jackson/rails/routesControllers/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/brittney_jackson/rails/routesControllers/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/brittney_jackson/rails/routesControllers/bin/rake b/brittney_jackson/rails/routesControllers/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/brittney_jackson/rails/routesControllers/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/brittney_jackson/rails/routesControllers/bin/setup b/brittney_jackson/rails/routesControllers/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/brittney_jackson/rails/routesControllers/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/brittney_jackson/rails/routesControllers/bin/spring b/brittney_jackson/rails/routesControllers/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/brittney_jackson/rails/routesControllers/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/brittney_jackson/rails/routesControllers/config.ru b/brittney_jackson/rails/routesControllers/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/application.rb b/brittney_jackson/rails/routesControllers/config/application.rb deleted file mode 100644 index 2e2368b..0000000 --- a/brittney_jackson/rails/routesControllers/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module RoutesControllers - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/brittney_jackson/rails/routesControllers/config/boot.rb b/brittney_jackson/rails/routesControllers/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/brittney_jackson/rails/routesControllers/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/brittney_jackson/rails/routesControllers/config/database.yml b/brittney_jackson/rails/routesControllers/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/environment.rb b/brittney_jackson/rails/routesControllers/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/environments/development.rb b/brittney_jackson/rails/routesControllers/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/brittney_jackson/rails/routesControllers/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/brittney_jackson/rails/routesControllers/config/environments/production.rb b/brittney_jackson/rails/routesControllers/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/brittney_jackson/rails/routesControllers/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/brittney_jackson/rails/routesControllers/config/environments/test.rb b/brittney_jackson/rails/routesControllers/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/brittney_jackson/rails/routesControllers/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/brittney_jackson/rails/routesControllers/config/initializers/assets.rb b/brittney_jackson/rails/routesControllers/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/brittney_jackson/rails/routesControllers/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/brittney_jackson/rails/routesControllers/config/initializers/backtrace_silencers.rb b/brittney_jackson/rails/routesControllers/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/initializers/cookies_serializer.rb b/brittney_jackson/rails/routesControllers/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/brittney_jackson/rails/routesControllers/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 diff --git a/brittney_jackson/rails/routesControllers/config/initializers/filter_parameter_logging.rb b/brittney_jackson/rails/routesControllers/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/initializers/inflections.rb b/brittney_jackson/rails/routesControllers/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/initializers/mime_types.rb b/brittney_jackson/rails/routesControllers/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/initializers/session_store.rb b/brittney_jackson/rails/routesControllers/config/initializers/session_store.rb deleted file mode 100644 index a1438fe..0000000 --- a/brittney_jackson/rails/routesControllers/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: '_routesControllers_session' diff --git a/brittney_jackson/rails/routesControllers/config/initializers/wrap_parameters.rb b/brittney_jackson/rails/routesControllers/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/locales/en.yml b/brittney_jackson/rails/routesControllers/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/config/routes.rb b/brittney_jackson/rails/routesControllers/config/routes.rb deleted file mode 100644 index f71c03f..0000000 --- a/brittney_jackson/rails/routesControllers/config/routes.rb +++ /dev/null @@ -1,68 +0,0 @@ -Rails.application.routes.draw do - -root 'hellos#index' -get 'hello' => 'hellos#hello' -get 'say/hello(/:name)' => 'hellos#say' -get 'times' => 'hellos#times' -get 'times/restart' => 'hellos#restart' - - - - - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/brittney_jackson/rails/routesControllers/config/secrets.yml b/brittney_jackson/rails/routesControllers/config/secrets.yml deleted file mode 100644 index 2f9fa74..0000000 --- a/brittney_jackson/rails/routesControllers/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: ad5ac63b2baf44528edc4aed19c83b241d1e6a0b86f78bf6a73604c8aadbb407c1d1d34850480725834e10f2b9ef9de70108710408987de1abb4b564208c1bfc - -test: - secret_key_base: 9b0ed9e8e2f1a1e302d93b5ffd1742611ebdb9189e5b6aab2c21f5c48b5e86eed4c66273f4bca75720401ef92a9e777773a864b53508a6b2b5a5a74948e8c8b3 - -# 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/brittney_jackson/rails/routesControllers/db/seeds.rb b/brittney_jackson/rails/routesControllers/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/brittney_jackson/rails/routesControllers/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/brittney_jackson/rails/routesControllers/lib/assets/.keep b/brittney_jackson/rails/routesControllers/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/lib/tasks/.keep b/brittney_jackson/rails/routesControllers/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/log/.keep b/brittney_jackson/rails/routesControllers/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/public/404.html b/brittney_jackson/rails/routesControllers/public/404.html deleted file mode 100644 index b612547..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/public/422.html b/brittney_jackson/rails/routesControllers/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/public/500.html b/brittney_jackson/rails/routesControllers/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/brittney_jackson/rails/routesControllers/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/brittney_jackson/rails/routesControllers/public/favicon.ico b/brittney_jackson/rails/routesControllers/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/public/robots.txt b/brittney_jackson/rails/routesControllers/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/brittney_jackson/rails/routesControllers/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/brittney_jackson/rails/routesControllers/test/controllers/.keep b/brittney_jackson/rails/routesControllers/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/test/controllers/hellos_controller_test.rb b/brittney_jackson/rails/routesControllers/test/controllers/hellos_controller_test.rb deleted file mode 100644 index 79e128e..0000000 --- a/brittney_jackson/rails/routesControllers/test/controllers/hellos_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class HellosControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/routesControllers/test/fixtures/.keep b/brittney_jackson/rails/routesControllers/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/test/helpers/.keep b/brittney_jackson/rails/routesControllers/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/test/integration/.keep b/brittney_jackson/rails/routesControllers/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/test/mailers/.keep b/brittney_jackson/rails/routesControllers/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/test/models/.keep b/brittney_jackson/rails/routesControllers/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/test/test_helper.rb b/brittney_jackson/rails/routesControllers/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/brittney_jackson/rails/routesControllers/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/brittney_jackson/rails/routesControllers/vendor/assets/javascripts/.keep b/brittney_jackson/rails/routesControllers/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/routesControllers/vendor/assets/stylesheets/.keep b/brittney_jackson/rails/routesControllers/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/.gitignore b/brittney_jackson/rails/timeDisplay/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/brittney_jackson/rails/timeDisplay/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/brittney_jackson/rails/timeDisplay/Gemfile b/brittney_jackson/rails/timeDisplay/Gemfile deleted file mode 100644 index 31b99af..0000000 --- a/brittney_jackson/rails/timeDisplay/Gemfile +++ /dev/null @@ -1,51 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -gem 'hirb' - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' - - gem 'rails-footnotes' -end - diff --git a/brittney_jackson/rails/timeDisplay/Gemfile.lock b/brittney_jackson/rails/timeDisplay/Gemfile.lock deleted file mode 100644 index ee7ea50..0000000 --- a/brittney_jackson/rails/timeDisplay/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/brittney_jackson/rails/timeDisplay/README.rdoc b/brittney_jackson/rails/timeDisplay/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/brittney_jackson/rails/timeDisplay/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/brittney_jackson/rails/timeDisplay/Rakefile b/brittney_jackson/rails/timeDisplay/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/app/assets/images/.keep b/brittney_jackson/rails/timeDisplay/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/app/assets/javascripts/application.js b/brittney_jackson/rails/timeDisplay/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/brittney_jackson/rails/timeDisplay/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/brittney_jackson/rails/timeDisplay/app/assets/stylesheets/application.css b/brittney_jackson/rails/timeDisplay/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/brittney_jackson/rails/timeDisplay/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 any plugin's vendor/assets/stylesheets directory 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/brittney_jackson/rails/timeDisplay/app/assets/stylesheets/times.scss b/brittney_jackson/rails/timeDisplay/app/assets/stylesheets/times.scss deleted file mode 100644 index 8aca602..0000000 --- a/brittney_jackson/rails/timeDisplay/app/assets/stylesheets/times.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Times controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/brittney_jackson/rails/timeDisplay/app/controllers/application_controller.rb b/brittney_jackson/rails/timeDisplay/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/app/controllers/concerns/.keep b/brittney_jackson/rails/timeDisplay/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/app/controllers/times_controller.rb b/brittney_jackson/rails/timeDisplay/app/controllers/times_controller.rb deleted file mode 100644 index 11e09d2..0000000 --- a/brittney_jackson/rails/timeDisplay/app/controllers/times_controller.rb +++ /dev/null @@ -1,9 +0,0 @@ -class TimesController < ApplicationController - - def main - @time = Time.now.strftime("%H:%M %p ") - @date = Time.now.strftime("%m/%d/%Y") - return render 'index.html.erb' - end - -end diff --git a/brittney_jackson/rails/timeDisplay/app/helpers/application_helper.rb b/brittney_jackson/rails/timeDisplay/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/brittney_jackson/rails/timeDisplay/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/brittney_jackson/rails/timeDisplay/app/helpers/times_helper.rb b/brittney_jackson/rails/timeDisplay/app/helpers/times_helper.rb deleted file mode 100644 index db171a4..0000000 --- a/brittney_jackson/rails/timeDisplay/app/helpers/times_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module TimesHelper -end diff --git a/brittney_jackson/rails/timeDisplay/app/mailers/.keep b/brittney_jackson/rails/timeDisplay/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/app/models/.keep b/brittney_jackson/rails/timeDisplay/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/app/models/concerns/.keep b/brittney_jackson/rails/timeDisplay/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/app/views/layouts/application.html.erb b/brittney_jackson/rails/timeDisplay/app/views/layouts/application.html.erb deleted file mode 100644 index 8b25576..0000000 --- a/brittney_jackson/rails/timeDisplay/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - TimeDisplay - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/brittney_jackson/rails/timeDisplay/app/views/times/index.html.erb b/brittney_jackson/rails/timeDisplay/app/views/times/index.html.erb deleted file mode 100644 index ba2658a..0000000 --- a/brittney_jackson/rails/timeDisplay/app/views/times/index.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Current Time - - -

The current date and time is:

-

<%= @date %>

-

<%= @time %>

- - - - - \ No newline at end of file diff --git a/brittney_jackson/rails/timeDisplay/bin/bundle b/brittney_jackson/rails/timeDisplay/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/bin/rails b/brittney_jackson/rails/timeDisplay/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/brittney_jackson/rails/timeDisplay/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/brittney_jackson/rails/timeDisplay/bin/rake b/brittney_jackson/rails/timeDisplay/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/brittney_jackson/rails/timeDisplay/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/brittney_jackson/rails/timeDisplay/bin/setup b/brittney_jackson/rails/timeDisplay/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/brittney_jackson/rails/timeDisplay/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/brittney_jackson/rails/timeDisplay/bin/spring b/brittney_jackson/rails/timeDisplay/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/brittney_jackson/rails/timeDisplay/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/brittney_jackson/rails/timeDisplay/config.ru b/brittney_jackson/rails/timeDisplay/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/application.rb b/brittney_jackson/rails/timeDisplay/config/application.rb deleted file mode 100644 index 94c66d8..0000000 --- a/brittney_jackson/rails/timeDisplay/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module TimeDisplay - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/brittney_jackson/rails/timeDisplay/config/boot.rb b/brittney_jackson/rails/timeDisplay/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/brittney_jackson/rails/timeDisplay/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/brittney_jackson/rails/timeDisplay/config/database.yml b/brittney_jackson/rails/timeDisplay/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/environment.rb b/brittney_jackson/rails/timeDisplay/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/environments/development.rb b/brittney_jackson/rails/timeDisplay/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/brittney_jackson/rails/timeDisplay/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/brittney_jackson/rails/timeDisplay/config/environments/production.rb b/brittney_jackson/rails/timeDisplay/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/brittney_jackson/rails/timeDisplay/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/brittney_jackson/rails/timeDisplay/config/environments/test.rb b/brittney_jackson/rails/timeDisplay/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/brittney_jackson/rails/timeDisplay/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/brittney_jackson/rails/timeDisplay/config/initializers/assets.rb b/brittney_jackson/rails/timeDisplay/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/brittney_jackson/rails/timeDisplay/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/brittney_jackson/rails/timeDisplay/config/initializers/backtrace_silencers.rb b/brittney_jackson/rails/timeDisplay/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/initializers/cookies_serializer.rb b/brittney_jackson/rails/timeDisplay/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/brittney_jackson/rails/timeDisplay/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 diff --git a/brittney_jackson/rails/timeDisplay/config/initializers/filter_parameter_logging.rb b/brittney_jackson/rails/timeDisplay/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/initializers/inflections.rb b/brittney_jackson/rails/timeDisplay/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/initializers/mime_types.rb b/brittney_jackson/rails/timeDisplay/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/initializers/rails_footnotes.rb b/brittney_jackson/rails/timeDisplay/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/brittney_jackson/rails/timeDisplay/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/brittney_jackson/rails/timeDisplay/config/initializers/session_store.rb b/brittney_jackson/rails/timeDisplay/config/initializers/session_store.rb deleted file mode 100644 index 51c9c49..0000000 --- a/brittney_jackson/rails/timeDisplay/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: '_timeDisplay_session' diff --git a/brittney_jackson/rails/timeDisplay/config/initializers/wrap_parameters.rb b/brittney_jackson/rails/timeDisplay/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/locales/en.yml b/brittney_jackson/rails/timeDisplay/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/config/routes.rb b/brittney_jackson/rails/timeDisplay/config/routes.rb deleted file mode 100644 index 984e0e2..0000000 --- a/brittney_jackson/rails/timeDisplay/config/routes.rb +++ /dev/null @@ -1,60 +0,0 @@ -Rails.application.routes.draw do - - - root 'times#main' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/brittney_jackson/rails/timeDisplay/config/secrets.yml b/brittney_jackson/rails/timeDisplay/config/secrets.yml deleted file mode 100644 index c424714..0000000 --- a/brittney_jackson/rails/timeDisplay/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: cdd3ca9fc6d6e0e4a7874761548ef07f41c968f57517429b7042822077a32ffe65c17fdfa0b93a99ff9307c9a6909a1d0c1d0c676a62bb8e0a9522232013bc29 - -test: - secret_key_base: 197886cffd1de8bab42013dee34d05604fb06f1a4d51eb7d460b12993f3c893d26d80078f5248734846c4840d6e56a82dfe5f035b982f25bd9bb76a5777b3d90 - -# 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/brittney_jackson/rails/timeDisplay/db/seeds.rb b/brittney_jackson/rails/timeDisplay/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/brittney_jackson/rails/timeDisplay/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/brittney_jackson/rails/timeDisplay/lib/assets/.keep b/brittney_jackson/rails/timeDisplay/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/lib/tasks/.keep b/brittney_jackson/rails/timeDisplay/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/log/.keep b/brittney_jackson/rails/timeDisplay/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/public/404.html b/brittney_jackson/rails/timeDisplay/public/404.html deleted file mode 100644 index b612547..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/public/422.html b/brittney_jackson/rails/timeDisplay/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/public/500.html b/brittney_jackson/rails/timeDisplay/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/brittney_jackson/rails/timeDisplay/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/brittney_jackson/rails/timeDisplay/public/favicon.ico b/brittney_jackson/rails/timeDisplay/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/public/robots.txt b/brittney_jackson/rails/timeDisplay/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/brittney_jackson/rails/timeDisplay/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/brittney_jackson/rails/timeDisplay/test/controllers/.keep b/brittney_jackson/rails/timeDisplay/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/test/controllers/times_controller_test.rb b/brittney_jackson/rails/timeDisplay/test/controllers/times_controller_test.rb deleted file mode 100644 index 96a8a74..0000000 --- a/brittney_jackson/rails/timeDisplay/test/controllers/times_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TimesControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/timeDisplay/test/fixtures/.keep b/brittney_jackson/rails/timeDisplay/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/test/helpers/.keep b/brittney_jackson/rails/timeDisplay/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/test/integration/.keep b/brittney_jackson/rails/timeDisplay/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/test/mailers/.keep b/brittney_jackson/rails/timeDisplay/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/test/models/.keep b/brittney_jackson/rails/timeDisplay/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/test/test_helper.rb b/brittney_jackson/rails/timeDisplay/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/brittney_jackson/rails/timeDisplay/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/brittney_jackson/rails/timeDisplay/vendor/assets/javascripts/.keep b/brittney_jackson/rails/timeDisplay/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/timeDisplay/vendor/assets/stylesheets/.keep b/brittney_jackson/rails/timeDisplay/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/.gitignore b/brittney_jackson/rails/user_login_project/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/brittney_jackson/rails/user_login_project/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/brittney_jackson/rails/user_login_project/Gemfile b/brittney_jackson/rails/user_login_project/Gemfile deleted file mode 100644 index a589995..0000000 --- a/brittney_jackson/rails/user_login_project/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - diff --git a/brittney_jackson/rails/user_login_project/Gemfile.lock b/brittney_jackson/rails/user_login_project/Gemfile.lock deleted file mode 100644 index c2e340f..0000000 --- a/brittney_jackson/rails/user_login_project/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/brittney_jackson/rails/user_login_project/README.rdoc b/brittney_jackson/rails/user_login_project/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/brittney_jackson/rails/user_login_project/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/brittney_jackson/rails/user_login_project/Rakefile b/brittney_jackson/rails/user_login_project/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/app/assets/images/.keep b/brittney_jackson/rails/user_login_project/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/app/assets/javascripts/application.js b/brittney_jackson/rails/user_login_project/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/brittney_jackson/rails/user_login_project/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/brittney_jackson/rails/user_login_project/app/assets/stylesheets/application.css b/brittney_jackson/rails/user_login_project/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/brittney_jackson/rails/user_login_project/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 any plugin's vendor/assets/stylesheets directory 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/brittney_jackson/rails/user_login_project/app/controllers/application_controller.rb b/brittney_jackson/rails/user_login_project/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/app/controllers/concerns/.keep b/brittney_jackson/rails/user_login_project/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/app/helpers/application_helper.rb b/brittney_jackson/rails/user_login_project/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/brittney_jackson/rails/user_login_project/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/brittney_jackson/rails/user_login_project/app/mailers/.keep b/brittney_jackson/rails/user_login_project/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/app/models/.keep b/brittney_jackson/rails/user_login_project/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/app/models/concerns/.keep b/brittney_jackson/rails/user_login_project/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/app/models/user.rb b/brittney_jackson/rails/user_login_project/app/models/user.rb deleted file mode 100644 index c66bedb..0000000 --- a/brittney_jackson/rails/user_login_project/app/models/user.rb +++ /dev/null @@ -1,7 +0,0 @@ -class User < ActiveRecord::Base - - validates :firstname, :lastname, presence: true, length: { in: 2..20 } - validates :email, presence: true - validates :age, presence: true, numericality: {greater_than: 9, less_than: 151} - -end diff --git a/brittney_jackson/rails/user_login_project/app/views/layouts/application.html.erb b/brittney_jackson/rails/user_login_project/app/views/layouts/application.html.erb deleted file mode 100644 index 03b8954..0000000 --- a/brittney_jackson/rails/user_login_project/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - UserLoginProject - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/brittney_jackson/rails/user_login_project/bin/bundle b/brittney_jackson/rails/user_login_project/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/bin/rails b/brittney_jackson/rails/user_login_project/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/brittney_jackson/rails/user_login_project/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/brittney_jackson/rails/user_login_project/bin/rake b/brittney_jackson/rails/user_login_project/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/brittney_jackson/rails/user_login_project/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/brittney_jackson/rails/user_login_project/bin/setup b/brittney_jackson/rails/user_login_project/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/brittney_jackson/rails/user_login_project/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/brittney_jackson/rails/user_login_project/bin/spring b/brittney_jackson/rails/user_login_project/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/brittney_jackson/rails/user_login_project/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/brittney_jackson/rails/user_login_project/config.ru b/brittney_jackson/rails/user_login_project/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/application.rb b/brittney_jackson/rails/user_login_project/config/application.rb deleted file mode 100644 index 49c5e84..0000000 --- a/brittney_jackson/rails/user_login_project/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module UserLoginProject - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/brittney_jackson/rails/user_login_project/config/boot.rb b/brittney_jackson/rails/user_login_project/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/brittney_jackson/rails/user_login_project/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/brittney_jackson/rails/user_login_project/config/database.yml b/brittney_jackson/rails/user_login_project/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/environment.rb b/brittney_jackson/rails/user_login_project/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/environments/development.rb b/brittney_jackson/rails/user_login_project/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/brittney_jackson/rails/user_login_project/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/brittney_jackson/rails/user_login_project/config/environments/production.rb b/brittney_jackson/rails/user_login_project/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/brittney_jackson/rails/user_login_project/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/brittney_jackson/rails/user_login_project/config/environments/test.rb b/brittney_jackson/rails/user_login_project/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/brittney_jackson/rails/user_login_project/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/brittney_jackson/rails/user_login_project/config/initializers/assets.rb b/brittney_jackson/rails/user_login_project/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/brittney_jackson/rails/user_login_project/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/brittney_jackson/rails/user_login_project/config/initializers/backtrace_silencers.rb b/brittney_jackson/rails/user_login_project/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/initializers/cookies_serializer.rb b/brittney_jackson/rails/user_login_project/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/brittney_jackson/rails/user_login_project/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 diff --git a/brittney_jackson/rails/user_login_project/config/initializers/filter_parameter_logging.rb b/brittney_jackson/rails/user_login_project/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/initializers/inflections.rb b/brittney_jackson/rails/user_login_project/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/initializers/mime_types.rb b/brittney_jackson/rails/user_login_project/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/initializers/session_store.rb b/brittney_jackson/rails/user_login_project/config/initializers/session_store.rb deleted file mode 100644 index d692eec..0000000 --- a/brittney_jackson/rails/user_login_project/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: '_user_login_project_session' diff --git a/brittney_jackson/rails/user_login_project/config/initializers/wrap_parameters.rb b/brittney_jackson/rails/user_login_project/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/locales/en.yml b/brittney_jackson/rails/user_login_project/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/config/routes.rb b/brittney_jackson/rails/user_login_project/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/brittney_jackson/rails/user_login_project/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/brittney_jackson/rails/user_login_project/config/secrets.yml b/brittney_jackson/rails/user_login_project/config/secrets.yml deleted file mode 100644 index 21e460d..0000000 --- a/brittney_jackson/rails/user_login_project/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: 6b005b1d44c4bb939ba73ac10d5a30884b78bb817ca815f8455aa766740bd7fd50d86a19209772bfd51a313c17aa0f70f8244407c55074ae3242d43a4f24496b - -test: - secret_key_base: af8c97db61cc4a61e2db26fe53f16194697fe8feaa6a3c96e8e0f80bb0a07ab07ce33929d9d171c627dc1cad61b1ceb620f620b776161808e696c32232ca650d - -# 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/brittney_jackson/rails/user_login_project/db/migrate/20171130005431_create_users.rb b/brittney_jackson/rails/user_login_project/db/migrate/20171130005431_create_users.rb deleted file mode 100644 index 575b866..0000000 --- a/brittney_jackson/rails/user_login_project/db/migrate/20171130005431_create_users.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :firstname - t.string :lastname - t.string :email - t.integer :age - - t.timestamps null: false - end - end -end diff --git a/brittney_jackson/rails/user_login_project/db/schema.rb b/brittney_jackson/rails/user_login_project/db/schema.rb deleted file mode 100644 index ffc9ac6..0000000 --- a/brittney_jackson/rails/user_login_project/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130005431) do - - create_table "users", force: :cascade do |t| - t.string "firstname" - t.string "lastname" - t.string "email" - t.integer "age" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/brittney_jackson/rails/user_login_project/db/seeds.rb b/brittney_jackson/rails/user_login_project/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/brittney_jackson/rails/user_login_project/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/brittney_jackson/rails/user_login_project/lib/assets/.keep b/brittney_jackson/rails/user_login_project/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/lib/tasks/.keep b/brittney_jackson/rails/user_login_project/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/log/.keep b/brittney_jackson/rails/user_login_project/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/public/404.html b/brittney_jackson/rails/user_login_project/public/404.html deleted file mode 100644 index b612547..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/public/422.html b/brittney_jackson/rails/user_login_project/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/public/500.html b/brittney_jackson/rails/user_login_project/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/brittney_jackson/rails/user_login_project/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/brittney_jackson/rails/user_login_project/public/favicon.ico b/brittney_jackson/rails/user_login_project/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/public/robots.txt b/brittney_jackson/rails/user_login_project/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/brittney_jackson/rails/user_login_project/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/brittney_jackson/rails/user_login_project/test/controllers/.keep b/brittney_jackson/rails/user_login_project/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/test/fixtures/.keep b/brittney_jackson/rails/user_login_project/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/test/fixtures/users.yml b/brittney_jackson/rails/user_login_project/test/fixtures/users.yml deleted file mode 100644 index 61d091b..0000000 --- a/brittney_jackson/rails/user_login_project/test/fixtures/users.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - firstname: MyString - lastname: MyString - email: MyString - age: 1 - -two: - firstname: MyString - lastname: MyString - email: MyString - age: 1 diff --git a/brittney_jackson/rails/user_login_project/test/helpers/.keep b/brittney_jackson/rails/user_login_project/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/test/integration/.keep b/brittney_jackson/rails/user_login_project/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/test/mailers/.keep b/brittney_jackson/rails/user_login_project/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/test/models/.keep b/brittney_jackson/rails/user_login_project/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/test/models/user_test.rb b/brittney_jackson/rails/user_login_project/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/brittney_jackson/rails/user_login_project/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/brittney_jackson/rails/user_login_project/test/test_helper.rb b/brittney_jackson/rails/user_login_project/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/brittney_jackson/rails/user_login_project/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/brittney_jackson/rails/user_login_project/vendor/assets/javascripts/.keep b/brittney_jackson/rails/user_login_project/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rails/user_login_project/vendor/assets/stylesheets/.keep b/brittney_jackson/rails/user_login_project/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/brittney_jackson/rubyFundamentals/arrays.rb b/brittney_jackson/rubyFundamentals/arrays.rb deleted file mode 100644 index 451aad4..0000000 --- a/brittney_jackson/rubyFundamentals/arrays.rb +++ /dev/null @@ -1,69 +0,0 @@ -###### Arrays Assignment ###### -a = [1,2,3,4,5,6] -b = ['dog', 'cat', 'rabbit', 'lizard'] -c = [true, false] - -#.at or .fetch - -puts a.fetch(3) -puts b.fetch(2) -puts c.fetch(1) - -puts '*' *20 - -#.delete - -c.delete(false) -puts c - -puts '*' *20 - -#.reverse - -a.reverse! -p a - -puts '*' *20 - -#.length - -puts b.length - -puts '*' *20 -#.sort - -b.sort! -p b - -puts '*' *20 - -#.slice - -p a[1..3] - -puts '*' *20 - -#.shuffle - -p b.shuffle - -puts '*' *20 - -#.join - -p a.join(',') - -puts '*' *20 - -#.insert - -c.insert(1, false) -p c - -puts '*' *20 -#values_at() -> returns an array with values specified in the param - -p c.values_at(1) - - - diff --git a/brittney_jackson/rubyFundamentals/basic13.rb b/brittney_jackson/rubyFundamentals/basic13.rb deleted file mode 100644 index 22e4348..0000000 --- a/brittney_jackson/rubyFundamentals/basic13.rb +++ /dev/null @@ -1,95 +0,0 @@ -##### Assignment: Basic 13 ##### - -## Print 1-255 ## -p (1..255).to_a - -puts '*' *20 -## Print odd numbers between 1-255 ## -p (1..255).find_all { |i| i % 2 == 1 } - -puts '*' *20 -## Print Sum ## -sum = 0 -for i in 0..255 - puts "New number: #{i} Sum: #{sum += i}" -end - -puts '*' *20 -## Iterating through an array ## - -x = [1,3,5,7,9,13] - -x.each {|num| print num, ', '} -puts ' ' - -puts '*' *20 -## Find Max ## -y = [2,8,3,-4,-1,0] - -p y.max.to_s -p y.min.to_s - -puts '*' *20 -## Get Average ## -s = [2,10,3] -sum = 0 -len = s.length.to_i -for i in s - sum += i -end -avg = sum / len -p avg - -puts '*' *20 -## Array with Odd Numbers ## -y = [] -(1..255).each { |i| y << i if i.odd? } -p y - -puts '*' *20 -## Greater Than Y ## -def greater(arr, y) - arr.count { |i| i > y } -end -p greater([1,3,5,7], 3) - -puts '*' *20 -## Square the values ## -q = [1,5,10,-4] -q.map! { |i| i*i } -p q - -puts '*' *20 -## Eliminate Negative Numbers ## -t = [1,5,10,-2] -t.each_index { |i| t[i] = 0 if t[i] < 0 } -p t - -puts '*' *20 -## Max, Min, and Average ## -r =[1,5,10,-2] -sum = 0 -len = r.length.to_i -for i in r - sum += i -end -avg = sum / len -puts 'max = ' +r.max.to_s+ ', min = ' +r.min.to_s+ ', average = ' +avg.to_s - -puts '*' *20 -## Shifting the Values in the Array ## -a = [1, 5, 10, 7, -2] -a.shift -a.push(0) -p a - -puts '*' *20 -## Number to String ## -t = [1,5,10,-2] -t.each_index { |i| t[i] = 'dojo' if t[i] < 0 } -p t - -# Write a program that takes an array of numbers and replaces any negative number with the string 'Dojo'. For example, if array x is initially [-1, -3, 2] after your program is done that array should be ['Dojo', 'Dojo', 2]. - - - diff --git a/brittney_jackson/rubyFundamentals/blocks.rb b/brittney_jackson/rubyFundamentals/blocks.rb deleted file mode 100644 index f29372c..0000000 --- a/brittney_jackson/rubyFundamentals/blocks.rb +++ /dev/null @@ -1,16 +0,0 @@ -#### Learning BLocks #### - -def test - puts "You are in the method" - yield - puts "You are again back to the method" - yield -end -test { puts "You are in the block" } - -def test - yield 5 - puts "You are in the method test" - yield 100 -end -test { |i| puts "You are in the block #{i}" } \ No newline at end of file diff --git a/brittney_jackson/rubyFundamentals/guessNumber.rb b/brittney_jackson/rubyFundamentals/guessNumber.rb deleted file mode 100644 index fbf8570..0000000 --- a/brittney_jackson/rubyFundamentals/guessNumber.rb +++ /dev/null @@ -1,14 +0,0 @@ - - -def guess_number guess - number = 25 - # your code here - if guess > 25 - return 'Guess was too high' - elsif guess < 25 - return 'Guess was too low' - else - return 'You Got it' - end - -end \ No newline at end of file diff --git a/brittney_jackson/rubyFundamentals/hashes.rb b/brittney_jackson/rubyFundamentals/hashes.rb deleted file mode 100644 index d48c28d..0000000 --- a/brittney_jackson/rubyFundamentals/hashes.rb +++ /dev/null @@ -1,26 +0,0 @@ -#### Hashes #### - -# .delete(key) => deletes and returns a value associated with the key - -h = {:first_name => "Coding", :last_name => "Dojo"} -h.delete(:last_name) -p h - -puts '_' *20 - -# .empty? => returns true if hash contains no key-value pairs - -p h.empty? - -puts '_' *20 - -# .has_key?(key) => true or false - -p h.has_key?(:last_name) - - -puts '_' *20 - -# .has_value?(value) => true or false - -p h.has_value?('Coding') \ No newline at end of file diff --git a/brittney_jackson/rubyFundamentals/iterators.rb b/brittney_jackson/rubyFundamentals/iterators.rb deleted file mode 100644 index 28b9757..0000000 --- a/brittney_jackson/rubyFundamentals/iterators.rb +++ /dev/null @@ -1,46 +0,0 @@ -#### iterators exercise #### - - -#.any? { |obj| block } => true or false - -p ["ant", "bear", "cat"].any? { |word| word.length >= 3 } - -puts '*' *20 - -#.each => calls block once for each element in ruby self, passing that element as a block parameter. -p ["ant", "bear", "cat"].each { |word| print word, "--" } # => ant--bear--cat-- - -puts '*' *20 -#.collect { |obj| block } => returns a new array with the results of running block once for every element in enum -p (1..4).collect { |i| i*i } # => [1, 4, 9, 16] -p (1..4).collect { "cat" } # => ["cat", "cat", "cat", "cat"] - -puts '*' *20 -#.detect/.find => returns the first for which block is not false. -p (1..10).detect { |i| i %5 == 0 and i % 7 == 0 } # => nil -p (1..100).detect { |i| i %5 == 0 and i % 7 == 0 } # => 35 - -puts '*' *20 -#.find_all { |obj| block } or .select { |obj| block } => returns an array containing all elements of enum for which block is not false -p (1..10).find_all { |i| i % 3 == 0 } # => [3, 6, 9] - -puts '*' *20 -#.reject { |obj| block } => opposite of find_all -p (1..10).reject { |i| i % 3 == 0 } # => [1, 2, 4, 5, 7, 8, 10] - -puts '*' *20 -#.upto(limit) => iterates block up to the int number -p 5.upto(10) { |i| print i, " " } # => 5 6 7 8 9 10 - -puts '*' *20 - - - - - - - - - - - diff --git a/brittney_jackson/rubyFundamentals/myEnumerable.rb b/brittney_jackson/rubyFundamentals/myEnumerable.rb deleted file mode 100644 index 91430f7..0000000 --- a/brittney_jackson/rubyFundamentals/myEnumerable.rb +++ /dev/null @@ -1,17 +0,0 @@ -#### myEnumerable #### - -module MyEnumerable - def my_each - # your code here! - for i in 0...self.length - puts self[i] - end - end -end - -class Array - include MyEnumerable -end - -p [1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 -p [1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 \ No newline at end of file diff --git a/brittney_jackson/rubyFundamentals/names.rb b/brittney_jackson/rubyFundamentals/names.rb deleted file mode 100644 index 2453bb4..0000000 --- a/brittney_jackson/rubyFundamentals/names.rb +++ /dev/null @@ -1,39 +0,0 @@ -#### Names #### - -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - - - - - -puts "You have "+ names.length.to_s + " names in the 'names' array" -for i in names - puts 'The name is ' + i[:first_name]+' '+i[:last_name] -end - - - - - - - - - - -# You have 5 names in the 'names' array - - - - - - - - - - - diff --git a/brittney_jackson/rubyFundamentals/range.rb b/brittney_jackson/rubyFundamentals/range.rb deleted file mode 100644 index e3d7d64..0000000 --- a/brittney_jackson/rubyFundamentals/range.rb +++ /dev/null @@ -1,21 +0,0 @@ -#### Range Assignment ### - -x = (1..25) - -p x -p x.to_a - -#.include?(value) => true or false -puts 'The range includes 15' if x.include? 15 - -#.last => returns the last object in range -puts 'The last number of this range is ' + x.last.to_s - -#.max => returns the maximum value in range -puts 'The MAX number of this range is ' + x.max.to_s - -#.min => returns the minimum value in range -puts 'The MIN number of this range is ' + x.min.to_s - - - diff --git a/brittney_jackson/rubyFundamentals/rubyPuzzles.rb b/brittney_jackson/rubyFundamentals/rubyPuzzles.rb deleted file mode 100644 index 7298fcb..0000000 --- a/brittney_jackson/rubyFundamentals/rubyPuzzles.rb +++ /dev/null @@ -1,83 +0,0 @@ -#### Ruby Puzzles #### - - -# Create an array with the following values: 3,5,1,2,7,9,8,13,25,32. Print the sum of all numbers in the array. Also have the function return an array that only include numbers that are greater than 10 (e.g. when you pass the array above, it should return an array with the values of 13,25,32 - hint: use reject or find_all method) - -a = [3,5,1,2,7,9,8,13,25,32] -sum = 0 -for i in a - sum += i -end -p sum -p a.reject { |i| i < 10 } - -p '*'*20 -#Create an array with the following values: John, KB, Oliver, Cory, Matthew, Christopher. Shuffle the array and print the name of each person. Have the program also return an array with names that are longer than 5 characters. - -b = ['John', 'KB', 'Oliver', 'Cory', 'Matthew', 'Christopher'] -p b.shuffle -p b.find_all { |i| i.length > 5 } - -p '*'*20 -# Create an array that contains all 26 letters in the alphabet (this array must have 26 values). Shuffle the array and display the last letter of the array. Have it also display the first letter of the array. If the first letter in the array is a vowel, have it display a message. - -c = ('a'..'z').to_a -p c.shuffle! -p c.last -p c.first -d =['a', 'e', 'i', 'o', 'u'] -for i in d - if c.first == i - puts 'Oooh issa vowel!' - end -end - -p '*'*20 -# Generate an array with 10 random numbers between 55-100. - -rnum = Random.new -crxynum = [] - -for i in (0...10) - crxynum.push(rnum.rand(55..100)) -end -p crxynum - -p '*'*20 -# Generate an array with 10 random numbers between 55-100 and have it be sorted (showing the smallest number in the beginning). Display all the numbers in the array. Next, display the minimum value in the array as well as the maximum value - -rnum = Random.new -crxynum = [] - -for i in (0...10) - crxynum.push(rnum.rand(55..100)) -end -p crxynum.sort -p crxynum.min -p crxynum.max - -p '*'*20 -# Create a random string that is 5 characters long (hint: (65+rand(26)).chr returns a random character) -f = '' - -for i in (0...5) - f << (65+rand(26)).chr -end -p f - -p '*'*20 -# Generate an array with 10 random strings that are each 5 characters long -z = [] - -for i in (0...10) - r = '' - for i in (0...5) - r << (65+rand(26)).chr - end - z.push(r) -end -p z - - - - diff --git a/dylan_eckert/beltrev/.gitignore b/dylan_eckert/beltrev/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/beltrev/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/beltrev/Gemfile b/dylan_eckert/beltrev/Gemfile new file mode 100644 index 0000000..fa38155 --- /dev/null +++ b/dylan_eckert/beltrev/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + +gem 'rails-footnotes' +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/beltrev/Gemfile.lock b/dylan_eckert/beltrev/Gemfile.lock new file mode 100644 index 0000000..f543c75 --- /dev/null +++ b/dylan_eckert/beltrev/Gemfile.lock @@ -0,0 +1,184 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-footnotes (4.1.8) + rails (>= 3.2) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rails-footnotes + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/README.md b/dylan_eckert/beltrev/README.md similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/README.md rename to dylan_eckert/beltrev/README.md diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/Rakefile b/dylan_eckert/beltrev/Rakefile similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/Rakefile rename to dylan_eckert/beltrev/Rakefile diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/config/manifest.js b/dylan_eckert/beltrev/app/assets/config/manifest.js similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/assets/config/manifest.js rename to dylan_eckert/beltrev/app/assets/config/manifest.js diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/assets/images/.keep b/dylan_eckert/beltrev/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/assets/images/.keep rename to dylan_eckert/beltrev/app/assets/images/.keep diff --git a/dylan_eckert/beltrev/app/assets/javascripts/application.js b/dylan_eckert/beltrev/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/beltrev/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/assets/javascripts/users.coffee b/dylan_eckert/beltrev/app/assets/javascripts/attendees.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/assets/javascripts/users.coffee rename to dylan_eckert/beltrev/app/assets/javascripts/attendees.coffee diff --git a/dylan_eckert/beltrev/app/assets/javascripts/cable.js b/dylan_eckert/beltrev/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/beltrev/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/controllers/concerns/.keep b/dylan_eckert/beltrev/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/controllers/concerns/.keep rename to dylan_eckert/beltrev/app/assets/javascripts/channels/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/assets/javascripts/dojos.coffee b/dylan_eckert/beltrev/app/assets/javascripts/events.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/assets/javascripts/dojos.coffee rename to dylan_eckert/beltrev/app/assets/javascripts/events.coffee diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/assets/javascripts/sessions.coffee b/dylan_eckert/beltrev/app/assets/javascripts/sessions.coffee similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/assets/javascripts/sessions.coffee rename to dylan_eckert/beltrev/app/assets/javascripts/sessions.coffee diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/assets/javascripts/users.coffee b/dylan_eckert/beltrev/app/assets/javascripts/users.coffee similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/assets/javascripts/users.coffee rename to dylan_eckert/beltrev/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/beltrev/app/assets/stylesheets/application.css b/dylan_eckert/beltrev/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/beltrev/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/beltrev/app/assets/stylesheets/attendees.scss b/dylan_eckert/beltrev/app/assets/stylesheets/attendees.scss new file mode 100644 index 0000000..f99f57b --- /dev/null +++ b/dylan_eckert/beltrev/app/assets/stylesheets/attendees.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Attendees controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/beltrev/app/assets/stylesheets/events.scss b/dylan_eckert/beltrev/app/assets/stylesheets/events.scss new file mode 100644 index 0000000..e975d96 --- /dev/null +++ b/dylan_eckert/beltrev/app/assets/stylesheets/events.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Events controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/assets/stylesheets/sessions.scss b/dylan_eckert/beltrev/app/assets/stylesheets/sessions.scss similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/assets/stylesheets/sessions.scss rename to dylan_eckert/beltrev/app/assets/stylesheets/sessions.scss diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/assets/stylesheets/users.scss b/dylan_eckert/beltrev/app/assets/stylesheets/users.scss similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/assets/stylesheets/users.scss rename to dylan_eckert/beltrev/app/assets/stylesheets/users.scss diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/channels/application_cable/channel.rb b/dylan_eckert/beltrev/app/channels/application_cable/channel.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/channels/application_cable/channel.rb rename to dylan_eckert/beltrev/app/channels/application_cable/channel.rb diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/channels/application_cable/connection.rb b/dylan_eckert/beltrev/app/channels/application_cable/connection.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/channels/application_cable/connection.rb rename to dylan_eckert/beltrev/app/channels/application_cable/connection.rb diff --git a/dylan_eckert/beltrev/app/controllers/application_controller.rb b/dylan_eckert/beltrev/app/controllers/application_controller.rb new file mode 100644 index 0000000..8e0496d --- /dev/null +++ b/dylan_eckert/beltrev/app/controllers/application_controller.rb @@ -0,0 +1,18 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login, except: [:index] + + def index + end + + def require_login + return redirect_to root_path unless session[:user_id] + end + def current_user + # ONLY USE THIS IF YOU ARE NEEDING THE FULL USER INFO (name, email, etc) if you are going for an id, just use session[:user_id] + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/dylan_eckert/beltrev/app/controllers/attendees_controller.rb b/dylan_eckert/beltrev/app/controllers/attendees_controller.rb new file mode 100644 index 0000000..a361e81 --- /dev/null +++ b/dylan_eckert/beltrev/app/controllers/attendees_controller.rb @@ -0,0 +1,18 @@ +class AttendeesController < ApplicationController + before_action :user_auth + def create + Attendee.create(attendee_params) + redirect_to events_path + end + + def destroy + @attendee = Attendee.where(event_id: params[:id], user_id: session[:user_id]) + @attendee.first.destroy if @attendee != nil + # .first is needed because where returns an array, even if it is just an array of one thing + redirect_to events_path + end + private + def attendee_params + params.require(:attendee).permit(:event_id).merge(user: current_user) + end +end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/mailers/.keep b/dylan_eckert/beltrev/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/mailers/.keep rename to dylan_eckert/beltrev/app/controllers/concerns/.keep diff --git a/dylan_eckert/beltrev/app/controllers/events_controller.rb b/dylan_eckert/beltrev/app/controllers/events_controller.rb new file mode 100644 index 0000000..f81f8c0 --- /dev/null +++ b/dylan_eckert/beltrev/app/controllers/events_controller.rb @@ -0,0 +1,45 @@ +class EventsController < ApplicationController + before_action :event_auth, except: [:index, :show, :create] + def index + @nearme = Event.where(state: current_user.state) + @oostate = Event.where.not(state: current_user.state) + end + def show + @event = Event.find(params[:id]) + end + def create + event = Event.create(event_params) + + if event.valid? + return redirect_to events_path + else + flash[:errors] = event.errors.full_messages + return redirect_back fallback_location: new_event_path + end + end + def edit + @event = Event.find(params[:id]) + end + def update + event = Event.find(params[:id]) + event.update(event_params) + redirect_to event_path event.id + end + def destroy + event = Event.find(params[:id]) + event.destroy + redirect_to events_path + end + + private + def event_params + params.require(:event).permit(:name, :date, :location, :state).merge(user: current_user) + end + def event_auth + @event = Event.find(params[:id]) + if @event.user.id != session[:user_id] + # anything put into params or forms are treated as strings, so basically, session[:user_id] is a true integer because it comes from the user object. params[:id] is a string and must be converted to an integer in order for the comparison to occur + redirect_to events_path + end + end +end diff --git a/dylan_eckert/beltrev/app/controllers/sessions_controller.rb b/dylan_eckert/beltrev/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..01224f2 --- /dev/null +++ b/dylan_eckert/beltrev/app/controllers/sessions_controller.rb @@ -0,0 +1,23 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to events_path + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: root_path + end + def destroy + reset_session + redirect_to root_path + end + +end diff --git a/dylan_eckert/beltrev/app/controllers/users_controller.rb b/dylan_eckert/beltrev/app/controllers/users_controller.rb new file mode 100644 index 0000000..f174ba5 --- /dev/null +++ b/dylan_eckert/beltrev/app/controllers/users_controller.rb @@ -0,0 +1,39 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:create] + before_action :user_auth, except: [:create] + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to events_path + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: root_path + end + end + def edit + @user = User.find(params[:id]) + end + def update + user = User.find(params[:id]) + user.update(user_params) + redirect_to events_path + end + def destroy + user = User.find(params[:id]) + user.destroy + reset_session + redirect_to root_path + end + + private + def user_params + params.require(:user).permit(:fname, :lname, :email, :password, :password_confirmation, :location, :state) + end + def user_auth + if params[:id].to_i != session[:user_id] + # anything put into params or forms are treated as strings, so basically, session[:user_id] is a true integer because it comes from the user object. params[:id] is a string and must be converted to an integer in order for the comparison to occur + redirect_to events_path + end + end +end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/helpers/application_helper.rb b/dylan_eckert/beltrev/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/helpers/application_helper.rb rename to dylan_eckert/beltrev/app/helpers/application_helper.rb diff --git a/dylan_eckert/beltrev/app/helpers/attendees_helper.rb b/dylan_eckert/beltrev/app/helpers/attendees_helper.rb new file mode 100644 index 0000000..1011626 --- /dev/null +++ b/dylan_eckert/beltrev/app/helpers/attendees_helper.rb @@ -0,0 +1,2 @@ +module AttendeesHelper +end diff --git a/dylan_eckert/beltrev/app/helpers/events_helper.rb b/dylan_eckert/beltrev/app/helpers/events_helper.rb new file mode 100644 index 0000000..8a9a878 --- /dev/null +++ b/dylan_eckert/beltrev/app/helpers/events_helper.rb @@ -0,0 +1,2 @@ +module EventsHelper +end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/helpers/sessions_helper.rb b/dylan_eckert/beltrev/app/helpers/sessions_helper.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/helpers/sessions_helper.rb rename to dylan_eckert/beltrev/app/helpers/sessions_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/helpers/users_helper.rb b/dylan_eckert/beltrev/app/helpers/users_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/helpers/users_helper.rb rename to dylan_eckert/beltrev/app/helpers/users_helper.rb diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/jobs/application_job.rb b/dylan_eckert/beltrev/app/jobs/application_job.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/jobs/application_job.rb rename to dylan_eckert/beltrev/app/jobs/application_job.rb diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/mailers/application_mailer.rb b/dylan_eckert/beltrev/app/mailers/application_mailer.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/mailers/application_mailer.rb rename to dylan_eckert/beltrev/app/mailers/application_mailer.rb diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/application_record.rb b/dylan_eckert/beltrev/app/models/application_record.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/models/application_record.rb rename to dylan_eckert/beltrev/app/models/application_record.rb diff --git a/dylan_eckert/beltrev/app/models/attendee.rb b/dylan_eckert/beltrev/app/models/attendee.rb new file mode 100644 index 0000000..dfe1c65 --- /dev/null +++ b/dylan_eckert/beltrev/app/models/attendee.rb @@ -0,0 +1,4 @@ +class Attendee < ApplicationRecord + belongs_to :user + belongs_to :event +end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/models/.keep b/dylan_eckert/beltrev/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/models/.keep rename to dylan_eckert/beltrev/app/models/concerns/.keep diff --git a/dylan_eckert/beltrev/app/models/event.rb b/dylan_eckert/beltrev/app/models/event.rb new file mode 100644 index 0000000..8ba30ba --- /dev/null +++ b/dylan_eckert/beltrev/app/models/event.rb @@ -0,0 +1,25 @@ +class Event < ApplicationRecord + belongs_to :user + has_many :attendees + has_many :people_attending, through: :attendees, source: :user + + validates :name, :date, :location, :state, presence: :true + validate :datecheck + + before_save :input_format + # line above says that before saving the user to the database to run the email_lowercase method + + def datecheck + if date.present? && date < Date.current + errors.add(:date, "must be in the future") + end + end + def input_format + self.name = self.name.titleize + self.location = self.location.titleize + self.state.upcase! + # the built in method for lowercasing something is .downcase! + # the built in method for caps locking something is .upcase! + # the built in method for capitalizing every new word's first letter only (ex: This Is Titleize) something is .titleize! + end +end diff --git a/dylan_eckert/beltrev/app/models/user.rb b/dylan_eckert/beltrev/app/models/user.rb new file mode 100644 index 0000000..0b20fee --- /dev/null +++ b/dylan_eckert/beltrev/app/models/user.rb @@ -0,0 +1,26 @@ +class User < ApplicationRecord + has_secure_password + has_many :events, dependent: :destroy + has_many :attendees + has_many :events_attending, through: :attendees, source: :event + + + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + validates :fname, :lname, :location, :state, presence: :true + + before_save :input_format + # line above says that before saving the user to the database to run the email_lowercase method + + def input_format + self.email.downcase! + self.fname.downcase! + self.lname.downcase! + self.location = self.location.titleize + self.state.upcase! + # the built in method for lowercasing something is .downcase! + # the built in method for caps locking something is .upcase! + # the built in method for capitalizing every new word's first letter only (ex: This Is Titleize) something is .titleize! + end +end diff --git a/dylan_eckert/beltrev/app/views/application/index.html.erb b/dylan_eckert/beltrev/app/views/application/index.html.erb new file mode 100644 index 0000000..51fde0c --- /dev/null +++ b/dylan_eckert/beltrev/app/views/application/index.html.erb @@ -0,0 +1,39 @@ +

Register

+
+ +

First Name

+ +

Last Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ +

Location

+ +

State

+ + +
+ +
+ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/beltrev/app/views/events/edit.html.erb b/dylan_eckert/beltrev/app/views/events/edit.html.erb new file mode 100644 index 0000000..316b487 --- /dev/null +++ b/dylan_eckert/beltrev/app/views/events/edit.html.erb @@ -0,0 +1,22 @@ +

Edit <%= @event.name %>

+
+ + +

Name

+ +

Date

+ +

Location

+ +

State

+ + +
diff --git a/dylan_eckert/beltrev/app/views/events/index.html.erb b/dylan_eckert/beltrev/app/views/events/index.html.erb new file mode 100644 index 0000000..8a1dc0b --- /dev/null +++ b/dylan_eckert/beltrev/app/views/events/index.html.erb @@ -0,0 +1,124 @@ +

Welcome, <%= current_user.fname %>!

+

Events Near You:

+ + + + + + + + + + + + <% for event in @nearme %> + + + + + + <% if current_user == event.user %> + + <% else %> + <% unless event.people_attending.include?(current_user) %> + + <% else %> + + <% end %> + <% end %> + + <% end %> + +
NameDateLocationHostAction/Status
<%= event.name %><%= event.date %><%= event.location %><%= event.user.fname.capitalize %> + Edit + | + Delete + +
+ + + +
+
+ Attending +
+ + + + +
+
+ +

Events in Other States:

+ + + + + + + + + + + + + <% for event in @oostate %> + + + + + + + <% if current_user == event.user %> + + <% else %> + <% unless event.people_attending.include?(current_user) %> + + <% else %> + + <% end %> + <% end %> + + <% end %> + +
NameDateLocationstateHostAction/Status
<%= event.name %><%= event.date %><%= event.location %><%= event.state %><%= event.user.fname.capitalize %> + Edit + | + Delete + +
+ + + +
+
+ Attending +
+ + + + +
+
+ +

Create Event

+
+ +

Name

+ +

Date

+ +

Location

+ +

State

+ + +
diff --git a/dylan_eckert/beltrev/app/views/events/show.html.erb b/dylan_eckert/beltrev/app/views/events/show.html.erb new file mode 100644 index 0000000..a0565ad --- /dev/null +++ b/dylan_eckert/beltrev/app/views/events/show.html.erb @@ -0,0 +1,30 @@ +

<%= @event.name %> Page

+ +

Host:

+

<%= @event.user.fname %> <%= @event.user.lname %>

+

Date:

+

<%= @event.date %>

+

Location:

+

<%= @event.location %>

+

Number of Attendees:

+

<%= @event.people_attending.count %>

+ +

Attendees

+ + + + + + + + + + <% @event.people_attending.each do |p| %> + + + + + + <% end %> + +
NameLocationState
<%= p.fname.capitalize %> <%= p.lname.capitalize %><%= p.location %><%= p.state %>
diff --git a/dylan_eckert/beltrev/app/views/layouts/application.html.erb b/dylan_eckert/beltrev/app/views/layouts/application.html.erb new file mode 100644 index 0000000..6d20bbf --- /dev/null +++ b/dylan_eckert/beltrev/app/views/layouts/application.html.erb @@ -0,0 +1,31 @@ + + + + Beltrev + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + +
+ <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> +
+ <%= yield %> + + diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/views/layouts/mailer.html.erb b/dylan_eckert/beltrev/app/views/layouts/mailer.html.erb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/views/layouts/mailer.html.erb rename to dylan_eckert/beltrev/app/views/layouts/mailer.html.erb diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/views/layouts/mailer.text.erb b/dylan_eckert/beltrev/app/views/layouts/mailer.text.erb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/views/layouts/mailer.text.erb rename to dylan_eckert/beltrev/app/views/layouts/mailer.text.erb diff --git a/dylan_eckert/beltrev/app/views/users/edit.html.erb b/dylan_eckert/beltrev/app/views/users/edit.html.erb new file mode 100644 index 0000000..522c691 --- /dev/null +++ b/dylan_eckert/beltrev/app/views/users/edit.html.erb @@ -0,0 +1,25 @@ +
+ + +

First Name

+ +

Last Name

+ +

Email

+ +

Location

+ +

State

+ + +
+ +Delete Account diff --git a/Rodolfo_Valdivieso/controllers/basic_models/bin/bundle b/dylan_eckert/beltrev/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/bin/bundle rename to dylan_eckert/beltrev/bin/bundle diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/rails b/dylan_eckert/beltrev/bin/rails similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/bin/rails rename to dylan_eckert/beltrev/bin/rails diff --git a/Rodolfo_Valdivieso/controllers/basic_models/bin/rake b/dylan_eckert/beltrev/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/bin/rake rename to dylan_eckert/beltrev/bin/rake diff --git a/dylan_eckert/beltrev/bin/setup b/dylan_eckert/beltrev/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/beltrev/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/bin/spring b/dylan_eckert/beltrev/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/bin/spring rename to dylan_eckert/beltrev/bin/spring diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/bin/update b/dylan_eckert/beltrev/bin/update similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/bin/update rename to dylan_eckert/beltrev/bin/update diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config.ru b/dylan_eckert/beltrev/config.ru similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config.ru rename to dylan_eckert/beltrev/config.ru diff --git a/dylan_eckert/beltrev/config/application.rb b/dylan_eckert/beltrev/config/application.rb new file mode 100644 index 0000000..5a92bd2 --- /dev/null +++ b/dylan_eckert/beltrev/config/application.rb @@ -0,0 +1,25 @@ +require_relative 'boot' + +require "rails" +# Pick the frameworks you want: +require "active_model/railtie" +require "active_job/railtie" +require "active_record/railtie" +require "action_controller/railtie" +require "action_mailer/railtie" +require "action_view/railtie" +require "action_cable/engine" +require "sprockets/railtie" +# require "rails/test_unit/railtie" + +# Require the gems listed in Gemfile, including any gems +# you've limited to :test, :development, or :production. +Bundler.require(*Rails.groups) + +module Beltrev + 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. + end +end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/boot.rb b/dylan_eckert/beltrev/config/boot.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config/boot.rb rename to dylan_eckert/beltrev/config/boot.rb diff --git a/dylan_eckert/beltrev/config/cable.yml b/dylan_eckert/beltrev/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/beltrev/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/beltrev/config/database.yml b/dylan_eckert/beltrev/config/database.yml new file mode 100644 index 0000000..9bd3e08 --- /dev/null +++ b/dylan_eckert/beltrev/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: beltrev_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: beltrev + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: beltrev_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: beltrev_production + username: beltrev + password: <%= ENV['BELTREV_DATABASE_PASSWORD'] %> diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/environment.rb b/dylan_eckert/beltrev/config/environment.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config/environment.rb rename to dylan_eckert/beltrev/config/environment.rb diff --git a/dylan_eckert/beltrev/config/environments/development.rb b/dylan_eckert/beltrev/config/environments/development.rb new file mode 100644 index 0000000..cf43ceb --- /dev/null +++ b/dylan_eckert/beltrev/config/environments/development.rb @@ -0,0 +1,55 @@ +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 + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/beltrev/config/environments/production.rb b/dylan_eckert/beltrev/config/environments/production.rb new file mode 100644 index 0000000..75357ae --- /dev/null +++ b/dylan_eckert/beltrev/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "beltrev_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/beltrev/config/environments/test.rb b/dylan_eckert/beltrev/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/beltrev/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/application_controller_renderer.rb b/dylan_eckert/beltrev/config/initializers/application_controller_renderer.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/application_controller_renderer.rb rename to dylan_eckert/beltrev/config/initializers/application_controller_renderer.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/assets.rb b/dylan_eckert/beltrev/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/initializers/assets.rb rename to dylan_eckert/beltrev/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/backtrace_silencers.rb b/dylan_eckert/beltrev/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/initializers/backtrace_silencers.rb rename to dylan_eckert/beltrev/config/initializers/backtrace_silencers.rb diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/cookies_serializer.rb b/dylan_eckert/beltrev/config/initializers/cookies_serializer.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/cookies_serializer.rb rename to dylan_eckert/beltrev/config/initializers/cookies_serializer.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/filter_parameter_logging.rb b/dylan_eckert/beltrev/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/beltrev/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/inflections.rb b/dylan_eckert/beltrev/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/initializers/inflections.rb rename to dylan_eckert/beltrev/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/mime_types.rb b/dylan_eckert/beltrev/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/initializers/mime_types.rb rename to dylan_eckert/beltrev/config/initializers/mime_types.rb diff --git a/dylan_eckert/beltrev/config/initializers/new_framework_defaults.rb b/dylan_eckert/beltrev/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/beltrev/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/initializers/rails_footnotes.rb b/dylan_eckert/beltrev/config/initializers/rails_footnotes.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/initializers/rails_footnotes.rb rename to dylan_eckert/beltrev/config/initializers/rails_footnotes.rb diff --git a/dylan_eckert/beltrev/config/initializers/session_store.rb b/dylan_eckert/beltrev/config/initializers/session_store.rb new file mode 100644 index 0000000..351a231 --- /dev/null +++ b/dylan_eckert/beltrev/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_beltrev_session' diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/wrap_parameters.rb b/dylan_eckert/beltrev/config/initializers/wrap_parameters.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config/initializers/wrap_parameters.rb rename to dylan_eckert/beltrev/config/initializers/wrap_parameters.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/locales/en.yml b/dylan_eckert/beltrev/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/locales/en.yml rename to dylan_eckert/beltrev/config/locales/en.yml diff --git a/dylan_eckert/beltrev/config/puma.rb b/dylan_eckert/beltrev/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/beltrev/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/beltrev/config/routes.rb b/dylan_eckert/beltrev/config/routes.rb new file mode 100644 index 0000000..75b2497 --- /dev/null +++ b/dylan_eckert/beltrev/config/routes.rb @@ -0,0 +1,25 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + root 'application#index' + + # SESSION ROUTES + post "/sessions" => "sessions#create", as: "login" + delete "/session/:id" => "sessions#destroy", as: "logout" + # ATTENDEE ROUTES + post "/attendees" => "attendees#create", as: "attend" + delete "/attendee/:id" => "attendees#destroy", as: "cancel" + # USER ROUTES + post "/users" => "users#create", as: "register" + get "/users/:id/edit" => "users#edit", as: "edit_user" + patch "/users/:id" => "users#update", as: "update_user" + delete "/user/:id" => "users#destroy", as: "destroy_user" + + # EVENT ROUTES + get "/events" => "events#index", as: "events" + post "/events" => "events#create", as: "create_event" + get "/events/new" => "events#new", as: "new_event" + get "/events/:id" => "events#show", as: "event" + get "/events/:id/edit" => "events#edit", as: "edit_event" + patch "/events/:id" => "events#update", as: "update_event" + delete "/events/:id" => "events#destroy", as: "destroy_event" +end diff --git a/dylan_eckert/beltrev/config/secrets.yml b/dylan_eckert/beltrev/config/secrets.yml new file mode 100644 index 0000000..4416774 --- /dev/null +++ b/dylan_eckert/beltrev/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: a2182dc2690054d1156567188074d6d4cc37488b1462ce0dfbc3744652b6a2f9b2d5404fbe4292ed2b27126ad58786fab7771f40b30964caf8da947447fa2c28 + +test: + secret_key_base: 7d2f689047f31ceab3a5371e7c18f5c704be9524ccea5f00e8da8801e17976612aafc99dd92ac963309c4b1cf3ca2d9d4baa57da845ea5c97f1b758f9790105a + +# 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/Tamisha_Damas/Rails/Models /Friends(self_join)/config/spring.rb b/dylan_eckert/beltrev/config/spring.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config/spring.rb rename to dylan_eckert/beltrev/config/spring.rb diff --git a/dylan_eckert/beltrev/db/migrate/20171213193556_create_users.rb b/dylan_eckert/beltrev/db/migrate/20171213193556_create_users.rb new file mode 100644 index 0000000..ce95f76 --- /dev/null +++ b/dylan_eckert/beltrev/db/migrate/20171213193556_create_users.rb @@ -0,0 +1,14 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :fname + t.string :lname + t.string :email + t.string :location + t.string :state + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/beltrev/db/migrate/20171213194441_create_events.rb b/dylan_eckert/beltrev/db/migrate/20171213194441_create_events.rb new file mode 100644 index 0000000..9e3165d --- /dev/null +++ b/dylan_eckert/beltrev/db/migrate/20171213194441_create_events.rb @@ -0,0 +1,13 @@ +class CreateEvents < ActiveRecord::Migration[5.0] + def change + create_table :events do |t| + t.string :name + t.date :date + t.string :location + t.string :state + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/beltrev/db/migrate/20171213200259_create_attendees.rb b/dylan_eckert/beltrev/db/migrate/20171213200259_create_attendees.rb new file mode 100644 index 0000000..a22d514 --- /dev/null +++ b/dylan_eckert/beltrev/db/migrate/20171213200259_create_attendees.rb @@ -0,0 +1,10 @@ +class CreateAttendees < ActiveRecord::Migration[5.0] + def change + create_table :attendees do |t| + t.references :user, foreign_key: true + t.references :event, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/beltrev/db/schema.rb b/dylan_eckert/beltrev/db/schema.rb new file mode 100644 index 0000000..9f863be --- /dev/null +++ b/dylan_eckert/beltrev/db/schema.rb @@ -0,0 +1,52 @@ +# 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: 20171213200259) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "attendees", force: :cascade do |t| + t.integer "user_id" + t.integer "event_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["event_id"], name: "index_attendees_on_event_id", using: :btree + t.index ["user_id"], name: "index_attendees_on_user_id", using: :btree + end + + create_table "events", force: :cascade do |t| + t.string "name" + t.date "date" + t.string "location" + t.string "state" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id"], name: "index_events_on_user_id", using: :btree + end + + create_table "users", force: :cascade do |t| + t.string "fname" + t.string "lname" + t.string "email" + t.string "location" + t.string "state" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + add_foreign_key "attendees", "events" + add_foreign_key "attendees", "users" + add_foreign_key "events", "users" +end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/db/seeds.rb b/dylan_eckert/beltrev/db/seeds.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/db/seeds.rb rename to dylan_eckert/beltrev/db/seeds.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/app/models/concerns/.keep b/dylan_eckert/beltrev/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/app/models/concerns/.keep rename to dylan_eckert/beltrev/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/controllers/basic_models/lib/assets/.keep b/dylan_eckert/beltrev/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/lib/assets/.keep rename to dylan_eckert/beltrev/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/controllers/basic_models/lib/tasks/.keep b/dylan_eckert/beltrev/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/lib/tasks/.keep rename to dylan_eckert/beltrev/log/.keep diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/public/404.html b/dylan_eckert/beltrev/public/404.html similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/public/404.html rename to dylan_eckert/beltrev/public/404.html diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/public/422.html b/dylan_eckert/beltrev/public/422.html similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/public/422.html rename to dylan_eckert/beltrev/public/422.html diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/public/500.html b/dylan_eckert/beltrev/public/500.html similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/public/500.html rename to dylan_eckert/beltrev/public/500.html diff --git a/Rodolfo_Valdivieso/controllers/basic_models/log/.keep b/dylan_eckert/beltrev/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/log/.keep rename to dylan_eckert/beltrev/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/controllers/basic_models/public/favicon.ico b/dylan_eckert/beltrev/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/public/favicon.ico rename to dylan_eckert/beltrev/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/controllers/dashboard/public/favicon.ico b/dylan_eckert/beltrev/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/public/favicon.ico rename to dylan_eckert/beltrev/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/basic_models/public/robots.txt b/dylan_eckert/beltrev/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/public/robots.txt rename to dylan_eckert/beltrev/public/robots.txt diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/controllers/.keep b/dylan_eckert/beltrev/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/controllers/.keep rename to dylan_eckert/beltrev/tmp/.keep diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/fixtures/.keep b/dylan_eckert/beltrev/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/fixtures/.keep rename to dylan_eckert/beltrev/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/helpers/.keep b/dylan_eckert/beltrev/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/helpers/.keep rename to dylan_eckert/beltrev/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/controllersnviews/dojodash/.gitignore b/dylan_eckert/controllersnviews/dojodash/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/controllersnviews/dojodash/Gemfile b/dylan_eckert/controllersnviews/dojodash/Gemfile new file mode 100644 index 0000000..59d57f6 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/controllersnviews/dojodash/Gemfile.lock b/dylan_eckert/controllersnviews/dojodash/Gemfile.lock new file mode 100644 index 0000000..fabcef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.1) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/controllersnviews/dojodash/README.md b/dylan_eckert/controllersnviews/dojodash/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/controllersnviews/dojodash/Rakefile b/dylan_eckert/controllersnviews/dojodash/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/controllersnviews/dojodash/app/assets/config/manifest.js b/dylan_eckert/controllersnviews/dojodash/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/integration/.keep b/dylan_eckert/controllersnviews/dojodash/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/integration/.keep rename to dylan_eckert/controllersnviews/dojodash/app/assets/images/.keep diff --git a/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/application.js b/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/cable.js b/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/mailers/.keep b/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/mailers/.keep rename to dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/channels/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/javascripts/dojos.coffee b/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/dojos.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/app/assets/javascripts/dojos.coffee rename to dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/dojos.coffee diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/javascripts/students.coffee b/dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/students.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/javascripts/students.coffee rename to dylan_eckert/controllersnviews/dojodash/app/assets/javascripts/students.coffee diff --git a/dylan_eckert/controllersnviews/dojodash/app/assets/stylesheets/application.css b/dylan_eckert/controllersnviews/dojodash/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/assets/stylesheets/dojos.scss b/dylan_eckert/controllersnviews/dojodash/app/assets/stylesheets/dojos.scss similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/assets/stylesheets/dojos.scss rename to dylan_eckert/controllersnviews/dojodash/app/assets/stylesheets/dojos.scss diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/stylesheets/students.scss b/dylan_eckert/controllersnviews/dojodash/app/assets/stylesheets/students.scss similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/stylesheets/students.scss rename to dylan_eckert/controllersnviews/dojodash/app/assets/stylesheets/students.scss diff --git a/dylan_eckert/controllersnviews/dojodash/app/channels/application_cable/channel.rb b/dylan_eckert/controllersnviews/dojodash/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/controllersnviews/dojodash/app/channels/application_cable/connection.rb b/dylan_eckert/controllersnviews/dojodash/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/app/controllers/application_controller.rb b/dylan_eckert/controllersnviews/dojodash/app/controllers/application_controller.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/app/controllers/application_controller.rb rename to dylan_eckert/controllersnviews/dojodash/app/controllers/application_controller.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/models/.keep b/dylan_eckert/controllersnviews/dojodash/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/models/.keep rename to dylan_eckert/controllersnviews/dojodash/app/controllers/concerns/.keep diff --git a/dylan_eckert/controllersnviews/dojodash/app/controllers/dojos_controller.rb b/dylan_eckert/controllersnviews/dojodash/app/controllers/dojos_controller.rb new file mode 100644 index 0000000..47be055 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/controllers/dojos_controller.rb @@ -0,0 +1,48 @@ +class DojosController < ApplicationController + + def index + @dojos = Dojo.all + end + + def new + + end + + def create + @dojo = Dojo.create(dojo_params) + + if @dojo.valid? + redirect_to dojos_path + else + flash[:errors] = @dojo.errors.full_messages + redirect_to new_dojo_path + end + + end + + def show + @dojo = Dojo.find(params[:id]) + end + + def edit + @dojo = Dojo.find(params[:id]) + end + + def update + dojo = Dojo.find(params[:id]) + dojo.update(dojo_params) + redirect_to dojos_path + end + + def destroy + dojo = Dojo.find(params[:id]) + dojo.destroy + redirect_to dojos_path + end + + private + def dojo_params + params.require(:dojo).permit(:branch, :street, :city, :state) + end + +end diff --git a/dylan_eckert/controllersnviews/dojodash/app/controllers/students_controller.rb b/dylan_eckert/controllersnviews/dojodash/app/controllers/students_controller.rb new file mode 100644 index 0000000..8d17037 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/controllers/students_controller.rb @@ -0,0 +1,57 @@ +class StudentsController < ApplicationController + def index + @dojo = Dojo.find(params[:dojo_id]) + p @dojo + @students = @dojo.students + p @students + end + + def new + @dojo = Dojo.find(params[:dojo_id]) + end + + def create + @dojo = Dojo.find(params[:dojo_id]) + @student = Student.create(student_params) + @student.update(dojo: @dojo) + + if @student.valid? + redirect_to students_path + else + flash[:errors] = @student.errors.full_messages + redirect_to new_student_path + end + + end + + def show + @dojo = Dojo.find(params[:dojo_id]) + @student = Student.find(params[:id]) + @cohortees = @student.cohort + render layout: "students/show" + end + + def edit + @dojo = Dojo.find(params[:dojo_id]) + @student = Student.find(params[:id]) + end + + def update + @dojo = Dojo.find(params[:dojo_id]) + student = Student.find(params[:id]) + student.update(student_params) + redirect_to students_path + end + + def destroy + @dojo = Dojo.find(params[:dojo_id]) + student = @dojo.students.find(params[:id]) + student.destroy + redirect_to students_path + end + + private + def student_params + params.require(:student).permit(:fname, :lname, :email) + end +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/helpers/application_helper.rb b/dylan_eckert/controllersnviews/dojodash/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/helpers/application_helper.rb rename to dylan_eckert/controllersnviews/dojodash/app/helpers/application_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/helpers/dojos_helper.rb b/dylan_eckert/controllersnviews/dojodash/app/helpers/dojos_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/helpers/dojos_helper.rb rename to dylan_eckert/controllersnviews/dojodash/app/helpers/dojos_helper.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/students_helper.rb b/dylan_eckert/controllersnviews/dojodash/app/helpers/students_helper.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/helpers/students_helper.rb rename to dylan_eckert/controllersnviews/dojodash/app/helpers/students_helper.rb diff --git a/dylan_eckert/controllersnviews/dojodash/app/jobs/application_job.rb b/dylan_eckert/controllersnviews/dojodash/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/controllersnviews/dojodash/app/mailers/application_mailer.rb b/dylan_eckert/controllersnviews/dojodash/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/controllersnviews/dojodash/app/models/application_record.rb b/dylan_eckert/controllersnviews/dojodash/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/controllers/basic_models/vendor/assets/javascripts/.keep b/dylan_eckert/controllersnviews/dojodash/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/vendor/assets/javascripts/.keep rename to dylan_eckert/controllersnviews/dojodash/app/models/concerns/.keep diff --git a/dylan_eckert/controllersnviews/dojodash/app/models/dojo.rb b/dylan_eckert/controllersnviews/dojodash/app/models/dojo.rb new file mode 100644 index 0000000..b14e72f --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/models/dojo.rb @@ -0,0 +1,4 @@ +class Dojo < ApplicationRecord + validates :branch, :street, :city, :state, presence: :true + has_many :students +end diff --git a/dylan_eckert/controllersnviews/dojodash/app/models/student.rb b/dylan_eckert/controllersnviews/dojodash/app/models/student.rb new file mode 100644 index 0000000..3af57f5 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/models/student.rb @@ -0,0 +1,14 @@ +class Student < ApplicationRecord + belongs_to :dojo + validates :fname, :lname, :email, presence: :true + + def cohort + date_start = self.created_at.beginning_of_day + date_end = self.created_at.end_of_day + + return Student + .where(dojo: self.dojo) + .where(created_at: date_start..date_end) + .where.not(id: self.id) + end +end diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/dojos/edit.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/edit.html.erb new file mode 100644 index 0000000..a4674b2 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/edit.html.erb @@ -0,0 +1,24 @@ +

Edit Dojo <%= @dojo.id %>

+<% if flash[:errors] %> +
+ <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> +
+<% end %> + +
+ + + Branch: + + Street: + + City: + + State: + + +
+ +Go Back diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/dojos/index.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/index.html.erb new file mode 100644 index 0000000..3a07658 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/index.html.erb @@ -0,0 +1,24 @@ + + + + + + + + + + + + <% @dojos.each do |dojo| %> + + + + + + + + <% end %> + +
BranchStreetCityStateActions
<%= dojo.branch %><%= dojo.street %><%= dojo.city %><%= dojo.state %>Show | Edit | Destroy
+ +New Dojo diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/dojos/new.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/new.html.erb new file mode 100644 index 0000000..bb944cf --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/new.html.erb @@ -0,0 +1,23 @@ +

New Dojo

+<% if flash[:errors] %> +
+ <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> +
+<% end %> + +
+ + Branch: + + Street: + + City: + + State: + + +
+ +Go Back diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/dojos/show.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/show.html.erb new file mode 100644 index 0000000..2448c03 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/dojos/show.html.erb @@ -0,0 +1,13 @@ +

Dojo <%= @dojo.id %>

+

Branch:

+

<%= @dojo.branch %>

+

Street:

+

<%= @dojo.street %>

+

City:

+

<%= @dojo.city %>

+

State:

+

<%= @dojo.state %>

+ +View Students + +Go Back diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/layouts/application.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/application.html.erb new file mode 100644 index 0000000..b497d5f --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/application.html.erb @@ -0,0 +1,15 @@ + + + + Dojodash + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + + diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/layouts/mailer.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/layouts/mailer.text.erb b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/layouts/students/show.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/students/show.html.erb new file mode 100644 index 0000000..850e693 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/layouts/students/show.html.erb @@ -0,0 +1,16 @@ + + + + Show Student + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + +
+ <%= yield %> +
+ + diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/students/edit.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/students/edit.html.erb new file mode 100644 index 0000000..16e615a --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/students/edit.html.erb @@ -0,0 +1,22 @@ +

Edit <%= @student.fname %> for Dojo <%= @dojo.id %>

+<% if flash[:errors] %> +
+ <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> +
+<% end %> + +
+ + + First Name: + + Last name: + + Email: + + +
+ +Go Back diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/students/index.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/students/index.html.erb new file mode 100644 index 0000000..4603038 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/students/index.html.erb @@ -0,0 +1,22 @@ + + + + + + + + + + <% @students.each do |student| %> + + + + + + + <% end %> + +
First NameLast NameEmail
<%= student.fname %><%= student.lname %><%= student.email %>Show | Edit | Destroy
+ +New Student +Go Back diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/students/new.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/students/new.html.erb new file mode 100644 index 0000000..b96bff9 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/students/new.html.erb @@ -0,0 +1,21 @@ +

New Student for Dojo <%= @dojo.id %>

+<% if flash[:errors] %> +
+ <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> +
+<% end %> + +
+ + First Name: + + Last name: + + Email: + + +
+ +Go Back diff --git a/dylan_eckert/controllersnviews/dojodash/app/views/students/show.html.erb b/dylan_eckert/controllersnviews/dojodash/app/views/students/show.html.erb new file mode 100644 index 0000000..93737d7 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/app/views/students/show.html.erb @@ -0,0 +1,14 @@ +

Student <%= @student.id %>

+

This student belongs to Dojo <%= @dojo.id %>

+

First Name:

+

<%= @student.fname %>

+

Last Name:

+

<%= @student.lname %>

+

Email:

+

<%= @student.email %>

+ +

Cohort Members:

+<% @cohortees.each do |member| %> +

<%= member.fname %> <%= member.lname %>

+<% end %> +Go Back diff --git a/Rodolfo_Valdivieso/controllers/dashboard/bin/bundle b/dylan_eckert/controllersnviews/dojodash/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/bin/bundle rename to dylan_eckert/controllersnviews/dojodash/bin/bundle diff --git a/dylan_eckert/controllersnviews/dojodash/bin/rails b/dylan_eckert/controllersnviews/dojodash/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/dashboard/bin/rake b/dylan_eckert/controllersnviews/dojodash/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/bin/rake rename to dylan_eckert/controllersnviews/dojodash/bin/rake diff --git a/dylan_eckert/controllersnviews/dojodash/bin/setup b/dylan_eckert/controllersnviews/dojodash/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/bin/spring b/dylan_eckert/controllersnviews/dojodash/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/bin/spring rename to dylan_eckert/controllersnviews/dojodash/bin/spring diff --git a/dylan_eckert/controllersnviews/dojodash/bin/update b/dylan_eckert/controllersnviews/dojodash/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/controllersnviews/dojodash/config.ru b/dylan_eckert/controllersnviews/dojodash/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/controllersnviews/dojodash/config/application.rb b/dylan_eckert/controllersnviews/dojodash/config/application.rb new file mode 100644 index 0000000..64f4bc7 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Dojodash + 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. + end +end diff --git a/dylan_eckert/controllersnviews/dojodash/config/boot.rb b/dylan_eckert/controllersnviews/dojodash/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/controllersnviews/dojodash/config/cable.yml b/dylan_eckert/controllersnviews/dojodash/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/basic_models/config/database.yml b/dylan_eckert/controllersnviews/dojodash/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/config/database.yml rename to dylan_eckert/controllersnviews/dojodash/config/database.yml diff --git a/dylan_eckert/controllersnviews/dojodash/config/environment.rb b/dylan_eckert/controllersnviews/dojodash/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/controllersnviews/dojodash/config/environments/development.rb b/dylan_eckert/controllersnviews/dojodash/config/environments/development.rb new file mode 100644 index 0000000..142e05f --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/environments/development.rb @@ -0,0 +1,56 @@ +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 + + config.reload_classes_only_on_change = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/controllersnviews/dojodash/config/environments/production.rb b/dylan_eckert/controllersnviews/dojodash/config/environments/production.rb new file mode 100644 index 0000000..d1af571 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "dojodash_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/controllersnviews/dojodash/config/environments/test.rb b/dylan_eckert/controllersnviews/dojodash/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/controllersnviews/dojodash/config/initializers/application_controller_renderer.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/assets.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/config/initializers/assets.rb rename to dylan_eckert/controllersnviews/dojodash/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/backtrace_silencers.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/config/initializers/backtrace_silencers.rb rename to dylan_eckert/controllersnviews/dojodash/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/controllersnviews/dojodash/config/initializers/cookies_serializer.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/filter_parameter_logging.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/controllersnviews/dojodash/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/inflections.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/config/initializers/inflections.rb rename to dylan_eckert/controllersnviews/dojodash/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/initializers/mime_types.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/config/initializers/mime_types.rb rename to dylan_eckert/controllersnviews/dojodash/config/initializers/mime_types.rb diff --git a/dylan_eckert/controllersnviews/dojodash/config/initializers/new_framework_defaults.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/controllersnviews/dojodash/config/initializers/session_store.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/session_store.rb new file mode 100644 index 0000000..80d43a5 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_dojodash_session' diff --git a/dylan_eckert/controllersnviews/dojodash/config/initializers/wrap_parameters.rb b/dylan_eckert/controllersnviews/dojodash/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/controllers/dashboard/config/locales/en.yml b/dylan_eckert/controllersnviews/dojodash/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/config/locales/en.yml rename to dylan_eckert/controllersnviews/dojodash/config/locales/en.yml diff --git a/dylan_eckert/controllersnviews/dojodash/config/puma.rb b/dylan_eckert/controllersnviews/dojodash/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/controllersnviews/dojodash/config/routes.rb b/dylan_eckert/controllersnviews/dojodash/config/routes.rb new file mode 100644 index 0000000..ffd354c --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/routes.rb @@ -0,0 +1,21 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + # DOJO ROUTES + get "/dojos" => "dojos#index", as: "dojos" + post "/dojos" => "dojos#create", as: "create_dojo" + get "/dojos/new" => "dojos#new", as: "new_dojo" + get "/dojos/:id" => "dojos#show", as: "dojo" + get "/dojos/:id/edit" => "dojos#edit", as: "edit_dojo" + patch "/dojos/:id" => "dojos#update", as: "update_dojo" + delete "/dojos/:id" => "dojos#destroy", as: "destroy_dojo" + + # STUDENT NESTED ROUTES FOR DOJO + get "/dojos/:dojo_id/students" => "students#index", as: "students" + post "/dojos/:dojo_id/students" => "students#create", as: "create_student" + get "/dojos/:dojo_id/students/new" => "students#new", as: "new_student" + get "/dojos/:dojo_id/students/:id" => "students#show", as: "student" + get "/dojos/:dojo_id/students/:id/edit" => "students#edit", as: "edit_student" + patch "/dojos/:dojo_id/students/:id" => "students#update", as: "update_student" + delete "/dojos/:dojo_id/students/:id" => "students#destroy", as: "destroy_student" + +end diff --git a/dylan_eckert/controllersnviews/dojodash/config/secrets.yml b/dylan_eckert/controllersnviews/dojodash/config/secrets.yml new file mode 100644 index 0000000..f10d360 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: accd229676072d6641a39bbf2d6de3a2df0de51e65032e4105e394f09303086260b34715ab727ac7f301ad1a7f1ab17df082bc7ce44a33fb1077c28b4e45652c + +test: + secret_key_base: 6545d104abcd34a797ead701b2f36655a4a0cf01160b8cbde5aad3d0636879b8ee340ae357a647a220b60379d7523c8368f3ccb084ffbd135a058f8d5cd6597a + +# 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/dylan_eckert/controllersnviews/dojodash/config/spring.rb b/dylan_eckert/controllersnviews/dojodash/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/controllersnviews/dojodash/db/migrate/20171205193648_create_dojos.rb b/dylan_eckert/controllersnviews/dojodash/db/migrate/20171205193648_create_dojos.rb new file mode 100644 index 0000000..08883c3 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/db/migrate/20171205193648_create_dojos.rb @@ -0,0 +1,12 @@ +class CreateDojos < ActiveRecord::Migration[5.0] + def change + create_table :dojos do |t| + t.string :branch + t.string :street + t.string :city + t.string :state + + t.timestamps + end + end +end diff --git a/dylan_eckert/controllersnviews/dojodash/db/migrate/20171205215935_create_students.rb b/dylan_eckert/controllersnviews/dojodash/db/migrate/20171205215935_create_students.rb new file mode 100644 index 0000000..47b454c --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/db/migrate/20171205215935_create_students.rb @@ -0,0 +1,12 @@ +class CreateStudents < ActiveRecord::Migration[5.0] + def change + create_table :students do |t| + t.string :fname + t.string :lname + t.string :email + t.references :dojo, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/controllersnviews/dojodash/db/schema.rb b/dylan_eckert/controllersnviews/dojodash/db/schema.rb new file mode 100644 index 0000000..2eca846 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/db/schema.rb @@ -0,0 +1,34 @@ +# 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: 20171205215935) do + + create_table "dojos", force: :cascade do |t| + t.string "branch" + t.string "street" + t.string "city" + t.string "state" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "students", force: :cascade do |t| + t.string "fname" + t.string "lname" + t.string "email" + t.integer "dojo_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["dojo_id"], name: "index_students_on_dojo_id" + end + +end diff --git a/dylan_eckert/controllersnviews/dojodash/db/seeds.rb b/dylan_eckert/controllersnviews/dojodash/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/controllers/basic_models/vendor/assets/stylesheets/.keep b/dylan_eckert/controllersnviews/dojodash/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/vendor/assets/stylesheets/.keep rename to dylan_eckert/controllersnviews/dojodash/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/assets/images/.keep b/dylan_eckert/controllersnviews/dojodash/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/assets/images/.keep rename to dylan_eckert/controllersnviews/dojodash/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/controllers/concerns/.keep b/dylan_eckert/controllersnviews/dojodash/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/controllers/concerns/.keep rename to dylan_eckert/controllersnviews/dojodash/log/.keep diff --git a/dylan_eckert/controllersnviews/dojodash/public/404.html b/dylan_eckert/controllersnviews/dojodash/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/dojodash/public/422.html b/dylan_eckert/controllersnviews/dojodash/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/dojodash/public/500.html b/dylan_eckert/controllersnviews/dojodash/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/controllers/dashboard/app/mailers/.keep b/dylan_eckert/controllersnviews/dojodash/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/mailers/.keep rename to dylan_eckert/controllersnviews/dojodash/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/models/.keep b/dylan_eckert/controllersnviews/dojodash/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/models/.keep rename to dylan_eckert/controllersnviews/dojodash/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/public/favicon.ico b/dylan_eckert/controllersnviews/dojodash/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/public/favicon.ico rename to dylan_eckert/controllersnviews/dojodash/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/dashboard/public/robots.txt b/dylan_eckert/controllersnviews/dojodash/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/public/robots.txt rename to dylan_eckert/controllersnviews/dojodash/public/robots.txt diff --git a/Rodolfo_Valdivieso/controllers/dashboard/app/models/concerns/.keep b/dylan_eckert/controllersnviews/dojodash/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/app/models/concerns/.keep rename to dylan_eckert/controllersnviews/dojodash/test/controllers/.keep diff --git a/dylan_eckert/controllersnviews/dojodash/test/controllers/dojos_controller_test.rb b/dylan_eckert/controllersnviews/dojodash/test/controllers/dojos_controller_test.rb new file mode 100644 index 0000000..9481cf8 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/test/controllers/dojos_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class DojosControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/dylan_eckert/controllersnviews/dojodash/test/controllers/students_controller_test.rb b/dylan_eckert/controllersnviews/dojodash/test/controllers/students_controller_test.rb new file mode 100644 index 0000000..7e9924d --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/test/controllers/students_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class StudentsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard/lib/assets/.keep b/dylan_eckert/controllersnviews/dojodash/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/lib/assets/.keep rename to dylan_eckert/controllersnviews/dojodash/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/fixtures/dojos.yml b/dylan_eckert/controllersnviews/dojodash/test/fixtures/dojos.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/fixtures/dojos.yml rename to dylan_eckert/controllersnviews/dojodash/test/fixtures/dojos.yml diff --git a/Rodolfo_Valdivieso/controllers/dashboard/lib/tasks/.keep b/dylan_eckert/controllersnviews/dojodash/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/lib/tasks/.keep rename to dylan_eckert/controllersnviews/dojodash/test/fixtures/files/.keep diff --git a/dylan_eckert/controllersnviews/dojodash/test/fixtures/students.yml b/dylan_eckert/controllersnviews/dojodash/test/fixtures/students.yml new file mode 100644 index 0000000..824fd23 --- /dev/null +++ b/dylan_eckert/controllersnviews/dojodash/test/fixtures/students.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + fname: MyString + lname: MyString + email: MyString + dojo: one + +two: + fname: MyString + lname: MyString + email: MyString + dojo: two diff --git a/Rodolfo_Valdivieso/controllers/dashboard/log/.keep b/dylan_eckert/controllersnviews/dojodash/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/log/.keep rename to dylan_eckert/controllersnviews/dojodash/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/controllers/.keep b/dylan_eckert/controllersnviews/dojodash/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/controllers/.keep rename to dylan_eckert/controllersnviews/dojodash/test/integration/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/fixtures/.keep b/dylan_eckert/controllersnviews/dojodash/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/fixtures/.keep rename to dylan_eckert/controllersnviews/dojodash/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/helpers/.keep b/dylan_eckert/controllersnviews/dojodash/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/helpers/.keep rename to dylan_eckert/controllersnviews/dojodash/test/models/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/models/dojo_test.rb b/dylan_eckert/controllersnviews/dojodash/test/models/dojo_test.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/models/dojo_test.rb rename to dylan_eckert/controllersnviews/dojodash/test/models/dojo_test.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/models/student_test.rb b/dylan_eckert/controllersnviews/dojodash/test/models/student_test.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /student_dashboard/test/models/student_test.rb rename to dylan_eckert/controllersnviews/dojodash/test/models/student_test.rb diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/test_helper.rb b/dylan_eckert/controllersnviews/dojodash/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/test_helper.rb rename to dylan_eckert/controllersnviews/dojodash/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/integration/.keep b/dylan_eckert/controllersnviews/dojodash/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/integration/.keep rename to dylan_eckert/controllersnviews/dojodash/tmp/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/mailers/.keep b/dylan_eckert/controllersnviews/dojodash/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/mailers/.keep rename to dylan_eckert/controllersnviews/dojodash/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/models/.keep b/dylan_eckert/controllersnviews/dojodash/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/models/.keep rename to dylan_eckert/controllersnviews/dojodash/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/controllersnviews/dojodash1.zip b/dylan_eckert/controllersnviews/dojodash1.zip new file mode 100644 index 0000000..0a10277 Binary files /dev/null and b/dylan_eckert/controllersnviews/dojodash1.zip differ diff --git a/dylan_eckert/controllersnviews/dojodash2.zip b/dylan_eckert/controllersnviews/dojodash2.zip new file mode 100644 index 0000000..8580c78 Binary files /dev/null and b/dylan_eckert/controllersnviews/dojodash2.zip differ diff --git a/dylan_eckert/controllersnviews/dojodash3.zip b/dylan_eckert/controllersnviews/dojodash3.zip new file mode 100644 index 0000000..8580c78 Binary files /dev/null and b/dylan_eckert/controllersnviews/dojodash3.zip differ diff --git a/dylan_eckert/controllersnviews/integratemodels/.gitignore b/dylan_eckert/controllersnviews/integratemodels/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/controllersnviews/integratemodels/Gemfile b/dylan_eckert/controllersnviews/integratemodels/Gemfile new file mode 100644 index 0000000..59d57f6 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/controllersnviews/integratemodels/Gemfile.lock b/dylan_eckert/controllersnviews/integratemodels/Gemfile.lock new file mode 100644 index 0000000..fabcef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.1) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/controllersnviews/integratemodels/README.md b/dylan_eckert/controllersnviews/integratemodels/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/controllersnviews/integratemodels/Rakefile b/dylan_eckert/controllersnviews/integratemodels/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/controllersnviews/integratemodels/app/assets/config/manifest.js b/dylan_eckert/controllersnviews/integratemodels/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/controllers/dashboard/vendor/assets/javascripts/.keep b/dylan_eckert/controllersnviews/integratemodels/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/vendor/assets/javascripts/.keep rename to dylan_eckert/controllersnviews/integratemodels/app/assets/images/.keep diff --git a/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/application.js b/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/cable.js b/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/dashboard/vendor/assets/stylesheets/.keep b/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/vendor/assets/stylesheets/.keep rename to dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/channels/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/javascripts/users.coffee b/dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/users.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/javascripts/users.coffee rename to dylan_eckert/controllersnviews/integratemodels/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/controllersnviews/integratemodels/app/assets/stylesheets/application.css b/dylan_eckert/controllersnviews/integratemodels/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/controllersnviews/integratemodels/app/assets/stylesheets/users.scss b/dylan_eckert/controllersnviews/integratemodels/app/assets/stylesheets/users.scss new file mode 100644 index 0000000..1efc835 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/assets/stylesheets/users.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the users controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/controllersnviews/integratemodels/app/channels/application_cable/channel.rb b/dylan_eckert/controllersnviews/integratemodels/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/controllersnviews/integratemodels/app/channels/application_cable/connection.rb b/dylan_eckert/controllersnviews/integratemodels/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/controllersnviews/integratemodels/app/controllers/application_controller.rb b/dylan_eckert/controllersnviews/integratemodels/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/assets/images/.keep b/dylan_eckert/controllersnviews/integratemodels/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/app/assets/images/.keep rename to dylan_eckert/controllersnviews/integratemodels/app/controllers/concerns/.keep diff --git a/dylan_eckert/controllersnviews/integratemodels/app/controllers/users_controller.rb b/dylan_eckert/controllersnviews/integratemodels/app/controllers/users_controller.rb new file mode 100644 index 0000000..7a6726f --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/controllers/users_controller.rb @@ -0,0 +1,35 @@ +class UsersController < ApplicationController + def index + render json: User.all + end + + def new + puts 'here' + render "new" + end + + def create + User.create(name: params[:name]) + redirect_to "/users" + end + + def show + render json: User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def total + render json: User.all.count + end + + def update + + end + + def destroy + + end +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/helpers/application_helper.rb b/dylan_eckert/controllersnviews/integratemodels/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/app/helpers/application_helper.rb rename to dylan_eckert/controllersnviews/integratemodels/app/helpers/application_helper.rb diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/helpers/users_helper.rb b/dylan_eckert/controllersnviews/integratemodels/app/helpers/users_helper.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/helpers/users_helper.rb rename to dylan_eckert/controllersnviews/integratemodels/app/helpers/users_helper.rb diff --git a/dylan_eckert/controllersnviews/integratemodels/app/jobs/application_job.rb b/dylan_eckert/controllersnviews/integratemodels/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/controllersnviews/integratemodels/app/mailers/application_mailer.rb b/dylan_eckert/controllersnviews/integratemodels/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/controllersnviews/integratemodels/app/models/application_record.rb b/dylan_eckert/controllersnviews/integratemodels/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/controllers/concerns/.keep b/dylan_eckert/controllersnviews/integratemodels/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/app/controllers/concerns/.keep rename to dylan_eckert/controllersnviews/integratemodels/app/models/concerns/.keep diff --git a/dylan_eckert/controllersnviews/integratemodels/app/models/user.rb b/dylan_eckert/controllersnviews/integratemodels/app/models/user.rb new file mode 100644 index 0000000..379658a --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/models/user.rb @@ -0,0 +1,2 @@ +class User < ApplicationRecord +end diff --git a/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/application.html.erb b/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/application.html.erb new file mode 100644 index 0000000..053d7ba --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Integratemodels + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/mailer.html.erb b/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/mailer.text.erb b/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/controllersnviews/integratemodels/app/views/users/edit.html.erb b/dylan_eckert/controllersnviews/integratemodels/app/views/users/edit.html.erb new file mode 100644 index 0000000..cf07dfc --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/views/users/edit.html.erb @@ -0,0 +1,16 @@ + + + + + new user + + + +

Edit <%= @user.name %>

+
+ + + +
+ + diff --git a/dylan_eckert/controllersnviews/integratemodels/app/views/users/index.html.erb b/dylan_eckert/controllersnviews/integratemodels/app/views/users/index.html.erb new file mode 100644 index 0000000..5b8ba09 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/views/users/index.html.erb @@ -0,0 +1,11 @@ + + + + + index + + +

All Users

+ <% for user in User.all %> + + diff --git a/dylan_eckert/controllersnviews/integratemodels/app/views/users/new.html.erb b/dylan_eckert/controllersnviews/integratemodels/app/views/users/new.html.erb new file mode 100644 index 0000000..8bfa32b --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/app/views/users/new.html.erb @@ -0,0 +1,15 @@ + + + + + new user + + +

Add a User

+
+ + + +
+ + diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/bin/bundle b/dylan_eckert/controllersnviews/integratemodels/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/bin/bundle rename to dylan_eckert/controllersnviews/integratemodels/bin/bundle diff --git a/dylan_eckert/controllersnviews/integratemodels/bin/rails b/dylan_eckert/controllersnviews/integratemodels/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/bin/rake b/dylan_eckert/controllersnviews/integratemodels/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/bin/rake rename to dylan_eckert/controllersnviews/integratemodels/bin/rake diff --git a/dylan_eckert/controllersnviews/integratemodels/bin/setup b/dylan_eckert/controllersnviews/integratemodels/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/bin/spring b/dylan_eckert/controllersnviews/integratemodels/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/bin/spring rename to dylan_eckert/controllersnviews/integratemodels/bin/spring diff --git a/dylan_eckert/controllersnviews/integratemodels/bin/update b/dylan_eckert/controllersnviews/integratemodels/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/controllersnviews/integratemodels/config.ru b/dylan_eckert/controllersnviews/integratemodels/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/controllersnviews/integratemodels/config/application.rb b/dylan_eckert/controllersnviews/integratemodels/config/application.rb new file mode 100644 index 0000000..7e04970 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Integratemodels + 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. + end +end diff --git a/dylan_eckert/controllersnviews/integratemodels/config/boot.rb b/dylan_eckert/controllersnviews/integratemodels/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/controllersnviews/integratemodels/config/cable.yml b/dylan_eckert/controllersnviews/integratemodels/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/dashboard/config/database.yml b/dylan_eckert/controllersnviews/integratemodels/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/config/database.yml rename to dylan_eckert/controllersnviews/integratemodels/config/database.yml diff --git a/dylan_eckert/controllersnviews/integratemodels/config/environment.rb b/dylan_eckert/controllersnviews/integratemodels/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/controllersnviews/integratemodels/config/environments/development.rb b/dylan_eckert/controllersnviews/integratemodels/config/environments/development.rb new file mode 100644 index 0000000..1795ef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/environments/development.rb @@ -0,0 +1,55 @@ +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 + config.reload_classes_only_on_change = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/controllersnviews/integratemodels/config/environments/production.rb b/dylan_eckert/controllersnviews/integratemodels/config/environments/production.rb new file mode 100644 index 0000000..a09ca28 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "integratemodels_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/controllersnviews/integratemodels/config/environments/test.rb b/dylan_eckert/controllersnviews/integratemodels/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/controllersnviews/integratemodels/config/initializers/application_controller_renderer.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/assets.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/assets.rb rename to dylan_eckert/controllersnviews/integratemodels/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/backtrace_silencers.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/backtrace_silencers.rb rename to dylan_eckert/controllersnviews/integratemodels/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/controllersnviews/integratemodels/config/initializers/cookies_serializer.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/filter_parameter_logging.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/controllersnviews/integratemodels/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/inflections.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/inflections.rb rename to dylan_eckert/controllersnviews/integratemodels/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/mime_types.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/config/initializers/mime_types.rb rename to dylan_eckert/controllersnviews/integratemodels/config/initializers/mime_types.rb diff --git a/dylan_eckert/controllersnviews/integratemodels/config/initializers/new_framework_defaults.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/controllersnviews/integratemodels/config/initializers/session_store.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/session_store.rb new file mode 100644 index 0000000..971317a --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_integratemodels_session' diff --git a/dylan_eckert/controllersnviews/integratemodels/config/initializers/wrap_parameters.rb b/dylan_eckert/controllersnviews/integratemodels/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/controllers/dashboard2/config/locales/en.yml b/dylan_eckert/controllersnviews/integratemodels/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/config/locales/en.yml rename to dylan_eckert/controllersnviews/integratemodels/config/locales/en.yml diff --git a/dylan_eckert/controllersnviews/integratemodels/config/puma.rb b/dylan_eckert/controllersnviews/integratemodels/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/controllersnviews/integratemodels/config/routes.rb b/dylan_eckert/controllersnviews/integratemodels/config/routes.rb new file mode 100644 index 0000000..d0dfc2b --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/routes.rb @@ -0,0 +1,16 @@ +Rails.application.routes.draw do + get 'users' => "users#index" + + get 'users/new' => "users#new" + + post 'users' => "users#create" + + get 'users/total' => "users#total" + + get 'users/:id' => "users#show" + + get 'users/:id/edit' => "users#edit" + + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + +end diff --git a/dylan_eckert/controllersnviews/integratemodels/config/secrets.yml b/dylan_eckert/controllersnviews/integratemodels/config/secrets.yml new file mode 100644 index 0000000..dae5c87 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: f11bde0dfd249a3b5348fca0002575f53d1ea5a0691531d853bead5bce232c117bf2e544e87daca8d579d035dcedb9a7ee89f663232c3cd0232ff04aafcb307e + +test: + secret_key_base: 6b49f6859769cd4cba1e3b94c2485bafaf48653cb8549885903fb9e42ce1d707a3f9a8c11a382d131ae75b3240ed47aa3d557739a05f1f952edf9a1b0c59dbed + +# 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/dylan_eckert/controllersnviews/integratemodels/config/spring.rb b/dylan_eckert/controllersnviews/integratemodels/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/controllersnviews/integratemodels/db/migrate/20171204185211_create_users.rb b/dylan_eckert/controllersnviews/integratemodels/db/migrate/20171204185211_create_users.rb new file mode 100644 index 0000000..9b622cd --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/db/migrate/20171204185211_create_users.rb @@ -0,0 +1,9 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + + t.timestamps + end + end +end diff --git a/dylan_eckert/controllersnviews/integratemodels/db/schema.rb b/dylan_eckert/controllersnviews/integratemodels/db/schema.rb new file mode 100644 index 0000000..943c4a3 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/db/schema.rb @@ -0,0 +1,21 @@ +# 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: 20171204185211) do + + create_table "users", force: :cascade do |t| + t.string "name" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/controllersnviews/integratemodels/db/seeds.rb b/dylan_eckert/controllersnviews/integratemodels/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/dylan_eckert/controllersnviews/integratemodels/files.zip b/dylan_eckert/controllersnviews/integratemodels/files.zip new file mode 100644 index 0000000..7bf8b59 Binary files /dev/null and b/dylan_eckert/controllersnviews/integratemodels/files.zip differ diff --git a/dylan_eckert/controllersnviews/integratemodels/files/edit.html.erb b/dylan_eckert/controllersnviews/integratemodels/files/edit.html.erb new file mode 100644 index 0000000..cf07dfc --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/files/edit.html.erb @@ -0,0 +1,16 @@ + + + + + new user + + + +

Edit <%= @user.name %>

+
+ + + +
+ + diff --git a/dylan_eckert/controllersnviews/integratemodels/files/new.html.erb b/dylan_eckert/controllersnviews/integratemodels/files/new.html.erb new file mode 100644 index 0000000..8bfa32b --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/files/new.html.erb @@ -0,0 +1,15 @@ + + + + + new user + + +

Add a User

+
+ + + +
+ + diff --git a/dylan_eckert/controllersnviews/integratemodels/files/routes.rb b/dylan_eckert/controllersnviews/integratemodels/files/routes.rb new file mode 100644 index 0000000..d0dfc2b --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/files/routes.rb @@ -0,0 +1,16 @@ +Rails.application.routes.draw do + get 'users' => "users#index" + + get 'users/new' => "users#new" + + post 'users' => "users#create" + + get 'users/total' => "users#total" + + get 'users/:id' => "users#show" + + get 'users/:id/edit' => "users#edit" + + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + +end diff --git a/dylan_eckert/controllersnviews/integratemodels/files/user.rb b/dylan_eckert/controllersnviews/integratemodels/files/user.rb new file mode 100644 index 0000000..379658a --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/files/user.rb @@ -0,0 +1,2 @@ +class User < ApplicationRecord +end diff --git a/dylan_eckert/controllersnviews/integratemodels/files/users_controller.rb b/dylan_eckert/controllersnviews/integratemodels/files/users_controller.rb new file mode 100644 index 0000000..7a6726f --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/files/users_controller.rb @@ -0,0 +1,35 @@ +class UsersController < ApplicationController + def index + render json: User.all + end + + def new + puts 'here' + render "new" + end + + def create + User.create(name: params[:name]) + redirect_to "/users" + end + + def show + render json: User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def total + render json: User.all.count + end + + def update + + end + + def destroy + + end +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/mailers/.keep b/dylan_eckert/controllersnviews/integratemodels/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/app/mailers/.keep rename to dylan_eckert/controllersnviews/integratemodels/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/models/.keep b/dylan_eckert/controllersnviews/integratemodels/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/app/models/.keep rename to dylan_eckert/controllersnviews/integratemodels/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/app/models/concerns/.keep b/dylan_eckert/controllersnviews/integratemodels/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/app/models/concerns/.keep rename to dylan_eckert/controllersnviews/integratemodels/log/.keep diff --git a/dylan_eckert/controllersnviews/integratemodels/public/404.html b/dylan_eckert/controllersnviews/integratemodels/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/integratemodels/public/422.html b/dylan_eckert/controllersnviews/integratemodels/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/integratemodels/public/500.html b/dylan_eckert/controllersnviews/integratemodels/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/controllers/dashboard2/lib/assets/.keep b/dylan_eckert/controllersnviews/integratemodels/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/lib/assets/.keep rename to dylan_eckert/controllersnviews/integratemodels/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/lib/tasks/.keep b/dylan_eckert/controllersnviews/integratemodels/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/lib/tasks/.keep rename to dylan_eckert/controllersnviews/integratemodels/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/public/favicon.ico b/dylan_eckert/controllersnviews/integratemodels/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/public/favicon.ico rename to dylan_eckert/controllersnviews/integratemodels/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/public/robots.txt b/dylan_eckert/controllersnviews/integratemodels/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/public/robots.txt rename to dylan_eckert/controllersnviews/integratemodels/public/robots.txt diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/log/.keep b/dylan_eckert/controllersnviews/integratemodels/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/log/.keep rename to dylan_eckert/controllersnviews/integratemodels/test/controllers/.keep diff --git a/dylan_eckert/controllersnviews/integratemodels/test/controllers/users_controller_test.rb b/dylan_eckert/controllersnviews/integratemodels/test/controllers/users_controller_test.rb new file mode 100644 index 0000000..6c3da77 --- /dev/null +++ b/dylan_eckert/controllersnviews/integratemodels/test/controllers/users_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class UsersControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/controllers/.keep b/dylan_eckert/controllersnviews/integratemodels/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/controllers/.keep rename to dylan_eckert/controllersnviews/integratemodels/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/fixtures/.keep b/dylan_eckert/controllersnviews/integratemodels/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/fixtures/.keep rename to dylan_eckert/controllersnviews/integratemodels/test/fixtures/files/.keep diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/fixtures/users.yml b/dylan_eckert/controllersnviews/integratemodels/test/fixtures/users.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/fixtures/users.yml rename to dylan_eckert/controllersnviews/integratemodels/test/fixtures/users.yml diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/helpers/.keep b/dylan_eckert/controllersnviews/integratemodels/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/helpers/.keep rename to dylan_eckert/controllersnviews/integratemodels/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/integration/.keep b/dylan_eckert/controllersnviews/integratemodels/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/integration/.keep rename to dylan_eckert/controllersnviews/integratemodels/test/integration/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/mailers/.keep b/dylan_eckert/controllersnviews/integratemodels/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/mailers/.keep rename to dylan_eckert/controllersnviews/integratemodels/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/models/.keep b/dylan_eckert/controllersnviews/integratemodels/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/models/.keep rename to dylan_eckert/controllersnviews/integratemodels/test/models/.keep diff --git a/Rodolfo_Valdivieso/controllers/basic_models/test/models/user_test.rb b/dylan_eckert/controllersnviews/integratemodels/test/models/user_test.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/test/models/user_test.rb rename to dylan_eckert/controllersnviews/integratemodels/test/models/user_test.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard/test/test_helper.rb b/dylan_eckert/controllersnviews/integratemodels/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard/test/test_helper.rb rename to dylan_eckert/controllersnviews/integratemodels/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/vendor/assets/javascripts/.keep b/dylan_eckert/controllersnviews/integratemodels/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/vendor/assets/javascripts/.keep rename to dylan_eckert/controllersnviews/integratemodels/tmp/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/vendor/assets/stylesheets/.keep b/dylan_eckert/controllersnviews/integratemodels/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/vendor/assets/stylesheets/.keep rename to dylan_eckert/controllersnviews/integratemodels/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/images/.keep b/dylan_eckert/controllersnviews/integratemodels/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/app/assets/images/.keep rename to dylan_eckert/controllersnviews/integratemodels/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/controllersnviews/layouts.zip b/dylan_eckert/controllersnviews/layouts.zip new file mode 100644 index 0000000..aadd623 Binary files /dev/null and b/dylan_eckert/controllersnviews/layouts.zip differ diff --git a/dylan_eckert/controllersnviews/layouts/.gitignore b/dylan_eckert/controllersnviews/layouts/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/controllersnviews/layouts/Gemfile b/dylan_eckert/controllersnviews/layouts/Gemfile new file mode 100644 index 0000000..59d57f6 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/controllersnviews/layouts/Gemfile.lock b/dylan_eckert/controllersnviews/layouts/Gemfile.lock new file mode 100644 index 0000000..fabcef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.1) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/controllersnviews/layouts/README.md b/dylan_eckert/controllersnviews/layouts/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/controllersnviews/layouts/Rakefile b/dylan_eckert/controllersnviews/layouts/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/controllersnviews/layouts/app/assets/config/manifest.js b/dylan_eckert/controllersnviews/layouts/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/controllers/concerns/.keep b/dylan_eckert/controllersnviews/layouts/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/app/controllers/concerns/.keep rename to dylan_eckert/controllersnviews/layouts/app/assets/images/.keep diff --git a/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/application.js b/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/application.js new file mode 100644 index 0000000..2c268fb --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/application.js @@ -0,0 +1,17 @@ +// 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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require bootstrap.min +//= require_tree . diff --git a/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/cable.js b/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/mailers/.keep b/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/app/mailers/.keep rename to dylan_eckert/controllersnviews/layouts/app/assets/javascripts/channels/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/assets/javascripts/dojos.coffee b/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/posts.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/app/assets/javascripts/dojos.coffee rename to dylan_eckert/controllersnviews/layouts/app/assets/javascripts/posts.coffee diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/javascripts/users.coffee b/dylan_eckert/controllersnviews/layouts/app/assets/javascripts/users.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/javascripts/users.coffee rename to dylan_eckert/controllersnviews/layouts/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/application.css b/dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/application.css new file mode 100644 index 0000000..3bdf5f6 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/application.css @@ -0,0 +1,16 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 bootstrap.min + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/posts.scss b/dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/posts.scss new file mode 100644 index 0000000..ed4dfd1 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/posts.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Posts controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/assets/stylesheets/users.scss b/dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/users.scss similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/assets/stylesheets/users.scss rename to dylan_eckert/controllersnviews/layouts/app/assets/stylesheets/users.scss diff --git a/dylan_eckert/controllersnviews/layouts/app/channels/application_cable/channel.rb b/dylan_eckert/controllersnviews/layouts/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/controllersnviews/layouts/app/channels/application_cable/connection.rb b/dylan_eckert/controllersnviews/layouts/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/controllersnviews/layouts/app/controllers/application_controller.rb b/dylan_eckert/controllersnviews/layouts/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/models/.keep b/dylan_eckert/controllersnviews/layouts/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/app/models/.keep rename to dylan_eckert/controllersnviews/layouts/app/controllers/concerns/.keep diff --git a/dylan_eckert/controllersnviews/layouts/app/controllers/posts_controller.rb b/dylan_eckert/controllersnviews/layouts/app/controllers/posts_controller.rb new file mode 100644 index 0000000..3dc85c6 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/controllers/posts_controller.rb @@ -0,0 +1,16 @@ +class PostsController < ApplicationController + layout "three_col" + def index + @posts = Post.all + puts @posts + @users = User.all + end + def create + Post.create(post_params) + redirect_to "/posts" + end + private + def post_params + params.require(:post).permit(:title, :content, :user_id) + end +end diff --git a/dylan_eckert/controllersnviews/layouts/app/controllers/users_controller.rb b/dylan_eckert/controllersnviews/layouts/app/controllers/users_controller.rb new file mode 100644 index 0000000..aefb02b --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/controllers/users_controller.rb @@ -0,0 +1,14 @@ +class UsersController < ApplicationController + layout "two_col" + def index + @users = User.all + end + def create + User.create(user_params) + redirect_to "/users" + end + private + def user_params + params.require(:user).permit(:fname, :lname, :language) + end +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/helpers/application_helper.rb b/dylan_eckert/controllersnviews/layouts/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/app/helpers/application_helper.rb rename to dylan_eckert/controllersnviews/layouts/app/helpers/application_helper.rb diff --git a/dylan_eckert/controllersnviews/layouts/app/helpers/posts_helper.rb b/dylan_eckert/controllersnviews/layouts/app/helpers/posts_helper.rb new file mode 100644 index 0000000..a7b8cec --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/helpers/posts_helper.rb @@ -0,0 +1,2 @@ +module PostsHelper +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/helpers/users_helper.rb b/dylan_eckert/controllersnviews/layouts/app/helpers/users_helper.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/helpers/users_helper.rb rename to dylan_eckert/controllersnviews/layouts/app/helpers/users_helper.rb diff --git a/dylan_eckert/controllersnviews/layouts/app/jobs/application_job.rb b/dylan_eckert/controllersnviews/layouts/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/controllersnviews/layouts/app/mailers/application_mailer.rb b/dylan_eckert/controllersnviews/layouts/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/controllersnviews/layouts/app/models/application_record.rb b/dylan_eckert/controllersnviews/layouts/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/app/models/concerns/.keep b/dylan_eckert/controllersnviews/layouts/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/app/models/concerns/.keep rename to dylan_eckert/controllersnviews/layouts/app/models/concerns/.keep diff --git a/dylan_eckert/controllersnviews/layouts/app/models/post.rb b/dylan_eckert/controllersnviews/layouts/app/models/post.rb new file mode 100644 index 0000000..4b295fa --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/models/post.rb @@ -0,0 +1,4 @@ +class Post < ApplicationRecord + belongs_to :user + validates :title, :content, presence: :true +end diff --git a/dylan_eckert/controllersnviews/layouts/app/models/user.rb b/dylan_eckert/controllersnviews/layouts/app/models/user.rb new file mode 100644 index 0000000..3d346e5 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/models/user.rb @@ -0,0 +1,3 @@ +class User < ApplicationRecord + validates :fname, :lname, :language, presence: :true +end diff --git a/dylan_eckert/controllersnviews/layouts/app/views/layouts/application.html.erb b/dylan_eckert/controllersnviews/layouts/app/views/layouts/application.html.erb new file mode 100644 index 0000000..cbab9bf --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Layouts + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/layouts/app/views/layouts/mailer.html.erb b/dylan_eckert/controllersnviews/layouts/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/layouts/app/views/layouts/mailer.text.erb b/dylan_eckert/controllersnviews/layouts/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/controllersnviews/layouts/app/views/layouts/three_col.html.erb b/dylan_eckert/controllersnviews/layouts/app/views/layouts/three_col.html.erb new file mode 100644 index 0000000..306a391 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/views/layouts/three_col.html.erb @@ -0,0 +1,24 @@ + + + + Layouts + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + +
+
+ <%= yield :posts %> +
+
+ <%= yield :postform %> +
+
+ <%= yield :postnav %> +
+
+ + diff --git a/dylan_eckert/controllersnviews/layouts/app/views/layouts/two_col.html.erb b/dylan_eckert/controllersnviews/layouts/app/views/layouts/two_col.html.erb new file mode 100644 index 0000000..d4b078b --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/views/layouts/two_col.html.erb @@ -0,0 +1,21 @@ + + + + Layouts + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + +
+
+ <%= yield :users %> +
+
+ <%= yield :userform %> +
+
+ + diff --git a/dylan_eckert/controllersnviews/layouts/app/views/posts/index.html.erb b/dylan_eckert/controllersnviews/layouts/app/views/posts/index.html.erb new file mode 100644 index 0000000..b48b4cd --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/views/posts/index.html.erb @@ -0,0 +1,42 @@ +<% content_for :posts do %> +

All Posts

+ + + + + + + + + + <% @posts.each do |post| %> + + + + + + <% end %> + +
TitleContentAuthor
<%= post.title %><%= post.content %><%= post.user.fname %>
+<% end %> +<% content_for :postform do %> +

New Post

+
+ +

Title

+ +

Content

+ +

Author

+ + +
+<% end %> +<% content_for :postnav do %> +

Go to Users Page

+ All Users +<% end %> diff --git a/dylan_eckert/controllersnviews/layouts/app/views/users/index.html.erb b/dylan_eckert/controllersnviews/layouts/app/views/users/index.html.erb new file mode 100644 index 0000000..f3e9d02 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/app/views/users/index.html.erb @@ -0,0 +1,36 @@ +<% content_for :users do %> +

All Users

+ + + + + + + + + + <% @users.each do |user| %> + + + + + + <% end %> + +
First NameLast NameFavourite Language
<%= user.fname %><%= user.lname %><%= user.language %>
+<% end %> + +<% content_for :userform do %> +

New User

+
+ +

First Name

+ +

Last Name

+ +

Favourite Language

+ + +
+ All posts +<% end %> diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/bin/bundle b/dylan_eckert/controllersnviews/layouts/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/bin/bundle rename to dylan_eckert/controllersnviews/layouts/bin/bundle diff --git a/dylan_eckert/controllersnviews/layouts/bin/rails b/dylan_eckert/controllersnviews/layouts/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/bin/rake b/dylan_eckert/controllersnviews/layouts/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/bin/rake rename to dylan_eckert/controllersnviews/layouts/bin/rake diff --git a/dylan_eckert/controllersnviews/layouts/bin/setup b/dylan_eckert/controllersnviews/layouts/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/bin/spring b/dylan_eckert/controllersnviews/layouts/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/bin/spring rename to dylan_eckert/controllersnviews/layouts/bin/spring diff --git a/dylan_eckert/controllersnviews/layouts/bin/update b/dylan_eckert/controllersnviews/layouts/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/controllersnviews/layouts/config.ru b/dylan_eckert/controllersnviews/layouts/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/controllersnviews/layouts/config/application.rb b/dylan_eckert/controllersnviews/layouts/config/application.rb new file mode 100644 index 0000000..68d6cd5 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Layouts + 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. + end +end diff --git a/dylan_eckert/controllersnviews/layouts/config/boot.rb b/dylan_eckert/controllersnviews/layouts/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/controllersnviews/layouts/config/cable.yml b/dylan_eckert/controllersnviews/layouts/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/config/database.yml b/dylan_eckert/controllersnviews/layouts/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/config/database.yml rename to dylan_eckert/controllersnviews/layouts/config/database.yml diff --git a/dylan_eckert/controllersnviews/layouts/config/environment.rb b/dylan_eckert/controllersnviews/layouts/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/controllersnviews/layouts/config/environments/development.rb b/dylan_eckert/controllersnviews/layouts/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/controllersnviews/layouts/config/environments/production.rb b/dylan_eckert/controllersnviews/layouts/config/environments/production.rb new file mode 100644 index 0000000..21a467f --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "layouts_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/controllersnviews/layouts/config/environments/test.rb b/dylan_eckert/controllersnviews/layouts/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/controllersnviews/layouts/config/initializers/application_controller_renderer.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/assets.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/assets.rb rename to dylan_eckert/controllersnviews/layouts/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/backtrace_silencers.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/backtrace_silencers.rb rename to dylan_eckert/controllersnviews/layouts/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/controllersnviews/layouts/config/initializers/cookies_serializer.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/filter_parameter_logging.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/controllersnviews/layouts/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/inflections.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/inflections.rb rename to dylan_eckert/controllersnviews/layouts/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/mime_types.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/config/initializers/mime_types.rb rename to dylan_eckert/controllersnviews/layouts/config/initializers/mime_types.rb diff --git a/dylan_eckert/controllersnviews/layouts/config/initializers/new_framework_defaults.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/controllersnviews/layouts/config/initializers/session_store.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/session_store.rb new file mode 100644 index 0000000..1903d12 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_layouts_session' diff --git a/dylan_eckert/controllersnviews/layouts/config/initializers/wrap_parameters.rb b/dylan_eckert/controllersnviews/layouts/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/controllers/dashboard3/config/locales/en.yml b/dylan_eckert/controllersnviews/layouts/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/config/locales/en.yml rename to dylan_eckert/controllersnviews/layouts/config/locales/en.yml diff --git a/dylan_eckert/controllersnviews/layouts/config/puma.rb b/dylan_eckert/controllersnviews/layouts/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/controllersnviews/layouts/config/routes.rb b/dylan_eckert/controllersnviews/layouts/config/routes.rb new file mode 100644 index 0000000..12ee108 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/routes.rb @@ -0,0 +1,7 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + get '/users' => 'users#index', as: 'users' + post '/users' => 'users#create', as: 'create_user' + get '/posts' => 'posts#index', as: 'posts' + post '/posts' => 'posts#create', as: 'create_post' +end diff --git a/dylan_eckert/controllersnviews/layouts/config/secrets.yml b/dylan_eckert/controllersnviews/layouts/config/secrets.yml new file mode 100644 index 0000000..23e9af1 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: ceae2b55493bda5733adc45a0d97dad29ef6e2c657bcac5432da9560fe79f3568409f049fb329b7362b52e3ec3b5216adf2c0110658e492764eac9a38c01c2c3 + +test: + secret_key_base: 23d240b48e395f373679a55f466ab7cb55f7274c94cc53ca1f9b62d92e7730ffab9debbbfc6f65efcd17ea2868fe312091f8043e4a47da3cad375412c10c18fb + +# 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/dylan_eckert/controllersnviews/layouts/config/spring.rb b/dylan_eckert/controllersnviews/layouts/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/controllersnviews/layouts/db/migrate/20171206203956_create_users.rb b/dylan_eckert/controllersnviews/layouts/db/migrate/20171206203956_create_users.rb new file mode 100644 index 0000000..4bf9ad4 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/db/migrate/20171206203956_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :fname + t.string :lname + t.string :language + + t.timestamps + end + end +end diff --git a/dylan_eckert/controllersnviews/layouts/db/migrate/20171206204010_create_posts.rb b/dylan_eckert/controllersnviews/layouts/db/migrate/20171206204010_create_posts.rb new file mode 100644 index 0000000..426e73a --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/db/migrate/20171206204010_create_posts.rb @@ -0,0 +1,11 @@ +class CreatePosts < ActiveRecord::Migration[5.0] + def change + create_table :posts do |t| + t.string :title + t.text :content + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/controllersnviews/layouts/db/schema.rb b/dylan_eckert/controllersnviews/layouts/db/schema.rb new file mode 100644 index 0000000..17057e9 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/db/schema.rb @@ -0,0 +1,32 @@ +# 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: 20171206204010) do + + create_table "posts", force: :cascade do |t| + t.string "title" + t.text "content" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id"], name: "index_posts_on_user_id" + end + + create_table "users", force: :cascade do |t| + t.string "fname" + t.string "lname" + t.string "language" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/controllersnviews/layouts/db/seeds.rb b/dylan_eckert/controllersnviews/layouts/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/lib/assets/.keep b/dylan_eckert/controllersnviews/layouts/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/lib/assets/.keep rename to dylan_eckert/controllersnviews/layouts/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/lib/tasks/.keep b/dylan_eckert/controllersnviews/layouts/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/lib/tasks/.keep rename to dylan_eckert/controllersnviews/layouts/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/log/.keep b/dylan_eckert/controllersnviews/layouts/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/log/.keep rename to dylan_eckert/controllersnviews/layouts/log/.keep diff --git a/dylan_eckert/controllersnviews/layouts/public/404.html b/dylan_eckert/controllersnviews/layouts/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/layouts/public/422.html b/dylan_eckert/controllersnviews/layouts/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/layouts/public/500.html b/dylan_eckert/controllersnviews/layouts/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/controllers/dashboard3/test/controllers/.keep b/dylan_eckert/controllersnviews/layouts/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/test/controllers/.keep rename to dylan_eckert/controllersnviews/layouts/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/fixtures/.keep b/dylan_eckert/controllersnviews/layouts/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/test/fixtures/.keep rename to dylan_eckert/controllersnviews/layouts/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/public/favicon.ico b/dylan_eckert/controllersnviews/layouts/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/public/favicon.ico rename to dylan_eckert/controllersnviews/layouts/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/public/robots.txt b/dylan_eckert/controllersnviews/layouts/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/public/robots.txt rename to dylan_eckert/controllersnviews/layouts/public/robots.txt diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/helpers/.keep b/dylan_eckert/controllersnviews/layouts/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/test/helpers/.keep rename to dylan_eckert/controllersnviews/layouts/test/controllers/.keep diff --git a/dylan_eckert/controllersnviews/layouts/test/controllers/posts_controller_test.rb b/dylan_eckert/controllersnviews/layouts/test/controllers/posts_controller_test.rb new file mode 100644 index 0000000..12c4a7f --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/test/controllers/posts_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class PostsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/dylan_eckert/controllersnviews/layouts/test/controllers/users_controller_test.rb b/dylan_eckert/controllersnviews/layouts/test/controllers/users_controller_test.rb new file mode 100644 index 0000000..6c3da77 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/test/controllers/users_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class UsersControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/integration/.keep b/dylan_eckert/controllersnviews/layouts/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/test/integration/.keep rename to dylan_eckert/controllersnviews/layouts/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/mailers/.keep b/dylan_eckert/controllersnviews/layouts/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/test/mailers/.keep rename to dylan_eckert/controllersnviews/layouts/test/fixtures/files/.keep diff --git a/dylan_eckert/controllersnviews/layouts/test/fixtures/posts.yml b/dylan_eckert/controllersnviews/layouts/test/fixtures/posts.yml new file mode 100644 index 0000000..0d1fffa --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/test/fixtures/posts.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + content: MyText + user: one + +two: + title: MyString + content: MyText + user: two diff --git a/dylan_eckert/controllersnviews/layouts/test/fixtures/users.yml b/dylan_eckert/controllersnviews/layouts/test/fixtures/users.yml new file mode 100644 index 0000000..8bab066 --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/test/fixtures/users.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + fname: MyString + lname: MyString + language: MyString + +two: + fname: MyString + lname: MyString + language: MyString diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/models/.keep b/dylan_eckert/controllersnviews/layouts/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/test/models/.keep rename to dylan_eckert/controllersnviews/layouts/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/vendor/assets/javascripts/.keep b/dylan_eckert/controllersnviews/layouts/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/vendor/assets/javascripts/.keep rename to dylan_eckert/controllersnviews/layouts/test/integration/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/vendor/assets/stylesheets/.keep b/dylan_eckert/controllersnviews/layouts/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/vendor/assets/stylesheets/.keep rename to dylan_eckert/controllersnviews/layouts/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/images/.keep b/dylan_eckert/controllersnviews/layouts/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/images/.keep rename to dylan_eckert/controllersnviews/layouts/test/models/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/test/models/post_test.rb b/dylan_eckert/controllersnviews/layouts/test/models/post_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/models/post_test.rb rename to dylan_eckert/controllersnviews/layouts/test/models/post_test.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/test/models/user_test.rb b/dylan_eckert/controllersnviews/layouts/test/models/user_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/models/user_test.rb rename to dylan_eckert/controllersnviews/layouts/test/models/user_test.rb diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/test_helper.rb b/dylan_eckert/controllersnviews/layouts/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/test_helper.rb rename to dylan_eckert/controllersnviews/layouts/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/controllers/concerns/.keep b/dylan_eckert/controllersnviews/layouts/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/app/controllers/concerns/.keep rename to dylan_eckert/controllersnviews/layouts/tmp/.keep diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/mailers/.keep b/dylan_eckert/controllersnviews/layouts/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/app/mailers/.keep rename to dylan_eckert/controllersnviews/layouts/vendor/assets/javascripts/.keep diff --git a/dylan_eckert/controllersnviews/layouts/vendor/assets/javascripts/bootstrap.min.js b/dylan_eckert/controllersnviews/layouts/vendor/assets/javascripts/bootstrap.min.js new file mode 100644 index 0000000..9bcd2fc --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/vendor/assets/javascripts/bootstrap.min.js @@ -0,0 +1,7 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under the MIT license + */ +if("undefined"==typeof jQuery)throw new Error("Bootstrap's JavaScript requires jQuery");+function(a){"use strict";var b=a.fn.jquery.split(" ")[0].split(".");if(b[0]<2&&b[1]<9||1==b[0]&&9==b[1]&&b[2]<1||b[0]>3)throw new Error("Bootstrap's JavaScript requires jQuery version 1.9.1 or higher, but lower than version 4")}(jQuery),+function(a){"use strict";function b(){var a=document.createElement("bootstrap"),b={WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd otransitionend",transition:"transitionend"};for(var c in b)if(void 0!==a.style[c])return{end:b[c]};return!1}a.fn.emulateTransitionEnd=function(b){var c=!1,d=this;a(this).one("bsTransitionEnd",function(){c=!0});var e=function(){c||a(d).trigger(a.support.transition.end)};return setTimeout(e,b),this},a(function(){a.support.transition=b(),a.support.transition&&(a.event.special.bsTransitionEnd={bindType:a.support.transition.end,delegateType:a.support.transition.end,handle:function(b){if(a(b.target).is(this))return b.handleObj.handler.apply(this,arguments)}})})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var c=a(this),e=c.data("bs.alert");e||c.data("bs.alert",e=new d(this)),"string"==typeof b&&e[b].call(c)})}var c='[data-dismiss="alert"]',d=function(b){a(b).on("click",c,this.close)};d.VERSION="3.3.7",d.TRANSITION_DURATION=150,d.prototype.close=function(b){function c(){g.detach().trigger("closed.bs.alert").remove()}var e=a(this),f=e.attr("data-target");f||(f=e.attr("href"),f=f&&f.replace(/.*(?=#[^\s]*$)/,""));var g=a("#"===f?[]:f);b&&b.preventDefault(),g.length||(g=e.closest(".alert")),g.trigger(b=a.Event("close.bs.alert")),b.isDefaultPrevented()||(g.removeClass("in"),a.support.transition&&g.hasClass("fade")?g.one("bsTransitionEnd",c).emulateTransitionEnd(d.TRANSITION_DURATION):c())};var e=a.fn.alert;a.fn.alert=b,a.fn.alert.Constructor=d,a.fn.alert.noConflict=function(){return a.fn.alert=e,this},a(document).on("click.bs.alert.data-api",c,d.prototype.close)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.button"),f="object"==typeof b&&b;e||d.data("bs.button",e=new c(this,f)),"toggle"==b?e.toggle():b&&e.setState(b)})}var c=function(b,d){this.$element=a(b),this.options=a.extend({},c.DEFAULTS,d),this.isLoading=!1};c.VERSION="3.3.7",c.DEFAULTS={loadingText:"loading..."},c.prototype.setState=function(b){var c="disabled",d=this.$element,e=d.is("input")?"val":"html",f=d.data();b+="Text",null==f.resetText&&d.data("resetText",d[e]()),setTimeout(a.proxy(function(){d[e](null==f[b]?this.options[b]:f[b]),"loadingText"==b?(this.isLoading=!0,d.addClass(c).attr(c,c).prop(c,!0)):this.isLoading&&(this.isLoading=!1,d.removeClass(c).removeAttr(c).prop(c,!1))},this),0)},c.prototype.toggle=function(){var a=!0,b=this.$element.closest('[data-toggle="buttons"]');if(b.length){var c=this.$element.find("input");"radio"==c.prop("type")?(c.prop("checked")&&(a=!1),b.find(".active").removeClass("active"),this.$element.addClass("active")):"checkbox"==c.prop("type")&&(c.prop("checked")!==this.$element.hasClass("active")&&(a=!1),this.$element.toggleClass("active")),c.prop("checked",this.$element.hasClass("active")),a&&c.trigger("change")}else this.$element.attr("aria-pressed",!this.$element.hasClass("active")),this.$element.toggleClass("active")};var d=a.fn.button;a.fn.button=b,a.fn.button.Constructor=c,a.fn.button.noConflict=function(){return a.fn.button=d,this},a(document).on("click.bs.button.data-api",'[data-toggle^="button"]',function(c){var d=a(c.target).closest(".btn");b.call(d,"toggle"),a(c.target).is('input[type="radio"], input[type="checkbox"]')||(c.preventDefault(),d.is("input,button")?d.trigger("focus"):d.find("input:visible,button:visible").first().trigger("focus"))}).on("focus.bs.button.data-api blur.bs.button.data-api",'[data-toggle^="button"]',function(b){a(b.target).closest(".btn").toggleClass("focus",/^focus(in)?$/.test(b.type))})}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.carousel"),f=a.extend({},c.DEFAULTS,d.data(),"object"==typeof b&&b),g="string"==typeof b?b:f.slide;e||d.data("bs.carousel",e=new c(this,f)),"number"==typeof b?e.to(b):g?e[g]():f.interval&&e.pause().cycle()})}var c=function(b,c){this.$element=a(b),this.$indicators=this.$element.find(".carousel-indicators"),this.options=c,this.paused=null,this.sliding=null,this.interval=null,this.$active=null,this.$items=null,this.options.keyboard&&this.$element.on("keydown.bs.carousel",a.proxy(this.keydown,this)),"hover"==this.options.pause&&!("ontouchstart"in document.documentElement)&&this.$element.on("mouseenter.bs.carousel",a.proxy(this.pause,this)).on("mouseleave.bs.carousel",a.proxy(this.cycle,this))};c.VERSION="3.3.7",c.TRANSITION_DURATION=600,c.DEFAULTS={interval:5e3,pause:"hover",wrap:!0,keyboard:!0},c.prototype.keydown=function(a){if(!/input|textarea/i.test(a.target.tagName)){switch(a.which){case 37:this.prev();break;case 39:this.next();break;default:return}a.preventDefault()}},c.prototype.cycle=function(b){return b||(this.paused=!1),this.interval&&clearInterval(this.interval),this.options.interval&&!this.paused&&(this.interval=setInterval(a.proxy(this.next,this),this.options.interval)),this},c.prototype.getItemIndex=function(a){return this.$items=a.parent().children(".item"),this.$items.index(a||this.$active)},c.prototype.getItemForDirection=function(a,b){var c=this.getItemIndex(b),d="prev"==a&&0===c||"next"==a&&c==this.$items.length-1;if(d&&!this.options.wrap)return b;var e="prev"==a?-1:1,f=(c+e)%this.$items.length;return this.$items.eq(f)},c.prototype.to=function(a){var b=this,c=this.getItemIndex(this.$active=this.$element.find(".item.active"));if(!(a>this.$items.length-1||a<0))return this.sliding?this.$element.one("slid.bs.carousel",function(){b.to(a)}):c==a?this.pause().cycle():this.slide(a>c?"next":"prev",this.$items.eq(a))},c.prototype.pause=function(b){return b||(this.paused=!0),this.$element.find(".next, .prev").length&&a.support.transition&&(this.$element.trigger(a.support.transition.end),this.cycle(!0)),this.interval=clearInterval(this.interval),this},c.prototype.next=function(){if(!this.sliding)return this.slide("next")},c.prototype.prev=function(){if(!this.sliding)return this.slide("prev")},c.prototype.slide=function(b,d){var e=this.$element.find(".item.active"),f=d||this.getItemForDirection(b,e),g=this.interval,h="next"==b?"left":"right",i=this;if(f.hasClass("active"))return this.sliding=!1;var j=f[0],k=a.Event("slide.bs.carousel",{relatedTarget:j,direction:h});if(this.$element.trigger(k),!k.isDefaultPrevented()){if(this.sliding=!0,g&&this.pause(),this.$indicators.length){this.$indicators.find(".active").removeClass("active");var l=a(this.$indicators.children()[this.getItemIndex(f)]);l&&l.addClass("active")}var m=a.Event("slid.bs.carousel",{relatedTarget:j,direction:h});return a.support.transition&&this.$element.hasClass("slide")?(f.addClass(b),f[0].offsetWidth,e.addClass(h),f.addClass(h),e.one("bsTransitionEnd",function(){f.removeClass([b,h].join(" ")).addClass("active"),e.removeClass(["active",h].join(" ")),i.sliding=!1,setTimeout(function(){i.$element.trigger(m)},0)}).emulateTransitionEnd(c.TRANSITION_DURATION)):(e.removeClass("active"),f.addClass("active"),this.sliding=!1,this.$element.trigger(m)),g&&this.cycle(),this}};var d=a.fn.carousel;a.fn.carousel=b,a.fn.carousel.Constructor=c,a.fn.carousel.noConflict=function(){return a.fn.carousel=d,this};var e=function(c){var d,e=a(this),f=a(e.attr("data-target")||(d=e.attr("href"))&&d.replace(/.*(?=#[^\s]+$)/,""));if(f.hasClass("carousel")){var g=a.extend({},f.data(),e.data()),h=e.attr("data-slide-to");h&&(g.interval=!1),b.call(f,g),h&&f.data("bs.carousel").to(h),c.preventDefault()}};a(document).on("click.bs.carousel.data-api","[data-slide]",e).on("click.bs.carousel.data-api","[data-slide-to]",e),a(window).on("load",function(){a('[data-ride="carousel"]').each(function(){var c=a(this);b.call(c,c.data())})})}(jQuery),+function(a){"use strict";function b(b){var c,d=b.attr("data-target")||(c=b.attr("href"))&&c.replace(/.*(?=#[^\s]+$)/,"");return a(d)}function c(b){return this.each(function(){var c=a(this),e=c.data("bs.collapse"),f=a.extend({},d.DEFAULTS,c.data(),"object"==typeof b&&b);!e&&f.toggle&&/show|hide/.test(b)&&(f.toggle=!1),e||c.data("bs.collapse",e=new d(this,f)),"string"==typeof b&&e[b]()})}var d=function(b,c){this.$element=a(b),this.options=a.extend({},d.DEFAULTS,c),this.$trigger=a('[data-toggle="collapse"][href="#'+b.id+'"],[data-toggle="collapse"][data-target="#'+b.id+'"]'),this.transitioning=null,this.options.parent?this.$parent=this.getParent():this.addAriaAndCollapsedClass(this.$element,this.$trigger),this.options.toggle&&this.toggle()};d.VERSION="3.3.7",d.TRANSITION_DURATION=350,d.DEFAULTS={toggle:!0},d.prototype.dimension=function(){var a=this.$element.hasClass("width");return a?"width":"height"},d.prototype.show=function(){if(!this.transitioning&&!this.$element.hasClass("in")){var b,e=this.$parent&&this.$parent.children(".panel").children(".in, .collapsing");if(!(e&&e.length&&(b=e.data("bs.collapse"),b&&b.transitioning))){var f=a.Event("show.bs.collapse");if(this.$element.trigger(f),!f.isDefaultPrevented()){e&&e.length&&(c.call(e,"hide"),b||e.data("bs.collapse",null));var g=this.dimension();this.$element.removeClass("collapse").addClass("collapsing")[g](0).attr("aria-expanded",!0),this.$trigger.removeClass("collapsed").attr("aria-expanded",!0),this.transitioning=1;var h=function(){this.$element.removeClass("collapsing").addClass("collapse in")[g](""),this.transitioning=0,this.$element.trigger("shown.bs.collapse")};if(!a.support.transition)return h.call(this);var i=a.camelCase(["scroll",g].join("-"));this.$element.one("bsTransitionEnd",a.proxy(h,this)).emulateTransitionEnd(d.TRANSITION_DURATION)[g](this.$element[0][i])}}}},d.prototype.hide=function(){if(!this.transitioning&&this.$element.hasClass("in")){var b=a.Event("hide.bs.collapse");if(this.$element.trigger(b),!b.isDefaultPrevented()){var c=this.dimension();this.$element[c](this.$element[c]())[0].offsetHeight,this.$element.addClass("collapsing").removeClass("collapse in").attr("aria-expanded",!1),this.$trigger.addClass("collapsed").attr("aria-expanded",!1),this.transitioning=1;var e=function(){this.transitioning=0,this.$element.removeClass("collapsing").addClass("collapse").trigger("hidden.bs.collapse")};return a.support.transition?void this.$element[c](0).one("bsTransitionEnd",a.proxy(e,this)).emulateTransitionEnd(d.TRANSITION_DURATION):e.call(this)}}},d.prototype.toggle=function(){this[this.$element.hasClass("in")?"hide":"show"]()},d.prototype.getParent=function(){return a(this.options.parent).find('[data-toggle="collapse"][data-parent="'+this.options.parent+'"]').each(a.proxy(function(c,d){var e=a(d);this.addAriaAndCollapsedClass(b(e),e)},this)).end()},d.prototype.addAriaAndCollapsedClass=function(a,b){var c=a.hasClass("in");a.attr("aria-expanded",c),b.toggleClass("collapsed",!c).attr("aria-expanded",c)};var e=a.fn.collapse;a.fn.collapse=c,a.fn.collapse.Constructor=d,a.fn.collapse.noConflict=function(){return a.fn.collapse=e,this},a(document).on("click.bs.collapse.data-api",'[data-toggle="collapse"]',function(d){var e=a(this);e.attr("data-target")||d.preventDefault();var f=b(e),g=f.data("bs.collapse"),h=g?"toggle":e.data();c.call(f,h)})}(jQuery),+function(a){"use strict";function b(b){var c=b.attr("data-target");c||(c=b.attr("href"),c=c&&/#[A-Za-z]/.test(c)&&c.replace(/.*(?=#[^\s]*$)/,""));var d=c&&a(c);return d&&d.length?d:b.parent()}function c(c){c&&3===c.which||(a(e).remove(),a(f).each(function(){var d=a(this),e=b(d),f={relatedTarget:this};e.hasClass("open")&&(c&&"click"==c.type&&/input|textarea/i.test(c.target.tagName)&&a.contains(e[0],c.target)||(e.trigger(c=a.Event("hide.bs.dropdown",f)),c.isDefaultPrevented()||(d.attr("aria-expanded","false"),e.removeClass("open").trigger(a.Event("hidden.bs.dropdown",f)))))}))}function d(b){return this.each(function(){var c=a(this),d=c.data("bs.dropdown");d||c.data("bs.dropdown",d=new g(this)),"string"==typeof b&&d[b].call(c)})}var e=".dropdown-backdrop",f='[data-toggle="dropdown"]',g=function(b){a(b).on("click.bs.dropdown",this.toggle)};g.VERSION="3.3.7",g.prototype.toggle=function(d){var e=a(this);if(!e.is(".disabled, :disabled")){var f=b(e),g=f.hasClass("open");if(c(),!g){"ontouchstart"in document.documentElement&&!f.closest(".navbar-nav").length&&a(document.createElement("div")).addClass("dropdown-backdrop").insertAfter(a(this)).on("click",c);var h={relatedTarget:this};if(f.trigger(d=a.Event("show.bs.dropdown",h)),d.isDefaultPrevented())return;e.trigger("focus").attr("aria-expanded","true"),f.toggleClass("open").trigger(a.Event("shown.bs.dropdown",h))}return!1}},g.prototype.keydown=function(c){if(/(38|40|27|32)/.test(c.which)&&!/input|textarea/i.test(c.target.tagName)){var d=a(this);if(c.preventDefault(),c.stopPropagation(),!d.is(".disabled, :disabled")){var e=b(d),g=e.hasClass("open");if(!g&&27!=c.which||g&&27==c.which)return 27==c.which&&e.find(f).trigger("focus"),d.trigger("click");var h=" li:not(.disabled):visible a",i=e.find(".dropdown-menu"+h);if(i.length){var j=i.index(c.target);38==c.which&&j>0&&j--,40==c.which&&jdocument.documentElement.clientHeight;this.$element.css({paddingLeft:!this.bodyIsOverflowing&&a?this.scrollbarWidth:"",paddingRight:this.bodyIsOverflowing&&!a?this.scrollbarWidth:""})},c.prototype.resetAdjustments=function(){this.$element.css({paddingLeft:"",paddingRight:""})},c.prototype.checkScrollbar=function(){var a=window.innerWidth;if(!a){var b=document.documentElement.getBoundingClientRect();a=b.right-Math.abs(b.left)}this.bodyIsOverflowing=document.body.clientWidth
',trigger:"hover focus",title:"",delay:0,html:!1,container:!1,viewport:{selector:"body",padding:0}},c.prototype.init=function(b,c,d){if(this.enabled=!0,this.type=b,this.$element=a(c),this.options=this.getOptions(d),this.$viewport=this.options.viewport&&a(a.isFunction(this.options.viewport)?this.options.viewport.call(this,this.$element):this.options.viewport.selector||this.options.viewport),this.inState={click:!1,hover:!1,focus:!1},this.$element[0]instanceof document.constructor&&!this.options.selector)throw new Error("`selector` option must be specified when initializing "+this.type+" on the window.document object!");for(var e=this.options.trigger.split(" "),f=e.length;f--;){var g=e[f];if("click"==g)this.$element.on("click."+this.type,this.options.selector,a.proxy(this.toggle,this));else if("manual"!=g){var h="hover"==g?"mouseenter":"focusin",i="hover"==g?"mouseleave":"focusout";this.$element.on(h+"."+this.type,this.options.selector,a.proxy(this.enter,this)),this.$element.on(i+"."+this.type,this.options.selector,a.proxy(this.leave,this))}}this.options.selector?this._options=a.extend({},this.options,{trigger:"manual",selector:""}):this.fixTitle()},c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.getOptions=function(b){return b=a.extend({},this.getDefaults(),this.$element.data(),b),b.delay&&"number"==typeof b.delay&&(b.delay={show:b.delay,hide:b.delay}),b},c.prototype.getDelegateOptions=function(){var b={},c=this.getDefaults();return this._options&&a.each(this._options,function(a,d){c[a]!=d&&(b[a]=d)}),b},c.prototype.enter=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);return c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusin"==b.type?"focus":"hover"]=!0),c.tip().hasClass("in")||"in"==c.hoverState?void(c.hoverState="in"):(clearTimeout(c.timeout),c.hoverState="in",c.options.delay&&c.options.delay.show?void(c.timeout=setTimeout(function(){"in"==c.hoverState&&c.show()},c.options.delay.show)):c.show())},c.prototype.isInStateTrue=function(){for(var a in this.inState)if(this.inState[a])return!0;return!1},c.prototype.leave=function(b){var c=b instanceof this.constructor?b:a(b.currentTarget).data("bs."+this.type);if(c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c)),b instanceof a.Event&&(c.inState["focusout"==b.type?"focus":"hover"]=!1),!c.isInStateTrue())return clearTimeout(c.timeout),c.hoverState="out",c.options.delay&&c.options.delay.hide?void(c.timeout=setTimeout(function(){"out"==c.hoverState&&c.hide()},c.options.delay.hide)):c.hide()},c.prototype.show=function(){var b=a.Event("show.bs."+this.type);if(this.hasContent()&&this.enabled){this.$element.trigger(b);var d=a.contains(this.$element[0].ownerDocument.documentElement,this.$element[0]);if(b.isDefaultPrevented()||!d)return;var e=this,f=this.tip(),g=this.getUID(this.type);this.setContent(),f.attr("id",g),this.$element.attr("aria-describedby",g),this.options.animation&&f.addClass("fade");var h="function"==typeof this.options.placement?this.options.placement.call(this,f[0],this.$element[0]):this.options.placement,i=/\s?auto?\s?/i,j=i.test(h);j&&(h=h.replace(i,"")||"top"),f.detach().css({top:0,left:0,display:"block"}).addClass(h).data("bs."+this.type,this),this.options.container?f.appendTo(this.options.container):f.insertAfter(this.$element),this.$element.trigger("inserted.bs."+this.type);var k=this.getPosition(),l=f[0].offsetWidth,m=f[0].offsetHeight;if(j){var n=h,o=this.getPosition(this.$viewport);h="bottom"==h&&k.bottom+m>o.bottom?"top":"top"==h&&k.top-mo.width?"left":"left"==h&&k.left-lg.top+g.height&&(e.top=g.top+g.height-i)}else{var j=b.left-f,k=b.left+f+c;jg.right&&(e.left=g.left+g.width-k)}return e},c.prototype.getTitle=function(){var a,b=this.$element,c=this.options;return a=b.attr("data-original-title")||("function"==typeof c.title?c.title.call(b[0]):c.title)},c.prototype.getUID=function(a){do a+=~~(1e6*Math.random());while(document.getElementById(a));return a},c.prototype.tip=function(){if(!this.$tip&&(this.$tip=a(this.options.template),1!=this.$tip.length))throw new Error(this.type+" `template` option must consist of exactly 1 top-level element!");return this.$tip},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".tooltip-arrow")},c.prototype.enable=function(){this.enabled=!0},c.prototype.disable=function(){this.enabled=!1},c.prototype.toggleEnabled=function(){this.enabled=!this.enabled},c.prototype.toggle=function(b){var c=this;b&&(c=a(b.currentTarget).data("bs."+this.type),c||(c=new this.constructor(b.currentTarget,this.getDelegateOptions()),a(b.currentTarget).data("bs."+this.type,c))),b?(c.inState.click=!c.inState.click,c.isInStateTrue()?c.enter(c):c.leave(c)):c.tip().hasClass("in")?c.leave(c):c.enter(c)},c.prototype.destroy=function(){var a=this;clearTimeout(this.timeout),this.hide(function(){a.$element.off("."+a.type).removeData("bs."+a.type),a.$tip&&a.$tip.detach(),a.$tip=null,a.$arrow=null,a.$viewport=null,a.$element=null})};var d=a.fn.tooltip;a.fn.tooltip=b,a.fn.tooltip.Constructor=c,a.fn.tooltip.noConflict=function(){return a.fn.tooltip=d,this}}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.popover"),f="object"==typeof b&&b;!e&&/destroy|hide/.test(b)||(e||d.data("bs.popover",e=new c(this,f)),"string"==typeof b&&e[b]())})}var c=function(a,b){this.init("popover",a,b)};if(!a.fn.tooltip)throw new Error("Popover requires tooltip.js");c.VERSION="3.3.7",c.DEFAULTS=a.extend({},a.fn.tooltip.Constructor.DEFAULTS,{placement:"right",trigger:"click",content:"",template:''}),c.prototype=a.extend({},a.fn.tooltip.Constructor.prototype),c.prototype.constructor=c,c.prototype.getDefaults=function(){return c.DEFAULTS},c.prototype.setContent=function(){var a=this.tip(),b=this.getTitle(),c=this.getContent();a.find(".popover-title")[this.options.html?"html":"text"](b),a.find(".popover-content").children().detach().end()[this.options.html?"string"==typeof c?"html":"append":"text"](c),a.removeClass("fade top bottom left right in"),a.find(".popover-title").html()||a.find(".popover-title").hide()},c.prototype.hasContent=function(){return this.getTitle()||this.getContent()},c.prototype.getContent=function(){var a=this.$element,b=this.options;return a.attr("data-content")||("function"==typeof b.content?b.content.call(a[0]):b.content)},c.prototype.arrow=function(){return this.$arrow=this.$arrow||this.tip().find(".arrow")};var d=a.fn.popover;a.fn.popover=b,a.fn.popover.Constructor=c,a.fn.popover.noConflict=function(){return a.fn.popover=d,this}}(jQuery),+function(a){"use strict";function b(c,d){this.$body=a(document.body),this.$scrollElement=a(a(c).is(document.body)?window:c),this.options=a.extend({},b.DEFAULTS,d),this.selector=(this.options.target||"")+" .nav li > a",this.offsets=[],this.targets=[],this.activeTarget=null,this.scrollHeight=0,this.$scrollElement.on("scroll.bs.scrollspy",a.proxy(this.process,this)),this.refresh(),this.process()}function c(c){return this.each(function(){var d=a(this),e=d.data("bs.scrollspy"),f="object"==typeof c&&c;e||d.data("bs.scrollspy",e=new b(this,f)),"string"==typeof c&&e[c]()})}b.VERSION="3.3.7",b.DEFAULTS={offset:10},b.prototype.getScrollHeight=function(){return this.$scrollElement[0].scrollHeight||Math.max(this.$body[0].scrollHeight,document.documentElement.scrollHeight)},b.prototype.refresh=function(){var b=this,c="offset",d=0;this.offsets=[],this.targets=[],this.scrollHeight=this.getScrollHeight(),a.isWindow(this.$scrollElement[0])||(c="position",d=this.$scrollElement.scrollTop()),this.$body.find(this.selector).map(function(){var b=a(this),e=b.data("target")||b.attr("href"),f=/^#./.test(e)&&a(e);return f&&f.length&&f.is(":visible")&&[[f[c]().top+d,e]]||null}).sort(function(a,b){return a[0]-b[0]}).each(function(){b.offsets.push(this[0]),b.targets.push(this[1])})},b.prototype.process=function(){var a,b=this.$scrollElement.scrollTop()+this.options.offset,c=this.getScrollHeight(),d=this.options.offset+c-this.$scrollElement.height(),e=this.offsets,f=this.targets,g=this.activeTarget;if(this.scrollHeight!=c&&this.refresh(),b>=d)return g!=(a=f[f.length-1])&&this.activate(a);if(g&&b=e[a]&&(void 0===e[a+1]||b .dropdown-menu > .active").removeClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!1),b.addClass("active").find('[data-toggle="tab"]').attr("aria-expanded",!0),h?(b[0].offsetWidth,b.addClass("in")):b.removeClass("fade"),b.parent(".dropdown-menu").length&&b.closest("li.dropdown").addClass("active").end().find('[data-toggle="tab"]').attr("aria-expanded",!0),e&&e()}var g=d.find("> .active"),h=e&&a.support.transition&&(g.length&&g.hasClass("fade")||!!d.find("> .fade").length);g.length&&h?g.one("bsTransitionEnd",f).emulateTransitionEnd(c.TRANSITION_DURATION):f(),g.removeClass("in")};var d=a.fn.tab;a.fn.tab=b,a.fn.tab.Constructor=c,a.fn.tab.noConflict=function(){return a.fn.tab=d,this};var e=function(c){c.preventDefault(),b.call(a(this),"show")};a(document).on("click.bs.tab.data-api",'[data-toggle="tab"]',e).on("click.bs.tab.data-api",'[data-toggle="pill"]',e)}(jQuery),+function(a){"use strict";function b(b){return this.each(function(){var d=a(this),e=d.data("bs.affix"),f="object"==typeof b&&b;e||d.data("bs.affix",e=new c(this,f)),"string"==typeof b&&e[b]()})}var c=function(b,d){this.options=a.extend({},c.DEFAULTS,d),this.$target=a(this.options.target).on("scroll.bs.affix.data-api",a.proxy(this.checkPosition,this)).on("click.bs.affix.data-api",a.proxy(this.checkPositionWithEventLoop,this)),this.$element=a(b),this.affixed=null,this.unpin=null,this.pinnedOffset=null,this.checkPosition()};c.VERSION="3.3.7",c.RESET="affix affix-top affix-bottom",c.DEFAULTS={offset:0,target:window},c.prototype.getState=function(a,b,c,d){var e=this.$target.scrollTop(),f=this.$element.offset(),g=this.$target.height();if(null!=c&&"top"==this.affixed)return e=a-d&&"bottom"},c.prototype.getPinnedOffset=function(){if(this.pinnedOffset)return this.pinnedOffset;this.$element.removeClass(c.RESET).addClass("affix");var a=this.$target.scrollTop(),b=this.$element.offset();return this.pinnedOffset=b.top-a},c.prototype.checkPositionWithEventLoop=function(){setTimeout(a.proxy(this.checkPosition,this),1)},c.prototype.checkPosition=function(){if(this.$element.is(":visible")){var b=this.$element.height(),d=this.options.offset,e=d.top,f=d.bottom,g=Math.max(a(document).height(),a(document.body).height());"object"!=typeof d&&(f=e=d),"function"==typeof e&&(e=d.top(this.$element)),"function"==typeof f&&(f=d.bottom(this.$element));var h=this.getState(g,b,e,f);if(this.affixed!=h){null!=this.unpin&&this.$element.css("top","");var i="affix"+(h?"-"+h:""),j=a.Event(i+".bs.affix");if(this.$element.trigger(j),j.isDefaultPrevented())return;this.affixed=h,this.unpin="bottom"==h?this.getPinnedOffset():null,this.$element.removeClass(c.RESET).addClass(i).trigger(i.replace("affix","affixed")+".bs.affix")}"bottom"==h&&this.$element.offset({top:g-b-f})}};var d=a.fn.affix;a.fn.affix=b,a.fn.affix.Constructor=c,a.fn.affix.noConflict=function(){return a.fn.affix=d,this},a(window).on("load",function(){a('[data-spy="affix"]').each(function(){var c=a(this),d=c.data();d.offset=d.offset||{},null!=d.offsetBottom&&(d.offset.bottom=d.offsetBottom),null!=d.offsetTop&&(d.offset.top=d.offsetTop),b.call(c,d)})})}(jQuery); \ No newline at end of file diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/models/.keep b/dylan_eckert/controllersnviews/layouts/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/app/models/.keep rename to dylan_eckert/controllersnviews/layouts/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/controllersnviews/layouts/vendor/assets/stylesheets/bootstrap.min.css b/dylan_eckert/controllersnviews/layouts/vendor/assets/stylesheets/bootstrap.min.css new file mode 100644 index 0000000..ed3905e --- /dev/null +++ b/dylan_eckert/controllersnviews/layouts/vendor/assets/stylesheets/bootstrap.min.css @@ -0,0 +1,6 @@ +/*! + * Bootstrap v3.3.7 (http://getbootstrap.com) + * Copyright 2011-2016 Twitter, Inc. + * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) + *//*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */html{font-family:sans-serif;-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{margin:0}article,aside,details,figcaption,figure,footer,header,hgroup,main,menu,nav,section,summary{display:block}audio,canvas,progress,video{display:inline-block;vertical-align:baseline}audio:not([controls]){display:none;height:0}[hidden],template{display:none}a{background-color:transparent}a:active,a:hover{outline:0}abbr[title]{border-bottom:1px dotted}b,strong{font-weight:700}dfn{font-style:italic}h1{margin:.67em 0;font-size:2em}mark{color:#000;background:#ff0}small{font-size:80%}sub,sup{position:relative;font-size:75%;line-height:0;vertical-align:baseline}sup{top:-.5em}sub{bottom:-.25em}img{border:0}svg:not(:root){overflow:hidden}figure{margin:1em 40px}hr{height:0;-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box}pre{overflow:auto}code,kbd,pre,samp{font-family:monospace,monospace;font-size:1em}button,input,optgroup,select,textarea{margin:0;font:inherit;color:inherit}button{overflow:visible}button,select{text-transform:none}button,html input[type=button],input[type=reset],input[type=submit]{-webkit-appearance:button;cursor:pointer}button[disabled],html input[disabled]{cursor:default}button::-moz-focus-inner,input::-moz-focus-inner{padding:0;border:0}input{line-height:normal}input[type=checkbox],input[type=radio]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box;padding:0}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{height:auto}input[type=search]{-webkit-box-sizing:content-box;-moz-box-sizing:content-box;box-sizing:content-box;-webkit-appearance:textfield}input[type=search]::-webkit-search-cancel-button,input[type=search]::-webkit-search-decoration{-webkit-appearance:none}fieldset{padding:.35em .625em .75em;margin:0 2px;border:1px solid silver}legend{padding:0;border:0}textarea{overflow:auto}optgroup{font-weight:700}table{border-spacing:0;border-collapse:collapse}td,th{padding:0}/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */@media print{*,:after,:before{color:#000!important;text-shadow:none!important;background:0 0!important;-webkit-box-shadow:none!important;box-shadow:none!important}a,a:visited{text-decoration:underline}a[href]:after{content:" (" attr(href) ")"}abbr[title]:after{content:" (" attr(title) ")"}a[href^="javascript:"]:after,a[href^="#"]:after{content:""}blockquote,pre{border:1px solid #999;page-break-inside:avoid}thead{display:table-header-group}img,tr{page-break-inside:avoid}img{max-width:100%!important}h2,h3,p{orphans:3;widows:3}h2,h3{page-break-after:avoid}.navbar{display:none}.btn>.caret,.dropup>.btn>.caret{border-top-color:#000!important}.label{border:1px solid #000}.table{border-collapse:collapse!important}.table td,.table th{background-color:#fff!important}.table-bordered td,.table-bordered th{border:1px solid #ddd!important}}@font-face{font-family:'Glyphicons Halflings';src:url(../fonts/glyphicons-halflings-regular.eot);src:url(../fonts/glyphicons-halflings-regular.eot?#iefix) format('embedded-opentype'),url(../fonts/glyphicons-halflings-regular.woff2) format('woff2'),url(../fonts/glyphicons-halflings-regular.woff) format('woff'),url(../fonts/glyphicons-halflings-regular.ttf) format('truetype'),url(../fonts/glyphicons-halflings-regular.svg#glyphicons_halflingsregular) format('svg')}.glyphicon{position:relative;top:1px;display:inline-block;font-family:'Glyphicons Halflings';font-style:normal;font-weight:400;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}.glyphicon-asterisk:before{content:"\002a"}.glyphicon-plus:before{content:"\002b"}.glyphicon-eur:before,.glyphicon-euro:before{content:"\20ac"}.glyphicon-minus:before{content:"\2212"}.glyphicon-cloud:before{content:"\2601"}.glyphicon-envelope:before{content:"\2709"}.glyphicon-pencil:before{content:"\270f"}.glyphicon-glass:before{content:"\e001"}.glyphicon-music:before{content:"\e002"}.glyphicon-search:before{content:"\e003"}.glyphicon-heart:before{content:"\e005"}.glyphicon-star:before{content:"\e006"}.glyphicon-star-empty:before{content:"\e007"}.glyphicon-user:before{content:"\e008"}.glyphicon-film:before{content:"\e009"}.glyphicon-th-large:before{content:"\e010"}.glyphicon-th:before{content:"\e011"}.glyphicon-th-list:before{content:"\e012"}.glyphicon-ok:before{content:"\e013"}.glyphicon-remove:before{content:"\e014"}.glyphicon-zoom-in:before{content:"\e015"}.glyphicon-zoom-out:before{content:"\e016"}.glyphicon-off:before{content:"\e017"}.glyphicon-signal:before{content:"\e018"}.glyphicon-cog:before{content:"\e019"}.glyphicon-trash:before{content:"\e020"}.glyphicon-home:before{content:"\e021"}.glyphicon-file:before{content:"\e022"}.glyphicon-time:before{content:"\e023"}.glyphicon-road:before{content:"\e024"}.glyphicon-download-alt:before{content:"\e025"}.glyphicon-download:before{content:"\e026"}.glyphicon-upload:before{content:"\e027"}.glyphicon-inbox:before{content:"\e028"}.glyphicon-play-circle:before{content:"\e029"}.glyphicon-repeat:before{content:"\e030"}.glyphicon-refresh:before{content:"\e031"}.glyphicon-list-alt:before{content:"\e032"}.glyphicon-lock:before{content:"\e033"}.glyphicon-flag:before{content:"\e034"}.glyphicon-headphones:before{content:"\e035"}.glyphicon-volume-off:before{content:"\e036"}.glyphicon-volume-down:before{content:"\e037"}.glyphicon-volume-up:before{content:"\e038"}.glyphicon-qrcode:before{content:"\e039"}.glyphicon-barcode:before{content:"\e040"}.glyphicon-tag:before{content:"\e041"}.glyphicon-tags:before{content:"\e042"}.glyphicon-book:before{content:"\e043"}.glyphicon-bookmark:before{content:"\e044"}.glyphicon-print:before{content:"\e045"}.glyphicon-camera:before{content:"\e046"}.glyphicon-font:before{content:"\e047"}.glyphicon-bold:before{content:"\e048"}.glyphicon-italic:before{content:"\e049"}.glyphicon-text-height:before{content:"\e050"}.glyphicon-text-width:before{content:"\e051"}.glyphicon-align-left:before{content:"\e052"}.glyphicon-align-center:before{content:"\e053"}.glyphicon-align-right:before{content:"\e054"}.glyphicon-align-justify:before{content:"\e055"}.glyphicon-list:before{content:"\e056"}.glyphicon-indent-left:before{content:"\e057"}.glyphicon-indent-right:before{content:"\e058"}.glyphicon-facetime-video:before{content:"\e059"}.glyphicon-picture:before{content:"\e060"}.glyphicon-map-marker:before{content:"\e062"}.glyphicon-adjust:before{content:"\e063"}.glyphicon-tint:before{content:"\e064"}.glyphicon-edit:before{content:"\e065"}.glyphicon-share:before{content:"\e066"}.glyphicon-check:before{content:"\e067"}.glyphicon-move:before{content:"\e068"}.glyphicon-step-backward:before{content:"\e069"}.glyphicon-fast-backward:before{content:"\e070"}.glyphicon-backward:before{content:"\e071"}.glyphicon-play:before{content:"\e072"}.glyphicon-pause:before{content:"\e073"}.glyphicon-stop:before{content:"\e074"}.glyphicon-forward:before{content:"\e075"}.glyphicon-fast-forward:before{content:"\e076"}.glyphicon-step-forward:before{content:"\e077"}.glyphicon-eject:before{content:"\e078"}.glyphicon-chevron-left:before{content:"\e079"}.glyphicon-chevron-right:before{content:"\e080"}.glyphicon-plus-sign:before{content:"\e081"}.glyphicon-minus-sign:before{content:"\e082"}.glyphicon-remove-sign:before{content:"\e083"}.glyphicon-ok-sign:before{content:"\e084"}.glyphicon-question-sign:before{content:"\e085"}.glyphicon-info-sign:before{content:"\e086"}.glyphicon-screenshot:before{content:"\e087"}.glyphicon-remove-circle:before{content:"\e088"}.glyphicon-ok-circle:before{content:"\e089"}.glyphicon-ban-circle:before{content:"\e090"}.glyphicon-arrow-left:before{content:"\e091"}.glyphicon-arrow-right:before{content:"\e092"}.glyphicon-arrow-up:before{content:"\e093"}.glyphicon-arrow-down:before{content:"\e094"}.glyphicon-share-alt:before{content:"\e095"}.glyphicon-resize-full:before{content:"\e096"}.glyphicon-resize-small:before{content:"\e097"}.glyphicon-exclamation-sign:before{content:"\e101"}.glyphicon-gift:before{content:"\e102"}.glyphicon-leaf:before{content:"\e103"}.glyphicon-fire:before{content:"\e104"}.glyphicon-eye-open:before{content:"\e105"}.glyphicon-eye-close:before{content:"\e106"}.glyphicon-warning-sign:before{content:"\e107"}.glyphicon-plane:before{content:"\e108"}.glyphicon-calendar:before{content:"\e109"}.glyphicon-random:before{content:"\e110"}.glyphicon-comment:before{content:"\e111"}.glyphicon-magnet:before{content:"\e112"}.glyphicon-chevron-up:before{content:"\e113"}.glyphicon-chevron-down:before{content:"\e114"}.glyphicon-retweet:before{content:"\e115"}.glyphicon-shopping-cart:before{content:"\e116"}.glyphicon-folder-close:before{content:"\e117"}.glyphicon-folder-open:before{content:"\e118"}.glyphicon-resize-vertical:before{content:"\e119"}.glyphicon-resize-horizontal:before{content:"\e120"}.glyphicon-hdd:before{content:"\e121"}.glyphicon-bullhorn:before{content:"\e122"}.glyphicon-bell:before{content:"\e123"}.glyphicon-certificate:before{content:"\e124"}.glyphicon-thumbs-up:before{content:"\e125"}.glyphicon-thumbs-down:before{content:"\e126"}.glyphicon-hand-right:before{content:"\e127"}.glyphicon-hand-left:before{content:"\e128"}.glyphicon-hand-up:before{content:"\e129"}.glyphicon-hand-down:before{content:"\e130"}.glyphicon-circle-arrow-right:before{content:"\e131"}.glyphicon-circle-arrow-left:before{content:"\e132"}.glyphicon-circle-arrow-up:before{content:"\e133"}.glyphicon-circle-arrow-down:before{content:"\e134"}.glyphicon-globe:before{content:"\e135"}.glyphicon-wrench:before{content:"\e136"}.glyphicon-tasks:before{content:"\e137"}.glyphicon-filter:before{content:"\e138"}.glyphicon-briefcase:before{content:"\e139"}.glyphicon-fullscreen:before{content:"\e140"}.glyphicon-dashboard:before{content:"\e141"}.glyphicon-paperclip:before{content:"\e142"}.glyphicon-heart-empty:before{content:"\e143"}.glyphicon-link:before{content:"\e144"}.glyphicon-phone:before{content:"\e145"}.glyphicon-pushpin:before{content:"\e146"}.glyphicon-usd:before{content:"\e148"}.glyphicon-gbp:before{content:"\e149"}.glyphicon-sort:before{content:"\e150"}.glyphicon-sort-by-alphabet:before{content:"\e151"}.glyphicon-sort-by-alphabet-alt:before{content:"\e152"}.glyphicon-sort-by-order:before{content:"\e153"}.glyphicon-sort-by-order-alt:before{content:"\e154"}.glyphicon-sort-by-attributes:before{content:"\e155"}.glyphicon-sort-by-attributes-alt:before{content:"\e156"}.glyphicon-unchecked:before{content:"\e157"}.glyphicon-expand:before{content:"\e158"}.glyphicon-collapse-down:before{content:"\e159"}.glyphicon-collapse-up:before{content:"\e160"}.glyphicon-log-in:before{content:"\e161"}.glyphicon-flash:before{content:"\e162"}.glyphicon-log-out:before{content:"\e163"}.glyphicon-new-window:before{content:"\e164"}.glyphicon-record:before{content:"\e165"}.glyphicon-save:before{content:"\e166"}.glyphicon-open:before{content:"\e167"}.glyphicon-saved:before{content:"\e168"}.glyphicon-import:before{content:"\e169"}.glyphicon-export:before{content:"\e170"}.glyphicon-send:before{content:"\e171"}.glyphicon-floppy-disk:before{content:"\e172"}.glyphicon-floppy-saved:before{content:"\e173"}.glyphicon-floppy-remove:before{content:"\e174"}.glyphicon-floppy-save:before{content:"\e175"}.glyphicon-floppy-open:before{content:"\e176"}.glyphicon-credit-card:before{content:"\e177"}.glyphicon-transfer:before{content:"\e178"}.glyphicon-cutlery:before{content:"\e179"}.glyphicon-header:before{content:"\e180"}.glyphicon-compressed:before{content:"\e181"}.glyphicon-earphone:before{content:"\e182"}.glyphicon-phone-alt:before{content:"\e183"}.glyphicon-tower:before{content:"\e184"}.glyphicon-stats:before{content:"\e185"}.glyphicon-sd-video:before{content:"\e186"}.glyphicon-hd-video:before{content:"\e187"}.glyphicon-subtitles:before{content:"\e188"}.glyphicon-sound-stereo:before{content:"\e189"}.glyphicon-sound-dolby:before{content:"\e190"}.glyphicon-sound-5-1:before{content:"\e191"}.glyphicon-sound-6-1:before{content:"\e192"}.glyphicon-sound-7-1:before{content:"\e193"}.glyphicon-copyright-mark:before{content:"\e194"}.glyphicon-registration-mark:before{content:"\e195"}.glyphicon-cloud-download:before{content:"\e197"}.glyphicon-cloud-upload:before{content:"\e198"}.glyphicon-tree-conifer:before{content:"\e199"}.glyphicon-tree-deciduous:before{content:"\e200"}.glyphicon-cd:before{content:"\e201"}.glyphicon-save-file:before{content:"\e202"}.glyphicon-open-file:before{content:"\e203"}.glyphicon-level-up:before{content:"\e204"}.glyphicon-copy:before{content:"\e205"}.glyphicon-paste:before{content:"\e206"}.glyphicon-alert:before{content:"\e209"}.glyphicon-equalizer:before{content:"\e210"}.glyphicon-king:before{content:"\e211"}.glyphicon-queen:before{content:"\e212"}.glyphicon-pawn:before{content:"\e213"}.glyphicon-bishop:before{content:"\e214"}.glyphicon-knight:before{content:"\e215"}.glyphicon-baby-formula:before{content:"\e216"}.glyphicon-tent:before{content:"\26fa"}.glyphicon-blackboard:before{content:"\e218"}.glyphicon-bed:before{content:"\e219"}.glyphicon-apple:before{content:"\f8ff"}.glyphicon-erase:before{content:"\e221"}.glyphicon-hourglass:before{content:"\231b"}.glyphicon-lamp:before{content:"\e223"}.glyphicon-duplicate:before{content:"\e224"}.glyphicon-piggy-bank:before{content:"\e225"}.glyphicon-scissors:before{content:"\e226"}.glyphicon-bitcoin:before{content:"\e227"}.glyphicon-btc:before{content:"\e227"}.glyphicon-xbt:before{content:"\e227"}.glyphicon-yen:before{content:"\00a5"}.glyphicon-jpy:before{content:"\00a5"}.glyphicon-ruble:before{content:"\20bd"}.glyphicon-rub:before{content:"\20bd"}.glyphicon-scale:before{content:"\e230"}.glyphicon-ice-lolly:before{content:"\e231"}.glyphicon-ice-lolly-tasted:before{content:"\e232"}.glyphicon-education:before{content:"\e233"}.glyphicon-option-horizontal:before{content:"\e234"}.glyphicon-option-vertical:before{content:"\e235"}.glyphicon-menu-hamburger:before{content:"\e236"}.glyphicon-modal-window:before{content:"\e237"}.glyphicon-oil:before{content:"\e238"}.glyphicon-grain:before{content:"\e239"}.glyphicon-sunglasses:before{content:"\e240"}.glyphicon-text-size:before{content:"\e241"}.glyphicon-text-color:before{content:"\e242"}.glyphicon-text-background:before{content:"\e243"}.glyphicon-object-align-top:before{content:"\e244"}.glyphicon-object-align-bottom:before{content:"\e245"}.glyphicon-object-align-horizontal:before{content:"\e246"}.glyphicon-object-align-left:before{content:"\e247"}.glyphicon-object-align-vertical:before{content:"\e248"}.glyphicon-object-align-right:before{content:"\e249"}.glyphicon-triangle-right:before{content:"\e250"}.glyphicon-triangle-left:before{content:"\e251"}.glyphicon-triangle-bottom:before{content:"\e252"}.glyphicon-triangle-top:before{content:"\e253"}.glyphicon-console:before{content:"\e254"}.glyphicon-superscript:before{content:"\e255"}.glyphicon-subscript:before{content:"\e256"}.glyphicon-menu-left:before{content:"\e257"}.glyphicon-menu-right:before{content:"\e258"}.glyphicon-menu-down:before{content:"\e259"}.glyphicon-menu-up:before{content:"\e260"}*{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}:after,:before{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}html{font-size:10px;-webkit-tap-highlight-color:rgba(0,0,0,0)}body{font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;line-height:1.42857143;color:#333;background-color:#fff}button,input,select,textarea{font-family:inherit;font-size:inherit;line-height:inherit}a{color:#337ab7;text-decoration:none}a:focus,a:hover{color:#23527c;text-decoration:underline}a:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}figure{margin:0}img{vertical-align:middle}.carousel-inner>.item>a>img,.carousel-inner>.item>img,.img-responsive,.thumbnail a>img,.thumbnail>img{display:block;max-width:100%;height:auto}.img-rounded{border-radius:6px}.img-thumbnail{display:inline-block;max-width:100%;height:auto;padding:4px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:all .2s ease-in-out;-o-transition:all .2s ease-in-out;transition:all .2s ease-in-out}.img-circle{border-radius:50%}hr{margin-top:20px;margin-bottom:20px;border:0;border-top:1px solid #eee}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);border:0}.sr-only-focusable:active,.sr-only-focusable:focus{position:static;width:auto;height:auto;margin:0;overflow:visible;clip:auto}[role=button]{cursor:pointer}.h1,.h2,.h3,.h4,.h5,.h6,h1,h2,h3,h4,h5,h6{font-family:inherit;font-weight:500;line-height:1.1;color:inherit}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-weight:400;line-height:1;color:#777}.h1,.h2,.h3,h1,h2,h3{margin-top:20px;margin-bottom:10px}.h1 .small,.h1 small,.h2 .small,.h2 small,.h3 .small,.h3 small,h1 .small,h1 small,h2 .small,h2 small,h3 .small,h3 small{font-size:65%}.h4,.h5,.h6,h4,h5,h6{margin-top:10px;margin-bottom:10px}.h4 .small,.h4 small,.h5 .small,.h5 small,.h6 .small,.h6 small,h4 .small,h4 small,h5 .small,h5 small,h6 .small,h6 small{font-size:75%}.h1,h1{font-size:36px}.h2,h2{font-size:30px}.h3,h3{font-size:24px}.h4,h4{font-size:18px}.h5,h5{font-size:14px}.h6,h6{font-size:12px}p{margin:0 0 10px}.lead{margin-bottom:20px;font-size:16px;font-weight:300;line-height:1.4}@media (min-width:768px){.lead{font-size:21px}}.small,small{font-size:85%}.mark,mark{padding:.2em;background-color:#fcf8e3}.text-left{text-align:left}.text-right{text-align:right}.text-center{text-align:center}.text-justify{text-align:justify}.text-nowrap{white-space:nowrap}.text-lowercase{text-transform:lowercase}.text-uppercase{text-transform:uppercase}.text-capitalize{text-transform:capitalize}.text-muted{color:#777}.text-primary{color:#337ab7}a.text-primary:focus,a.text-primary:hover{color:#286090}.text-success{color:#3c763d}a.text-success:focus,a.text-success:hover{color:#2b542c}.text-info{color:#31708f}a.text-info:focus,a.text-info:hover{color:#245269}.text-warning{color:#8a6d3b}a.text-warning:focus,a.text-warning:hover{color:#66512c}.text-danger{color:#a94442}a.text-danger:focus,a.text-danger:hover{color:#843534}.bg-primary{color:#fff;background-color:#337ab7}a.bg-primary:focus,a.bg-primary:hover{background-color:#286090}.bg-success{background-color:#dff0d8}a.bg-success:focus,a.bg-success:hover{background-color:#c1e2b3}.bg-info{background-color:#d9edf7}a.bg-info:focus,a.bg-info:hover{background-color:#afd9ee}.bg-warning{background-color:#fcf8e3}a.bg-warning:focus,a.bg-warning:hover{background-color:#f7ecb5}.bg-danger{background-color:#f2dede}a.bg-danger:focus,a.bg-danger:hover{background-color:#e4b9b9}.page-header{padding-bottom:9px;margin:40px 0 20px;border-bottom:1px solid #eee}ol,ul{margin-top:0;margin-bottom:10px}ol ol,ol ul,ul ol,ul ul{margin-bottom:0}.list-unstyled{padding-left:0;list-style:none}.list-inline{padding-left:0;margin-left:-5px;list-style:none}.list-inline>li{display:inline-block;padding-right:5px;padding-left:5px}dl{margin-top:0;margin-bottom:20px}dd,dt{line-height:1.42857143}dt{font-weight:700}dd{margin-left:0}@media (min-width:768px){.dl-horizontal dt{float:left;width:160px;overflow:hidden;clear:left;text-align:right;text-overflow:ellipsis;white-space:nowrap}.dl-horizontal dd{margin-left:180px}}abbr[data-original-title],abbr[title]{cursor:help;border-bottom:1px dotted #777}.initialism{font-size:90%;text-transform:uppercase}blockquote{padding:10px 20px;margin:0 0 20px;font-size:17.5px;border-left:5px solid #eee}blockquote ol:last-child,blockquote p:last-child,blockquote ul:last-child{margin-bottom:0}blockquote .small,blockquote footer,blockquote small{display:block;font-size:80%;line-height:1.42857143;color:#777}blockquote .small:before,blockquote footer:before,blockquote small:before{content:'\2014 \00A0'}.blockquote-reverse,blockquote.pull-right{padding-right:15px;padding-left:0;text-align:right;border-right:5px solid #eee;border-left:0}.blockquote-reverse .small:before,.blockquote-reverse footer:before,.blockquote-reverse small:before,blockquote.pull-right .small:before,blockquote.pull-right footer:before,blockquote.pull-right small:before{content:''}.blockquote-reverse .small:after,.blockquote-reverse footer:after,.blockquote-reverse small:after,blockquote.pull-right .small:after,blockquote.pull-right footer:after,blockquote.pull-right small:after{content:'\00A0 \2014'}address{margin-bottom:20px;font-style:normal;line-height:1.42857143}code,kbd,pre,samp{font-family:Menlo,Monaco,Consolas,"Courier New",monospace}code{padding:2px 4px;font-size:90%;color:#c7254e;background-color:#f9f2f4;border-radius:4px}kbd{padding:2px 4px;font-size:90%;color:#fff;background-color:#333;border-radius:3px;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.25);box-shadow:inset 0 -1px 0 rgba(0,0,0,.25)}kbd kbd{padding:0;font-size:100%;font-weight:700;-webkit-box-shadow:none;box-shadow:none}pre{display:block;padding:9.5px;margin:0 0 10px;font-size:13px;line-height:1.42857143;color:#333;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}pre code{padding:0;font-size:inherit;color:inherit;white-space:pre-wrap;background-color:transparent;border-radius:0}.pre-scrollable{max-height:340px;overflow-y:scroll}.container{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}@media (min-width:768px){.container{width:750px}}@media (min-width:992px){.container{width:970px}}@media (min-width:1200px){.container{width:1170px}}.container-fluid{padding-right:15px;padding-left:15px;margin-right:auto;margin-left:auto}.row{margin-right:-15px;margin-left:-15px}.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9,.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9,.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9,.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{position:relative;min-height:1px;padding-right:15px;padding-left:15px}.col-xs-1,.col-xs-10,.col-xs-11,.col-xs-12,.col-xs-2,.col-xs-3,.col-xs-4,.col-xs-5,.col-xs-6,.col-xs-7,.col-xs-8,.col-xs-9{float:left}.col-xs-12{width:100%}.col-xs-11{width:91.66666667%}.col-xs-10{width:83.33333333%}.col-xs-9{width:75%}.col-xs-8{width:66.66666667%}.col-xs-7{width:58.33333333%}.col-xs-6{width:50%}.col-xs-5{width:41.66666667%}.col-xs-4{width:33.33333333%}.col-xs-3{width:25%}.col-xs-2{width:16.66666667%}.col-xs-1{width:8.33333333%}.col-xs-pull-12{right:100%}.col-xs-pull-11{right:91.66666667%}.col-xs-pull-10{right:83.33333333%}.col-xs-pull-9{right:75%}.col-xs-pull-8{right:66.66666667%}.col-xs-pull-7{right:58.33333333%}.col-xs-pull-6{right:50%}.col-xs-pull-5{right:41.66666667%}.col-xs-pull-4{right:33.33333333%}.col-xs-pull-3{right:25%}.col-xs-pull-2{right:16.66666667%}.col-xs-pull-1{right:8.33333333%}.col-xs-pull-0{right:auto}.col-xs-push-12{left:100%}.col-xs-push-11{left:91.66666667%}.col-xs-push-10{left:83.33333333%}.col-xs-push-9{left:75%}.col-xs-push-8{left:66.66666667%}.col-xs-push-7{left:58.33333333%}.col-xs-push-6{left:50%}.col-xs-push-5{left:41.66666667%}.col-xs-push-4{left:33.33333333%}.col-xs-push-3{left:25%}.col-xs-push-2{left:16.66666667%}.col-xs-push-1{left:8.33333333%}.col-xs-push-0{left:auto}.col-xs-offset-12{margin-left:100%}.col-xs-offset-11{margin-left:91.66666667%}.col-xs-offset-10{margin-left:83.33333333%}.col-xs-offset-9{margin-left:75%}.col-xs-offset-8{margin-left:66.66666667%}.col-xs-offset-7{margin-left:58.33333333%}.col-xs-offset-6{margin-left:50%}.col-xs-offset-5{margin-left:41.66666667%}.col-xs-offset-4{margin-left:33.33333333%}.col-xs-offset-3{margin-left:25%}.col-xs-offset-2{margin-left:16.66666667%}.col-xs-offset-1{margin-left:8.33333333%}.col-xs-offset-0{margin-left:0}@media (min-width:768px){.col-sm-1,.col-sm-10,.col-sm-11,.col-sm-12,.col-sm-2,.col-sm-3,.col-sm-4,.col-sm-5,.col-sm-6,.col-sm-7,.col-sm-8,.col-sm-9{float:left}.col-sm-12{width:100%}.col-sm-11{width:91.66666667%}.col-sm-10{width:83.33333333%}.col-sm-9{width:75%}.col-sm-8{width:66.66666667%}.col-sm-7{width:58.33333333%}.col-sm-6{width:50%}.col-sm-5{width:41.66666667%}.col-sm-4{width:33.33333333%}.col-sm-3{width:25%}.col-sm-2{width:16.66666667%}.col-sm-1{width:8.33333333%}.col-sm-pull-12{right:100%}.col-sm-pull-11{right:91.66666667%}.col-sm-pull-10{right:83.33333333%}.col-sm-pull-9{right:75%}.col-sm-pull-8{right:66.66666667%}.col-sm-pull-7{right:58.33333333%}.col-sm-pull-6{right:50%}.col-sm-pull-5{right:41.66666667%}.col-sm-pull-4{right:33.33333333%}.col-sm-pull-3{right:25%}.col-sm-pull-2{right:16.66666667%}.col-sm-pull-1{right:8.33333333%}.col-sm-pull-0{right:auto}.col-sm-push-12{left:100%}.col-sm-push-11{left:91.66666667%}.col-sm-push-10{left:83.33333333%}.col-sm-push-9{left:75%}.col-sm-push-8{left:66.66666667%}.col-sm-push-7{left:58.33333333%}.col-sm-push-6{left:50%}.col-sm-push-5{left:41.66666667%}.col-sm-push-4{left:33.33333333%}.col-sm-push-3{left:25%}.col-sm-push-2{left:16.66666667%}.col-sm-push-1{left:8.33333333%}.col-sm-push-0{left:auto}.col-sm-offset-12{margin-left:100%}.col-sm-offset-11{margin-left:91.66666667%}.col-sm-offset-10{margin-left:83.33333333%}.col-sm-offset-9{margin-left:75%}.col-sm-offset-8{margin-left:66.66666667%}.col-sm-offset-7{margin-left:58.33333333%}.col-sm-offset-6{margin-left:50%}.col-sm-offset-5{margin-left:41.66666667%}.col-sm-offset-4{margin-left:33.33333333%}.col-sm-offset-3{margin-left:25%}.col-sm-offset-2{margin-left:16.66666667%}.col-sm-offset-1{margin-left:8.33333333%}.col-sm-offset-0{margin-left:0}}@media (min-width:992px){.col-md-1,.col-md-10,.col-md-11,.col-md-12,.col-md-2,.col-md-3,.col-md-4,.col-md-5,.col-md-6,.col-md-7,.col-md-8,.col-md-9{float:left}.col-md-12{width:100%}.col-md-11{width:91.66666667%}.col-md-10{width:83.33333333%}.col-md-9{width:75%}.col-md-8{width:66.66666667%}.col-md-7{width:58.33333333%}.col-md-6{width:50%}.col-md-5{width:41.66666667%}.col-md-4{width:33.33333333%}.col-md-3{width:25%}.col-md-2{width:16.66666667%}.col-md-1{width:8.33333333%}.col-md-pull-12{right:100%}.col-md-pull-11{right:91.66666667%}.col-md-pull-10{right:83.33333333%}.col-md-pull-9{right:75%}.col-md-pull-8{right:66.66666667%}.col-md-pull-7{right:58.33333333%}.col-md-pull-6{right:50%}.col-md-pull-5{right:41.66666667%}.col-md-pull-4{right:33.33333333%}.col-md-pull-3{right:25%}.col-md-pull-2{right:16.66666667%}.col-md-pull-1{right:8.33333333%}.col-md-pull-0{right:auto}.col-md-push-12{left:100%}.col-md-push-11{left:91.66666667%}.col-md-push-10{left:83.33333333%}.col-md-push-9{left:75%}.col-md-push-8{left:66.66666667%}.col-md-push-7{left:58.33333333%}.col-md-push-6{left:50%}.col-md-push-5{left:41.66666667%}.col-md-push-4{left:33.33333333%}.col-md-push-3{left:25%}.col-md-push-2{left:16.66666667%}.col-md-push-1{left:8.33333333%}.col-md-push-0{left:auto}.col-md-offset-12{margin-left:100%}.col-md-offset-11{margin-left:91.66666667%}.col-md-offset-10{margin-left:83.33333333%}.col-md-offset-9{margin-left:75%}.col-md-offset-8{margin-left:66.66666667%}.col-md-offset-7{margin-left:58.33333333%}.col-md-offset-6{margin-left:50%}.col-md-offset-5{margin-left:41.66666667%}.col-md-offset-4{margin-left:33.33333333%}.col-md-offset-3{margin-left:25%}.col-md-offset-2{margin-left:16.66666667%}.col-md-offset-1{margin-left:8.33333333%}.col-md-offset-0{margin-left:0}}@media (min-width:1200px){.col-lg-1,.col-lg-10,.col-lg-11,.col-lg-12,.col-lg-2,.col-lg-3,.col-lg-4,.col-lg-5,.col-lg-6,.col-lg-7,.col-lg-8,.col-lg-9{float:left}.col-lg-12{width:100%}.col-lg-11{width:91.66666667%}.col-lg-10{width:83.33333333%}.col-lg-9{width:75%}.col-lg-8{width:66.66666667%}.col-lg-7{width:58.33333333%}.col-lg-6{width:50%}.col-lg-5{width:41.66666667%}.col-lg-4{width:33.33333333%}.col-lg-3{width:25%}.col-lg-2{width:16.66666667%}.col-lg-1{width:8.33333333%}.col-lg-pull-12{right:100%}.col-lg-pull-11{right:91.66666667%}.col-lg-pull-10{right:83.33333333%}.col-lg-pull-9{right:75%}.col-lg-pull-8{right:66.66666667%}.col-lg-pull-7{right:58.33333333%}.col-lg-pull-6{right:50%}.col-lg-pull-5{right:41.66666667%}.col-lg-pull-4{right:33.33333333%}.col-lg-pull-3{right:25%}.col-lg-pull-2{right:16.66666667%}.col-lg-pull-1{right:8.33333333%}.col-lg-pull-0{right:auto}.col-lg-push-12{left:100%}.col-lg-push-11{left:91.66666667%}.col-lg-push-10{left:83.33333333%}.col-lg-push-9{left:75%}.col-lg-push-8{left:66.66666667%}.col-lg-push-7{left:58.33333333%}.col-lg-push-6{left:50%}.col-lg-push-5{left:41.66666667%}.col-lg-push-4{left:33.33333333%}.col-lg-push-3{left:25%}.col-lg-push-2{left:16.66666667%}.col-lg-push-1{left:8.33333333%}.col-lg-push-0{left:auto}.col-lg-offset-12{margin-left:100%}.col-lg-offset-11{margin-left:91.66666667%}.col-lg-offset-10{margin-left:83.33333333%}.col-lg-offset-9{margin-left:75%}.col-lg-offset-8{margin-left:66.66666667%}.col-lg-offset-7{margin-left:58.33333333%}.col-lg-offset-6{margin-left:50%}.col-lg-offset-5{margin-left:41.66666667%}.col-lg-offset-4{margin-left:33.33333333%}.col-lg-offset-3{margin-left:25%}.col-lg-offset-2{margin-left:16.66666667%}.col-lg-offset-1{margin-left:8.33333333%}.col-lg-offset-0{margin-left:0}}table{background-color:transparent}caption{padding-top:8px;padding-bottom:8px;color:#777;text-align:left}th{text-align:left}.table{width:100%;max-width:100%;margin-bottom:20px}.table>tbody>tr>td,.table>tbody>tr>th,.table>tfoot>tr>td,.table>tfoot>tr>th,.table>thead>tr>td,.table>thead>tr>th{padding:8px;line-height:1.42857143;vertical-align:top;border-top:1px solid #ddd}.table>thead>tr>th{vertical-align:bottom;border-bottom:2px solid #ddd}.table>caption+thead>tr:first-child>td,.table>caption+thead>tr:first-child>th,.table>colgroup+thead>tr:first-child>td,.table>colgroup+thead>tr:first-child>th,.table>thead:first-child>tr:first-child>td,.table>thead:first-child>tr:first-child>th{border-top:0}.table>tbody+tbody{border-top:2px solid #ddd}.table .table{background-color:#fff}.table-condensed>tbody>tr>td,.table-condensed>tbody>tr>th,.table-condensed>tfoot>tr>td,.table-condensed>tfoot>tr>th,.table-condensed>thead>tr>td,.table-condensed>thead>tr>th{padding:5px}.table-bordered{border:1px solid #ddd}.table-bordered>tbody>tr>td,.table-bordered>tbody>tr>th,.table-bordered>tfoot>tr>td,.table-bordered>tfoot>tr>th,.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border:1px solid #ddd}.table-bordered>thead>tr>td,.table-bordered>thead>tr>th{border-bottom-width:2px}.table-striped>tbody>tr:nth-of-type(odd){background-color:#f9f9f9}.table-hover>tbody>tr:hover{background-color:#f5f5f5}table col[class*=col-]{position:static;display:table-column;float:none}table td[class*=col-],table th[class*=col-]{position:static;display:table-cell;float:none}.table>tbody>tr.active>td,.table>tbody>tr.active>th,.table>tbody>tr>td.active,.table>tbody>tr>th.active,.table>tfoot>tr.active>td,.table>tfoot>tr.active>th,.table>tfoot>tr>td.active,.table>tfoot>tr>th.active,.table>thead>tr.active>td,.table>thead>tr.active>th,.table>thead>tr>td.active,.table>thead>tr>th.active{background-color:#f5f5f5}.table-hover>tbody>tr.active:hover>td,.table-hover>tbody>tr.active:hover>th,.table-hover>tbody>tr:hover>.active,.table-hover>tbody>tr>td.active:hover,.table-hover>tbody>tr>th.active:hover{background-color:#e8e8e8}.table>tbody>tr.success>td,.table>tbody>tr.success>th,.table>tbody>tr>td.success,.table>tbody>tr>th.success,.table>tfoot>tr.success>td,.table>tfoot>tr.success>th,.table>tfoot>tr>td.success,.table>tfoot>tr>th.success,.table>thead>tr.success>td,.table>thead>tr.success>th,.table>thead>tr>td.success,.table>thead>tr>th.success{background-color:#dff0d8}.table-hover>tbody>tr.success:hover>td,.table-hover>tbody>tr.success:hover>th,.table-hover>tbody>tr:hover>.success,.table-hover>tbody>tr>td.success:hover,.table-hover>tbody>tr>th.success:hover{background-color:#d0e9c6}.table>tbody>tr.info>td,.table>tbody>tr.info>th,.table>tbody>tr>td.info,.table>tbody>tr>th.info,.table>tfoot>tr.info>td,.table>tfoot>tr.info>th,.table>tfoot>tr>td.info,.table>tfoot>tr>th.info,.table>thead>tr.info>td,.table>thead>tr.info>th,.table>thead>tr>td.info,.table>thead>tr>th.info{background-color:#d9edf7}.table-hover>tbody>tr.info:hover>td,.table-hover>tbody>tr.info:hover>th,.table-hover>tbody>tr:hover>.info,.table-hover>tbody>tr>td.info:hover,.table-hover>tbody>tr>th.info:hover{background-color:#c4e3f3}.table>tbody>tr.warning>td,.table>tbody>tr.warning>th,.table>tbody>tr>td.warning,.table>tbody>tr>th.warning,.table>tfoot>tr.warning>td,.table>tfoot>tr.warning>th,.table>tfoot>tr>td.warning,.table>tfoot>tr>th.warning,.table>thead>tr.warning>td,.table>thead>tr.warning>th,.table>thead>tr>td.warning,.table>thead>tr>th.warning{background-color:#fcf8e3}.table-hover>tbody>tr.warning:hover>td,.table-hover>tbody>tr.warning:hover>th,.table-hover>tbody>tr:hover>.warning,.table-hover>tbody>tr>td.warning:hover,.table-hover>tbody>tr>th.warning:hover{background-color:#faf2cc}.table>tbody>tr.danger>td,.table>tbody>tr.danger>th,.table>tbody>tr>td.danger,.table>tbody>tr>th.danger,.table>tfoot>tr.danger>td,.table>tfoot>tr.danger>th,.table>tfoot>tr>td.danger,.table>tfoot>tr>th.danger,.table>thead>tr.danger>td,.table>thead>tr.danger>th,.table>thead>tr>td.danger,.table>thead>tr>th.danger{background-color:#f2dede}.table-hover>tbody>tr.danger:hover>td,.table-hover>tbody>tr.danger:hover>th,.table-hover>tbody>tr:hover>.danger,.table-hover>tbody>tr>td.danger:hover,.table-hover>tbody>tr>th.danger:hover{background-color:#ebcccc}.table-responsive{min-height:.01%;overflow-x:auto}@media screen and (max-width:767px){.table-responsive{width:100%;margin-bottom:15px;overflow-y:hidden;-ms-overflow-style:-ms-autohiding-scrollbar;border:1px solid #ddd}.table-responsive>.table{margin-bottom:0}.table-responsive>.table>tbody>tr>td,.table-responsive>.table>tbody>tr>th,.table-responsive>.table>tfoot>tr>td,.table-responsive>.table>tfoot>tr>th,.table-responsive>.table>thead>tr>td,.table-responsive>.table>thead>tr>th{white-space:nowrap}.table-responsive>.table-bordered{border:0}.table-responsive>.table-bordered>tbody>tr>td:first-child,.table-responsive>.table-bordered>tbody>tr>th:first-child,.table-responsive>.table-bordered>tfoot>tr>td:first-child,.table-responsive>.table-bordered>tfoot>tr>th:first-child,.table-responsive>.table-bordered>thead>tr>td:first-child,.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.table-responsive>.table-bordered>tbody>tr>td:last-child,.table-responsive>.table-bordered>tbody>tr>th:last-child,.table-responsive>.table-bordered>tfoot>tr>td:last-child,.table-responsive>.table-bordered>tfoot>tr>th:last-child,.table-responsive>.table-bordered>thead>tr>td:last-child,.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.table-responsive>.table-bordered>tbody>tr:last-child>td,.table-responsive>.table-bordered>tbody>tr:last-child>th,.table-responsive>.table-bordered>tfoot>tr:last-child>td,.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}}fieldset{min-width:0;padding:0;margin:0;border:0}legend{display:block;width:100%;padding:0;margin-bottom:20px;font-size:21px;line-height:inherit;color:#333;border:0;border-bottom:1px solid #e5e5e5}label{display:inline-block;max-width:100%;margin-bottom:5px;font-weight:700}input[type=search]{-webkit-box-sizing:border-box;-moz-box-sizing:border-box;box-sizing:border-box}input[type=checkbox],input[type=radio]{margin:4px 0 0;margin-top:1px\9;line-height:normal}input[type=file]{display:block}input[type=range]{display:block;width:100%}select[multiple],select[size]{height:auto}input[type=file]:focus,input[type=checkbox]:focus,input[type=radio]:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}output{display:block;padding-top:7px;font-size:14px;line-height:1.42857143;color:#555}.form-control{display:block;width:100%;height:34px;padding:6px 12px;font-size:14px;line-height:1.42857143;color:#555;background-color:#fff;background-image:none;border:1px solid #ccc;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075);-webkit-transition:border-color ease-in-out .15s,-webkit-box-shadow ease-in-out .15s;-o-transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s;transition:border-color ease-in-out .15s,box-shadow ease-in-out .15s}.form-control:focus{border-color:#66afe9;outline:0;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6);box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 8px rgba(102,175,233,.6)}.form-control::-moz-placeholder{color:#999;opacity:1}.form-control:-ms-input-placeholder{color:#999}.form-control::-webkit-input-placeholder{color:#999}.form-control::-ms-expand{background-color:transparent;border:0}.form-control[disabled],.form-control[readonly],fieldset[disabled] .form-control{background-color:#eee;opacity:1}.form-control[disabled],fieldset[disabled] .form-control{cursor:not-allowed}textarea.form-control{height:auto}input[type=search]{-webkit-appearance:none}@media screen and (-webkit-min-device-pixel-ratio:0){input[type=date].form-control,input[type=time].form-control,input[type=datetime-local].form-control,input[type=month].form-control{line-height:34px}.input-group-sm input[type=date],.input-group-sm input[type=time],.input-group-sm input[type=datetime-local],.input-group-sm input[type=month],input[type=date].input-sm,input[type=time].input-sm,input[type=datetime-local].input-sm,input[type=month].input-sm{line-height:30px}.input-group-lg input[type=date],.input-group-lg input[type=time],.input-group-lg input[type=datetime-local],.input-group-lg input[type=month],input[type=date].input-lg,input[type=time].input-lg,input[type=datetime-local].input-lg,input[type=month].input-lg{line-height:46px}}.form-group{margin-bottom:15px}.checkbox,.radio{position:relative;display:block;margin-top:10px;margin-bottom:10px}.checkbox label,.radio label{min-height:20px;padding-left:20px;margin-bottom:0;font-weight:400;cursor:pointer}.checkbox input[type=checkbox],.checkbox-inline input[type=checkbox],.radio input[type=radio],.radio-inline input[type=radio]{position:absolute;margin-top:4px\9;margin-left:-20px}.checkbox+.checkbox,.radio+.radio{margin-top:-5px}.checkbox-inline,.radio-inline{position:relative;display:inline-block;padding-left:20px;margin-bottom:0;font-weight:400;vertical-align:middle;cursor:pointer}.checkbox-inline+.checkbox-inline,.radio-inline+.radio-inline{margin-top:0;margin-left:10px}fieldset[disabled] input[type=checkbox],fieldset[disabled] input[type=radio],input[type=checkbox].disabled,input[type=checkbox][disabled],input[type=radio].disabled,input[type=radio][disabled]{cursor:not-allowed}.checkbox-inline.disabled,.radio-inline.disabled,fieldset[disabled] .checkbox-inline,fieldset[disabled] .radio-inline{cursor:not-allowed}.checkbox.disabled label,.radio.disabled label,fieldset[disabled] .checkbox label,fieldset[disabled] .radio label{cursor:not-allowed}.form-control-static{min-height:34px;padding-top:7px;padding-bottom:7px;margin-bottom:0}.form-control-static.input-lg,.form-control-static.input-sm{padding-right:0;padding-left:0}.input-sm{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-sm{height:30px;line-height:30px}select[multiple].input-sm,textarea.input-sm{height:auto}.form-group-sm .form-control{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.form-group-sm select.form-control{height:30px;line-height:30px}.form-group-sm select[multiple].form-control,.form-group-sm textarea.form-control{height:auto}.form-group-sm .form-control-static{height:30px;min-height:32px;padding:6px 10px;font-size:12px;line-height:1.5}.input-lg{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-lg{height:46px;line-height:46px}select[multiple].input-lg,textarea.input-lg{height:auto}.form-group-lg .form-control{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.form-group-lg select.form-control{height:46px;line-height:46px}.form-group-lg select[multiple].form-control,.form-group-lg textarea.form-control{height:auto}.form-group-lg .form-control-static{height:46px;min-height:38px;padding:11px 16px;font-size:18px;line-height:1.3333333}.has-feedback{position:relative}.has-feedback .form-control{padding-right:42.5px}.form-control-feedback{position:absolute;top:0;right:0;z-index:2;display:block;width:34px;height:34px;line-height:34px;text-align:center;pointer-events:none}.form-group-lg .form-control+.form-control-feedback,.input-group-lg+.form-control-feedback,.input-lg+.form-control-feedback{width:46px;height:46px;line-height:46px}.form-group-sm .form-control+.form-control-feedback,.input-group-sm+.form-control-feedback,.input-sm+.form-control-feedback{width:30px;height:30px;line-height:30px}.has-success .checkbox,.has-success .checkbox-inline,.has-success .control-label,.has-success .help-block,.has-success .radio,.has-success .radio-inline,.has-success.checkbox label,.has-success.checkbox-inline label,.has-success.radio label,.has-success.radio-inline label{color:#3c763d}.has-success .form-control{border-color:#3c763d;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-success .form-control:focus{border-color:#2b542c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #67b168}.has-success .input-group-addon{color:#3c763d;background-color:#dff0d8;border-color:#3c763d}.has-success .form-control-feedback{color:#3c763d}.has-warning .checkbox,.has-warning .checkbox-inline,.has-warning .control-label,.has-warning .help-block,.has-warning .radio,.has-warning .radio-inline,.has-warning.checkbox label,.has-warning.checkbox-inline label,.has-warning.radio label,.has-warning.radio-inline label{color:#8a6d3b}.has-warning .form-control{border-color:#8a6d3b;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-warning .form-control:focus{border-color:#66512c;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #c0a16b}.has-warning .input-group-addon{color:#8a6d3b;background-color:#fcf8e3;border-color:#8a6d3b}.has-warning .form-control-feedback{color:#8a6d3b}.has-error .checkbox,.has-error .checkbox-inline,.has-error .control-label,.has-error .help-block,.has-error .radio,.has-error .radio-inline,.has-error.checkbox label,.has-error.checkbox-inline label,.has-error.radio label,.has-error.radio-inline label{color:#a94442}.has-error .form-control{border-color:#a94442;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075);box-shadow:inset 0 1px 1px rgba(0,0,0,.075)}.has-error .form-control:focus{border-color:#843534;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483;box-shadow:inset 0 1px 1px rgba(0,0,0,.075),0 0 6px #ce8483}.has-error .input-group-addon{color:#a94442;background-color:#f2dede;border-color:#a94442}.has-error .form-control-feedback{color:#a94442}.has-feedback label~.form-control-feedback{top:25px}.has-feedback label.sr-only~.form-control-feedback{top:0}.help-block{display:block;margin-top:5px;margin-bottom:10px;color:#737373}@media (min-width:768px){.form-inline .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.form-inline .form-control{display:inline-block;width:auto;vertical-align:middle}.form-inline .form-control-static{display:inline-block}.form-inline .input-group{display:inline-table;vertical-align:middle}.form-inline .input-group .form-control,.form-inline .input-group .input-group-addon,.form-inline .input-group .input-group-btn{width:auto}.form-inline .input-group>.form-control{width:100%}.form-inline .control-label{margin-bottom:0;vertical-align:middle}.form-inline .checkbox,.form-inline .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.form-inline .checkbox label,.form-inline .radio label{padding-left:0}.form-inline .checkbox input[type=checkbox],.form-inline .radio input[type=radio]{position:relative;margin-left:0}.form-inline .has-feedback .form-control-feedback{top:0}}.form-horizontal .checkbox,.form-horizontal .checkbox-inline,.form-horizontal .radio,.form-horizontal .radio-inline{padding-top:7px;margin-top:0;margin-bottom:0}.form-horizontal .checkbox,.form-horizontal .radio{min-height:27px}.form-horizontal .form-group{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.form-horizontal .control-label{padding-top:7px;margin-bottom:0;text-align:right}}.form-horizontal .has-feedback .form-control-feedback{right:15px}@media (min-width:768px){.form-horizontal .form-group-lg .control-label{padding-top:11px;font-size:18px}}@media (min-width:768px){.form-horizontal .form-group-sm .control-label{padding-top:6px;font-size:12px}}.btn{display:inline-block;padding:6px 12px;margin-bottom:0;font-size:14px;font-weight:400;line-height:1.42857143;text-align:center;white-space:nowrap;vertical-align:middle;-ms-touch-action:manipulation;touch-action:manipulation;cursor:pointer;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;user-select:none;background-image:none;border:1px solid transparent;border-radius:4px}.btn.active.focus,.btn.active:focus,.btn.focus,.btn:active.focus,.btn:active:focus,.btn:focus{outline:5px auto -webkit-focus-ring-color;outline-offset:-2px}.btn.focus,.btn:focus,.btn:hover{color:#333;text-decoration:none}.btn.active,.btn:active{background-image:none;outline:0;-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn.disabled,.btn[disabled],fieldset[disabled] .btn{cursor:not-allowed;filter:alpha(opacity=65);-webkit-box-shadow:none;box-shadow:none;opacity:.65}a.btn.disabled,fieldset[disabled] a.btn{pointer-events:none}.btn-default{color:#333;background-color:#fff;border-color:#ccc}.btn-default.focus,.btn-default:focus{color:#333;background-color:#e6e6e6;border-color:#8c8c8c}.btn-default:hover{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{color:#333;background-color:#e6e6e6;border-color:#adadad}.btn-default.active.focus,.btn-default.active:focus,.btn-default.active:hover,.btn-default:active.focus,.btn-default:active:focus,.btn-default:active:hover,.open>.dropdown-toggle.btn-default.focus,.open>.dropdown-toggle.btn-default:focus,.open>.dropdown-toggle.btn-default:hover{color:#333;background-color:#d4d4d4;border-color:#8c8c8c}.btn-default.active,.btn-default:active,.open>.dropdown-toggle.btn-default{background-image:none}.btn-default.disabled.focus,.btn-default.disabled:focus,.btn-default.disabled:hover,.btn-default[disabled].focus,.btn-default[disabled]:focus,.btn-default[disabled]:hover,fieldset[disabled] .btn-default.focus,fieldset[disabled] .btn-default:focus,fieldset[disabled] .btn-default:hover{background-color:#fff;border-color:#ccc}.btn-default .badge{color:#fff;background-color:#333}.btn-primary{color:#fff;background-color:#337ab7;border-color:#2e6da4}.btn-primary.focus,.btn-primary:focus{color:#fff;background-color:#286090;border-color:#122b40}.btn-primary:hover{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{color:#fff;background-color:#286090;border-color:#204d74}.btn-primary.active.focus,.btn-primary.active:focus,.btn-primary.active:hover,.btn-primary:active.focus,.btn-primary:active:focus,.btn-primary:active:hover,.open>.dropdown-toggle.btn-primary.focus,.open>.dropdown-toggle.btn-primary:focus,.open>.dropdown-toggle.btn-primary:hover{color:#fff;background-color:#204d74;border-color:#122b40}.btn-primary.active,.btn-primary:active,.open>.dropdown-toggle.btn-primary{background-image:none}.btn-primary.disabled.focus,.btn-primary.disabled:focus,.btn-primary.disabled:hover,.btn-primary[disabled].focus,.btn-primary[disabled]:focus,.btn-primary[disabled]:hover,fieldset[disabled] .btn-primary.focus,fieldset[disabled] .btn-primary:focus,fieldset[disabled] .btn-primary:hover{background-color:#337ab7;border-color:#2e6da4}.btn-primary .badge{color:#337ab7;background-color:#fff}.btn-success{color:#fff;background-color:#5cb85c;border-color:#4cae4c}.btn-success.focus,.btn-success:focus{color:#fff;background-color:#449d44;border-color:#255625}.btn-success:hover{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{color:#fff;background-color:#449d44;border-color:#398439}.btn-success.active.focus,.btn-success.active:focus,.btn-success.active:hover,.btn-success:active.focus,.btn-success:active:focus,.btn-success:active:hover,.open>.dropdown-toggle.btn-success.focus,.open>.dropdown-toggle.btn-success:focus,.open>.dropdown-toggle.btn-success:hover{color:#fff;background-color:#398439;border-color:#255625}.btn-success.active,.btn-success:active,.open>.dropdown-toggle.btn-success{background-image:none}.btn-success.disabled.focus,.btn-success.disabled:focus,.btn-success.disabled:hover,.btn-success[disabled].focus,.btn-success[disabled]:focus,.btn-success[disabled]:hover,fieldset[disabled] .btn-success.focus,fieldset[disabled] .btn-success:focus,fieldset[disabled] .btn-success:hover{background-color:#5cb85c;border-color:#4cae4c}.btn-success .badge{color:#5cb85c;background-color:#fff}.btn-info{color:#fff;background-color:#5bc0de;border-color:#46b8da}.btn-info.focus,.btn-info:focus{color:#fff;background-color:#31b0d5;border-color:#1b6d85}.btn-info:hover{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{color:#fff;background-color:#31b0d5;border-color:#269abc}.btn-info.active.focus,.btn-info.active:focus,.btn-info.active:hover,.btn-info:active.focus,.btn-info:active:focus,.btn-info:active:hover,.open>.dropdown-toggle.btn-info.focus,.open>.dropdown-toggle.btn-info:focus,.open>.dropdown-toggle.btn-info:hover{color:#fff;background-color:#269abc;border-color:#1b6d85}.btn-info.active,.btn-info:active,.open>.dropdown-toggle.btn-info{background-image:none}.btn-info.disabled.focus,.btn-info.disabled:focus,.btn-info.disabled:hover,.btn-info[disabled].focus,.btn-info[disabled]:focus,.btn-info[disabled]:hover,fieldset[disabled] .btn-info.focus,fieldset[disabled] .btn-info:focus,fieldset[disabled] .btn-info:hover{background-color:#5bc0de;border-color:#46b8da}.btn-info .badge{color:#5bc0de;background-color:#fff}.btn-warning{color:#fff;background-color:#f0ad4e;border-color:#eea236}.btn-warning.focus,.btn-warning:focus{color:#fff;background-color:#ec971f;border-color:#985f0d}.btn-warning:hover{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{color:#fff;background-color:#ec971f;border-color:#d58512}.btn-warning.active.focus,.btn-warning.active:focus,.btn-warning.active:hover,.btn-warning:active.focus,.btn-warning:active:focus,.btn-warning:active:hover,.open>.dropdown-toggle.btn-warning.focus,.open>.dropdown-toggle.btn-warning:focus,.open>.dropdown-toggle.btn-warning:hover{color:#fff;background-color:#d58512;border-color:#985f0d}.btn-warning.active,.btn-warning:active,.open>.dropdown-toggle.btn-warning{background-image:none}.btn-warning.disabled.focus,.btn-warning.disabled:focus,.btn-warning.disabled:hover,.btn-warning[disabled].focus,.btn-warning[disabled]:focus,.btn-warning[disabled]:hover,fieldset[disabled] .btn-warning.focus,fieldset[disabled] .btn-warning:focus,fieldset[disabled] .btn-warning:hover{background-color:#f0ad4e;border-color:#eea236}.btn-warning .badge{color:#f0ad4e;background-color:#fff}.btn-danger{color:#fff;background-color:#d9534f;border-color:#d43f3a}.btn-danger.focus,.btn-danger:focus{color:#fff;background-color:#c9302c;border-color:#761c19}.btn-danger:hover{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{color:#fff;background-color:#c9302c;border-color:#ac2925}.btn-danger.active.focus,.btn-danger.active:focus,.btn-danger.active:hover,.btn-danger:active.focus,.btn-danger:active:focus,.btn-danger:active:hover,.open>.dropdown-toggle.btn-danger.focus,.open>.dropdown-toggle.btn-danger:focus,.open>.dropdown-toggle.btn-danger:hover{color:#fff;background-color:#ac2925;border-color:#761c19}.btn-danger.active,.btn-danger:active,.open>.dropdown-toggle.btn-danger{background-image:none}.btn-danger.disabled.focus,.btn-danger.disabled:focus,.btn-danger.disabled:hover,.btn-danger[disabled].focus,.btn-danger[disabled]:focus,.btn-danger[disabled]:hover,fieldset[disabled] .btn-danger.focus,fieldset[disabled] .btn-danger:focus,fieldset[disabled] .btn-danger:hover{background-color:#d9534f;border-color:#d43f3a}.btn-danger .badge{color:#d9534f;background-color:#fff}.btn-link{font-weight:400;color:#337ab7;border-radius:0}.btn-link,.btn-link.active,.btn-link:active,.btn-link[disabled],fieldset[disabled] .btn-link{background-color:transparent;-webkit-box-shadow:none;box-shadow:none}.btn-link,.btn-link:active,.btn-link:focus,.btn-link:hover{border-color:transparent}.btn-link:focus,.btn-link:hover{color:#23527c;text-decoration:underline;background-color:transparent}.btn-link[disabled]:focus,.btn-link[disabled]:hover,fieldset[disabled] .btn-link:focus,fieldset[disabled] .btn-link:hover{color:#777;text-decoration:none}.btn-group-lg>.btn,.btn-lg{padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}.btn-group-sm>.btn,.btn-sm{padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}.btn-group-xs>.btn,.btn-xs{padding:1px 5px;font-size:12px;line-height:1.5;border-radius:3px}.btn-block{display:block;width:100%}.btn-block+.btn-block{margin-top:5px}input[type=button].btn-block,input[type=reset].btn-block,input[type=submit].btn-block{width:100%}.fade{opacity:0;-webkit-transition:opacity .15s linear;-o-transition:opacity .15s linear;transition:opacity .15s linear}.fade.in{opacity:1}.collapse{display:none}.collapse.in{display:block}tr.collapse.in{display:table-row}tbody.collapse.in{display:table-row-group}.collapsing{position:relative;height:0;overflow:hidden;-webkit-transition-timing-function:ease;-o-transition-timing-function:ease;transition-timing-function:ease;-webkit-transition-duration:.35s;-o-transition-duration:.35s;transition-duration:.35s;-webkit-transition-property:height,visibility;-o-transition-property:height,visibility;transition-property:height,visibility}.caret{display:inline-block;width:0;height:0;margin-left:2px;vertical-align:middle;border-top:4px dashed;border-top:4px solid\9;border-right:4px solid transparent;border-left:4px solid transparent}.dropdown,.dropup{position:relative}.dropdown-toggle:focus{outline:0}.dropdown-menu{position:absolute;top:100%;left:0;z-index:1000;display:none;float:left;min-width:160px;padding:5px 0;margin:2px 0 0;font-size:14px;text-align:left;list-style:none;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.15);border-radius:4px;-webkit-box-shadow:0 6px 12px rgba(0,0,0,.175);box-shadow:0 6px 12px rgba(0,0,0,.175)}.dropdown-menu.pull-right{right:0;left:auto}.dropdown-menu .divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.dropdown-menu>li>a{display:block;padding:3px 20px;clear:both;font-weight:400;line-height:1.42857143;color:#333;white-space:nowrap}.dropdown-menu>li>a:focus,.dropdown-menu>li>a:hover{color:#262626;text-decoration:none;background-color:#f5f5f5}.dropdown-menu>.active>a,.dropdown-menu>.active>a:focus,.dropdown-menu>.active>a:hover{color:#fff;text-decoration:none;background-color:#337ab7;outline:0}.dropdown-menu>.disabled>a,.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{color:#777}.dropdown-menu>.disabled>a:focus,.dropdown-menu>.disabled>a:hover{text-decoration:none;cursor:not-allowed;background-color:transparent;background-image:none;filter:progid:DXImageTransform.Microsoft.gradient(enabled=false)}.open>.dropdown-menu{display:block}.open>a{outline:0}.dropdown-menu-right{right:0;left:auto}.dropdown-menu-left{right:auto;left:0}.dropdown-header{display:block;padding:3px 20px;font-size:12px;line-height:1.42857143;color:#777;white-space:nowrap}.dropdown-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:990}.pull-right>.dropdown-menu{right:0;left:auto}.dropup .caret,.navbar-fixed-bottom .dropdown .caret{content:"";border-top:0;border-bottom:4px dashed;border-bottom:4px solid\9}.dropup .dropdown-menu,.navbar-fixed-bottom .dropdown .dropdown-menu{top:auto;bottom:100%;margin-bottom:2px}@media (min-width:768px){.navbar-right .dropdown-menu{right:0;left:auto}.navbar-right .dropdown-menu-left{right:auto;left:0}}.btn-group,.btn-group-vertical{position:relative;display:inline-block;vertical-align:middle}.btn-group-vertical>.btn,.btn-group>.btn{position:relative;float:left}.btn-group-vertical>.btn.active,.btn-group-vertical>.btn:active,.btn-group-vertical>.btn:focus,.btn-group-vertical>.btn:hover,.btn-group>.btn.active,.btn-group>.btn:active,.btn-group>.btn:focus,.btn-group>.btn:hover{z-index:2}.btn-group .btn+.btn,.btn-group .btn+.btn-group,.btn-group .btn-group+.btn,.btn-group .btn-group+.btn-group{margin-left:-1px}.btn-toolbar{margin-left:-5px}.btn-toolbar .btn,.btn-toolbar .btn-group,.btn-toolbar .input-group{float:left}.btn-toolbar>.btn,.btn-toolbar>.btn-group,.btn-toolbar>.input-group{margin-left:5px}.btn-group>.btn:not(:first-child):not(:last-child):not(.dropdown-toggle){border-radius:0}.btn-group>.btn:first-child{margin-left:0}.btn-group>.btn:first-child:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn:last-child:not(:first-child),.btn-group>.dropdown-toggle:not(:first-child){border-top-left-radius:0;border-bottom-left-radius:0}.btn-group>.btn-group{float:left}.btn-group>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-top-right-radius:0;border-bottom-right-radius:0}.btn-group>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-bottom-left-radius:0}.btn-group .dropdown-toggle:active,.btn-group.open .dropdown-toggle{outline:0}.btn-group>.btn+.dropdown-toggle{padding-right:8px;padding-left:8px}.btn-group>.btn-lg+.dropdown-toggle{padding-right:12px;padding-left:12px}.btn-group.open .dropdown-toggle{-webkit-box-shadow:inset 0 3px 5px rgba(0,0,0,.125);box-shadow:inset 0 3px 5px rgba(0,0,0,.125)}.btn-group.open .dropdown-toggle.btn-link{-webkit-box-shadow:none;box-shadow:none}.btn .caret{margin-left:0}.btn-lg .caret{border-width:5px 5px 0;border-bottom-width:0}.dropup .btn-lg .caret{border-width:0 5px 5px}.btn-group-vertical>.btn,.btn-group-vertical>.btn-group,.btn-group-vertical>.btn-group>.btn{display:block;float:none;width:100%;max-width:100%}.btn-group-vertical>.btn-group>.btn{float:none}.btn-group-vertical>.btn+.btn,.btn-group-vertical>.btn+.btn-group,.btn-group-vertical>.btn-group+.btn,.btn-group-vertical>.btn-group+.btn-group{margin-top:-1px;margin-left:0}.btn-group-vertical>.btn:not(:first-child):not(:last-child){border-radius:0}.btn-group-vertical>.btn:first-child:not(:last-child){border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn:last-child:not(:first-child){border-top-left-radius:0;border-top-right-radius:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}.btn-group-vertical>.btn-group:not(:first-child):not(:last-child)>.btn{border-radius:0}.btn-group-vertical>.btn-group:first-child:not(:last-child)>.btn:last-child,.btn-group-vertical>.btn-group:first-child:not(:last-child)>.dropdown-toggle{border-bottom-right-radius:0;border-bottom-left-radius:0}.btn-group-vertical>.btn-group:last-child:not(:first-child)>.btn:first-child{border-top-left-radius:0;border-top-right-radius:0}.btn-group-justified{display:table;width:100%;table-layout:fixed;border-collapse:separate}.btn-group-justified>.btn,.btn-group-justified>.btn-group{display:table-cell;float:none;width:1%}.btn-group-justified>.btn-group .btn{width:100%}.btn-group-justified>.btn-group .dropdown-menu{left:auto}[data-toggle=buttons]>.btn input[type=checkbox],[data-toggle=buttons]>.btn input[type=radio],[data-toggle=buttons]>.btn-group>.btn input[type=checkbox],[data-toggle=buttons]>.btn-group>.btn input[type=radio]{position:absolute;clip:rect(0,0,0,0);pointer-events:none}.input-group{position:relative;display:table;border-collapse:separate}.input-group[class*=col-]{float:none;padding-right:0;padding-left:0}.input-group .form-control{position:relative;z-index:2;float:left;width:100%;margin-bottom:0}.input-group .form-control:focus{z-index:3}.input-group-lg>.form-control,.input-group-lg>.input-group-addon,.input-group-lg>.input-group-btn>.btn{height:46px;padding:10px 16px;font-size:18px;line-height:1.3333333;border-radius:6px}select.input-group-lg>.form-control,select.input-group-lg>.input-group-addon,select.input-group-lg>.input-group-btn>.btn{height:46px;line-height:46px}select[multiple].input-group-lg>.form-control,select[multiple].input-group-lg>.input-group-addon,select[multiple].input-group-lg>.input-group-btn>.btn,textarea.input-group-lg>.form-control,textarea.input-group-lg>.input-group-addon,textarea.input-group-lg>.input-group-btn>.btn{height:auto}.input-group-sm>.form-control,.input-group-sm>.input-group-addon,.input-group-sm>.input-group-btn>.btn{height:30px;padding:5px 10px;font-size:12px;line-height:1.5;border-radius:3px}select.input-group-sm>.form-control,select.input-group-sm>.input-group-addon,select.input-group-sm>.input-group-btn>.btn{height:30px;line-height:30px}select[multiple].input-group-sm>.form-control,select[multiple].input-group-sm>.input-group-addon,select[multiple].input-group-sm>.input-group-btn>.btn,textarea.input-group-sm>.form-control,textarea.input-group-sm>.input-group-addon,textarea.input-group-sm>.input-group-btn>.btn{height:auto}.input-group .form-control,.input-group-addon,.input-group-btn{display:table-cell}.input-group .form-control:not(:first-child):not(:last-child),.input-group-addon:not(:first-child):not(:last-child),.input-group-btn:not(:first-child):not(:last-child){border-radius:0}.input-group-addon,.input-group-btn{width:1%;white-space:nowrap;vertical-align:middle}.input-group-addon{padding:6px 12px;font-size:14px;font-weight:400;line-height:1;color:#555;text-align:center;background-color:#eee;border:1px solid #ccc;border-radius:4px}.input-group-addon.input-sm{padding:5px 10px;font-size:12px;border-radius:3px}.input-group-addon.input-lg{padding:10px 16px;font-size:18px;border-radius:6px}.input-group-addon input[type=checkbox],.input-group-addon input[type=radio]{margin-top:0}.input-group .form-control:first-child,.input-group-addon:first-child,.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group>.btn,.input-group-btn:first-child>.dropdown-toggle,.input-group-btn:last-child>.btn-group:not(:last-child)>.btn,.input-group-btn:last-child>.btn:not(:last-child):not(.dropdown-toggle){border-top-right-radius:0;border-bottom-right-radius:0}.input-group-addon:first-child{border-right:0}.input-group .form-control:last-child,.input-group-addon:last-child,.input-group-btn:first-child>.btn-group:not(:first-child)>.btn,.input-group-btn:first-child>.btn:not(:first-child),.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group>.btn,.input-group-btn:last-child>.dropdown-toggle{border-top-left-radius:0;border-bottom-left-radius:0}.input-group-addon:last-child{border-left:0}.input-group-btn{position:relative;font-size:0;white-space:nowrap}.input-group-btn>.btn{position:relative}.input-group-btn>.btn+.btn{margin-left:-1px}.input-group-btn>.btn:active,.input-group-btn>.btn:focus,.input-group-btn>.btn:hover{z-index:2}.input-group-btn:first-child>.btn,.input-group-btn:first-child>.btn-group{margin-right:-1px}.input-group-btn:last-child>.btn,.input-group-btn:last-child>.btn-group{z-index:2;margin-left:-1px}.nav{padding-left:0;margin-bottom:0;list-style:none}.nav>li{position:relative;display:block}.nav>li>a{position:relative;display:block;padding:10px 15px}.nav>li>a:focus,.nav>li>a:hover{text-decoration:none;background-color:#eee}.nav>li.disabled>a{color:#777}.nav>li.disabled>a:focus,.nav>li.disabled>a:hover{color:#777;text-decoration:none;cursor:not-allowed;background-color:transparent}.nav .open>a,.nav .open>a:focus,.nav .open>a:hover{background-color:#eee;border-color:#337ab7}.nav .nav-divider{height:1px;margin:9px 0;overflow:hidden;background-color:#e5e5e5}.nav>li>a>img{max-width:none}.nav-tabs{border-bottom:1px solid #ddd}.nav-tabs>li{float:left;margin-bottom:-1px}.nav-tabs>li>a{margin-right:2px;line-height:1.42857143;border:1px solid transparent;border-radius:4px 4px 0 0}.nav-tabs>li>a:hover{border-color:#eee #eee #ddd}.nav-tabs>li.active>a,.nav-tabs>li.active>a:focus,.nav-tabs>li.active>a:hover{color:#555;cursor:default;background-color:#fff;border:1px solid #ddd;border-bottom-color:transparent}.nav-tabs.nav-justified{width:100%;border-bottom:0}.nav-tabs.nav-justified>li{float:none}.nav-tabs.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-tabs.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-tabs.nav-justified>li{display:table-cell;width:1%}.nav-tabs.nav-justified>li>a{margin-bottom:0}}.nav-tabs.nav-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs.nav-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs.nav-justified>.active>a,.nav-tabs.nav-justified>.active>a:focus,.nav-tabs.nav-justified>.active>a:hover{border-bottom-color:#fff}}.nav-pills>li{float:left}.nav-pills>li>a{border-radius:4px}.nav-pills>li+li{margin-left:2px}.nav-pills>li.active>a,.nav-pills>li.active>a:focus,.nav-pills>li.active>a:hover{color:#fff;background-color:#337ab7}.nav-stacked>li{float:none}.nav-stacked>li+li{margin-top:2px;margin-left:0}.nav-justified{width:100%}.nav-justified>li{float:none}.nav-justified>li>a{margin-bottom:5px;text-align:center}.nav-justified>.dropdown .dropdown-menu{top:auto;left:auto}@media (min-width:768px){.nav-justified>li{display:table-cell;width:1%}.nav-justified>li>a{margin-bottom:0}}.nav-tabs-justified{border-bottom:0}.nav-tabs-justified>li>a{margin-right:0;border-radius:4px}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border:1px solid #ddd}@media (min-width:768px){.nav-tabs-justified>li>a{border-bottom:1px solid #ddd;border-radius:4px 4px 0 0}.nav-tabs-justified>.active>a,.nav-tabs-justified>.active>a:focus,.nav-tabs-justified>.active>a:hover{border-bottom-color:#fff}}.tab-content>.tab-pane{display:none}.tab-content>.active{display:block}.nav-tabs .dropdown-menu{margin-top:-1px;border-top-left-radius:0;border-top-right-radius:0}.navbar{position:relative;min-height:50px;margin-bottom:20px;border:1px solid transparent}@media (min-width:768px){.navbar{border-radius:4px}}@media (min-width:768px){.navbar-header{float:left}}.navbar-collapse{padding-right:15px;padding-left:15px;overflow-x:visible;-webkit-overflow-scrolling:touch;border-top:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1)}.navbar-collapse.in{overflow-y:auto}@media (min-width:768px){.navbar-collapse{width:auto;border-top:0;-webkit-box-shadow:none;box-shadow:none}.navbar-collapse.collapse{display:block!important;height:auto!important;padding-bottom:0;overflow:visible!important}.navbar-collapse.in{overflow-y:visible}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse,.navbar-static-top .navbar-collapse{padding-right:0;padding-left:0}}.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:340px}@media (max-device-width:480px) and (orientation:landscape){.navbar-fixed-bottom .navbar-collapse,.navbar-fixed-top .navbar-collapse{max-height:200px}}.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:-15px;margin-left:-15px}@media (min-width:768px){.container-fluid>.navbar-collapse,.container-fluid>.navbar-header,.container>.navbar-collapse,.container>.navbar-header{margin-right:0;margin-left:0}}.navbar-static-top{z-index:1000;border-width:0 0 1px}@media (min-width:768px){.navbar-static-top{border-radius:0}}.navbar-fixed-bottom,.navbar-fixed-top{position:fixed;right:0;left:0;z-index:1030}@media (min-width:768px){.navbar-fixed-bottom,.navbar-fixed-top{border-radius:0}}.navbar-fixed-top{top:0;border-width:0 0 1px}.navbar-fixed-bottom{bottom:0;margin-bottom:0;border-width:1px 0 0}.navbar-brand{float:left;height:50px;padding:15px 15px;font-size:18px;line-height:20px}.navbar-brand:focus,.navbar-brand:hover{text-decoration:none}.navbar-brand>img{display:block}@media (min-width:768px){.navbar>.container .navbar-brand,.navbar>.container-fluid .navbar-brand{margin-left:-15px}}.navbar-toggle{position:relative;float:right;padding:9px 10px;margin-top:8px;margin-right:15px;margin-bottom:8px;background-color:transparent;background-image:none;border:1px solid transparent;border-radius:4px}.navbar-toggle:focus{outline:0}.navbar-toggle .icon-bar{display:block;width:22px;height:2px;border-radius:1px}.navbar-toggle .icon-bar+.icon-bar{margin-top:4px}@media (min-width:768px){.navbar-toggle{display:none}}.navbar-nav{margin:7.5px -15px}.navbar-nav>li>a{padding-top:10px;padding-bottom:10px;line-height:20px}@media (max-width:767px){.navbar-nav .open .dropdown-menu{position:static;float:none;width:auto;margin-top:0;background-color:transparent;border:0;-webkit-box-shadow:none;box-shadow:none}.navbar-nav .open .dropdown-menu .dropdown-header,.navbar-nav .open .dropdown-menu>li>a{padding:5px 15px 5px 25px}.navbar-nav .open .dropdown-menu>li>a{line-height:20px}.navbar-nav .open .dropdown-menu>li>a:focus,.navbar-nav .open .dropdown-menu>li>a:hover{background-image:none}}@media (min-width:768px){.navbar-nav{float:left;margin:0}.navbar-nav>li{float:left}.navbar-nav>li>a{padding-top:15px;padding-bottom:15px}}.navbar-form{padding:10px 15px;margin-top:8px;margin-right:-15px;margin-bottom:8px;margin-left:-15px;border-top:1px solid transparent;border-bottom:1px solid transparent;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1);box-shadow:inset 0 1px 0 rgba(255,255,255,.1),0 1px 0 rgba(255,255,255,.1)}@media (min-width:768px){.navbar-form .form-group{display:inline-block;margin-bottom:0;vertical-align:middle}.navbar-form .form-control{display:inline-block;width:auto;vertical-align:middle}.navbar-form .form-control-static{display:inline-block}.navbar-form .input-group{display:inline-table;vertical-align:middle}.navbar-form .input-group .form-control,.navbar-form .input-group .input-group-addon,.navbar-form .input-group .input-group-btn{width:auto}.navbar-form .input-group>.form-control{width:100%}.navbar-form .control-label{margin-bottom:0;vertical-align:middle}.navbar-form .checkbox,.navbar-form .radio{display:inline-block;margin-top:0;margin-bottom:0;vertical-align:middle}.navbar-form .checkbox label,.navbar-form .radio label{padding-left:0}.navbar-form .checkbox input[type=checkbox],.navbar-form .radio input[type=radio]{position:relative;margin-left:0}.navbar-form .has-feedback .form-control-feedback{top:0}}@media (max-width:767px){.navbar-form .form-group{margin-bottom:5px}.navbar-form .form-group:last-child{margin-bottom:0}}@media (min-width:768px){.navbar-form{width:auto;padding-top:0;padding-bottom:0;margin-right:0;margin-left:0;border:0;-webkit-box-shadow:none;box-shadow:none}}.navbar-nav>li>.dropdown-menu{margin-top:0;border-top-left-radius:0;border-top-right-radius:0}.navbar-fixed-bottom .navbar-nav>li>.dropdown-menu{margin-bottom:0;border-top-left-radius:4px;border-top-right-radius:4px;border-bottom-right-radius:0;border-bottom-left-radius:0}.navbar-btn{margin-top:8px;margin-bottom:8px}.navbar-btn.btn-sm{margin-top:10px;margin-bottom:10px}.navbar-btn.btn-xs{margin-top:14px;margin-bottom:14px}.navbar-text{margin-top:15px;margin-bottom:15px}@media (min-width:768px){.navbar-text{float:left;margin-right:15px;margin-left:15px}}@media (min-width:768px){.navbar-left{float:left!important}.navbar-right{float:right!important;margin-right:-15px}.navbar-right~.navbar-right{margin-right:0}}.navbar-default{background-color:#f8f8f8;border-color:#e7e7e7}.navbar-default .navbar-brand{color:#777}.navbar-default .navbar-brand:focus,.navbar-default .navbar-brand:hover{color:#5e5e5e;background-color:transparent}.navbar-default .navbar-text{color:#777}.navbar-default .navbar-nav>li>a{color:#777}.navbar-default .navbar-nav>li>a:focus,.navbar-default .navbar-nav>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav>.active>a,.navbar-default .navbar-nav>.active>a:focus,.navbar-default .navbar-nav>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav>.disabled>a,.navbar-default .navbar-nav>.disabled>a:focus,.navbar-default .navbar-nav>.disabled>a:hover{color:#ccc;background-color:transparent}.navbar-default .navbar-toggle{border-color:#ddd}.navbar-default .navbar-toggle:focus,.navbar-default .navbar-toggle:hover{background-color:#ddd}.navbar-default .navbar-toggle .icon-bar{background-color:#888}.navbar-default .navbar-collapse,.navbar-default .navbar-form{border-color:#e7e7e7}.navbar-default .navbar-nav>.open>a,.navbar-default .navbar-nav>.open>a:focus,.navbar-default .navbar-nav>.open>a:hover{color:#555;background-color:#e7e7e7}@media (max-width:767px){.navbar-default .navbar-nav .open .dropdown-menu>li>a{color:#777}.navbar-default .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>li>a:hover{color:#333;background-color:transparent}.navbar-default .navbar-nav .open .dropdown-menu>.active>a,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.active>a:hover{color:#555;background-color:#e7e7e7}.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-default .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#ccc;background-color:transparent}}.navbar-default .navbar-link{color:#777}.navbar-default .navbar-link:hover{color:#333}.navbar-default .btn-link{color:#777}.navbar-default .btn-link:focus,.navbar-default .btn-link:hover{color:#333}.navbar-default .btn-link[disabled]:focus,.navbar-default .btn-link[disabled]:hover,fieldset[disabled] .navbar-default .btn-link:focus,fieldset[disabled] .navbar-default .btn-link:hover{color:#ccc}.navbar-inverse{background-color:#222;border-color:#080808}.navbar-inverse .navbar-brand{color:#9d9d9d}.navbar-inverse .navbar-brand:focus,.navbar-inverse .navbar-brand:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-text{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav>li>a:focus,.navbar-inverse .navbar-nav>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav>.active>a,.navbar-inverse .navbar-nav>.active>a:focus,.navbar-inverse .navbar-nav>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav>.disabled>a,.navbar-inverse .navbar-nav>.disabled>a:focus,.navbar-inverse .navbar-nav>.disabled>a:hover{color:#444;background-color:transparent}.navbar-inverse .navbar-toggle{border-color:#333}.navbar-inverse .navbar-toggle:focus,.navbar-inverse .navbar-toggle:hover{background-color:#333}.navbar-inverse .navbar-toggle .icon-bar{background-color:#fff}.navbar-inverse .navbar-collapse,.navbar-inverse .navbar-form{border-color:#101010}.navbar-inverse .navbar-nav>.open>a,.navbar-inverse .navbar-nav>.open>a:focus,.navbar-inverse .navbar-nav>.open>a:hover{color:#fff;background-color:#080808}@media (max-width:767px){.navbar-inverse .navbar-nav .open .dropdown-menu>.dropdown-header{border-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu .divider{background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a{color:#9d9d9d}.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>li>a:hover{color:#fff;background-color:transparent}.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.active>a:hover{color:#fff;background-color:#080808}.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:focus,.navbar-inverse .navbar-nav .open .dropdown-menu>.disabled>a:hover{color:#444;background-color:transparent}}.navbar-inverse .navbar-link{color:#9d9d9d}.navbar-inverse .navbar-link:hover{color:#fff}.navbar-inverse .btn-link{color:#9d9d9d}.navbar-inverse .btn-link:focus,.navbar-inverse .btn-link:hover{color:#fff}.navbar-inverse .btn-link[disabled]:focus,.navbar-inverse .btn-link[disabled]:hover,fieldset[disabled] .navbar-inverse .btn-link:focus,fieldset[disabled] .navbar-inverse .btn-link:hover{color:#444}.breadcrumb{padding:8px 15px;margin-bottom:20px;list-style:none;background-color:#f5f5f5;border-radius:4px}.breadcrumb>li{display:inline-block}.breadcrumb>li+li:before{padding:0 5px;color:#ccc;content:"/\00a0"}.breadcrumb>.active{color:#777}.pagination{display:inline-block;padding-left:0;margin:20px 0;border-radius:4px}.pagination>li{display:inline}.pagination>li>a,.pagination>li>span{position:relative;float:left;padding:6px 12px;margin-left:-1px;line-height:1.42857143;color:#337ab7;text-decoration:none;background-color:#fff;border:1px solid #ddd}.pagination>li:first-child>a,.pagination>li:first-child>span{margin-left:0;border-top-left-radius:4px;border-bottom-left-radius:4px}.pagination>li:last-child>a,.pagination>li:last-child>span{border-top-right-radius:4px;border-bottom-right-radius:4px}.pagination>li>a:focus,.pagination>li>a:hover,.pagination>li>span:focus,.pagination>li>span:hover{z-index:2;color:#23527c;background-color:#eee;border-color:#ddd}.pagination>.active>a,.pagination>.active>a:focus,.pagination>.active>a:hover,.pagination>.active>span,.pagination>.active>span:focus,.pagination>.active>span:hover{z-index:3;color:#fff;cursor:default;background-color:#337ab7;border-color:#337ab7}.pagination>.disabled>a,.pagination>.disabled>a:focus,.pagination>.disabled>a:hover,.pagination>.disabled>span,.pagination>.disabled>span:focus,.pagination>.disabled>span:hover{color:#777;cursor:not-allowed;background-color:#fff;border-color:#ddd}.pagination-lg>li>a,.pagination-lg>li>span{padding:10px 16px;font-size:18px;line-height:1.3333333}.pagination-lg>li:first-child>a,.pagination-lg>li:first-child>span{border-top-left-radius:6px;border-bottom-left-radius:6px}.pagination-lg>li:last-child>a,.pagination-lg>li:last-child>span{border-top-right-radius:6px;border-bottom-right-radius:6px}.pagination-sm>li>a,.pagination-sm>li>span{padding:5px 10px;font-size:12px;line-height:1.5}.pagination-sm>li:first-child>a,.pagination-sm>li:first-child>span{border-top-left-radius:3px;border-bottom-left-radius:3px}.pagination-sm>li:last-child>a,.pagination-sm>li:last-child>span{border-top-right-radius:3px;border-bottom-right-radius:3px}.pager{padding-left:0;margin:20px 0;text-align:center;list-style:none}.pager li{display:inline}.pager li>a,.pager li>span{display:inline-block;padding:5px 14px;background-color:#fff;border:1px solid #ddd;border-radius:15px}.pager li>a:focus,.pager li>a:hover{text-decoration:none;background-color:#eee}.pager .next>a,.pager .next>span{float:right}.pager .previous>a,.pager .previous>span{float:left}.pager .disabled>a,.pager .disabled>a:focus,.pager .disabled>a:hover,.pager .disabled>span{color:#777;cursor:not-allowed;background-color:#fff}.label{display:inline;padding:.2em .6em .3em;font-size:75%;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.25em}a.label:focus,a.label:hover{color:#fff;text-decoration:none;cursor:pointer}.label:empty{display:none}.btn .label{position:relative;top:-1px}.label-default{background-color:#777}.label-default[href]:focus,.label-default[href]:hover{background-color:#5e5e5e}.label-primary{background-color:#337ab7}.label-primary[href]:focus,.label-primary[href]:hover{background-color:#286090}.label-success{background-color:#5cb85c}.label-success[href]:focus,.label-success[href]:hover{background-color:#449d44}.label-info{background-color:#5bc0de}.label-info[href]:focus,.label-info[href]:hover{background-color:#31b0d5}.label-warning{background-color:#f0ad4e}.label-warning[href]:focus,.label-warning[href]:hover{background-color:#ec971f}.label-danger{background-color:#d9534f}.label-danger[href]:focus,.label-danger[href]:hover{background-color:#c9302c}.badge{display:inline-block;min-width:10px;padding:3px 7px;font-size:12px;font-weight:700;line-height:1;color:#fff;text-align:center;white-space:nowrap;vertical-align:middle;background-color:#777;border-radius:10px}.badge:empty{display:none}.btn .badge{position:relative;top:-1px}.btn-group-xs>.btn .badge,.btn-xs .badge{top:0;padding:1px 5px}a.badge:focus,a.badge:hover{color:#fff;text-decoration:none;cursor:pointer}.list-group-item.active>.badge,.nav-pills>.active>a>.badge{color:#337ab7;background-color:#fff}.list-group-item>.badge{float:right}.list-group-item>.badge+.badge{margin-right:5px}.nav-pills>li>a>.badge{margin-left:3px}.jumbotron{padding-top:30px;padding-bottom:30px;margin-bottom:30px;color:inherit;background-color:#eee}.jumbotron .h1,.jumbotron h1{color:inherit}.jumbotron p{margin-bottom:15px;font-size:21px;font-weight:200}.jumbotron>hr{border-top-color:#d5d5d5}.container .jumbotron,.container-fluid .jumbotron{padding-right:15px;padding-left:15px;border-radius:6px}.jumbotron .container{max-width:100%}@media screen and (min-width:768px){.jumbotron{padding-top:48px;padding-bottom:48px}.container .jumbotron,.container-fluid .jumbotron{padding-right:60px;padding-left:60px}.jumbotron .h1,.jumbotron h1{font-size:63px}}.thumbnail{display:block;padding:4px;margin-bottom:20px;line-height:1.42857143;background-color:#fff;border:1px solid #ddd;border-radius:4px;-webkit-transition:border .2s ease-in-out;-o-transition:border .2s ease-in-out;transition:border .2s ease-in-out}.thumbnail a>img,.thumbnail>img{margin-right:auto;margin-left:auto}a.thumbnail.active,a.thumbnail:focus,a.thumbnail:hover{border-color:#337ab7}.thumbnail .caption{padding:9px;color:#333}.alert{padding:15px;margin-bottom:20px;border:1px solid transparent;border-radius:4px}.alert h4{margin-top:0;color:inherit}.alert .alert-link{font-weight:700}.alert>p,.alert>ul{margin-bottom:0}.alert>p+p{margin-top:5px}.alert-dismissable,.alert-dismissible{padding-right:35px}.alert-dismissable .close,.alert-dismissible .close{position:relative;top:-2px;right:-21px;color:inherit}.alert-success{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.alert-success hr{border-top-color:#c9e2b3}.alert-success .alert-link{color:#2b542c}.alert-info{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.alert-info hr{border-top-color:#a6e1ec}.alert-info .alert-link{color:#245269}.alert-warning{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.alert-warning hr{border-top-color:#f7e1b5}.alert-warning .alert-link{color:#66512c}.alert-danger{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.alert-danger hr{border-top-color:#e4b9c0}.alert-danger .alert-link{color:#843534}@-webkit-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@-o-keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}@keyframes progress-bar-stripes{from{background-position:40px 0}to{background-position:0 0}}.progress{height:20px;margin-bottom:20px;overflow:hidden;background-color:#f5f5f5;border-radius:4px;-webkit-box-shadow:inset 0 1px 2px rgba(0,0,0,.1);box-shadow:inset 0 1px 2px rgba(0,0,0,.1)}.progress-bar{float:left;width:0;height:100%;font-size:12px;line-height:20px;color:#fff;text-align:center;background-color:#337ab7;-webkit-box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);box-shadow:inset 0 -1px 0 rgba(0,0,0,.15);-webkit-transition:width .6s ease;-o-transition:width .6s ease;transition:width .6s ease}.progress-bar-striped,.progress-striped .progress-bar{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);-webkit-background-size:40px 40px;background-size:40px 40px}.progress-bar.active,.progress.active .progress-bar{-webkit-animation:progress-bar-stripes 2s linear infinite;-o-animation:progress-bar-stripes 2s linear infinite;animation:progress-bar-stripes 2s linear infinite}.progress-bar-success{background-color:#5cb85c}.progress-striped .progress-bar-success{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-info{background-color:#5bc0de}.progress-striped .progress-bar-info{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-warning{background-color:#f0ad4e}.progress-striped .progress-bar-warning{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.progress-bar-danger{background-color:#d9534f}.progress-striped .progress-bar-danger{background-image:-webkit-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:-o-linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent);background-image:linear-gradient(45deg,rgba(255,255,255,.15) 25%,transparent 25%,transparent 50%,rgba(255,255,255,.15) 50%,rgba(255,255,255,.15) 75%,transparent 75%,transparent)}.media{margin-top:15px}.media:first-child{margin-top:0}.media,.media-body{overflow:hidden;zoom:1}.media-body{width:10000px}.media-object{display:block}.media-object.img-thumbnail{max-width:none}.media-right,.media>.pull-right{padding-left:10px}.media-left,.media>.pull-left{padding-right:10px}.media-body,.media-left,.media-right{display:table-cell;vertical-align:top}.media-middle{vertical-align:middle}.media-bottom{vertical-align:bottom}.media-heading{margin-top:0;margin-bottom:5px}.media-list{padding-left:0;list-style:none}.list-group{padding-left:0;margin-bottom:20px}.list-group-item{position:relative;display:block;padding:10px 15px;margin-bottom:-1px;background-color:#fff;border:1px solid #ddd}.list-group-item:first-child{border-top-left-radius:4px;border-top-right-radius:4px}.list-group-item:last-child{margin-bottom:0;border-bottom-right-radius:4px;border-bottom-left-radius:4px}a.list-group-item,button.list-group-item{color:#555}a.list-group-item .list-group-item-heading,button.list-group-item .list-group-item-heading{color:#333}a.list-group-item:focus,a.list-group-item:hover,button.list-group-item:focus,button.list-group-item:hover{color:#555;text-decoration:none;background-color:#f5f5f5}button.list-group-item{width:100%;text-align:left}.list-group-item.disabled,.list-group-item.disabled:focus,.list-group-item.disabled:hover{color:#777;cursor:not-allowed;background-color:#eee}.list-group-item.disabled .list-group-item-heading,.list-group-item.disabled:focus .list-group-item-heading,.list-group-item.disabled:hover .list-group-item-heading{color:inherit}.list-group-item.disabled .list-group-item-text,.list-group-item.disabled:focus .list-group-item-text,.list-group-item.disabled:hover .list-group-item-text{color:#777}.list-group-item.active,.list-group-item.active:focus,.list-group-item.active:hover{z-index:2;color:#fff;background-color:#337ab7;border-color:#337ab7}.list-group-item.active .list-group-item-heading,.list-group-item.active .list-group-item-heading>.small,.list-group-item.active .list-group-item-heading>small,.list-group-item.active:focus .list-group-item-heading,.list-group-item.active:focus .list-group-item-heading>.small,.list-group-item.active:focus .list-group-item-heading>small,.list-group-item.active:hover .list-group-item-heading,.list-group-item.active:hover .list-group-item-heading>.small,.list-group-item.active:hover .list-group-item-heading>small{color:inherit}.list-group-item.active .list-group-item-text,.list-group-item.active:focus .list-group-item-text,.list-group-item.active:hover .list-group-item-text{color:#c7ddef}.list-group-item-success{color:#3c763d;background-color:#dff0d8}a.list-group-item-success,button.list-group-item-success{color:#3c763d}a.list-group-item-success .list-group-item-heading,button.list-group-item-success .list-group-item-heading{color:inherit}a.list-group-item-success:focus,a.list-group-item-success:hover,button.list-group-item-success:focus,button.list-group-item-success:hover{color:#3c763d;background-color:#d0e9c6}a.list-group-item-success.active,a.list-group-item-success.active:focus,a.list-group-item-success.active:hover,button.list-group-item-success.active,button.list-group-item-success.active:focus,button.list-group-item-success.active:hover{color:#fff;background-color:#3c763d;border-color:#3c763d}.list-group-item-info{color:#31708f;background-color:#d9edf7}a.list-group-item-info,button.list-group-item-info{color:#31708f}a.list-group-item-info .list-group-item-heading,button.list-group-item-info .list-group-item-heading{color:inherit}a.list-group-item-info:focus,a.list-group-item-info:hover,button.list-group-item-info:focus,button.list-group-item-info:hover{color:#31708f;background-color:#c4e3f3}a.list-group-item-info.active,a.list-group-item-info.active:focus,a.list-group-item-info.active:hover,button.list-group-item-info.active,button.list-group-item-info.active:focus,button.list-group-item-info.active:hover{color:#fff;background-color:#31708f;border-color:#31708f}.list-group-item-warning{color:#8a6d3b;background-color:#fcf8e3}a.list-group-item-warning,button.list-group-item-warning{color:#8a6d3b}a.list-group-item-warning .list-group-item-heading,button.list-group-item-warning .list-group-item-heading{color:inherit}a.list-group-item-warning:focus,a.list-group-item-warning:hover,button.list-group-item-warning:focus,button.list-group-item-warning:hover{color:#8a6d3b;background-color:#faf2cc}a.list-group-item-warning.active,a.list-group-item-warning.active:focus,a.list-group-item-warning.active:hover,button.list-group-item-warning.active,button.list-group-item-warning.active:focus,button.list-group-item-warning.active:hover{color:#fff;background-color:#8a6d3b;border-color:#8a6d3b}.list-group-item-danger{color:#a94442;background-color:#f2dede}a.list-group-item-danger,button.list-group-item-danger{color:#a94442}a.list-group-item-danger .list-group-item-heading,button.list-group-item-danger .list-group-item-heading{color:inherit}a.list-group-item-danger:focus,a.list-group-item-danger:hover,button.list-group-item-danger:focus,button.list-group-item-danger:hover{color:#a94442;background-color:#ebcccc}a.list-group-item-danger.active,a.list-group-item-danger.active:focus,a.list-group-item-danger.active:hover,button.list-group-item-danger.active,button.list-group-item-danger.active:focus,button.list-group-item-danger.active:hover{color:#fff;background-color:#a94442;border-color:#a94442}.list-group-item-heading{margin-top:0;margin-bottom:5px}.list-group-item-text{margin-bottom:0;line-height:1.3}.panel{margin-bottom:20px;background-color:#fff;border:1px solid transparent;border-radius:4px;-webkit-box-shadow:0 1px 1px rgba(0,0,0,.05);box-shadow:0 1px 1px rgba(0,0,0,.05)}.panel-body{padding:15px}.panel-heading{padding:10px 15px;border-bottom:1px solid transparent;border-top-left-radius:3px;border-top-right-radius:3px}.panel-heading>.dropdown .dropdown-toggle{color:inherit}.panel-title{margin-top:0;margin-bottom:0;font-size:16px;color:inherit}.panel-title>.small,.panel-title>.small>a,.panel-title>a,.panel-title>small,.panel-title>small>a{color:inherit}.panel-footer{padding:10px 15px;background-color:#f5f5f5;border-top:1px solid #ddd;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.list-group,.panel>.panel-collapse>.list-group{margin-bottom:0}.panel>.list-group .list-group-item,.panel>.panel-collapse>.list-group .list-group-item{border-width:1px 0;border-radius:0}.panel>.list-group:first-child .list-group-item:first-child,.panel>.panel-collapse>.list-group:first-child .list-group-item:first-child{border-top:0;border-top-left-radius:3px;border-top-right-radius:3px}.panel>.list-group:last-child .list-group-item:last-child,.panel>.panel-collapse>.list-group:last-child .list-group-item:last-child{border-bottom:0;border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.panel-heading+.panel-collapse>.list-group .list-group-item:first-child{border-top-left-radius:0;border-top-right-radius:0}.panel-heading+.list-group .list-group-item:first-child{border-top-width:0}.list-group+.panel-footer{border-top-width:0}.panel>.panel-collapse>.table,.panel>.table,.panel>.table-responsive>.table{margin-bottom:0}.panel>.panel-collapse>.table caption,.panel>.table caption,.panel>.table-responsive>.table caption{padding-right:15px;padding-left:15px}.panel>.table-responsive:first-child>.table:first-child,.panel>.table:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child,.panel>.table:first-child>thead:first-child>tr:first-child{border-top-left-radius:3px;border-top-right-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:first-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:first-child,.panel>.table:first-child>thead:first-child>tr:first-child td:first-child,.panel>.table:first-child>thead:first-child>tr:first-child th:first-child{border-top-left-radius:3px}.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table-responsive:first-child>.table:first-child>thead:first-child>tr:first-child th:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child td:last-child,.panel>.table:first-child>tbody:first-child>tr:first-child th:last-child,.panel>.table:first-child>thead:first-child>tr:first-child td:last-child,.panel>.table:first-child>thead:first-child>tr:first-child th:last-child{border-top-right-radius:3px}.panel>.table-responsive:last-child>.table:last-child,.panel>.table:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child{border-bottom-right-radius:3px;border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:first-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:first-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:first-child{border-bottom-left-radius:3px}.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table-responsive:last-child>.table:last-child>tfoot:last-child>tr:last-child th:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child td:last-child,.panel>.table:last-child>tbody:last-child>tr:last-child th:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child td:last-child,.panel>.table:last-child>tfoot:last-child>tr:last-child th:last-child{border-bottom-right-radius:3px}.panel>.panel-body+.table,.panel>.panel-body+.table-responsive,.panel>.table+.panel-body,.panel>.table-responsive+.panel-body{border-top:1px solid #ddd}.panel>.table>tbody:first-child>tr:first-child td,.panel>.table>tbody:first-child>tr:first-child th{border-top:0}.panel>.table-bordered,.panel>.table-responsive>.table-bordered{border:0}.panel>.table-bordered>tbody>tr>td:first-child,.panel>.table-bordered>tbody>tr>th:first-child,.panel>.table-bordered>tfoot>tr>td:first-child,.panel>.table-bordered>tfoot>tr>th:first-child,.panel>.table-bordered>thead>tr>td:first-child,.panel>.table-bordered>thead>tr>th:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:first-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:first-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:first-child,.panel>.table-responsive>.table-bordered>thead>tr>td:first-child,.panel>.table-responsive>.table-bordered>thead>tr>th:first-child{border-left:0}.panel>.table-bordered>tbody>tr>td:last-child,.panel>.table-bordered>tbody>tr>th:last-child,.panel>.table-bordered>tfoot>tr>td:last-child,.panel>.table-bordered>tfoot>tr>th:last-child,.panel>.table-bordered>thead>tr>td:last-child,.panel>.table-bordered>thead>tr>th:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>td:last-child,.panel>.table-responsive>.table-bordered>tbody>tr>th:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>td:last-child,.panel>.table-responsive>.table-bordered>tfoot>tr>th:last-child,.panel>.table-responsive>.table-bordered>thead>tr>td:last-child,.panel>.table-responsive>.table-bordered>thead>tr>th:last-child{border-right:0}.panel>.table-bordered>tbody>tr:first-child>td,.panel>.table-bordered>tbody>tr:first-child>th,.panel>.table-bordered>thead>tr:first-child>td,.panel>.table-bordered>thead>tr:first-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:first-child>th,.panel>.table-responsive>.table-bordered>thead>tr:first-child>td,.panel>.table-responsive>.table-bordered>thead>tr:first-child>th{border-bottom:0}.panel>.table-bordered>tbody>tr:last-child>td,.panel>.table-bordered>tbody>tr:last-child>th,.panel>.table-bordered>tfoot>tr:last-child>td,.panel>.table-bordered>tfoot>tr:last-child>th,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>td,.panel>.table-responsive>.table-bordered>tbody>tr:last-child>th,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>td,.panel>.table-responsive>.table-bordered>tfoot>tr:last-child>th{border-bottom:0}.panel>.table-responsive{margin-bottom:0;border:0}.panel-group{margin-bottom:20px}.panel-group .panel{margin-bottom:0;border-radius:4px}.panel-group .panel+.panel{margin-top:5px}.panel-group .panel-heading{border-bottom:0}.panel-group .panel-heading+.panel-collapse>.list-group,.panel-group .panel-heading+.panel-collapse>.panel-body{border-top:1px solid #ddd}.panel-group .panel-footer{border-top:0}.panel-group .panel-footer+.panel-collapse .panel-body{border-bottom:1px solid #ddd}.panel-default{border-color:#ddd}.panel-default>.panel-heading{color:#333;background-color:#f5f5f5;border-color:#ddd}.panel-default>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ddd}.panel-default>.panel-heading .badge{color:#f5f5f5;background-color:#333}.panel-default>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ddd}.panel-primary{border-color:#337ab7}.panel-primary>.panel-heading{color:#fff;background-color:#337ab7;border-color:#337ab7}.panel-primary>.panel-heading+.panel-collapse>.panel-body{border-top-color:#337ab7}.panel-primary>.panel-heading .badge{color:#337ab7;background-color:#fff}.panel-primary>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#337ab7}.panel-success{border-color:#d6e9c6}.panel-success>.panel-heading{color:#3c763d;background-color:#dff0d8;border-color:#d6e9c6}.panel-success>.panel-heading+.panel-collapse>.panel-body{border-top-color:#d6e9c6}.panel-success>.panel-heading .badge{color:#dff0d8;background-color:#3c763d}.panel-success>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#d6e9c6}.panel-info{border-color:#bce8f1}.panel-info>.panel-heading{color:#31708f;background-color:#d9edf7;border-color:#bce8f1}.panel-info>.panel-heading+.panel-collapse>.panel-body{border-top-color:#bce8f1}.panel-info>.panel-heading .badge{color:#d9edf7;background-color:#31708f}.panel-info>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#bce8f1}.panel-warning{border-color:#faebcc}.panel-warning>.panel-heading{color:#8a6d3b;background-color:#fcf8e3;border-color:#faebcc}.panel-warning>.panel-heading+.panel-collapse>.panel-body{border-top-color:#faebcc}.panel-warning>.panel-heading .badge{color:#fcf8e3;background-color:#8a6d3b}.panel-warning>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#faebcc}.panel-danger{border-color:#ebccd1}.panel-danger>.panel-heading{color:#a94442;background-color:#f2dede;border-color:#ebccd1}.panel-danger>.panel-heading+.panel-collapse>.panel-body{border-top-color:#ebccd1}.panel-danger>.panel-heading .badge{color:#f2dede;background-color:#a94442}.panel-danger>.panel-footer+.panel-collapse>.panel-body{border-bottom-color:#ebccd1}.embed-responsive{position:relative;display:block;height:0;padding:0;overflow:hidden}.embed-responsive .embed-responsive-item,.embed-responsive embed,.embed-responsive iframe,.embed-responsive object,.embed-responsive video{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.embed-responsive-16by9{padding-bottom:56.25%}.embed-responsive-4by3{padding-bottom:75%}.well{min-height:20px;padding:19px;margin-bottom:20px;background-color:#f5f5f5;border:1px solid #e3e3e3;border-radius:4px;-webkit-box-shadow:inset 0 1px 1px rgba(0,0,0,.05);box-shadow:inset 0 1px 1px rgba(0,0,0,.05)}.well blockquote{border-color:#ddd;border-color:rgba(0,0,0,.15)}.well-lg{padding:24px;border-radius:6px}.well-sm{padding:9px;border-radius:3px}.close{float:right;font-size:21px;font-weight:700;line-height:1;color:#000;text-shadow:0 1px 0 #fff;filter:alpha(opacity=20);opacity:.2}.close:focus,.close:hover{color:#000;text-decoration:none;cursor:pointer;filter:alpha(opacity=50);opacity:.5}button.close{-webkit-appearance:none;padding:0;cursor:pointer;background:0 0;border:0}.modal-open{overflow:hidden}.modal{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1050;display:none;overflow:hidden;-webkit-overflow-scrolling:touch;outline:0}.modal.fade .modal-dialog{-webkit-transition:-webkit-transform .3s ease-out;-o-transition:-o-transform .3s ease-out;transition:transform .3s ease-out;-webkit-transform:translate(0,-25%);-ms-transform:translate(0,-25%);-o-transform:translate(0,-25%);transform:translate(0,-25%)}.modal.in .modal-dialog{-webkit-transform:translate(0,0);-ms-transform:translate(0,0);-o-transform:translate(0,0);transform:translate(0,0)}.modal-open .modal{overflow-x:hidden;overflow-y:auto}.modal-dialog{position:relative;width:auto;margin:10px}.modal-content{position:relative;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #999;border:1px solid rgba(0,0,0,.2);border-radius:6px;outline:0;-webkit-box-shadow:0 3px 9px rgba(0,0,0,.5);box-shadow:0 3px 9px rgba(0,0,0,.5)}.modal-backdrop{position:fixed;top:0;right:0;bottom:0;left:0;z-index:1040;background-color:#000}.modal-backdrop.fade{filter:alpha(opacity=0);opacity:0}.modal-backdrop.in{filter:alpha(opacity=50);opacity:.5}.modal-header{padding:15px;border-bottom:1px solid #e5e5e5}.modal-header .close{margin-top:-2px}.modal-title{margin:0;line-height:1.42857143}.modal-body{position:relative;padding:15px}.modal-footer{padding:15px;text-align:right;border-top:1px solid #e5e5e5}.modal-footer .btn+.btn{margin-bottom:0;margin-left:5px}.modal-footer .btn-group .btn+.btn{margin-left:-1px}.modal-footer .btn-block+.btn-block{margin-left:0}.modal-scrollbar-measure{position:absolute;top:-9999px;width:50px;height:50px;overflow:scroll}@media (min-width:768px){.modal-dialog{width:600px;margin:30px auto}.modal-content{-webkit-box-shadow:0 5px 15px rgba(0,0,0,.5);box-shadow:0 5px 15px rgba(0,0,0,.5)}.modal-sm{width:300px}}@media (min-width:992px){.modal-lg{width:900px}}.tooltip{position:absolute;z-index:1070;display:block;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:12px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;filter:alpha(opacity=0);opacity:0;line-break:auto}.tooltip.in{filter:alpha(opacity=90);opacity:.9}.tooltip.top{padding:5px 0;margin-top:-3px}.tooltip.right{padding:0 5px;margin-left:3px}.tooltip.bottom{padding:5px 0;margin-top:3px}.tooltip.left{padding:0 5px;margin-left:-3px}.tooltip-inner{max-width:200px;padding:3px 8px;color:#fff;text-align:center;background-color:#000;border-radius:4px}.tooltip-arrow{position:absolute;width:0;height:0;border-color:transparent;border-style:solid}.tooltip.top .tooltip-arrow{bottom:0;left:50%;margin-left:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-left .tooltip-arrow{right:5px;bottom:0;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.top-right .tooltip-arrow{bottom:0;left:5px;margin-bottom:-5px;border-width:5px 5px 0;border-top-color:#000}.tooltip.right .tooltip-arrow{top:50%;left:0;margin-top:-5px;border-width:5px 5px 5px 0;border-right-color:#000}.tooltip.left .tooltip-arrow{top:50%;right:0;margin-top:-5px;border-width:5px 0 5px 5px;border-left-color:#000}.tooltip.bottom .tooltip-arrow{top:0;left:50%;margin-left:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-left .tooltip-arrow{top:0;right:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.tooltip.bottom-right .tooltip-arrow{top:0;left:5px;margin-top:-5px;border-width:0 5px 5px;border-bottom-color:#000}.popover{position:absolute;top:0;left:0;z-index:1060;display:none;max-width:276px;padding:1px;font-family:"Helvetica Neue",Helvetica,Arial,sans-serif;font-size:14px;font-style:normal;font-weight:400;line-height:1.42857143;text-align:left;text-align:start;text-decoration:none;text-shadow:none;text-transform:none;letter-spacing:normal;word-break:normal;word-spacing:normal;word-wrap:normal;white-space:normal;background-color:#fff;-webkit-background-clip:padding-box;background-clip:padding-box;border:1px solid #ccc;border:1px solid rgba(0,0,0,.2);border-radius:6px;-webkit-box-shadow:0 5px 10px rgba(0,0,0,.2);box-shadow:0 5px 10px rgba(0,0,0,.2);line-break:auto}.popover.top{margin-top:-10px}.popover.right{margin-left:10px}.popover.bottom{margin-top:10px}.popover.left{margin-left:-10px}.popover-title{padding:8px 14px;margin:0;font-size:14px;background-color:#f7f7f7;border-bottom:1px solid #ebebeb;border-radius:5px 5px 0 0}.popover-content{padding:9px 14px}.popover>.arrow,.popover>.arrow:after{position:absolute;display:block;width:0;height:0;border-color:transparent;border-style:solid}.popover>.arrow{border-width:11px}.popover>.arrow:after{content:"";border-width:10px}.popover.top>.arrow{bottom:-11px;left:50%;margin-left:-11px;border-top-color:#999;border-top-color:rgba(0,0,0,.25);border-bottom-width:0}.popover.top>.arrow:after{bottom:1px;margin-left:-10px;content:" ";border-top-color:#fff;border-bottom-width:0}.popover.right>.arrow{top:50%;left:-11px;margin-top:-11px;border-right-color:#999;border-right-color:rgba(0,0,0,.25);border-left-width:0}.popover.right>.arrow:after{bottom:-10px;left:1px;content:" ";border-right-color:#fff;border-left-width:0}.popover.bottom>.arrow{top:-11px;left:50%;margin-left:-11px;border-top-width:0;border-bottom-color:#999;border-bottom-color:rgba(0,0,0,.25)}.popover.bottom>.arrow:after{top:1px;margin-left:-10px;content:" ";border-top-width:0;border-bottom-color:#fff}.popover.left>.arrow{top:50%;right:-11px;margin-top:-11px;border-right-width:0;border-left-color:#999;border-left-color:rgba(0,0,0,.25)}.popover.left>.arrow:after{right:1px;bottom:-10px;content:" ";border-right-width:0;border-left-color:#fff}.carousel{position:relative}.carousel-inner{position:relative;width:100%;overflow:hidden}.carousel-inner>.item{position:relative;display:none;-webkit-transition:.6s ease-in-out left;-o-transition:.6s ease-in-out left;transition:.6s ease-in-out left}.carousel-inner>.item>a>img,.carousel-inner>.item>img{line-height:1}@media all and (transform-3d),(-webkit-transform-3d){.carousel-inner>.item{-webkit-transition:-webkit-transform .6s ease-in-out;-o-transition:-o-transform .6s ease-in-out;transition:transform .6s ease-in-out;-webkit-backface-visibility:hidden;backface-visibility:hidden;-webkit-perspective:1000px;perspective:1000px}.carousel-inner>.item.active.right,.carousel-inner>.item.next{left:0;-webkit-transform:translate3d(100%,0,0);transform:translate3d(100%,0,0)}.carousel-inner>.item.active.left,.carousel-inner>.item.prev{left:0;-webkit-transform:translate3d(-100%,0,0);transform:translate3d(-100%,0,0)}.carousel-inner>.item.active,.carousel-inner>.item.next.left,.carousel-inner>.item.prev.right{left:0;-webkit-transform:translate3d(0,0,0);transform:translate3d(0,0,0)}}.carousel-inner>.active,.carousel-inner>.next,.carousel-inner>.prev{display:block}.carousel-inner>.active{left:0}.carousel-inner>.next,.carousel-inner>.prev{position:absolute;top:0;width:100%}.carousel-inner>.next{left:100%}.carousel-inner>.prev{left:-100%}.carousel-inner>.next.left,.carousel-inner>.prev.right{left:0}.carousel-inner>.active.left{left:-100%}.carousel-inner>.active.right{left:100%}.carousel-control{position:absolute;top:0;bottom:0;left:0;width:15%;font-size:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6);background-color:rgba(0,0,0,0);filter:alpha(opacity=50);opacity:.5}.carousel-control.left{background-image:-webkit-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.5)),to(rgba(0,0,0,.0001)));background-image:linear-gradient(to right,rgba(0,0,0,.5) 0,rgba(0,0,0,.0001) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#80000000', endColorstr='#00000000', GradientType=1);background-repeat:repeat-x}.carousel-control.right{right:0;left:auto;background-image:-webkit-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-o-linear-gradient(left,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);background-image:-webkit-gradient(linear,left top,right top,from(rgba(0,0,0,.0001)),to(rgba(0,0,0,.5)));background-image:linear-gradient(to right,rgba(0,0,0,.0001) 0,rgba(0,0,0,.5) 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#80000000', GradientType=1);background-repeat:repeat-x}.carousel-control:focus,.carousel-control:hover{color:#fff;text-decoration:none;filter:alpha(opacity=90);outline:0;opacity:.9}.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{position:absolute;top:50%;z-index:5;display:inline-block;margin-top:-10px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{left:50%;margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{right:50%;margin-right:-10px}.carousel-control .icon-next,.carousel-control .icon-prev{width:20px;height:20px;font-family:serif;line-height:1}.carousel-control .icon-prev:before{content:'\2039'}.carousel-control .icon-next:before{content:'\203a'}.carousel-indicators{position:absolute;bottom:10px;left:50%;z-index:15;width:60%;padding-left:0;margin-left:-30%;text-align:center;list-style:none}.carousel-indicators li{display:inline-block;width:10px;height:10px;margin:1px;text-indent:-999px;cursor:pointer;background-color:#000\9;background-color:rgba(0,0,0,0);border:1px solid #fff;border-radius:10px}.carousel-indicators .active{width:12px;height:12px;margin:0;background-color:#fff}.carousel-caption{position:absolute;right:15%;bottom:20px;left:15%;z-index:10;padding-top:20px;padding-bottom:20px;color:#fff;text-align:center;text-shadow:0 1px 2px rgba(0,0,0,.6)}.carousel-caption .btn{text-shadow:none}@media screen and (min-width:768px){.carousel-control .glyphicon-chevron-left,.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next,.carousel-control .icon-prev{width:30px;height:30px;margin-top:-10px;font-size:30px}.carousel-control .glyphicon-chevron-left,.carousel-control .icon-prev{margin-left:-10px}.carousel-control .glyphicon-chevron-right,.carousel-control .icon-next{margin-right:-10px}.carousel-caption{right:20%;left:20%;padding-bottom:30px}.carousel-indicators{bottom:20px}}.btn-group-vertical>.btn-group:after,.btn-group-vertical>.btn-group:before,.btn-toolbar:after,.btn-toolbar:before,.clearfix:after,.clearfix:before,.container-fluid:after,.container-fluid:before,.container:after,.container:before,.dl-horizontal dd:after,.dl-horizontal dd:before,.form-horizontal .form-group:after,.form-horizontal .form-group:before,.modal-footer:after,.modal-footer:before,.modal-header:after,.modal-header:before,.nav:after,.nav:before,.navbar-collapse:after,.navbar-collapse:before,.navbar-header:after,.navbar-header:before,.navbar:after,.navbar:before,.pager:after,.pager:before,.panel-body:after,.panel-body:before,.row:after,.row:before{display:table;content:" "}.btn-group-vertical>.btn-group:after,.btn-toolbar:after,.clearfix:after,.container-fluid:after,.container:after,.dl-horizontal dd:after,.form-horizontal .form-group:after,.modal-footer:after,.modal-header:after,.nav:after,.navbar-collapse:after,.navbar-header:after,.navbar:after,.pager:after,.panel-body:after,.row:after{clear:both}.center-block{display:block;margin-right:auto;margin-left:auto}.pull-right{float:right!important}.pull-left{float:left!important}.hide{display:none!important}.show{display:block!important}.invisible{visibility:hidden}.text-hide{font:0/0 a;color:transparent;text-shadow:none;background-color:transparent;border:0}.hidden{display:none!important}.affix{position:fixed}@-ms-viewport{width:device-width}.visible-lg,.visible-md,.visible-sm,.visible-xs{display:none!important}.visible-lg-block,.visible-lg-inline,.visible-lg-inline-block,.visible-md-block,.visible-md-inline,.visible-md-inline-block,.visible-sm-block,.visible-sm-inline,.visible-sm-inline-block,.visible-xs-block,.visible-xs-inline,.visible-xs-inline-block{display:none!important}@media (max-width:767px){.visible-xs{display:block!important}table.visible-xs{display:table!important}tr.visible-xs{display:table-row!important}td.visible-xs,th.visible-xs{display:table-cell!important}}@media (max-width:767px){.visible-xs-block{display:block!important}}@media (max-width:767px){.visible-xs-inline{display:inline!important}}@media (max-width:767px){.visible-xs-inline-block{display:inline-block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm{display:block!important}table.visible-sm{display:table!important}tr.visible-sm{display:table-row!important}td.visible-sm,th.visible-sm{display:table-cell!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-block{display:block!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline{display:inline!important}}@media (min-width:768px) and (max-width:991px){.visible-sm-inline-block{display:inline-block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md{display:block!important}table.visible-md{display:table!important}tr.visible-md{display:table-row!important}td.visible-md,th.visible-md{display:table-cell!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-block{display:block!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline{display:inline!important}}@media (min-width:992px) and (max-width:1199px){.visible-md-inline-block{display:inline-block!important}}@media (min-width:1200px){.visible-lg{display:block!important}table.visible-lg{display:table!important}tr.visible-lg{display:table-row!important}td.visible-lg,th.visible-lg{display:table-cell!important}}@media (min-width:1200px){.visible-lg-block{display:block!important}}@media (min-width:1200px){.visible-lg-inline{display:inline!important}}@media (min-width:1200px){.visible-lg-inline-block{display:inline-block!important}}@media (max-width:767px){.hidden-xs{display:none!important}}@media (min-width:768px) and (max-width:991px){.hidden-sm{display:none!important}}@media (min-width:992px) and (max-width:1199px){.hidden-md{display:none!important}}@media (min-width:1200px){.hidden-lg{display:none!important}}.visible-print{display:none!important}@media print{.visible-print{display:block!important}table.visible-print{display:table!important}tr.visible-print{display:table-row!important}td.visible-print,th.visible-print{display:table-cell!important}}.visible-print-block{display:none!important}@media print{.visible-print-block{display:block!important}}.visible-print-inline{display:none!important}@media print{.visible-print-inline{display:inline!important}}.visible-print-inline-block{display:none!important}@media print{.visible-print-inline-block{display:inline-block!important}}@media print{.hidden-print{display:none!important}} +/*# sourceMappingURL=bootstrap.min.css.map */ \ No newline at end of file diff --git a/dylan_eckert/controllersnviews/routesncontrollers/.gitignore b/dylan_eckert/controllersnviews/routesncontrollers/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/controllersnviews/routesncontrollers/Gemfile b/dylan_eckert/controllersnviews/routesncontrollers/Gemfile new file mode 100644 index 0000000..59d57f6 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/controllersnviews/routesncontrollers/Gemfile.lock b/dylan_eckert/controllersnviews/routesncontrollers/Gemfile.lock new file mode 100644 index 0000000..9101ca7 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.1) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.12.5 diff --git a/dylan_eckert/controllersnviews/routesncontrollers/README.md b/dylan_eckert/controllersnviews/routesncontrollers/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/controllersnviews/routesncontrollers/Rakefile b/dylan_eckert/controllersnviews/routesncontrollers/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/assets/config/manifest.js b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/models/concerns/.keep b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/app/models/concerns/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/app/assets/images/.keep diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/application.js b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/cable.js b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/lib/assets/.keep b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/lib/assets/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/channels/.keep diff --git a/justin_quiros/routes/app/assets/javascripts/tests.coffee b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/tests.coffee similarity index 100% rename from justin_quiros/routes/app/assets/javascripts/tests.coffee rename to dylan_eckert/controllersnviews/routesncontrollers/app/assets/javascripts/tests.coffee diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/assets/stylesheets/application.css b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/justin_quiros/routes/app/assets/stylesheets/tests.scss b/dylan_eckert/controllersnviews/routesncontrollers/app/assets/stylesheets/tests.scss similarity index 100% rename from justin_quiros/routes/app/assets/stylesheets/tests.scss rename to dylan_eckert/controllersnviews/routesncontrollers/app/assets/stylesheets/tests.scss diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/channels/application_cable/channel.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/channels/application_cable/connection.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/controllers/application_controller.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/lib/tasks/.keep b/dylan_eckert/controllersnviews/routesncontrollers/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/lib/tasks/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/app/controllers/concerns/.keep diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/controllers/tests_controller.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/controllers/tests_controller.rb new file mode 100644 index 0000000..7ef12ea --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/controllers/tests_controller.rb @@ -0,0 +1,33 @@ +class TestsController < ApplicationController + def index + render text: "what do you want me to say" + end + + def hello + render text: "hello codingdojo" + end + + def sayHello + render text: "saying hello" + end + + def joe + render text: "saying hello joe" + end + + def michael + redirect_to "/say/hello/joe" + end + + def amount + session[:times] ||= 1 + render text: "this page #{session[:times]} times" + session[:times] += 1 + end + + def restart + session.clear + redirect_to "/times" + end + +end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/helpers/application_helper.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/app/helpers/application_helper.rb rename to dylan_eckert/controllersnviews/routesncontrollers/app/helpers/application_helper.rb diff --git a/justin_quiros/routes/app/helpers/tests_helper.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/helpers/tests_helper.rb similarity index 100% rename from justin_quiros/routes/app/helpers/tests_helper.rb rename to dylan_eckert/controllersnviews/routesncontrollers/app/helpers/tests_helper.rb diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/jobs/application_job.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/mailers/application_mailer.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/models/application_record.rb b/dylan_eckert/controllersnviews/routesncontrollers/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/log/.keep b/dylan_eckert/controllersnviews/routesncontrollers/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/log/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/app/models/concerns/.keep diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/application.html.erb b/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/application.html.erb new file mode 100644 index 0000000..f417c41 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Routesncontrollers + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/mailer.html.erb b/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/mailer.text.erb b/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/bin/bundle b/dylan_eckert/controllersnviews/routesncontrollers/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/bin/bundle rename to dylan_eckert/controllersnviews/routesncontrollers/bin/bundle diff --git a/dylan_eckert/controllersnviews/routesncontrollers/bin/rails b/dylan_eckert/controllersnviews/routesncontrollers/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/bin/rake b/dylan_eckert/controllersnviews/routesncontrollers/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/bin/rake rename to dylan_eckert/controllersnviews/routesncontrollers/bin/rake diff --git a/dylan_eckert/controllersnviews/routesncontrollers/bin/setup b/dylan_eckert/controllersnviews/routesncontrollers/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/bin/spring b/dylan_eckert/controllersnviews/routesncontrollers/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/bin/spring rename to dylan_eckert/controllersnviews/routesncontrollers/bin/spring diff --git a/dylan_eckert/controllersnviews/routesncontrollers/bin/update b/dylan_eckert/controllersnviews/routesncontrollers/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config.ru b/dylan_eckert/controllersnviews/routesncontrollers/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/application.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/application.rb new file mode 100644 index 0000000..88e1ef0 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Routesncontrollers + 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. + end +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/boot.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/cable.yml b/dylan_eckert/controllersnviews/routesncontrollers/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/config/database.yml b/dylan_eckert/controllersnviews/routesncontrollers/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/config/database.yml rename to dylan_eckert/controllersnviews/routesncontrollers/config/database.yml diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/environment.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/environments/development.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/environments/development.rb new file mode 100644 index 0000000..1795ef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/environments/development.rb @@ -0,0 +1,55 @@ +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 + config.reload_classes_only_on_change = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/environments/production.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/environments/production.rb new file mode 100644 index 0000000..6116d70 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "routesncontrollers_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/environments/test.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/application_controller_renderer.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/assets.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/config/initializers/assets.rb rename to dylan_eckert/controllersnviews/routesncontrollers/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/backtrace_silencers.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/backtrace_silencers.rb rename to dylan_eckert/controllersnviews/routesncontrollers/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/cookies_serializer.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/filter_parameter_logging.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/controllersnviews/routesncontrollers/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/inflections.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/inflections.rb rename to dylan_eckert/controllersnviews/routesncontrollers/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/mime_types.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/config/initializers/mime_types.rb rename to dylan_eckert/controllersnviews/routesncontrollers/config/initializers/mime_types.rb diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/new_framework_defaults.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/session_store.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/session_store.rb new file mode 100644 index 0000000..d5ec84e --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_routesncontrollers_session' diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/wrap_parameters.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/controllers/ninjaGold/config/locales/en.yml b/dylan_eckert/controllersnviews/routesncontrollers/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/config/locales/en.yml rename to dylan_eckert/controllersnviews/routesncontrollers/config/locales/en.yml diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/puma.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/routes.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/routes.rb new file mode 100644 index 0000000..d9472c5 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/routes.rb @@ -0,0 +1,12 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + # get "relative URL" => "controller#method" + + root "tests#index" + get "hello" => "tests#hello" + get "say/hello" => "tests#sayHello" + get "say/hello/joe" => "tests#joe" + get "say/hello/michael" => "tests#michael" + get "times" => "tests#amount" + get "times/restart" => "tests#restart" +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/config/secrets.yml b/dylan_eckert/controllersnviews/routesncontrollers/config/secrets.yml new file mode 100644 index 0000000..00dd878 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: ea92ececbbb38968d7e54d7fec861b63f1f58030cb3c03947b734f7469478eafaadabc2f35414164ca0795330f22a9eec03b314e45bffdd4d9cae8f5175a5d07 + +test: + secret_key_base: 5ff7b3b7995b5dd820ead4e2d234b5005785925d5b6b3cb0c288757048e1ae6e787f727452604fee3a3b65b0593a1c9a6a5d3ebbe8a1a821e6ae46db9a822230 + +# 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/dylan_eckert/controllersnviews/routesncontrollers/config/spring.rb b/dylan_eckert/controllersnviews/routesncontrollers/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/controllersnviews/routesncontrollers/db/seeds.rb b/dylan_eckert/controllersnviews/routesncontrollers/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/dylan_eckert/controllersnviews/routesncontrollers/files.zip b/dylan_eckert/controllersnviews/routesncontrollers/files.zip new file mode 100644 index 0000000..458d53d Binary files /dev/null and b/dylan_eckert/controllersnviews/routesncontrollers/files.zip differ diff --git a/dylan_eckert/controllersnviews/routesncontrollers/files/routes.rb b/dylan_eckert/controllersnviews/routesncontrollers/files/routes.rb new file mode 100644 index 0000000..d9472c5 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/files/routes.rb @@ -0,0 +1,12 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + # get "relative URL" => "controller#method" + + root "tests#index" + get "hello" => "tests#hello" + get "say/hello" => "tests#sayHello" + get "say/hello/joe" => "tests#joe" + get "say/hello/michael" => "tests#michael" + get "times" => "tests#amount" + get "times/restart" => "tests#restart" +end diff --git a/dylan_eckert/controllersnviews/routesncontrollers/files/tests_controller.rb b/dylan_eckert/controllersnviews/routesncontrollers/files/tests_controller.rb new file mode 100644 index 0000000..7ef12ea --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/files/tests_controller.rb @@ -0,0 +1,33 @@ +class TestsController < ApplicationController + def index + render text: "what do you want me to say" + end + + def hello + render text: "hello codingdojo" + end + + def sayHello + render text: "saying hello" + end + + def joe + render text: "saying hello joe" + end + + def michael + redirect_to "/say/hello/joe" + end + + def amount + session[:times] ||= 1 + render text: "this page #{session[:times]} times" + session[:times] += 1 + end + + def restart + session.clear + redirect_to "/times" + end + +end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/test/controllers/.keep b/dylan_eckert/controllersnviews/routesncontrollers/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/test/controllers/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/test/fixtures/.keep b/dylan_eckert/controllersnviews/routesncontrollers/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/test/fixtures/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/test/helpers/.keep b/dylan_eckert/controllersnviews/routesncontrollers/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/test/helpers/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/log/.keep diff --git a/dylan_eckert/controllersnviews/routesncontrollers/public/404.html b/dylan_eckert/controllersnviews/routesncontrollers/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/routesncontrollers/public/422.html b/dylan_eckert/controllersnviews/routesncontrollers/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/routesncontrollers/public/500.html b/dylan_eckert/controllersnviews/routesncontrollers/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/controllers/ninjaGold/test/integration/.keep b/dylan_eckert/controllersnviews/routesncontrollers/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/test/integration/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/test/mailers/.keep b/dylan_eckert/controllersnviews/routesncontrollers/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/test/mailers/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/controllers/routes/public/favicon.ico b/dylan_eckert/controllersnviews/routesncontrollers/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/public/favicon.ico rename to dylan_eckert/controllersnviews/routesncontrollers/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/public/robots.txt b/dylan_eckert/controllersnviews/routesncontrollers/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/public/robots.txt rename to dylan_eckert/controllersnviews/routesncontrollers/public/robots.txt diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/test/models/.keep b/dylan_eckert/controllersnviews/routesncontrollers/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/test/models/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/test/controllers/.keep diff --git a/dylan_eckert/controllersnviews/routesncontrollers/test/controllers/tests_controller_test.rb b/dylan_eckert/controllersnviews/routesncontrollers/test/controllers/tests_controller_test.rb new file mode 100644 index 0000000..14b6a42 --- /dev/null +++ b/dylan_eckert/controllersnviews/routesncontrollers/test/controllers/tests_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class TestsControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/vendor/assets/javascripts/.keep b/dylan_eckert/controllersnviews/routesncontrollers/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/vendor/assets/javascripts/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/vendor/assets/stylesheets/.keep b/dylan_eckert/controllersnviews/routesncontrollers/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/vendor/assets/stylesheets/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/test/fixtures/files/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/app/assets/images/.keep b/dylan_eckert/controllersnviews/routesncontrollers/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/assets/images/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/app/controllers/concerns/.keep b/dylan_eckert/controllersnviews/routesncontrollers/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/controllers/concerns/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/test/integration/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/app/mailers/.keep b/dylan_eckert/controllersnviews/routesncontrollers/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/mailers/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/app/models/.keep b/dylan_eckert/controllersnviews/routesncontrollers/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/models/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/test/models/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard3/test/test_helper.rb b/dylan_eckert/controllersnviews/routesncontrollers/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard3/test/test_helper.rb rename to dylan_eckert/controllersnviews/routesncontrollers/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/routes/app/models/concerns/.keep b/dylan_eckert/controllersnviews/routesncontrollers/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/models/concerns/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/tmp/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/lib/assets/.keep b/dylan_eckert/controllersnviews/routesncontrollers/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/lib/assets/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/lib/tasks/.keep b/dylan_eckert/controllersnviews/routesncontrollers/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/lib/tasks/.keep rename to dylan_eckert/controllersnviews/routesncontrollers/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/controllersnviews/studentdash.zip b/dylan_eckert/controllersnviews/studentdash.zip new file mode 100644 index 0000000..9b2ccd9 Binary files /dev/null and b/dylan_eckert/controllersnviews/studentdash.zip differ diff --git a/dylan_eckert/controllersnviews/suerveyform.zip b/dylan_eckert/controllersnviews/suerveyform.zip new file mode 100644 index 0000000..3c64f6b Binary files /dev/null and b/dylan_eckert/controllersnviews/suerveyform.zip differ diff --git a/dylan_eckert/controllersnviews/suerveyform/.gitignore b/dylan_eckert/controllersnviews/suerveyform/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/controllersnviews/suerveyform/Gemfile b/dylan_eckert/controllersnviews/suerveyform/Gemfile new file mode 100644 index 0000000..59d57f6 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/controllersnviews/suerveyform/Gemfile.lock b/dylan_eckert/controllersnviews/suerveyform/Gemfile.lock new file mode 100644 index 0000000..fabcef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.1) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/controllersnviews/suerveyform/README.md b/dylan_eckert/controllersnviews/suerveyform/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/controllersnviews/suerveyform/Rakefile b/dylan_eckert/controllersnviews/suerveyform/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/controllersnviews/suerveyform/app/assets/config/manifest.js b/dylan_eckert/controllersnviews/suerveyform/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/controllers/routes/log/.keep b/dylan_eckert/controllersnviews/suerveyform/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/log/.keep rename to dylan_eckert/controllersnviews/suerveyform/app/assets/images/.keep diff --git a/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/application.js b/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/cable.js b/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/routes/test/controllers/.keep b/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/test/controllers/.keep rename to dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/channels/.keep diff --git a/brittney_jackson/rails/integrateModels/app/assets/javascripts/users.coffee b/dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/users.coffee similarity index 100% rename from brittney_jackson/rails/integrateModels/app/assets/javascripts/users.coffee rename to dylan_eckert/controllersnviews/suerveyform/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/controllersnviews/suerveyform/app/assets/stylesheets/application.css b/dylan_eckert/controllersnviews/suerveyform/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/stylesheets/users.scss b/dylan_eckert/controllersnviews/suerveyform/app/assets/stylesheets/users.scss similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/stylesheets/users.scss rename to dylan_eckert/controllersnviews/suerveyform/app/assets/stylesheets/users.scss diff --git a/dylan_eckert/controllersnviews/suerveyform/app/channels/application_cable/channel.rb b/dylan_eckert/controllersnviews/suerveyform/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/controllersnviews/suerveyform/app/channels/application_cable/connection.rb b/dylan_eckert/controllersnviews/suerveyform/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/controllersnviews/suerveyform/app/controllers/application_controller.rb b/dylan_eckert/controllersnviews/suerveyform/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/controllers/routes/test/fixtures/.keep b/dylan_eckert/controllersnviews/suerveyform/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/test/fixtures/.keep rename to dylan_eckert/controllersnviews/suerveyform/app/controllers/concerns/.keep diff --git a/dylan_eckert/controllersnviews/suerveyform/app/controllers/users_controller.rb b/dylan_eckert/controllersnviews/suerveyform/app/controllers/users_controller.rb new file mode 100644 index 0000000..216074a --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/controllers/users_controller.rb @@ -0,0 +1,31 @@ +class UsersController < ApplicationController + def index + + end + + def create + @user = User.create(user_params) + + if @user.valid? + session[:count] ||= 0 + session[:count] += 1 + session[:user] = @user + redirect_to '/result' + else + flash[:errors] = @user.errors.full_messages + redirect_to '/' + end + + end + + def result + @user = session[:user] + flash[:success] = "Thanks for submitting this form! You have submitted #{session[:count]} form entries so far." + + end + + private + def user_params + params.require(:user).permit(:name, :location, :language, :comment) + end +end diff --git a/Rodolfo_Valdivieso/controllers/routes/app/helpers/application_helper.rb b/dylan_eckert/controllersnviews/suerveyform/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/helpers/application_helper.rb rename to dylan_eckert/controllersnviews/suerveyform/app/helpers/application_helper.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/helpers/users_helper.rb b/dylan_eckert/controllersnviews/suerveyform/app/helpers/users_helper.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/helpers/users_helper.rb rename to dylan_eckert/controllersnviews/suerveyform/app/helpers/users_helper.rb diff --git a/dylan_eckert/controllersnviews/suerveyform/app/jobs/application_job.rb b/dylan_eckert/controllersnviews/suerveyform/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/controllersnviews/suerveyform/app/mailers/application_mailer.rb b/dylan_eckert/controllersnviews/suerveyform/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/controllersnviews/suerveyform/app/models/application_record.rb b/dylan_eckert/controllersnviews/suerveyform/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/controllers/routes/test/helpers/.keep b/dylan_eckert/controllersnviews/suerveyform/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/test/helpers/.keep rename to dylan_eckert/controllersnviews/suerveyform/app/models/concerns/.keep diff --git a/dylan_eckert/controllersnviews/suerveyform/app/models/user.rb b/dylan_eckert/controllersnviews/suerveyform/app/models/user.rb new file mode 100644 index 0000000..21b2d4d --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/models/user.rb @@ -0,0 +1,3 @@ +class User < ApplicationRecord + validates :name, :location, :language, presence: :true +end diff --git a/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/application.html.erb b/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/application.html.erb new file mode 100644 index 0000000..8b16cdb --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Suerveyform + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/mailer.html.erb b/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/mailer.text.erb b/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/controllersnviews/suerveyform/app/views/users/index.html.erb b/dylan_eckert/controllersnviews/suerveyform/app/views/users/index.html.erb new file mode 100644 index 0000000..0ca38a5 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/views/users/index.html.erb @@ -0,0 +1,36 @@ + + + + + Survey Form + + + <% if flash[:errors] %> +
+ <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> +
+ <% end %> +
+ + Your Name: + + Dojo Location: + + Favorite Language: + + Comment (Optional): + + +
+ + diff --git a/dylan_eckert/controllersnviews/suerveyform/app/views/users/result.html.erb b/dylan_eckert/controllersnviews/suerveyform/app/views/users/result.html.erb new file mode 100644 index 0000000..c64b8a9 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/app/views/users/result.html.erb @@ -0,0 +1,16 @@ + + + + + Results + + + <%= flash[:success] %> +

Submitted Information:

+

Name: <%= @user["name"] %>

+

Dojo Location: <%= @user["location"] %>

+

Favorite Language: <%= @user["language"] %>

+

Comment: <%= @user["comment"] %>

+ Go Back + + diff --git a/Rodolfo_Valdivieso/controllers/routes/bin/bundle b/dylan_eckert/controllersnviews/suerveyform/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/bin/bundle rename to dylan_eckert/controllersnviews/suerveyform/bin/bundle diff --git a/dylan_eckert/controllersnviews/suerveyform/bin/rails b/dylan_eckert/controllersnviews/suerveyform/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/routes/bin/rake b/dylan_eckert/controllersnviews/suerveyform/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/bin/rake rename to dylan_eckert/controllersnviews/suerveyform/bin/rake diff --git a/dylan_eckert/controllersnviews/suerveyform/bin/setup b/dylan_eckert/controllersnviews/suerveyform/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/routes/bin/spring b/dylan_eckert/controllersnviews/suerveyform/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/bin/spring rename to dylan_eckert/controllersnviews/suerveyform/bin/spring diff --git a/dylan_eckert/controllersnviews/suerveyform/bin/update b/dylan_eckert/controllersnviews/suerveyform/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/controllersnviews/suerveyform/config.ru b/dylan_eckert/controllersnviews/suerveyform/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/controllersnviews/suerveyform/config/application.rb b/dylan_eckert/controllersnviews/suerveyform/config/application.rb new file mode 100644 index 0000000..5edf615 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Suerveyform + 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. + end +end diff --git a/dylan_eckert/controllersnviews/suerveyform/config/boot.rb b/dylan_eckert/controllersnviews/suerveyform/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/controllersnviews/suerveyform/config/cable.yml b/dylan_eckert/controllersnviews/suerveyform/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/config/database.yml b/dylan_eckert/controllersnviews/suerveyform/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/config/database.yml rename to dylan_eckert/controllersnviews/suerveyform/config/database.yml diff --git a/dylan_eckert/controllersnviews/suerveyform/config/environment.rb b/dylan_eckert/controllersnviews/suerveyform/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/controllersnviews/suerveyform/config/environments/development.rb b/dylan_eckert/controllersnviews/suerveyform/config/environments/development.rb new file mode 100644 index 0000000..1795ef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/environments/development.rb @@ -0,0 +1,55 @@ +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 + config.reload_classes_only_on_change = false + + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/controllersnviews/suerveyform/config/environments/production.rb b/dylan_eckert/controllersnviews/suerveyform/config/environments/production.rb new file mode 100644 index 0000000..9be53a1 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "suerveyform_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/controllersnviews/suerveyform/config/environments/test.rb b/dylan_eckert/controllersnviews/suerveyform/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/controllersnviews/suerveyform/config/initializers/application_controller_renderer.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/assets.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/config/initializers/assets.rb rename to dylan_eckert/controllersnviews/suerveyform/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/backtrace_silencers.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/config/initializers/backtrace_silencers.rb rename to dylan_eckert/controllersnviews/suerveyform/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/controllersnviews/suerveyform/config/initializers/cookies_serializer.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/filter_parameter_logging.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/controllersnviews/suerveyform/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/inflections.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/config/initializers/inflections.rb rename to dylan_eckert/controllersnviews/suerveyform/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/routes/config/initializers/mime_types.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/config/initializers/mime_types.rb rename to dylan_eckert/controllersnviews/suerveyform/config/initializers/mime_types.rb diff --git a/dylan_eckert/controllersnviews/suerveyform/config/initializers/new_framework_defaults.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/controllersnviews/suerveyform/config/initializers/session_store.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/session_store.rb new file mode 100644 index 0000000..a506b38 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_suerveyform_session' diff --git a/dylan_eckert/controllersnviews/suerveyform/config/initializers/wrap_parameters.rb b/dylan_eckert/controllersnviews/suerveyform/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/controllers/routes/config/locales/en.yml b/dylan_eckert/controllersnviews/suerveyform/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/config/locales/en.yml rename to dylan_eckert/controllersnviews/suerveyform/config/locales/en.yml diff --git a/dylan_eckert/controllersnviews/suerveyform/config/puma.rb b/dylan_eckert/controllersnviews/suerveyform/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/controllersnviews/suerveyform/config/routes.rb b/dylan_eckert/controllersnviews/suerveyform/config/routes.rb new file mode 100644 index 0000000..1e9bb8c --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/routes.rb @@ -0,0 +1,8 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + + root "users#index" + get "/result" => "users#result" + post "/result" => "users#create" + +end diff --git a/dylan_eckert/controllersnviews/suerveyform/config/secrets.yml b/dylan_eckert/controllersnviews/suerveyform/config/secrets.yml new file mode 100644 index 0000000..5fdb6d5 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: 14fae96785964afc30b9245946b90a61282327ab10a4596b4a9d5f58405d71f41cdd043f83e89a85ba73475df1d3eb3e1ecd6265f579a804a9dbff9dda2e1d77 + +test: + secret_key_base: c47434466053fcb50a6f59383dcb19fe671ea152f9e7b940f1dfd3611a8ae82da1fc1472fc7447d39482bc8efb4678cd6137d11096e4c6a1556afc972e4c9be6 + +# 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/dylan_eckert/controllersnviews/suerveyform/config/spring.rb b/dylan_eckert/controllersnviews/suerveyform/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/controllersnviews/suerveyform/db/migrate/20171205161536_create_users.rb b/dylan_eckert/controllersnviews/suerveyform/db/migrate/20171205161536_create_users.rb new file mode 100644 index 0000000..64fe20b --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/db/migrate/20171205161536_create_users.rb @@ -0,0 +1,12 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :location + t.string :language + t.text :comment + + t.timestamps + end + end +end diff --git a/dylan_eckert/controllersnviews/suerveyform/db/schema.rb b/dylan_eckert/controllersnviews/suerveyform/db/schema.rb new file mode 100644 index 0000000..346dd3a --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/db/schema.rb @@ -0,0 +1,24 @@ +# 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: 20171205161536) do + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "location" + t.string "language" + t.text "comment" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/controllersnviews/suerveyform/db/seeds.rb b/dylan_eckert/controllersnviews/suerveyform/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/controllers/routes/test/integration/.keep b/dylan_eckert/controllersnviews/suerveyform/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/test/integration/.keep rename to dylan_eckert/controllersnviews/suerveyform/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/test/mailers/.keep b/dylan_eckert/controllersnviews/suerveyform/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/test/mailers/.keep rename to dylan_eckert/controllersnviews/suerveyform/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/test/models/.keep b/dylan_eckert/controllersnviews/suerveyform/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/test/models/.keep rename to dylan_eckert/controllersnviews/suerveyform/log/.keep diff --git a/dylan_eckert/controllersnviews/suerveyform/public/404.html b/dylan_eckert/controllersnviews/suerveyform/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/suerveyform/public/422.html b/dylan_eckert/controllersnviews/suerveyform/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/suerveyform/public/500.html b/dylan_eckert/controllersnviews/suerveyform/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/controllers/routes/vendor/assets/javascripts/.keep b/dylan_eckert/controllersnviews/suerveyform/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/vendor/assets/javascripts/.keep rename to dylan_eckert/controllersnviews/suerveyform/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/controllers/routes/vendor/assets/stylesheets/.keep b/dylan_eckert/controllersnviews/suerveyform/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/vendor/assets/stylesheets/.keep rename to dylan_eckert/controllersnviews/suerveyform/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/controllers/survey_form/public/favicon.ico b/dylan_eckert/controllersnviews/suerveyform/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/public/favicon.ico rename to dylan_eckert/controllersnviews/suerveyform/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/routes/public/robots.txt b/dylan_eckert/controllersnviews/suerveyform/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/public/robots.txt rename to dylan_eckert/controllersnviews/suerveyform/public/robots.txt diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/assets/images/.keep b/dylan_eckert/controllersnviews/suerveyform/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/app/assets/images/.keep rename to dylan_eckert/controllersnviews/suerveyform/test/controllers/.keep diff --git a/dylan_eckert/controllersnviews/suerveyform/test/controllers/users_controller_test.rb b/dylan_eckert/controllersnviews/suerveyform/test/controllers/users_controller_test.rb new file mode 100644 index 0000000..6c3da77 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/test/controllers/users_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class UsersControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/controllers/concerns/.keep b/dylan_eckert/controllersnviews/suerveyform/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/app/controllers/concerns/.keep rename to dylan_eckert/controllersnviews/suerveyform/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/mailers/.keep b/dylan_eckert/controllersnviews/suerveyform/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/app/mailers/.keep rename to dylan_eckert/controllersnviews/suerveyform/test/fixtures/files/.keep diff --git a/dylan_eckert/controllersnviews/suerveyform/test/fixtures/users.yml b/dylan_eckert/controllersnviews/suerveyform/test/fixtures/users.yml new file mode 100644 index 0000000..0ed3e41 --- /dev/null +++ b/dylan_eckert/controllersnviews/suerveyform/test/fixtures/users.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + location: MyString + language: MyString + comment: MyText + +two: + name: MyString + location: MyString + language: MyString + comment: MyText diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/models/.keep b/dylan_eckert/controllersnviews/suerveyform/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/app/models/.keep rename to dylan_eckert/controllersnviews/suerveyform/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/models/concerns/.keep b/dylan_eckert/controllersnviews/suerveyform/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/app/models/concerns/.keep rename to dylan_eckert/controllersnviews/suerveyform/test/integration/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/lib/assets/.keep b/dylan_eckert/controllersnviews/suerveyform/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/lib/assets/.keep rename to dylan_eckert/controllersnviews/suerveyform/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/lib/tasks/.keep b/dylan_eckert/controllersnviews/suerveyform/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/lib/tasks/.keep rename to dylan_eckert/controllersnviews/suerveyform/test/models/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/test/models/user_test.rb b/dylan_eckert/controllersnviews/suerveyform/test/models/user_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/models/user_test.rb rename to dylan_eckert/controllersnviews/suerveyform/test/models/user_test.rb diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/test/test_helper.rb b/dylan_eckert/controllersnviews/suerveyform/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/test/test_helper.rb rename to dylan_eckert/controllersnviews/suerveyform/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/survey_form/log/.keep b/dylan_eckert/controllersnviews/suerveyform/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/log/.keep rename to dylan_eckert/controllersnviews/suerveyform/tmp/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/test/controllers/.keep b/dylan_eckert/controllersnviews/suerveyform/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/test/controllers/.keep rename to dylan_eckert/controllersnviews/suerveyform/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/test/fixtures/.keep b/dylan_eckert/controllersnviews/suerveyform/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/test/fixtures/.keep rename to dylan_eckert/controllersnviews/suerveyform/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/controllersnviews/timedisp/.gitignore b/dylan_eckert/controllersnviews/timedisp/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/controllersnviews/timedisp/Gemfile b/dylan_eckert/controllersnviews/timedisp/Gemfile new file mode 100644 index 0000000..59d57f6 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/controllersnviews/timedisp/Gemfile.lock b/dylan_eckert/controllersnviews/timedisp/Gemfile.lock new file mode 100644 index 0000000..fabcef5 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.1) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/controllersnviews/timedisp/README.md b/dylan_eckert/controllersnviews/timedisp/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/controllersnviews/timedisp/Rakefile b/dylan_eckert/controllersnviews/timedisp/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/controllersnviews/timedisp/app/assets/config/manifest.js b/dylan_eckert/controllersnviews/timedisp/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/controllers/survey_form/test/helpers/.keep b/dylan_eckert/controllersnviews/timedisp/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/test/helpers/.keep rename to dylan_eckert/controllersnviews/timedisp/app/assets/images/.keep diff --git a/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/application.js b/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/cable.js b/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/survey_form/test/integration/.keep b/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/test/integration/.keep rename to dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/channels/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/assets/javascripts/times.coffee b/dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/times.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/assets/javascripts/times.coffee rename to dylan_eckert/controllersnviews/timedisp/app/assets/javascripts/times.coffee diff --git a/dylan_eckert/controllersnviews/timedisp/app/assets/stylesheets/application.css b/dylan_eckert/controllersnviews/timedisp/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/assets/stylesheets/times.scss b/dylan_eckert/controllersnviews/timedisp/app/assets/stylesheets/times.scss similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/assets/stylesheets/times.scss rename to dylan_eckert/controllersnviews/timedisp/app/assets/stylesheets/times.scss diff --git a/dylan_eckert/controllersnviews/timedisp/app/channels/application_cable/channel.rb b/dylan_eckert/controllersnviews/timedisp/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/controllersnviews/timedisp/app/channels/application_cable/connection.rb b/dylan_eckert/controllersnviews/timedisp/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/controllersnviews/timedisp/app/controllers/application_controller.rb b/dylan_eckert/controllersnviews/timedisp/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/test/mailers/.keep b/dylan_eckert/controllersnviews/timedisp/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/test/mailers/.keep rename to dylan_eckert/controllersnviews/timedisp/app/controllers/concerns/.keep diff --git a/dylan_eckert/controllersnviews/timedisp/app/controllers/times_controller.rb b/dylan_eckert/controllersnviews/timedisp/app/controllers/times_controller.rb new file mode 100644 index 0000000..1cc2a09 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/controllers/times_controller.rb @@ -0,0 +1,5 @@ +class TimesController < ApplicationController + def main + @curTime = Time.new + end +end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/helpers/application_helper.rb b/dylan_eckert/controllersnviews/timedisp/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/app/helpers/application_helper.rb rename to dylan_eckert/controllersnviews/timedisp/app/helpers/application_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/helpers/times_helper.rb b/dylan_eckert/controllersnviews/timedisp/app/helpers/times_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/helpers/times_helper.rb rename to dylan_eckert/controllersnviews/timedisp/app/helpers/times_helper.rb diff --git a/dylan_eckert/controllersnviews/timedisp/app/jobs/application_job.rb b/dylan_eckert/controllersnviews/timedisp/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/controllersnviews/timedisp/app/mailers/application_mailer.rb b/dylan_eckert/controllersnviews/timedisp/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/controllersnviews/timedisp/app/models/application_record.rb b/dylan_eckert/controllersnviews/timedisp/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/test/models/.keep b/dylan_eckert/controllersnviews/timedisp/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/test/models/.keep rename to dylan_eckert/controllersnviews/timedisp/app/models/concerns/.keep diff --git a/dylan_eckert/controllersnviews/timedisp/app/views/layouts/application.html.erb b/dylan_eckert/controllersnviews/timedisp/app/views/layouts/application.html.erb new file mode 100644 index 0000000..59ba73f --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Timedisp + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/timedisp/app/views/layouts/mailer.html.erb b/dylan_eckert/controllersnviews/timedisp/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/controllersnviews/timedisp/app/views/layouts/mailer.text.erb b/dylan_eckert/controllersnviews/timedisp/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/controllersnviews/timedisp/app/views/times/main.html.erb b/dylan_eckert/controllersnviews/timedisp/app/views/times/main.html.erb new file mode 100644 index 0000000..0da5bd9 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/app/views/times/main.html.erb @@ -0,0 +1,11 @@ + + + + + Time Display + + +

The Current Time

+

<%= @curTime %>

+ + diff --git a/dylan_eckert/controllersnviews/timedisp/assignment.zip b/dylan_eckert/controllersnviews/timedisp/assignment.zip new file mode 100644 index 0000000..e4c69fb Binary files /dev/null and b/dylan_eckert/controllersnviews/timedisp/assignment.zip differ diff --git a/dylan_eckert/controllersnviews/timedisp/assignment/main.html.erb b/dylan_eckert/controllersnviews/timedisp/assignment/main.html.erb new file mode 100644 index 0000000..0da5bd9 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/assignment/main.html.erb @@ -0,0 +1,11 @@ + + + + + Time Display + + +

The Current Time

+

<%= @curTime %>

+ + diff --git a/dylan_eckert/controllersnviews/timedisp/assignment/routes.rb b/dylan_eckert/controllersnviews/timedisp/assignment/routes.rb new file mode 100644 index 0000000..a2bd921 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/assignment/routes.rb @@ -0,0 +1,5 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + root "times#main" + +end diff --git a/dylan_eckert/controllersnviews/timedisp/assignment/times_controller.rb b/dylan_eckert/controllersnviews/timedisp/assignment/times_controller.rb new file mode 100644 index 0000000..1cc2a09 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/assignment/times_controller.rb @@ -0,0 +1,5 @@ +class TimesController < ApplicationController + def main + @curTime = Time.new + end +end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/bin/bundle b/dylan_eckert/controllersnviews/timedisp/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/bin/bundle rename to dylan_eckert/controllersnviews/timedisp/bin/bundle diff --git a/dylan_eckert/controllersnviews/timedisp/bin/rails b/dylan_eckert/controllersnviews/timedisp/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/survey_form/bin/rake b/dylan_eckert/controllersnviews/timedisp/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/bin/rake rename to dylan_eckert/controllersnviews/timedisp/bin/rake diff --git a/dylan_eckert/controllersnviews/timedisp/bin/setup b/dylan_eckert/controllersnviews/timedisp/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/survey_form/bin/spring b/dylan_eckert/controllersnviews/timedisp/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/bin/spring rename to dylan_eckert/controllersnviews/timedisp/bin/spring diff --git a/dylan_eckert/controllersnviews/timedisp/bin/update b/dylan_eckert/controllersnviews/timedisp/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/controllersnviews/timedisp/config.ru b/dylan_eckert/controllersnviews/timedisp/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/controllersnviews/timedisp/config/application.rb b/dylan_eckert/controllersnviews/timedisp/config/application.rb new file mode 100644 index 0000000..09bb816 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Timedisp + 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. + end +end diff --git a/dylan_eckert/controllersnviews/timedisp/config/boot.rb b/dylan_eckert/controllersnviews/timedisp/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/controllersnviews/timedisp/config/cable.yml b/dylan_eckert/controllersnviews/timedisp/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/routes/config/database.yml b/dylan_eckert/controllersnviews/timedisp/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/config/database.yml rename to dylan_eckert/controllersnviews/timedisp/config/database.yml diff --git a/dylan_eckert/controllersnviews/timedisp/config/environment.rb b/dylan_eckert/controllersnviews/timedisp/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/controllersnviews/timedisp/config/environments/development.rb b/dylan_eckert/controllersnviews/timedisp/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/controllersnviews/timedisp/config/environments/production.rb b/dylan_eckert/controllersnviews/timedisp/config/environments/production.rb new file mode 100644 index 0000000..9c0ab4d --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "timedisp_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/controllersnviews/timedisp/config/environments/test.rb b/dylan_eckert/controllersnviews/timedisp/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/controllersnviews/timedisp/config/initializers/application_controller_renderer.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/assets.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/config/initializers/assets.rb rename to dylan_eckert/controllersnviews/timedisp/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/backtrace_silencers.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/config/initializers/backtrace_silencers.rb rename to dylan_eckert/controllersnviews/timedisp/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/controllersnviews/timedisp/config/initializers/cookies_serializer.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/filter_parameter_logging.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/controllersnviews/timedisp/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/inflections.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/config/initializers/inflections.rb rename to dylan_eckert/controllersnviews/timedisp/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/initializers/mime_types.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/config/initializers/mime_types.rb rename to dylan_eckert/controllersnviews/timedisp/config/initializers/mime_types.rb diff --git a/dylan_eckert/controllersnviews/timedisp/config/initializers/new_framework_defaults.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/controllersnviews/timedisp/config/initializers/session_store.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/session_store.rb new file mode 100644 index 0000000..f92192e --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_timedisp_session' diff --git a/dylan_eckert/controllersnviews/timedisp/config/initializers/wrap_parameters.rb b/dylan_eckert/controllersnviews/timedisp/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/controllers/survey_form/config/locales/en.yml b/dylan_eckert/controllersnviews/timedisp/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/config/locales/en.yml rename to dylan_eckert/controllersnviews/timedisp/config/locales/en.yml diff --git a/dylan_eckert/controllersnviews/timedisp/config/puma.rb b/dylan_eckert/controllersnviews/timedisp/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/controllersnviews/timedisp/config/routes.rb b/dylan_eckert/controllersnviews/timedisp/config/routes.rb new file mode 100644 index 0000000..a2bd921 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/routes.rb @@ -0,0 +1,5 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html + root "times#main" + +end diff --git a/dylan_eckert/controllersnviews/timedisp/config/secrets.yml b/dylan_eckert/controllersnviews/timedisp/config/secrets.yml new file mode 100644 index 0000000..254899a --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: 0be5ad77dedd86425334e249a66518242b2d502322aa29dfc3c9865e6648763de7ee553609ff148f5b7213b817edcce11f51ff8c8fb64fa91137c744a4ede7ad + +test: + secret_key_base: be252691576099f34fb48deb381a34a62850de758fff3efb53ed580bb027fa430e6b15f7ecb8393ef0f2f0e58def618887526e5bf847a5f7ec526b05dcc082bc + +# 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/dylan_eckert/controllersnviews/timedisp/config/spring.rb b/dylan_eckert/controllersnviews/timedisp/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/controllersnviews/timedisp/db/seeds.rb b/dylan_eckert/controllersnviews/timedisp/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/controllers/survey_form/vendor/assets/javascripts/.keep b/dylan_eckert/controllersnviews/timedisp/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/vendor/assets/javascripts/.keep rename to dylan_eckert/controllersnviews/timedisp/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/vendor/assets/stylesheets/.keep b/dylan_eckert/controllersnviews/timedisp/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/vendor/assets/stylesheets/.keep rename to dylan_eckert/controllersnviews/timedisp/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/assets/images/.keep b/dylan_eckert/controllersnviews/timedisp/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/assets/images/.keep rename to dylan_eckert/controllersnviews/timedisp/log/.keep diff --git a/dylan_eckert/controllersnviews/timedisp/public/404.html b/dylan_eckert/controllersnviews/timedisp/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/timedisp/public/422.html b/dylan_eckert/controllersnviews/timedisp/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/controllersnviews/timedisp/public/500.html b/dylan_eckert/controllersnviews/timedisp/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/controllers/time_display/app/controllers/concerns/.keep b/dylan_eckert/controllersnviews/timedisp/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/controllers/concerns/.keep rename to dylan_eckert/controllersnviews/timedisp/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/mailers/.keep b/dylan_eckert/controllersnviews/timedisp/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/mailers/.keep rename to dylan_eckert/controllersnviews/timedisp/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/controllers/time_display/public/favicon.ico b/dylan_eckert/controllersnviews/timedisp/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/public/favicon.ico rename to dylan_eckert/controllersnviews/timedisp/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/survey_form/public/robots.txt b/dylan_eckert/controllersnviews/timedisp/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/public/robots.txt rename to dylan_eckert/controllersnviews/timedisp/public/robots.txt diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/models/.keep b/dylan_eckert/controllersnviews/timedisp/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/models/.keep rename to dylan_eckert/controllersnviews/timedisp/test/controllers/.keep diff --git a/dylan_eckert/controllersnviews/timedisp/test/controllers/times_controller_test.rb b/dylan_eckert/controllersnviews/timedisp/test/controllers/times_controller_test.rb new file mode 100644 index 0000000..0975994 --- /dev/null +++ b/dylan_eckert/controllersnviews/timedisp/test/controllers/times_controller_test.rb @@ -0,0 +1,7 @@ +require 'test_helper' + +class TimesControllerTest < ActionDispatch::IntegrationTest + # test "the truth" do + # assert true + # end +end diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/models/concerns/.keep b/dylan_eckert/controllersnviews/timedisp/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/models/concerns/.keep rename to dylan_eckert/controllersnviews/timedisp/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/lib/assets/.keep b/dylan_eckert/controllersnviews/timedisp/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/lib/assets/.keep rename to dylan_eckert/controllersnviews/timedisp/test/fixtures/files/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/lib/tasks/.keep b/dylan_eckert/controllersnviews/timedisp/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/lib/tasks/.keep rename to dylan_eckert/controllersnviews/timedisp/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/log/.keep b/dylan_eckert/controllersnviews/timedisp/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/log/.keep rename to dylan_eckert/controllersnviews/timedisp/test/integration/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/test/controllers/.keep b/dylan_eckert/controllersnviews/timedisp/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/test/controllers/.keep rename to dylan_eckert/controllersnviews/timedisp/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/test/fixtures/.keep b/dylan_eckert/controllersnviews/timedisp/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/test/fixtures/.keep rename to dylan_eckert/controllersnviews/timedisp/test/models/.keep diff --git a/Rodolfo_Valdivieso/controllers/routes/test/test_helper.rb b/dylan_eckert/controllersnviews/timedisp/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/test/test_helper.rb rename to dylan_eckert/controllersnviews/timedisp/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/controllers/time_display/test/helpers/.keep b/dylan_eckert/controllersnviews/timedisp/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/test/helpers/.keep rename to dylan_eckert/controllersnviews/timedisp/tmp/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/test/integration/.keep b/dylan_eckert/controllersnviews/timedisp/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/test/integration/.keep rename to dylan_eckert/controllersnviews/timedisp/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/test/mailers/.keep b/dylan_eckert/controllersnviews/timedisp/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/test/mailers/.keep rename to dylan_eckert/controllersnviews/timedisp/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/fundamentals/arrays.rb b/dylan_eckert/fundamentals/arrays.rb new file mode 100644 index 0000000..e3f2629 --- /dev/null +++ b/dylan_eckert/fundamentals/arrays.rb @@ -0,0 +1,27 @@ +puts "array .at through .delete" +array = [1,2,3,4,5,6] +puts array +puts array.at(2) +puts array.fetch(3) +puts array.delete(4) +puts array + +puts "array2 .reverse through .sort" +array2 = [3,4,8,1,5,2] +puts array2 +puts array2.reverse +puts array2.length +puts array2.sort + +puts "array3 .slice through .insert" +array3 = [1,2,3,4,5,6] +puts array3 +puts array3.slice(0..2) +puts array3.shuffle +puts array3.insert(6, 20) + +puts "array4 .join .values_at" +array4 = ["super","cali","fraga","listic","expi","ala","dotious"] +puts array4 +puts array4.join +puts array4.values_at(1, 3, 5) diff --git a/dylan_eckert/fundamentals/basic13.rb b/dylan_eckert/fundamentals/basic13.rb new file mode 100644 index 0000000..3885303 --- /dev/null +++ b/dylan_eckert/fundamentals/basic13.rb @@ -0,0 +1,92 @@ +puts "--- print 1-255" +for i in 1..255 + puts "#{i}" +end + +puts "--- print ODD 1-255" +for i in 1..255 + if i.odd? + puts "#{i}" + end +end + +puts "--- print 1-255 and sum of all existing nums" +sum = 0 +for i in 0..255 + sum += i + puts "number is #{i}" + puts "sum is #{sum}" +end + +puts "--- iterating through an array" +x = [1,3,5,7,9,13] +def iterating arr + arr.each{|i| puts i} +end +iterating x + +puts "--- find max" +y = [1,2,3,4,5] +z = [-1,0,9,-45,2] +zz = [-1,-3,-6,-7,-8] +def find_max arr + arr.max +end + +puts find_max y +puts find_max z +puts find_max zz + +puts "--- average" +def get_avg arr + arr.inject{ |sum, x| sum += x } / arr.size.to_f +end + +puts get_avg y +puts get_avg z + +puts "--- array ODD 1-255" +p (1..255).select { |i| i if i.odd? } +# def odd_arr +# newarr = [] +# for i in 1..255 +# if i.odd? +# newarr.push(i) +# end +# end +# return newarr +# end + +puts "--- greater than y" +gtyarr = [1, 3, 5, 7] +y = 3 +puts gtyarr.count { |i| i > y } + +puts "--- square numbers" +sqarr = [2,6,8,13] +puts sqarr.map! { |i| i*i} +# to create a new array use map + +puts "--- eliminate negatives" +elimarr = [-24, 2, -3, 5] +puts elimarr.each_index { |i| elimarr[i] = 0 if elimarr[i] < 0 } + +puts "--- min max avg" +mmaarr = [1, 5, 10, -2] +puts "max" +puts mmaarr.max +puts "min" +puts mmaarr.min +puts "avg" +puts mmaarr.inject{ |sum, x| sum += x } / mmaarr.size.to_f + +puts "--- shifting values" +shiftarr = [1, 5, 10, 7, -2] +shiftarr = [1, 5, 10, 7, -2] +shiftarr.rotate!(1)[shiftarr.length-1] = 0 +puts shiftarr + +puts "--- num to str" + +wordarr = [-1, -3, 2] +puts wordarr.each_index { |i| wordarr[i] = "Dojo" if wordarr[i] < 0 } diff --git a/dylan_eckert/fundamentals/guessnum.rb b/dylan_eckert/fundamentals/guessnum.rb new file mode 100644 index 0000000..f65c208 --- /dev/null +++ b/dylan_eckert/fundamentals/guessnum.rb @@ -0,0 +1,14 @@ +def guess_number guess + number = 25 + if guess == number + puts "You got it!" + elsif guess < number + puts "#{guess} was too low!" + else + puts "#{guess} was too high!" + end +end + +guess_number 12 +guess_number 50 +guess_number 25 diff --git a/dylan_eckert/fundamentals/hashes.rb b/dylan_eckert/fundamentals/hashes.rb new file mode 100644 index 0000000..f07c1d8 --- /dev/null +++ b/dylan_eckert/fundamentals/hashes.rb @@ -0,0 +1,11 @@ +def new_user greeting= "welcome", fname: "first", lname: "last" + puts "#{greeting}, #{fname} #{lname}" +end +me = {fname: "Dylan", lname: "Eckert"} +new_user "Hello", me + +me.delete(:fname) +p me +p me.empty? +p me.has_key?(:fname) +p me.has_value?("Eckert") diff --git a/dylan_eckert/fundamentals/myenumerable.rb b/dylan_eckert/fundamentals/myenumerable.rb new file mode 100644 index 0000000..cfe2e8d --- /dev/null +++ b/dylan_eckert/fundamentals/myenumerable.rb @@ -0,0 +1,12 @@ +module MyEnumerable + def my_each + for i in 0...self.length + yield self[i] + end + end +end +class Array + include MyEnumerable +end +[1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 +[1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 diff --git a/dylan_eckert/fundamentals/names.rb b/dylan_eckert/fundamentals/names.rb new file mode 100644 index 0000000..70c33d7 --- /dev/null +++ b/dylan_eckert/fundamentals/names.rb @@ -0,0 +1,19 @@ +a = {first_name: "Michael", last_name: "Choi"} +b = {first_name: "John", last_name: "Doe"} +c = {first_name: "Jane", last_name: "Doe"} +d = {first_name: "James", last_name: "Smith"} +e = {first_name: "Jennifer", last_name: "Smith"} +names = [a, b, c, d, e] + +namec = names.count +p "You have #{namec} names in the 'names' array" + +def names greeting= "Name:", first_name: "first", last_name: "last" + puts "#{greeting} '#{first_name} #{last_name}'" +end + +puts names a +puts names b +puts names c +puts names d +puts names e diff --git a/dylan_eckert/fundamentals/range.rb b/dylan_eckert/fundamentals/range.rb new file mode 100644 index 0000000..cde507e --- /dev/null +++ b/dylan_eckert/fundamentals/range.rb @@ -0,0 +1,6 @@ +animals = ["cat", "dog", "bird", "lion"] +numbers = [1,2,3,4,5] +puts animals.include?("cat") +puts animals.last +puts numbers.max +puts numbers.min diff --git a/dylan_eckert/fundamentals/rubypuzzles.rb b/dylan_eckert/fundamentals/rubypuzzles.rb new file mode 100644 index 0000000..fbe7627 --- /dev/null +++ b/dylan_eckert/fundamentals/rubypuzzles.rb @@ -0,0 +1,57 @@ +puts "----- puzzle 1" +sum = 0 +puts "sum" +[3,5,1,2,7,9,8,13,25,32].each { |i| sum += i} +p sum +puts "greater than 10" +p [3,5,1,2,7,9,8,13,25,32].select { |i| i if i>10 } + +puts "----- puzzle 2" +puts "suffle" +p ["John","KB","Oliver","Corey","Matthew","Christopher"].shuffle +puts "longer than 5" +p ["John","KB","Oliver","Corey","Matthew","Christopher"].select { |i| i if i.length>5 } +puts "----- puzzle 3" +alphabet = ["a","b","c","d","e","f","g","h","i","j","k","l","m","n","o","p","q","r","s","t","u","v","w","x","y","z"] +vowels = ["a","e","i","o","u"] +puts "suffle show last and first if vowel show message" +alphabet.shuffle! +p "last" +p alphabet.last +first = alphabet.first +p "first" +if vowels.detect { |i| i == first } + puts first + puts "VOWEL" +else + puts first +end + +puts "----- puzzle 4" +randarr = [] +10.times{randarr.push(rand(55..100))} +p randarr + +puts "----- puzzle 5" +randarr2 = [] +10.times{randarr2.push(rand(55..100))} +p "sorted" +p randarr2.sort +p "max" +p randarr2.max +p "min" +p randarr2.min + +puts "----- puzzle 6" +randstr = "" +5.times{randstr.concat((65+rand(26)).chr)} +p randstr + +puts "----- puzzle 7" +randarr3 = [] +10.times do + randstr2 = "" + 5.times{randstr2.concat((65+rand(26)).chr)} + randarr3.push(randstr2) +end +p randarr3 diff --git a/dylan_eckert/fundamentals/test.rb b/dylan_eckert/fundamentals/test.rb new file mode 100644 index 0000000..e175990 --- /dev/null +++ b/dylan_eckert/fundamentals/test.rb @@ -0,0 +1,59 @@ +puts "--- Testing Fundamentals ---" +puts "-- Loop testing" + +puts "- while loop testing" +# declare runner and endpoint before running while loop +runner = 0 +endpoint = 5 +while runner < endpoint do + puts "run #{runner}" + runner += 1 + #can break out of the loop early with a break condition + # break must be after what you want to puts/print + break if runner == 3 + # run 0 run 1 run 2 +end + +puts "- for loop .. testing" +# .. includes both 0 and 5 +# 0 1 2 3 4 5 +for i in 0..5 + puts "#{i}" + #can break out of the loop early with a break condition + # break must be after what you want to puts/print + break if i == 3 + # 0 1 2 3 +end + +puts "- for loop ... testing" +# ... EXCLUDES 5 +# 0 1 2 3 4 +for i in 0...5 + # can skip an index in the loop using next condition + # next must be before what you want to puts/print + next if i == 3 + # 0 1 2 4 + puts "#{i}" +end + +puts "-- Methods Testing" +# define the method name with def, end the method with end +def hello_world + puts "hello world" +end +# call upon the method by typing the name of the method +hello_world + +puts "- input method testing" +# declare parameters after naming the method, separated by commas +def say_hello name1, name2 + puts "hello, #{name1} and #{name2}" +end +say_hello "dylan", "liam" # => "hello, dylan and liam" +puts "- default params" +# declare default parameters like this +def say_hellos name1="dylan", name2="liam" + puts "hello, #{name1} and #{name2}" +end +say_hellos # => "hello, dylan and liam" +say_hellos "bob" # => "hello, bob and liam" diff --git a/dylan_eckert/models/bpm/.gitignore b/dylan_eckert/models/bpm/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/models/bpm/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/models/bpm/Gemfile b/dylan_eckert/models/bpm/Gemfile new file mode 100644 index 0000000..cef91e9 --- /dev/null +++ b/dylan_eckert/models/bpm/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + +gem 'hirb' +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/models/bpm/Gemfile.lock b/dylan_eckert/models/bpm/Gemfile.lock new file mode 100644 index 0000000..666314f --- /dev/null +++ b/dylan_eckert/models/bpm/Gemfile.lock @@ -0,0 +1,181 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + hirb (0.7.3) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + hirb + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.12.5 diff --git a/dylan_eckert/models/bpm/README.md b/dylan_eckert/models/bpm/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/models/bpm/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/models/bpm/Rakefile b/dylan_eckert/models/bpm/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/models/bpm/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/models/bpm/app/assets/config/manifest.js b/dylan_eckert/models/bpm/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/models/bpm/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/controllers/time_display/test/models/.keep b/dylan_eckert/models/bpm/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/test/models/.keep rename to dylan_eckert/models/bpm/app/assets/images/.keep diff --git a/dylan_eckert/models/bpm/app/assets/javascripts/application.js b/dylan_eckert/models/bpm/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/models/bpm/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/models/bpm/app/assets/javascripts/cable.js b/dylan_eckert/models/bpm/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/models/bpm/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/controllers/time_display/vendor/assets/javascripts/.keep b/dylan_eckert/models/bpm/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/vendor/assets/javascripts/.keep rename to dylan_eckert/models/bpm/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/models/bpm/app/assets/stylesheets/application.css b/dylan_eckert/models/bpm/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/models/bpm/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/models/bpm/app/channels/application_cable/channel.rb b/dylan_eckert/models/bpm/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/models/bpm/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/models/bpm/app/channels/application_cable/connection.rb b/dylan_eckert/models/bpm/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/models/bpm/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/models/bpm/app/controllers/application_controller.rb b/dylan_eckert/models/bpm/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/models/bpm/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/controllers/time_display/vendor/assets/stylesheets/.keep b/dylan_eckert/models/bpm/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/vendor/assets/stylesheets/.keep rename to dylan_eckert/models/bpm/app/controllers/concerns/.keep diff --git a/Rodolfo_Valdivieso/controllers/time_display/app/helpers/application_helper.rb b/dylan_eckert/models/bpm/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/app/helpers/application_helper.rb rename to dylan_eckert/models/bpm/app/helpers/application_helper.rb diff --git a/dylan_eckert/models/bpm/app/jobs/application_job.rb b/dylan_eckert/models/bpm/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/models/bpm/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/models/bpm/app/mailers/application_mailer.rb b/dylan_eckert/models/bpm/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/models/bpm/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/models/bpm/app/models/application_record.rb b/dylan_eckert/models/bpm/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/models/bpm/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/dylan_eckert/models/bpm/app/models/blog.rb b/dylan_eckert/models/bpm/app/models/blog.rb new file mode 100644 index 0000000..2b3751d --- /dev/null +++ b/dylan_eckert/models/bpm/app/models/blog.rb @@ -0,0 +1,5 @@ +class Blog < ApplicationRecord + has_many :posts, dependent: :destroy + + validates :name, :description, presence: true +end diff --git a/Rodolfo_Valdivieso/models/blogs/app/assets/images/.keep b/dylan_eckert/models/bpm/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/app/assets/images/.keep rename to dylan_eckert/models/bpm/app/models/concerns/.keep diff --git a/dylan_eckert/models/bpm/app/models/message.rb b/dylan_eckert/models/bpm/app/models/message.rb new file mode 100644 index 0000000..b45b564 --- /dev/null +++ b/dylan_eckert/models/bpm/app/models/message.rb @@ -0,0 +1,6 @@ +class Message < ApplicationRecord + belongs_to :post + + validates :author, :message, presence: true + validates :message, length:{minimum:15} +end diff --git a/dylan_eckert/models/bpm/app/models/post.rb b/dylan_eckert/models/bpm/app/models/post.rb new file mode 100644 index 0000000..5d339b8 --- /dev/null +++ b/dylan_eckert/models/bpm/app/models/post.rb @@ -0,0 +1,7 @@ +class Post < ApplicationRecord + belongs_to :blog + has_many :messages, dependent: :destroy + + validates :title, :content, presence: true + validates :title, length:{minimum: 7} +end diff --git a/dylan_eckert/models/bpm/app/views/layouts/application.html.erb b/dylan_eckert/models/bpm/app/views/layouts/application.html.erb new file mode 100644 index 0000000..421a115 --- /dev/null +++ b/dylan_eckert/models/bpm/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Bpm + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/models/bpm/app/views/layouts/mailer.html.erb b/dylan_eckert/models/bpm/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/models/bpm/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/models/bpm/app/views/layouts/mailer.text.erb b/dylan_eckert/models/bpm/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/models/bpm/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/Rodolfo_Valdivieso/controllers/time_display/bin/bundle b/dylan_eckert/models/bpm/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/bin/bundle rename to dylan_eckert/models/bpm/bin/bundle diff --git a/dylan_eckert/models/bpm/bin/rails b/dylan_eckert/models/bpm/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/models/bpm/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/controllers/time_display/bin/rake b/dylan_eckert/models/bpm/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/bin/rake rename to dylan_eckert/models/bpm/bin/rake diff --git a/dylan_eckert/models/bpm/bin/setup b/dylan_eckert/models/bpm/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/models/bpm/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/controllers/time_display/bin/spring b/dylan_eckert/models/bpm/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/bin/spring rename to dylan_eckert/models/bpm/bin/spring diff --git a/dylan_eckert/models/bpm/bin/update b/dylan_eckert/models/bpm/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/models/bpm/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/models/bpm/commands.txt b/dylan_eckert/models/bpm/commands.txt new file mode 100644 index 0000000..93b7ea2 --- /dev/null +++ b/dylan_eckert/models/bpm/commands.txt @@ -0,0 +1,45 @@ +rails g model Blog name:string description:text + +rails g model Post title:string content:text blog:references + +rails g model Message author:string message:text post:references + +class Blog < ActiveRecord::Base + has_many :posts + + validates :name, :description, presence: true +end + +class Post < ActiveRecord::Base + has_many :messages + belongs_to :blog + + validates :content, presence: true + validates :title, length: { minimum: 7 } +end + +class Message < ActiveRecord::Base + belongs_to :post + + validates :author, :message, presence: true +end + +# create one blog at a time +Blog.create(name:"blog1",description:"blog 1 desc") +# create all 5 blogs using a block with one line +1.upto(5) { |i| Blog.create(name: "Blog #{i}", description: "This is the description for Blog #{i}") } + +# one post at a a time +Post.create(title:"ptitle1", content:"content 1", blog:Blog.find(1)) + +Message.create(author:"bob", message: "this is a message 1", post:Post.find(1)) + + +Blog.first.posts + +Blog.last.posts.order('title DESC') + +Post.first.update(title: "new title 1") + +Blog.all +Blog.where("id < ?", 5) diff --git a/dylan_eckert/models/bpm/config.ru b/dylan_eckert/models/bpm/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/models/bpm/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/models/bpm/config/application.rb b/dylan_eckert/models/bpm/config/application.rb new file mode 100644 index 0000000..ae0b038 --- /dev/null +++ b/dylan_eckert/models/bpm/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Bpm + 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. + end +end diff --git a/dylan_eckert/models/bpm/config/boot.rb b/dylan_eckert/models/bpm/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/models/bpm/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/models/bpm/config/cable.yml b/dylan_eckert/models/bpm/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/models/bpm/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/survey_form/config/database.yml b/dylan_eckert/models/bpm/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/config/database.yml rename to dylan_eckert/models/bpm/config/database.yml diff --git a/dylan_eckert/models/bpm/config/environment.rb b/dylan_eckert/models/bpm/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/models/bpm/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/models/bpm/config/environments/development.rb b/dylan_eckert/models/bpm/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/models/bpm/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/models/bpm/config/environments/production.rb b/dylan_eckert/models/bpm/config/environments/production.rb new file mode 100644 index 0000000..e327f97 --- /dev/null +++ b/dylan_eckert/models/bpm/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "bpm_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/models/bpm/config/environments/test.rb b/dylan_eckert/models/bpm/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/models/bpm/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/models/bpm/config/initializers/application_controller_renderer.rb b/dylan_eckert/models/bpm/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/models/bpm/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/models/blogs/config/initializers/assets.rb b/dylan_eckert/models/bpm/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/config/initializers/assets.rb rename to dylan_eckert/models/bpm/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/backtrace_silencers.rb b/dylan_eckert/models/bpm/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/config/initializers/backtrace_silencers.rb rename to dylan_eckert/models/bpm/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/models/bpm/config/initializers/cookies_serializer.rb b/dylan_eckert/models/bpm/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/models/bpm/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/filter_parameter_logging.rb b/dylan_eckert/models/bpm/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/models/bpm/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/inflections.rb b/dylan_eckert/models/bpm/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/config/initializers/inflections.rb rename to dylan_eckert/models/bpm/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/initializers/mime_types.rb b/dylan_eckert/models/bpm/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/config/initializers/mime_types.rb rename to dylan_eckert/models/bpm/config/initializers/mime_types.rb diff --git a/dylan_eckert/models/bpm/config/initializers/new_framework_defaults.rb b/dylan_eckert/models/bpm/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/models/bpm/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/brittney_jackson/rails/bpm/config/initializers/session_store.rb b/dylan_eckert/models/bpm/config/initializers/session_store.rb similarity index 100% rename from brittney_jackson/rails/bpm/config/initializers/session_store.rb rename to dylan_eckert/models/bpm/config/initializers/session_store.rb diff --git a/dylan_eckert/models/bpm/config/initializers/wrap_parameters.rb b/dylan_eckert/models/bpm/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/models/bpm/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/controllers/time_display/config/locales/en.yml b/dylan_eckert/models/bpm/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/config/locales/en.yml rename to dylan_eckert/models/bpm/config/locales/en.yml diff --git a/dylan_eckert/models/bpm/config/puma.rb b/dylan_eckert/models/bpm/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/models/bpm/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/config/routes.rb b/dylan_eckert/models/bpm/config/routes.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/config/routes.rb rename to dylan_eckert/models/bpm/config/routes.rb diff --git a/dylan_eckert/models/bpm/config/secrets.yml b/dylan_eckert/models/bpm/config/secrets.yml new file mode 100644 index 0000000..ae8320a --- /dev/null +++ b/dylan_eckert/models/bpm/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: 87997cbb260216d6fc56449c64d253ea42daeb384a23de0d0fce8e356b46e1e4286a69ce13f079f403f6e546c8afa368b4652ae48d61d4719fd7ed7e58495732 + +test: + secret_key_base: 43bac4dc9097e8bc32ed4c5cbc26e75c92c3c25982ada528c20b1898b7dad4653191ca41fff30c9f63b2f784b40bc9f5af3d14b1ad4ebe35a2dfe096d601d604 + +# 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/dylan_eckert/models/bpm/config/spring.rb b/dylan_eckert/models/bpm/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/models/bpm/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/models/bpm/db/migrate/20171130173044_create_blogs.rb b/dylan_eckert/models/bpm/db/migrate/20171130173044_create_blogs.rb new file mode 100644 index 0000000..8c4166f --- /dev/null +++ b/dylan_eckert/models/bpm/db/migrate/20171130173044_create_blogs.rb @@ -0,0 +1,10 @@ +class CreateBlogs < ActiveRecord::Migration[5.0] + def change + create_table :blogs do |t| + t.string :name + t.text :description + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm/db/migrate/20171130173057_create_posts.rb b/dylan_eckert/models/bpm/db/migrate/20171130173057_create_posts.rb new file mode 100644 index 0000000..8268f5a --- /dev/null +++ b/dylan_eckert/models/bpm/db/migrate/20171130173057_create_posts.rb @@ -0,0 +1,11 @@ +class CreatePosts < ActiveRecord::Migration[5.0] + def change + create_table :posts do |t| + t.string :title + t.text :content + t.references :blog, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm/db/migrate/20171130173105_create_messages.rb b/dylan_eckert/models/bpm/db/migrate/20171130173105_create_messages.rb new file mode 100644 index 0000000..433835f --- /dev/null +++ b/dylan_eckert/models/bpm/db/migrate/20171130173105_create_messages.rb @@ -0,0 +1,11 @@ +class CreateMessages < ActiveRecord::Migration[5.0] + def change + create_table :messages do |t| + t.string :author + t.text :message + t.references :post, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm/db/schema.rb b/dylan_eckert/models/bpm/db/schema.rb new file mode 100644 index 0000000..0b7d86c --- /dev/null +++ b/dylan_eckert/models/bpm/db/schema.rb @@ -0,0 +1,40 @@ +# 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: 20171130173105) do + + create_table "blogs", force: :cascade do |t| + t.string "name" + t.text "description" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "messages", force: :cascade do |t| + t.string "author" + t.text "message" + t.integer "post_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["post_id"], name: "index_messages_on_post_id" + end + + create_table "posts", force: :cascade do |t| + t.string "title" + t.text "content" + t.integer "blog_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["blog_id"], name: "index_posts_on_blog_id" + end + +end diff --git a/dylan_eckert/models/bpm/db/seeds.rb b/dylan_eckert/models/bpm/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/models/bpm/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/models/blogs/app/controllers/concerns/.keep b/dylan_eckert/models/bpm/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/app/controllers/concerns/.keep rename to dylan_eckert/models/bpm/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/app/mailers/.keep b/dylan_eckert/models/bpm/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/app/mailers/.keep rename to dylan_eckert/models/bpm/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/app/models/.keep b/dylan_eckert/models/bpm/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/app/models/.keep rename to dylan_eckert/models/bpm/log/.keep diff --git a/dylan_eckert/models/bpm/public/404.html b/dylan_eckert/models/bpm/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/models/bpm/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/bpm/public/422.html b/dylan_eckert/models/bpm/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/models/bpm/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/bpm/public/500.html b/dylan_eckert/models/bpm/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/models/bpm/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/models/blogs/app/models/concerns/.keep b/dylan_eckert/models/bpm/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/app/models/concerns/.keep rename to dylan_eckert/models/bpm/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/models/blogs/lib/assets/.keep b/dylan_eckert/models/bpm/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/lib/assets/.keep rename to dylan_eckert/models/bpm/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/models/blogs/public/favicon.ico b/dylan_eckert/models/bpm/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/public/favicon.ico rename to dylan_eckert/models/bpm/public/favicon.ico diff --git a/Rodolfo_Valdivieso/controllers/time_display/public/robots.txt b/dylan_eckert/models/bpm/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/public/robots.txt rename to dylan_eckert/models/bpm/public/robots.txt diff --git a/Rodolfo_Valdivieso/models/blogs/lib/tasks/.keep b/dylan_eckert/models/bpm/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/lib/tasks/.keep rename to dylan_eckert/models/bpm/test/controllers/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/log/.keep b/dylan_eckert/models/bpm/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/log/.keep rename to dylan_eckert/models/bpm/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/test/fixtures/blogs.yml b/dylan_eckert/models/bpm/test/fixtures/blogs.yml similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/fixtures/blogs.yml rename to dylan_eckert/models/bpm/test/fixtures/blogs.yml diff --git a/Rodolfo_Valdivieso/models/blogs/test/controllers/.keep b/dylan_eckert/models/bpm/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/controllers/.keep rename to dylan_eckert/models/bpm/test/fixtures/files/.keep diff --git a/dylan_eckert/models/bpm/test/fixtures/messages.yml b/dylan_eckert/models/bpm/test/fixtures/messages.yml new file mode 100644 index 0000000..797ba19 --- /dev/null +++ b/dylan_eckert/models/bpm/test/fixtures/messages.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + author: MyString + message: MyText + post: one + +two: + author: MyString + message: MyText + post: two diff --git a/dylan_eckert/models/bpm/test/fixtures/posts.yml b/dylan_eckert/models/bpm/test/fixtures/posts.yml new file mode 100644 index 0000000..1fbe384 --- /dev/null +++ b/dylan_eckert/models/bpm/test/fixtures/posts.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + title: MyString + content: MyText + blog: one + +two: + title: MyString + content: MyText + blog: two diff --git a/Rodolfo_Valdivieso/models/blogs/test/fixtures/.keep b/dylan_eckert/models/bpm/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/fixtures/.keep rename to dylan_eckert/models/bpm/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/test/helpers/.keep b/dylan_eckert/models/bpm/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/helpers/.keep rename to dylan_eckert/models/bpm/test/integration/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/test/integration/.keep b/dylan_eckert/models/bpm/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/integration/.keep rename to dylan_eckert/models/bpm/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/test/mailers/.keep b/dylan_eckert/models/bpm/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/mailers/.keep rename to dylan_eckert/models/bpm/test/models/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/test/models/blog_test.rb b/dylan_eckert/models/bpm/test/models/blog_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/models/blog_test.rb rename to dylan_eckert/models/bpm/test/models/blog_test.rb diff --git a/Rodolfo_Valdivieso/models/blogs/test/models/message_test.rb b/dylan_eckert/models/bpm/test/models/message_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/models/message_test.rb rename to dylan_eckert/models/bpm/test/models/message_test.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/test/models/post_test.rb b/dylan_eckert/models/bpm/test/models/post_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/models/post_test.rb rename to dylan_eckert/models/bpm/test/models/post_test.rb diff --git a/Rodolfo_Valdivieso/controllers/survey_form/test/test_helper.rb b/dylan_eckert/models/bpm/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/test/test_helper.rb rename to dylan_eckert/models/bpm/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/models/blogs/test/models/.keep b/dylan_eckert/models/bpm/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/models/.keep rename to dylan_eckert/models/bpm/tmp/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/vendor/assets/javascripts/.keep b/dylan_eckert/models/bpm/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/vendor/assets/javascripts/.keep rename to dylan_eckert/models/bpm/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/vendor/assets/stylesheets/.keep b/dylan_eckert/models/bpm/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/vendor/assets/stylesheets/.keep rename to dylan_eckert/models/bpm/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/models/bpm2/.gitignore b/dylan_eckert/models/bpm2/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/models/bpm2/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/models/bpm2/Gemfile b/dylan_eckert/models/bpm2/Gemfile new file mode 100644 index 0000000..cef91e9 --- /dev/null +++ b/dylan_eckert/models/bpm2/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + +gem 'hirb' +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/models/bpm2/Gemfile.lock b/dylan_eckert/models/bpm2/Gemfile.lock new file mode 100644 index 0000000..666314f --- /dev/null +++ b/dylan_eckert/models/bpm2/Gemfile.lock @@ -0,0 +1,181 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + hirb (0.7.3) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + hirb + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.12.5 diff --git a/dylan_eckert/models/bpm2/README.md b/dylan_eckert/models/bpm2/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/models/bpm2/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/models/bpm2/Rakefile b/dylan_eckert/models/bpm2/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/models/bpm2/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/models/bpm2/app/assets/config/manifest.js b/dylan_eckert/models/bpm2/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/models/bpm2/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/models/blogs2/app/assets/images/.keep b/dylan_eckert/models/bpm2/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/app/assets/images/.keep rename to dylan_eckert/models/bpm2/app/assets/images/.keep diff --git a/dylan_eckert/models/bpm2/app/assets/javascripts/application.js b/dylan_eckert/models/bpm2/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/models/bpm2/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/models/bpm2/app/assets/javascripts/cable.js b/dylan_eckert/models/bpm2/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/models/blogs2/app/controllers/concerns/.keep b/dylan_eckert/models/bpm2/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/app/controllers/concerns/.keep rename to dylan_eckert/models/bpm2/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/models/bpm2/app/assets/stylesheets/application.css b/dylan_eckert/models/bpm2/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/models/bpm2/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/models/bpm2/app/channels/application_cable/channel.rb b/dylan_eckert/models/bpm2/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/models/bpm2/app/channels/application_cable/connection.rb b/dylan_eckert/models/bpm2/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/models/bpm2/app/controllers/application_controller.rb b/dylan_eckert/models/bpm2/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/models/blogs2/app/mailers/.keep b/dylan_eckert/models/bpm2/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/app/mailers/.keep rename to dylan_eckert/models/bpm2/app/controllers/concerns/.keep diff --git a/Rodolfo_Valdivieso/models/blogs/app/helpers/application_helper.rb b/dylan_eckert/models/bpm2/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/app/helpers/application_helper.rb rename to dylan_eckert/models/bpm2/app/helpers/application_helper.rb diff --git a/dylan_eckert/models/bpm2/app/jobs/application_job.rb b/dylan_eckert/models/bpm2/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/models/bpm2/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/models/bpm2/app/mailers/application_mailer.rb b/dylan_eckert/models/bpm2/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/models/bpm2/app/models/application_record.rb b/dylan_eckert/models/bpm2/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/models/bpm2/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/dylan_eckert/models/bpm2/app/models/blog.rb b/dylan_eckert/models/bpm2/app/models/blog.rb new file mode 100644 index 0000000..897bbf7 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/models/blog.rb @@ -0,0 +1,8 @@ +class Blog < ApplicationRecord + has_many :owners + has_many :users, through: :owners + has_many :posts + has_many :comments, as: :commentable + + validates :name, :desc, presence: true +end diff --git a/dylan_eckert/models/bpm2/app/models/comment.rb b/dylan_eckert/models/bpm2/app/models/comment.rb new file mode 100644 index 0000000..cee06ca --- /dev/null +++ b/dylan_eckert/models/bpm2/app/models/comment.rb @@ -0,0 +1,3 @@ +class Comment < ApplicationRecord + belongs_to :commentable, polymorphic: true +end diff --git a/Rodolfo_Valdivieso/models/blogs2/app/models/.keep b/dylan_eckert/models/bpm2/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/app/models/.keep rename to dylan_eckert/models/bpm2/app/models/concerns/.keep diff --git a/dylan_eckert/models/bpm2/app/models/message.rb b/dylan_eckert/models/bpm2/app/models/message.rb new file mode 100644 index 0000000..a96ef8b --- /dev/null +++ b/dylan_eckert/models/bpm2/app/models/message.rb @@ -0,0 +1,7 @@ +class Message < ApplicationRecord + belongs_to :post, dependent: :destroy + belongs_to :user, dependent: :destroy + has_many :comments, as: :commentable + + validates :author, :msg, presence: true +end diff --git a/dylan_eckert/models/bpm2/app/models/owner.rb b/dylan_eckert/models/bpm2/app/models/owner.rb new file mode 100644 index 0000000..4c437c3 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/models/owner.rb @@ -0,0 +1,4 @@ +class Owner < ApplicationRecord + belongs_to :user, dependent: :destroy + belongs_to :blog, dependent: :destroy +end diff --git a/dylan_eckert/models/bpm2/app/models/post.rb b/dylan_eckert/models/bpm2/app/models/post.rb new file mode 100644 index 0000000..77ef26c --- /dev/null +++ b/dylan_eckert/models/bpm2/app/models/post.rb @@ -0,0 +1,8 @@ +class Post < ApplicationRecord + belongs_to :user, dependent: :destroy + belongs_to :blog, dependent: :destroy + has_many :messages + has_many :comments, as: :commentable + + validates :title, :content, presence: true +end diff --git a/dylan_eckert/models/bpm2/app/models/user.rb b/dylan_eckert/models/bpm2/app/models/user.rb new file mode 100644 index 0000000..cf2093c --- /dev/null +++ b/dylan_eckert/models/bpm2/app/models/user.rb @@ -0,0 +1,10 @@ +class User < ApplicationRecord + has_many :owners + has_many :blogs, through: :owners + has_many :posts + has_many :messages + has_many :comments, as: :commentable + + + validates :fname, :lname, :email, presence: true +end diff --git a/dylan_eckert/models/bpm2/app/views/layouts/application.html.erb b/dylan_eckert/models/bpm2/app/views/layouts/application.html.erb new file mode 100644 index 0000000..ebc17d2 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Bpm2 + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/models/bpm2/app/views/layouts/mailer.html.erb b/dylan_eckert/models/bpm2/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/models/bpm2/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/models/bpm2/app/views/layouts/mailer.text.erb b/dylan_eckert/models/bpm2/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/models/bpm2/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/Rodolfo_Valdivieso/models/blogs/bin/bundle b/dylan_eckert/models/bpm2/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/bin/bundle rename to dylan_eckert/models/bpm2/bin/bundle diff --git a/dylan_eckert/models/bpm2/bin/rails b/dylan_eckert/models/bpm2/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/models/bpm2/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/blogs/bin/rake b/dylan_eckert/models/bpm2/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/bin/rake rename to dylan_eckert/models/bpm2/bin/rake diff --git a/dylan_eckert/models/bpm2/bin/setup b/dylan_eckert/models/bpm2/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/models/bpm2/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/models/blogs/bin/spring b/dylan_eckert/models/bpm2/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/bin/spring rename to dylan_eckert/models/bpm2/bin/spring diff --git a/dylan_eckert/models/bpm2/bin/update b/dylan_eckert/models/bpm2/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/models/bpm2/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/models/bpm2/commands.txt b/dylan_eckert/models/bpm2/commands.txt new file mode 100644 index 0000000..6212f92 --- /dev/null +++ b/dylan_eckert/models/bpm2/commands.txt @@ -0,0 +1,53 @@ +5 users +User.create(fname:"bob", lname:"bobbers", email:"email") + +5 blogs +Blog.create(name:"blog1", desc:"blog desc 1") + +Creating the blog owners by linking user id and blog id to owners table +Owner.create(blog:Blog.find(2), user:User.find(1)) + +first user create 3 posts for 2nd blog +Post.create(user:User.first, blog:Blog.find(2), title:"b1 p1 title", content:"b1 p1 content") + +2nd user create 5 posts for last blog +Post.create(user:User.find(2), blog:Blog.last, title:"b5 p1 title", content:"b5 p1 content") + +3rd user several posts for different blogs +Post.create(user:User.find(3), blog:Blog.find(3), title:"b3 p1 title", content:"b3 p1 content") +Post.create(user:User.find(3), blog:Blog.find(2), title:"b2 p4 title", content:"b2 p4 content") +Post.create(user:User.find(3), blog:Blog.find(4), title:"b4 p1 title", content:"b4 p1 content") + +3rd user 2 msg 1st post created and 3 msg 2nd post created +Message.create(user:User.find(3), post:Post.first, author:"p1 m1 author", msg:"p1 m1 msg") +Message.create(user:User.find(3), post:Post.find(2), author:"p2 m1 author", msg:"p2 m1 msg") + +4th user 3 msg last post created +Message.create(user:User.find(4), post:Post.last, author:"plast m1 author", msg:"plast m1 msg") + +change owner of 2nd post to last user +Post.find(2).update(user:User.last) + +change 2nd post content to something else +Post.find(2).update(content:"new content") + +get all blogs owned by 3rd user +User.find(3).blogs + +get all posts owned by 3rd user +User.find(3).posts + +get all messages owned by 3rd user +User.find(3).messages + +get all posts belonging to blog 5 and display their authors (user who wrote the post) +Post.joins(:user, :blog).where("blogs.id = ?", 5).select("*") + +get all messages belonging to blog 5 and display their authors (user who wrote the message) +Message.joins(:user).where(post: Blog.find(5).posts).select("*") + +get all user info who own blog 1 +Blog.first.users + +remove first user as an owner to blog 1 +Owner.where("id = ? AND user_id = ?", 1,1).update_all("user_id = null") diff --git a/dylan_eckert/models/bpm2/config.ru b/dylan_eckert/models/bpm2/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/models/bpm2/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/models/bpm2/config/application.rb b/dylan_eckert/models/bpm2/config/application.rb new file mode 100644 index 0000000..ecb4ffb --- /dev/null +++ b/dylan_eckert/models/bpm2/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Bpm2 + 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. + end +end diff --git a/dylan_eckert/models/bpm2/config/boot.rb b/dylan_eckert/models/bpm2/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/models/bpm2/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/models/bpm2/config/cable.yml b/dylan_eckert/models/bpm2/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/models/bpm2/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/controllers/time_display/config/database.yml b/dylan_eckert/models/bpm2/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/config/database.yml rename to dylan_eckert/models/bpm2/config/database.yml diff --git a/dylan_eckert/models/bpm2/config/environment.rb b/dylan_eckert/models/bpm2/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/models/bpm2/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/models/bpm2/config/environments/development.rb b/dylan_eckert/models/bpm2/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/models/bpm2/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/models/bpm2/config/environments/production.rb b/dylan_eckert/models/bpm2/config/environments/production.rb new file mode 100644 index 0000000..6e8e9f3 --- /dev/null +++ b/dylan_eckert/models/bpm2/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "bpm2_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/models/bpm2/config/environments/test.rb b/dylan_eckert/models/bpm2/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/models/bpm2/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/models/bpm2/config/initializers/application_controller_renderer.rb b/dylan_eckert/models/bpm2/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/models/bpm2/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/models/blogs2/config/initializers/assets.rb b/dylan_eckert/models/bpm2/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/config/initializers/assets.rb rename to dylan_eckert/models/bpm2/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/models/blogs/config/initializers/backtrace_silencers.rb b/dylan_eckert/models/bpm2/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/config/initializers/backtrace_silencers.rb rename to dylan_eckert/models/bpm2/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/models/bpm2/config/initializers/cookies_serializer.rb b/dylan_eckert/models/bpm2/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/models/bpm2/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/models/blogs/config/initializers/filter_parameter_logging.rb b/dylan_eckert/models/bpm2/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/models/bpm2/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/models/blogs/config/initializers/inflections.rb b/dylan_eckert/models/bpm2/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/config/initializers/inflections.rb rename to dylan_eckert/models/bpm2/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/models/blogs/config/initializers/mime_types.rb b/dylan_eckert/models/bpm2/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/config/initializers/mime_types.rb rename to dylan_eckert/models/bpm2/config/initializers/mime_types.rb diff --git a/dylan_eckert/models/bpm2/config/initializers/new_framework_defaults.rb b/dylan_eckert/models/bpm2/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/models/bpm2/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/models/bpm2/config/initializers/session_store.rb b/dylan_eckert/models/bpm2/config/initializers/session_store.rb new file mode 100644 index 0000000..64baa16 --- /dev/null +++ b/dylan_eckert/models/bpm2/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_bpm2_session' diff --git a/dylan_eckert/models/bpm2/config/initializers/wrap_parameters.rb b/dylan_eckert/models/bpm2/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/models/bpm2/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/models/blogs/config/locales/en.yml b/dylan_eckert/models/bpm2/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/config/locales/en.yml rename to dylan_eckert/models/bpm2/config/locales/en.yml diff --git a/dylan_eckert/models/bpm2/config/puma.rb b/dylan_eckert/models/bpm2/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/models/bpm2/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/models/bpm2/config/routes.rb b/dylan_eckert/models/bpm2/config/routes.rb new file mode 100644 index 0000000..787824f --- /dev/null +++ b/dylan_eckert/models/bpm2/config/routes.rb @@ -0,0 +1,3 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/dylan_eckert/models/bpm2/config/secrets.yml b/dylan_eckert/models/bpm2/config/secrets.yml new file mode 100644 index 0000000..0604c2e --- /dev/null +++ b/dylan_eckert/models/bpm2/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: 7def0be2405e568e66717be8e95220b7c66e30bbdfaa41dfc37a5d18c9ceb772c7ba1acc6c115985c0a7c8543561c69a70a0a721b588c7237a50f604c7c23f1f + +test: + secret_key_base: 5505af9ae96d031cc6d093d8b9e311c170bc5d1f4f3e25156b0e3204bc91c36b78a35cfe82291dab0d7d147751a9ed628fca6fc1775c5e0e1d6b3d84019336e3 + +# 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/dylan_eckert/models/bpm2/config/spring.rb b/dylan_eckert/models/bpm2/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/models/bpm2/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/models/bpm2/db/migrate/20171201201729_create_users.rb b/dylan_eckert/models/bpm2/db/migrate/20171201201729_create_users.rb new file mode 100644 index 0000000..190878e --- /dev/null +++ b/dylan_eckert/models/bpm2/db/migrate/20171201201729_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :fname + t.string :lname + t.string :email + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm2/db/migrate/20171201201821_create_blogs.rb b/dylan_eckert/models/bpm2/db/migrate/20171201201821_create_blogs.rb new file mode 100644 index 0000000..f554c29 --- /dev/null +++ b/dylan_eckert/models/bpm2/db/migrate/20171201201821_create_blogs.rb @@ -0,0 +1,10 @@ +class CreateBlogs < ActiveRecord::Migration[5.0] + def change + create_table :blogs do |t| + t.string :name + t.text :desc + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm2/db/migrate/20171201202102_create_owners.rb b/dylan_eckert/models/bpm2/db/migrate/20171201202102_create_owners.rb new file mode 100644 index 0000000..447c1fd --- /dev/null +++ b/dylan_eckert/models/bpm2/db/migrate/20171201202102_create_owners.rb @@ -0,0 +1,10 @@ +class CreateOwners < ActiveRecord::Migration[5.0] + def change + create_table :owners do |t| + t.references :user, foreign_key: true + t.references :blog, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm2/db/migrate/20171201202247_create_posts.rb b/dylan_eckert/models/bpm2/db/migrate/20171201202247_create_posts.rb new file mode 100644 index 0000000..f75ebc8 --- /dev/null +++ b/dylan_eckert/models/bpm2/db/migrate/20171201202247_create_posts.rb @@ -0,0 +1,12 @@ +class CreatePosts < ActiveRecord::Migration[5.0] + def change + create_table :posts do |t| + t.references :user, foreign_key: true + t.references :blog, foreign_key: true + t.string :title + t.text :content + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm2/db/migrate/20171201202452_create_messages.rb b/dylan_eckert/models/bpm2/db/migrate/20171201202452_create_messages.rb new file mode 100644 index 0000000..2f57903 --- /dev/null +++ b/dylan_eckert/models/bpm2/db/migrate/20171201202452_create_messages.rb @@ -0,0 +1,12 @@ +class CreateMessages < ActiveRecord::Migration[5.0] + def change + create_table :messages do |t| + t.references :post, foreign_key: true + t.references :user, foreign_key: true + t.string :author + t.text :msg + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm2/db/migrate/20171204145319_create_comments.rb b/dylan_eckert/models/bpm2/db/migrate/20171204145319_create_comments.rb new file mode 100644 index 0000000..a9e90e6 --- /dev/null +++ b/dylan_eckert/models/bpm2/db/migrate/20171204145319_create_comments.rb @@ -0,0 +1,9 @@ +class CreateComments < ActiveRecord::Migration[5.0] + def change + create_table :comments do |t| + t.references :commentable, polymorphic: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/bpm2/db/schema.rb b/dylan_eckert/models/bpm2/db/schema.rb new file mode 100644 index 0000000..e153830 --- /dev/null +++ b/dylan_eckert/models/bpm2/db/schema.rb @@ -0,0 +1,69 @@ +# 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: 20171204145319) do + + create_table "blogs", force: :cascade do |t| + t.string "name" + t.text "desc" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "comments", force: :cascade do |t| + t.string "commentable_type" + t.integer "commentable_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["commentable_type", "commentable_id"], name: "index_comments_on_commentable_type_and_commentable_id" + end + + create_table "messages", force: :cascade do |t| + t.integer "post_id" + t.integer "user_id" + t.string "author" + t.text "msg" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["post_id"], name: "index_messages_on_post_id" + t.index ["user_id"], name: "index_messages_on_user_id" + end + + create_table "owners", force: :cascade do |t| + t.integer "user_id" + t.integer "blog_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["blog_id"], name: "index_owners_on_blog_id" + t.index ["user_id"], name: "index_owners_on_user_id" + end + + create_table "posts", force: :cascade do |t| + t.integer "user_id" + t.integer "blog_id" + t.string "title" + t.text "content" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["blog_id"], name: "index_posts_on_blog_id" + t.index ["user_id"], name: "index_posts_on_user_id" + end + + create_table "users", force: :cascade do |t| + t.string "fname" + t.string "lname" + t.string "email" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/models/bpm2/db/seeds.rb b/dylan_eckert/models/bpm2/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/models/bpm2/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/models/blogs2/app/models/concerns/.keep b/dylan_eckert/models/bpm2/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/app/models/concerns/.keep rename to dylan_eckert/models/bpm2/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/lib/assets/.keep b/dylan_eckert/models/bpm2/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/lib/assets/.keep rename to dylan_eckert/models/bpm2/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/lib/tasks/.keep b/dylan_eckert/models/bpm2/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/lib/tasks/.keep rename to dylan_eckert/models/bpm2/log/.keep diff --git a/dylan_eckert/models/bpm2/public/404.html b/dylan_eckert/models/bpm2/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/models/bpm2/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/bpm2/public/422.html b/dylan_eckert/models/bpm2/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/models/bpm2/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/bpm2/public/500.html b/dylan_eckert/models/bpm2/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/models/bpm2/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/models/blogs2/log/.keep b/dylan_eckert/models/bpm2/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/log/.keep rename to dylan_eckert/models/bpm2/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/models/blogs2/public/favicon.ico b/dylan_eckert/models/bpm2/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/public/favicon.ico rename to dylan_eckert/models/bpm2/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/public/favicon.ico b/dylan_eckert/models/bpm2/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/public/favicon.ico rename to dylan_eckert/models/bpm2/public/favicon.ico diff --git a/Rodolfo_Valdivieso/models/blogs/public/robots.txt b/dylan_eckert/models/bpm2/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/public/robots.txt rename to dylan_eckert/models/bpm2/public/robots.txt diff --git a/Rodolfo_Valdivieso/models/blogs2/test/controllers/.keep b/dylan_eckert/models/bpm2/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/controllers/.keep rename to dylan_eckert/models/bpm2/test/controllers/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/test/fixtures/.keep b/dylan_eckert/models/bpm2/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/fixtures/.keep rename to dylan_eckert/models/bpm2/test/fixtures/.keep diff --git a/dylan_eckert/models/bpm2/test/fixtures/blogs.yml b/dylan_eckert/models/bpm2/test/fixtures/blogs.yml new file mode 100644 index 0000000..1c7a0ed --- /dev/null +++ b/dylan_eckert/models/bpm2/test/fixtures/blogs.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + desc: MyText + +two: + name: MyString + desc: MyText diff --git a/dylan_eckert/models/bpm2/test/fixtures/comments.yml b/dylan_eckert/models/bpm2/test/fixtures/comments.yml new file mode 100644 index 0000000..1da90bc --- /dev/null +++ b/dylan_eckert/models/bpm2/test/fixtures/comments.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + commentable: one + commentable_type: Commentable + +two: + commentable: two + commentable_type: Commentable diff --git a/Rodolfo_Valdivieso/models/blogs2/test/helpers/.keep b/dylan_eckert/models/bpm2/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/helpers/.keep rename to dylan_eckert/models/bpm2/test/fixtures/files/.keep diff --git a/dylan_eckert/models/bpm2/test/fixtures/messages.yml b/dylan_eckert/models/bpm2/test/fixtures/messages.yml new file mode 100644 index 0000000..faf7db2 --- /dev/null +++ b/dylan_eckert/models/bpm2/test/fixtures/messages.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + post: one + user: one + author: MyString + msg: MyText + +two: + post: two + user: two + author: MyString + msg: MyText diff --git a/dylan_eckert/models/bpm2/test/fixtures/owners.yml b/dylan_eckert/models/bpm2/test/fixtures/owners.yml new file mode 100644 index 0000000..9dd8d08 --- /dev/null +++ b/dylan_eckert/models/bpm2/test/fixtures/owners.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + user: one + blog: one + +two: + user: two + blog: two diff --git a/dylan_eckert/models/bpm2/test/fixtures/posts.yml b/dylan_eckert/models/bpm2/test/fixtures/posts.yml new file mode 100644 index 0000000..28be038 --- /dev/null +++ b/dylan_eckert/models/bpm2/test/fixtures/posts.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + user: one + blog: one + title: MyString + content: MyText + +two: + user: two + blog: two + title: MyString + content: MyText diff --git a/dylan_eckert/models/bpm2/test/fixtures/users.yml b/dylan_eckert/models/bpm2/test/fixtures/users.yml new file mode 100644 index 0000000..1c3b45d --- /dev/null +++ b/dylan_eckert/models/bpm2/test/fixtures/users.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + fname: MyString + lname: MyString + email: MyString + +two: + fname: MyString + lname: MyString + email: MyString diff --git a/Rodolfo_Valdivieso/models/blogs2/test/integration/.keep b/dylan_eckert/models/bpm2/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/integration/.keep rename to dylan_eckert/models/bpm2/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/test/mailers/.keep b/dylan_eckert/models/bpm2/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/mailers/.keep rename to dylan_eckert/models/bpm2/test/integration/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/test/models/.keep b/dylan_eckert/models/bpm2/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/models/.keep rename to dylan_eckert/models/bpm2/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/vendor/assets/javascripts/.keep b/dylan_eckert/models/bpm2/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/vendor/assets/javascripts/.keep rename to dylan_eckert/models/bpm2/test/models/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/test/models/blog_test.rb b/dylan_eckert/models/bpm2/test/models/blog_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/models/blog_test.rb rename to dylan_eckert/models/bpm2/test/models/blog_test.rb diff --git a/Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/comment_test.rb b/dylan_eckert/models/bpm2/test/models/comment_test.rb similarity index 100% rename from Tamisha_Damas/Rails/Models /blog_posts_messages_2_poly/test/models/comment_test.rb rename to dylan_eckert/models/bpm2/test/models/comment_test.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/test/models/message_test.rb b/dylan_eckert/models/bpm2/test/models/message_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/models/message_test.rb rename to dylan_eckert/models/bpm2/test/models/message_test.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/test/models/owner_test.rb b/dylan_eckert/models/bpm2/test/models/owner_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/models/owner_test.rb rename to dylan_eckert/models/bpm2/test/models/owner_test.rb diff --git a/Stephen Weil/Rails/Models/blogs_one/test/models/post_test.rb b/dylan_eckert/models/bpm2/test/models/post_test.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/models/post_test.rb rename to dylan_eckert/models/bpm2/test/models/post_test.rb diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/models/user_test.rb b/dylan_eckert/models/bpm2/test/models/user_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/models/user_test.rb rename to dylan_eckert/models/bpm2/test/models/user_test.rb diff --git a/Rodolfo_Valdivieso/controllers/time_display/test/test_helper.rb b/dylan_eckert/models/bpm2/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/time_display/test/test_helper.rb rename to dylan_eckert/models/bpm2/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/vendor/assets/stylesheets/.keep b/dylan_eckert/models/bpm2/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/vendor/assets/stylesheets/.keep rename to dylan_eckert/models/bpm2/tmp/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/assets/images/.keep b/dylan_eckert/models/bpm2/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/app/assets/images/.keep rename to dylan_eckert/models/bpm2/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/controllers/concerns/.keep b/dylan_eckert/models/bpm2/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/app/controllers/concerns/.keep rename to dylan_eckert/models/bpm2/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/models/dojo_ninjas/.gitignore b/dylan_eckert/models/dojo_ninjas/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/models/dojo_ninjas/Gemfile b/dylan_eckert/models/dojo_ninjas/Gemfile new file mode 100644 index 0000000..cef91e9 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + +gem 'hirb' +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/models/dojo_ninjas/Gemfile.lock b/dylan_eckert/models/dojo_ninjas/Gemfile.lock new file mode 100644 index 0000000..666314f --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/Gemfile.lock @@ -0,0 +1,181 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + hirb (0.7.3) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + hirb + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.12.5 diff --git a/dylan_eckert/models/dojo_ninjas/README.md b/dylan_eckert/models/dojo_ninjas/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/models/dojo_ninjas/Rakefile b/dylan_eckert/models/dojo_ninjas/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/models/dojo_ninjas/app/assets/config/manifest.js b/dylan_eckert/models/dojo_ninjas/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/mailers/.keep b/dylan_eckert/models/dojo_ninjas/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/app/mailers/.keep rename to dylan_eckert/models/dojo_ninjas/app/assets/images/.keep diff --git a/dylan_eckert/models/dojo_ninjas/app/assets/javascripts/application.js b/dylan_eckert/models/dojo_ninjas/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/models/dojo_ninjas/app/assets/javascripts/cable.js b/dylan_eckert/models/dojo_ninjas/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/.keep b/dylan_eckert/models/dojo_ninjas/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/app/models/.keep rename to dylan_eckert/models/dojo_ninjas/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/models/dojo_ninjas/app/assets/stylesheets/application.css b/dylan_eckert/models/dojo_ninjas/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/models/dojo_ninjas/app/channels/application_cable/channel.rb b/dylan_eckert/models/dojo_ninjas/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/models/dojo_ninjas/app/channels/application_cable/connection.rb b/dylan_eckert/models/dojo_ninjas/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/models/dojo_ninjas/app/controllers/application_controller.rb b/dylan_eckert/models/dojo_ninjas/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/models/concerns/.keep b/dylan_eckert/models/dojo_ninjas/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/app/models/concerns/.keep rename to dylan_eckert/models/dojo_ninjas/app/controllers/concerns/.keep diff --git a/Rodolfo_Valdivieso/models/blogs2/app/helpers/application_helper.rb b/dylan_eckert/models/dojo_ninjas/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/app/helpers/application_helper.rb rename to dylan_eckert/models/dojo_ninjas/app/helpers/application_helper.rb diff --git a/dylan_eckert/models/dojo_ninjas/app/jobs/application_job.rb b/dylan_eckert/models/dojo_ninjas/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/models/dojo_ninjas/app/mailers/application_mailer.rb b/dylan_eckert/models/dojo_ninjas/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/models/dojo_ninjas/app/models/application_record.rb b/dylan_eckert/models/dojo_ninjas/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/lib/assets/.keep b/dylan_eckert/models/dojo_ninjas/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/lib/assets/.keep rename to dylan_eckert/models/dojo_ninjas/app/models/concerns/.keep diff --git a/dylan_eckert/models/dojo_ninjas/app/models/dojo.rb b/dylan_eckert/models/dojo_ninjas/app/models/dojo.rb new file mode 100644 index 0000000..eee620c --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/models/dojo.rb @@ -0,0 +1,5 @@ +class Dojo < ApplicationRecord + has_many :ninjas + validates :name, :city, :state , presence: true + validates :state, length:{is:2} +end diff --git a/dylan_eckert/models/dojo_ninjas/app/models/ninja.rb b/dylan_eckert/models/dojo_ninjas/app/models/ninja.rb new file mode 100644 index 0000000..c0342b8 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/models/ninja.rb @@ -0,0 +1,4 @@ +class Ninja < ApplicationRecord + belongs_to :dojo + validates :fname, :lname, presence: true +end diff --git a/dylan_eckert/models/dojo_ninjas/app/views/layouts/application.html.erb b/dylan_eckert/models/dojo_ninjas/app/views/layouts/application.html.erb new file mode 100644 index 0000000..f660c1e --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + DojoNinjas + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/models/dojo_ninjas/app/views/layouts/mailer.html.erb b/dylan_eckert/models/dojo_ninjas/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/models/dojo_ninjas/app/views/layouts/mailer.text.erb b/dylan_eckert/models/dojo_ninjas/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/Rodolfo_Valdivieso/models/blogs2/bin/bundle b/dylan_eckert/models/dojo_ninjas/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/bin/bundle rename to dylan_eckert/models/dojo_ninjas/bin/bundle diff --git a/dylan_eckert/models/dojo_ninjas/bin/rails b/dylan_eckert/models/dojo_ninjas/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/blogs2/bin/rake b/dylan_eckert/models/dojo_ninjas/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/bin/rake rename to dylan_eckert/models/dojo_ninjas/bin/rake diff --git a/dylan_eckert/models/dojo_ninjas/bin/setup b/dylan_eckert/models/dojo_ninjas/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/models/blogs2/bin/spring b/dylan_eckert/models/dojo_ninjas/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/bin/spring rename to dylan_eckert/models/dojo_ninjas/bin/spring diff --git a/dylan_eckert/models/dojo_ninjas/bin/update b/dylan_eckert/models/dojo_ninjas/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/models/dojo_ninjas/commands.txt b/dylan_eckert/models/dojo_ninjas/commands.txt new file mode 100644 index 0000000..51438ae --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/commands.txt @@ -0,0 +1,35 @@ +rails new dojo_ninjas + +rails g model Dojo name:string city:string state:string + +rails g model Ninja fname:string lname:string dojo:references + +class Ninja < ApplicationRecord + belongs_to :dojo + validates :fname, :lname, presence: true +end + +class Dojo < ApplicationRecord + has_many :ninjas, dependent: :destroy + validates :name, :city, :state , presence: true + validates :state, length:{is:2} +end + +Dojo.create(name:"bro") + (0.1ms) begin transaction + (0.1ms) rollback transaction +=> # + +Dojo.create(name:"CD Silicon", city:"Mtn View", state:"CA") + +Dojo.destroy_all + +Ninja.create(fname:"cob", lname:"cobbers", dojo: Dojo.first) + +Ninja.create(fname:"bill", lname:"billers", dojo: Dojo.find(2)) + +Ninja.create(fname:"bude", lname:"budely", dojo: Dojo.last) + +Dojo.first.ninjas.all + +Dojo.find(2).ninjas.select(:fname).order('created_at DESC') diff --git a/dylan_eckert/models/dojo_ninjas/config.ru b/dylan_eckert/models/dojo_ninjas/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/models/dojo_ninjas/config/application.rb b/dylan_eckert/models/dojo_ninjas/config/application.rb new file mode 100644 index 0000000..cbe4837 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoNinjas + 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. + end +end diff --git a/dylan_eckert/models/dojo_ninjas/config/boot.rb b/dylan_eckert/models/dojo_ninjas/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/models/dojo_ninjas/config/cable.yml b/dylan_eckert/models/dojo_ninjas/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/models/blogs/config/database.yml b/dylan_eckert/models/dojo_ninjas/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/config/database.yml rename to dylan_eckert/models/dojo_ninjas/config/database.yml diff --git a/dylan_eckert/models/dojo_ninjas/config/environment.rb b/dylan_eckert/models/dojo_ninjas/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/models/dojo_ninjas/config/environments/development.rb b/dylan_eckert/models/dojo_ninjas/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/models/dojo_ninjas/config/environments/production.rb b/dylan_eckert/models/dojo_ninjas/config/environments/production.rb new file mode 100644 index 0000000..de2ccd0 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "dojo_ninjas_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/models/dojo_ninjas/config/environments/test.rb b/dylan_eckert/models/dojo_ninjas/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/models/dojo_ninjas/config/initializers/application_controller_renderer.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/assets.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/assets.rb rename to dylan_eckert/models/dojo_ninjas/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/config/initializers/backtrace_silencers.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/config/initializers/backtrace_silencers.rb rename to dylan_eckert/models/dojo_ninjas/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/models/dojo_ninjas/config/initializers/cookies_serializer.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/models/blogs2/config/initializers/filter_parameter_logging.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/models/dojo_ninjas/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/config/initializers/inflections.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/config/initializers/inflections.rb rename to dylan_eckert/models/dojo_ninjas/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/config/initializers/mime_types.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/config/initializers/mime_types.rb rename to dylan_eckert/models/dojo_ninjas/config/initializers/mime_types.rb diff --git a/dylan_eckert/models/dojo_ninjas/config/initializers/new_framework_defaults.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/session_store.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/session_store.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/session_store.rb rename to dylan_eckert/models/dojo_ninjas/config/initializers/session_store.rb diff --git a/dylan_eckert/models/dojo_ninjas/config/initializers/wrap_parameters.rb b/dylan_eckert/models/dojo_ninjas/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/models/blogs2/config/locales/en.yml b/dylan_eckert/models/dojo_ninjas/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/config/locales/en.yml rename to dylan_eckert/models/dojo_ninjas/config/locales/en.yml diff --git a/dylan_eckert/models/dojo_ninjas/config/puma.rb b/dylan_eckert/models/dojo_ninjas/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/models/dojo_ninjas/config/routes.rb b/dylan_eckert/models/dojo_ninjas/config/routes.rb new file mode 100644 index 0000000..787824f --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/routes.rb @@ -0,0 +1,3 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/dylan_eckert/models/dojo_ninjas/config/secrets.yml b/dylan_eckert/models/dojo_ninjas/config/secrets.yml new file mode 100644 index 0000000..6239b91 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: fc6107f3b2a2ae9b90264d6a031a46aba21a010a6d674a017610b9f5026d99046a3c6a7629eb85ec747629f2363e4bd475d23b5b486d1534b5badc5e2563a3f8 + +test: + secret_key_base: 8ca1bddf8b600e35cfe340b8dd81f17eed595330999db725d4b8b6c376a37547c244cff2c7119a8527b8b34bcd789b2d77ce66dc4537d02f2505702f7ad57340 + +# 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/dylan_eckert/models/dojo_ninjas/config/spring.rb b/dylan_eckert/models/dojo_ninjas/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/models/dojo_ninjas/db/migrate/20171129223838_create_dojos.rb b/dylan_eckert/models/dojo_ninjas/db/migrate/20171129223838_create_dojos.rb new file mode 100644 index 0000000..cae2a83 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/db/migrate/20171129223838_create_dojos.rb @@ -0,0 +1,11 @@ +class CreateDojos < ActiveRecord::Migration[5.0] + def change + create_table :dojos do |t| + t.string :name + t.string :city + t.string :state + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/dojo_ninjas/db/migrate/20171129224118_create_ninjas.rb b/dylan_eckert/models/dojo_ninjas/db/migrate/20171129224118_create_ninjas.rb new file mode 100644 index 0000000..3f65e5e --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/db/migrate/20171129224118_create_ninjas.rb @@ -0,0 +1,11 @@ +class CreateNinjas < ActiveRecord::Migration[5.0] + def change + create_table :ninjas do |t| + t.string :fname + t.string :lname + t.references :dojo, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/dojo_ninjas/db/schema.rb b/dylan_eckert/models/dojo_ninjas/db/schema.rb new file mode 100644 index 0000000..74094dd --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/db/schema.rb @@ -0,0 +1,32 @@ +# 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: 20171129224118) do + + create_table "dojos", force: :cascade do |t| + t.string "name" + t.string "city" + t.string "state" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + create_table "ninjas", force: :cascade do |t| + t.string "fname" + t.string "lname" + t.integer "dojo_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["dojo_id"], name: "index_ninjas_on_dojo_id" + end + +end diff --git a/dylan_eckert/models/dojo_ninjas/db/seeds.rb b/dylan_eckert/models/dojo_ninjas/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/lib/tasks/.keep b/dylan_eckert/models/dojo_ninjas/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/lib/tasks/.keep rename to dylan_eckert/models/dojo_ninjas/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/log/.keep b/dylan_eckert/models/dojo_ninjas/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/log/.keep rename to dylan_eckert/models/dojo_ninjas/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/controllers/.keep b/dylan_eckert/models/dojo_ninjas/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/controllers/.keep rename to dylan_eckert/models/dojo_ninjas/log/.keep diff --git a/dylan_eckert/models/dojo_ninjas/public/404.html b/dylan_eckert/models/dojo_ninjas/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/dojo_ninjas/public/422.html b/dylan_eckert/models/dojo_ninjas/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/dojo_ninjas/public/500.html b/dylan_eckert/models/dojo_ninjas/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/models/dojo_ninjas/test/fixtures/.keep b/dylan_eckert/models/dojo_ninjas/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/fixtures/.keep rename to dylan_eckert/models/dojo_ninjas/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/helpers/.keep b/dylan_eckert/models/dojo_ninjas/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/helpers/.keep rename to dylan_eckert/models/dojo_ninjas/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/models/optimize/public/favicon.ico b/dylan_eckert/models/dojo_ninjas/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/public/favicon.ico rename to dylan_eckert/models/dojo_ninjas/public/favicon.ico diff --git a/Rodolfo_Valdivieso/models/blogs2/public/robots.txt b/dylan_eckert/models/dojo_ninjas/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/public/robots.txt rename to dylan_eckert/models/dojo_ninjas/public/robots.txt diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/integration/.keep b/dylan_eckert/models/dojo_ninjas/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/integration/.keep rename to dylan_eckert/models/dojo_ninjas/test/controllers/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/mailers/.keep b/dylan_eckert/models/dojo_ninjas/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/mailers/.keep rename to dylan_eckert/models/dojo_ninjas/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/fixtures/dojos.yml b/dylan_eckert/models/dojo_ninjas/test/fixtures/dojos.yml similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/fixtures/dojos.yml rename to dylan_eckert/models/dojo_ninjas/test/fixtures/dojos.yml diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/models/.keep b/dylan_eckert/models/dojo_ninjas/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/models/.keep rename to dylan_eckert/models/dojo_ninjas/test/fixtures/files/.keep diff --git a/dylan_eckert/models/dojo_ninjas/test/fixtures/ninjas.yml b/dylan_eckert/models/dojo_ninjas/test/fixtures/ninjas.yml new file mode 100644 index 0000000..a4ca7c4 --- /dev/null +++ b/dylan_eckert/models/dojo_ninjas/test/fixtures/ninjas.yml @@ -0,0 +1,11 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + fname: MyString + lname: MyString + dojo: one + +two: + fname: MyString + lname: MyString + dojo: two diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/vendor/assets/javascripts/.keep b/dylan_eckert/models/dojo_ninjas/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/vendor/assets/javascripts/.keep rename to dylan_eckert/models/dojo_ninjas/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/vendor/assets/stylesheets/.keep b/dylan_eckert/models/dojo_ninjas/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/vendor/assets/stylesheets/.keep rename to dylan_eckert/models/dojo_ninjas/test/integration/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/app/assets/images/.keep b/dylan_eckert/models/dojo_ninjas/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/app/assets/images/.keep rename to dylan_eckert/models/dojo_ninjas/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/app/controllers/concerns/.keep b/dylan_eckert/models/dojo_ninjas/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/app/controllers/concerns/.keep rename to dylan_eckert/models/dojo_ninjas/test/models/.keep diff --git a/Rodolfo_Valdivieso/controllers/dashboard2/test/models/dojo_test.rb b/dylan_eckert/models/dojo_ninjas/test/models/dojo_test.rb similarity index 100% rename from Rodolfo_Valdivieso/controllers/dashboard2/test/models/dojo_test.rb rename to dylan_eckert/models/dojo_ninjas/test/models/dojo_test.rb diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/models/ninja_test.rb b/dylan_eckert/models/dojo_ninjas/test/models/ninja_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/models/ninja_test.rb rename to dylan_eckert/models/dojo_ninjas/test/models/ninja_test.rb diff --git a/Rodolfo_Valdivieso/models/blogs/test/test_helper.rb b/dylan_eckert/models/dojo_ninjas/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs/test/test_helper.rb rename to dylan_eckert/models/dojo_ninjas/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/models/optimize/app/mailers/.keep b/dylan_eckert/models/dojo_ninjas/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/app/mailers/.keep rename to dylan_eckert/models/dojo_ninjas/tmp/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/app/models/.keep b/dylan_eckert/models/dojo_ninjas/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/app/models/.keep rename to dylan_eckert/models/dojo_ninjas/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/app/models/concerns/.keep b/dylan_eckert/models/dojo_ninjas/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/app/models/concerns/.keep rename to dylan_eckert/models/dojo_ninjas/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/models/optimize/.gitignore b/dylan_eckert/models/optimize/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/models/optimize/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/models/optimize/Gemfile b/dylan_eckert/models/optimize/Gemfile new file mode 100644 index 0000000..cef91e9 --- /dev/null +++ b/dylan_eckert/models/optimize/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + +gem 'hirb' +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/models/optimize/Gemfile.lock b/dylan_eckert/models/optimize/Gemfile.lock new file mode 100644 index 0000000..666314f --- /dev/null +++ b/dylan_eckert/models/optimize/Gemfile.lock @@ -0,0 +1,181 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + hirb (0.7.3) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + hirb + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.12.5 diff --git a/dylan_eckert/models/optimize/README.md b/dylan_eckert/models/optimize/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/models/optimize/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/models/optimize/Rakefile b/dylan_eckert/models/optimize/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/models/optimize/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/models/optimize/app/assets/config/manifest.js b/dylan_eckert/models/optimize/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/models/optimize/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/models/optimize/lib/assets/.keep b/dylan_eckert/models/optimize/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/lib/assets/.keep rename to dylan_eckert/models/optimize/app/assets/images/.keep diff --git a/dylan_eckert/models/optimize/app/assets/javascripts/application.js b/dylan_eckert/models/optimize/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/models/optimize/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/models/optimize/app/assets/javascripts/cable.js b/dylan_eckert/models/optimize/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/models/optimize/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/models/optimize/lib/tasks/.keep b/dylan_eckert/models/optimize/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/lib/tasks/.keep rename to dylan_eckert/models/optimize/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/models/optimize/app/assets/stylesheets/application.css b/dylan_eckert/models/optimize/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/models/optimize/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/models/optimize/app/channels/application_cable/channel.rb b/dylan_eckert/models/optimize/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/models/optimize/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/models/optimize/app/channels/application_cable/connection.rb b/dylan_eckert/models/optimize/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/models/optimize/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/models/optimize/app/controllers/application_controller.rb b/dylan_eckert/models/optimize/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/models/optimize/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/models/optimize/log/.keep b/dylan_eckert/models/optimize/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/log/.keep rename to dylan_eckert/models/optimize/app/controllers/concerns/.keep diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/app/helpers/application_helper.rb b/dylan_eckert/models/optimize/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/app/helpers/application_helper.rb rename to dylan_eckert/models/optimize/app/helpers/application_helper.rb diff --git a/dylan_eckert/models/optimize/app/jobs/application_job.rb b/dylan_eckert/models/optimize/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/models/optimize/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/models/optimize/app/mailers/application_mailer.rb b/dylan_eckert/models/optimize/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/models/optimize/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/models/optimize/app/models/application_record.rb b/dylan_eckert/models/optimize/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/models/optimize/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/models/optimize/test/controllers/.keep b/dylan_eckert/models/optimize/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/controllers/.keep rename to dylan_eckert/models/optimize/app/models/concerns/.keep diff --git a/dylan_eckert/models/optimize/app/models/player.rb b/dylan_eckert/models/optimize/app/models/player.rb new file mode 100644 index 0000000..8a74cc6 --- /dev/null +++ b/dylan_eckert/models/optimize/app/models/player.rb @@ -0,0 +1,3 @@ +class Player < ApplicationRecord + belongs_to :team +end diff --git a/dylan_eckert/models/optimize/app/models/team.rb b/dylan_eckert/models/optimize/app/models/team.rb new file mode 100644 index 0000000..1145d1a --- /dev/null +++ b/dylan_eckert/models/optimize/app/models/team.rb @@ -0,0 +1,3 @@ +class Team < ApplicationRecord + has_many :players +end diff --git a/dylan_eckert/models/optimize/app/views/layouts/application.html.erb b/dylan_eckert/models/optimize/app/views/layouts/application.html.erb new file mode 100644 index 0000000..7d4c9ad --- /dev/null +++ b/dylan_eckert/models/optimize/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + Optimize + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/models/optimize/app/views/layouts/mailer.html.erb b/dylan_eckert/models/optimize/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/models/optimize/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/models/optimize/app/views/layouts/mailer.text.erb b/dylan_eckert/models/optimize/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/models/optimize/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/bin/bundle b/dylan_eckert/models/optimize/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/bin/bundle rename to dylan_eckert/models/optimize/bin/bundle diff --git a/dylan_eckert/models/optimize/bin/rails b/dylan_eckert/models/optimize/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/models/optimize/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/bin/rake b/dylan_eckert/models/optimize/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/bin/rake rename to dylan_eckert/models/optimize/bin/rake diff --git a/dylan_eckert/models/optimize/bin/setup b/dylan_eckert/models/optimize/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/models/optimize/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/bin/spring b/dylan_eckert/models/optimize/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/bin/spring rename to dylan_eckert/models/optimize/bin/spring diff --git a/dylan_eckert/models/optimize/bin/update b/dylan_eckert/models/optimize/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/models/optimize/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/models/optimize/commands.txt b/dylan_eckert/models/optimize/commands.txt new file mode 100644 index 0000000..31228ab --- /dev/null +++ b/dylan_eckert/models/optimize/commands.txt @@ -0,0 +1,36 @@ +1) Retrieve all players, then write a program that will loop through each player and display their team name, mascot and stadium. How many queries have we done? + +allplayers = Player.all + +allplayers.each do |player| + puts player.team.name + puts player.team.mascot + puts player.team.stadium +end + +TOTAL QUERIES = 499 (1 to get all players and 498 to get all players info so 498+1) + +2) Retrieve all players and write a program to loop through each player and their team name, mascot and stadium using .includes. How many queries have we done now? + +allplayers2 = Player.includes(:team).all + +allplayers2.each do |player| + puts player.team.name + puts player.team.mascot + puts player.team.stadium +end + +TOTAL QUERIES = 2 (1 to get all players and 1 to get all players info so 1+1) + +3) Retrieve all players from the 'Chicago Bulls' by using .includes + +allplayers3 = Player.includes(:team).where("team.name = 'Chicago Bulls'").references(:team) + +4) Retrieve all players along with the team name that play at the 'Staples Center' + +allplayers4 = Player.joins(:team).select('players.*', 'teams.name as franchise', 'teams.stadium as stadium').where("teams.stadium = 'Staples Center'") + +5) Retrieve all teams that have any player that start their name with the letter 'Z' by using .includes and .joins + +allteam = Team.includes(:players).where("players.name LIKE 'Z%'").references(:players) +allteam2 = Team.joins(:players).where("players.name LIKE 'Z%'") diff --git a/dylan_eckert/models/optimize/config.ru b/dylan_eckert/models/optimize/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/models/optimize/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/models/optimize/config/application.rb b/dylan_eckert/models/optimize/config/application.rb new file mode 100644 index 0000000..82e2005 --- /dev/null +++ b/dylan_eckert/models/optimize/config/application.rb @@ -0,0 +1,15 @@ +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) + +module Optimize + 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. + end +end diff --git a/dylan_eckert/models/optimize/config/boot.rb b/dylan_eckert/models/optimize/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/models/optimize/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/models/optimize/config/cable.yml b/dylan_eckert/models/optimize/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/models/optimize/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/models/blogs2/config/database.yml b/dylan_eckert/models/optimize/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/config/database.yml rename to dylan_eckert/models/optimize/config/database.yml diff --git a/dylan_eckert/models/optimize/config/environment.rb b/dylan_eckert/models/optimize/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/models/optimize/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/models/optimize/config/environments/development.rb b/dylan_eckert/models/optimize/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/models/optimize/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/models/optimize/config/environments/production.rb b/dylan_eckert/models/optimize/config/environments/production.rb new file mode 100644 index 0000000..4caaa72 --- /dev/null +++ b/dylan_eckert/models/optimize/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "optimize_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/models/optimize/config/environments/test.rb b/dylan_eckert/models/optimize/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/models/optimize/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/models/optimize/config/initializers/application_controller_renderer.rb b/dylan_eckert/models/optimize/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/models/optimize/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/models/optimize/config/initializers/assets.rb b/dylan_eckert/models/optimize/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/initializers/assets.rb rename to dylan_eckert/models/optimize/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/backtrace_silencers.rb b/dylan_eckert/models/optimize/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/backtrace_silencers.rb rename to dylan_eckert/models/optimize/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/models/optimize/config/initializers/cookies_serializer.rb b/dylan_eckert/models/optimize/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/models/optimize/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/filter_parameter_logging.rb b/dylan_eckert/models/optimize/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/models/optimize/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/inflections.rb b/dylan_eckert/models/optimize/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/inflections.rb rename to dylan_eckert/models/optimize/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/mime_types.rb b/dylan_eckert/models/optimize/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/initializers/mime_types.rb rename to dylan_eckert/models/optimize/config/initializers/mime_types.rb diff --git a/dylan_eckert/models/optimize/config/initializers/new_framework_defaults.rb b/dylan_eckert/models/optimize/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/models/optimize/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/Rodolfo_Valdivieso/models/optimize/config/initializers/session_store.rb b/dylan_eckert/models/optimize/config/initializers/session_store.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/initializers/session_store.rb rename to dylan_eckert/models/optimize/config/initializers/session_store.rb diff --git a/dylan_eckert/models/optimize/config/initializers/wrap_parameters.rb b/dylan_eckert/models/optimize/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/models/optimize/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/models/dojo_ninjas/config/locales/en.yml b/dylan_eckert/models/optimize/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/locales/en.yml rename to dylan_eckert/models/optimize/config/locales/en.yml diff --git a/dylan_eckert/models/optimize/config/puma.rb b/dylan_eckert/models/optimize/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/models/optimize/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/models/optimize/config/routes.rb b/dylan_eckert/models/optimize/config/routes.rb new file mode 100644 index 0000000..787824f --- /dev/null +++ b/dylan_eckert/models/optimize/config/routes.rb @@ -0,0 +1,3 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/dylan_eckert/models/optimize/config/secrets.yml b/dylan_eckert/models/optimize/config/secrets.yml new file mode 100644 index 0000000..6480f63 --- /dev/null +++ b/dylan_eckert/models/optimize/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: bd02e838d3f8ac88165ea20929ce2b273e25d4359e48b955288f817d3cab8ff42e932a0860d8083e8f6b58fd5e75db8b813cbfd594f6c360631b0512575223e5 + +test: + secret_key_base: ccbae0cc0929d397a8b971be03a52b4935ddf8b1c68473ad9a040d051cbe20594064050a80b2a3b2b96ec331a928792ba50374d2b4ea90ed4958581776d0b701 + +# 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/dylan_eckert/models/optimize/config/spring.rb b/dylan_eckert/models/optimize/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/models/optimize/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/models/optimize/db/migrate/20171130194453_create_teams.rb b/dylan_eckert/models/optimize/db/migrate/20171130194453_create_teams.rb new file mode 100644 index 0000000..1cfd4a1 --- /dev/null +++ b/dylan_eckert/models/optimize/db/migrate/20171130194453_create_teams.rb @@ -0,0 +1,11 @@ +class CreateTeams < ActiveRecord::Migration[5.0] + def change + create_table :teams do |t| + t.string :name + t.string :mascot + t.string :stadium + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/optimize/db/migrate/20171130194502_create_players.rb b/dylan_eckert/models/optimize/db/migrate/20171130194502_create_players.rb new file mode 100644 index 0000000..df3c58f --- /dev/null +++ b/dylan_eckert/models/optimize/db/migrate/20171130194502_create_players.rb @@ -0,0 +1,10 @@ +class CreatePlayers < ActiveRecord::Migration[5.0] + def change + create_table :players do |t| + t.string :name + t.references :team, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/optimize/db/schema.rb b/dylan_eckert/models/optimize/db/schema.rb new file mode 100644 index 0000000..50ccab1 --- /dev/null +++ b/dylan_eckert/models/optimize/db/schema.rb @@ -0,0 +1,31 @@ +# 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: 20171130194502) do + + create_table "players", force: :cascade do |t| + t.string "name" + t.integer "team_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["team_id"], name: "index_players_on_team_id" + end + + create_table "teams", force: :cascade do |t| + t.string "name" + t.string "mascot" + t.string "stadium" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/models/optimize/db/seeds.rb b/dylan_eckert/models/optimize/db/seeds.rb new file mode 100644 index 0000000..510af1b --- /dev/null +++ b/dylan_eckert/models/optimize/db/seeds.rb @@ -0,0 +1,104 @@ +# we require 'open-uri' to request the html files +require 'open-uri' +teams = [ + ["Atlanta Hawks", "Skyhawk", "Philips Arena"], + ["Boston Celtics", "Lucky the Leprechaun", "TD Garden"], + ["Brooklyn Nets", "BrooklyKnight", "Barclays Center"], + ["Charlotte Hornets", "Hugo the Hornet", "Spectrum Center"], + ["Chicago Bulls", "Benny the Bull", "United Center"], + ["Cleveland Cavaliers", "Moondog", "Quicken Loans Arena"], + ["Dallas Mavericks", "Champ", "American Airlines Center"], + ["Denver Nuggets", "Rocky the Mountain Lion", "Pepsi Center"], + ["Detroit Pistons", "Hooper", "The Palace of Auburn Hills"], + ["Golden State Warriors", "Thunder", "Oracle Arena"], + ["Houston Rockets", "Clutch", "Toyota Center"], + ["Indiana Pacers", "Boomer the Panther", "Bankers Life Fieldhouse"], + ["Los Angeles Clippers", "Chuck", "Staples Center"], + ["Los Angeles Lakers", "Jack Nicholson", "Staples Center"], + ["Memphis Grizzlies", "Griz", "FedExForum"], + ["Miami Heat", "Burnie", "American Airlines Arena"], + ["Milwaukee Bucks", "Bango", "BMO Harris Bradley Center"], + ["Minnesota Timberwolves", "Crunch the Wolf", "Target Center"], + ["New Orleans Pelicans", "Pierre the Pelican", "Smoothie King Center"], + ["New York Knicks", "Spike Lee", "Madison Square Garden"], + ["Oklahoma City Thunder", "Rumble the Bison", "Chesapeake Energy Arena"], + ["Orlando Magic", "Stuff the Magic Dragon", "Amway Center"], + ["Philadelphia 76ers", "Franklin the Dog", "Wells Fargo Center Philadelphia"], + ["Phoenix Suns", "The Suns Gorilla", "Talking Stick Resort Arena"], + ["Portland Trail Blazers", "Blaze the Trail Cat", "Moda Center"], + ["Sacramento Kings", "Slamson the Lion", "Golden 1 Center"], + ["San Antonio Spurs", "The Coyote", "AT&T Center"], + ["Toronto Raptors", "Raptor", "Air Canada Centre"], + ["Utah Jazz", "Jazz Bear", "Vivint Smart Home Arena"], + ["Washington Wizards", "G. Wiz", "Verizon Center"] +] +# Here, we are using the Nokogiri gem (already comes with Rails), to scrape the ESPN website for the list of players. +# For more information on Nokogiri, you can go to their documentation or visit http://www.nokogiri.org/ +atlanta_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/atl/atlanta-hawks")).css("td.sortcell") +boston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bos/boston-celtics")).css("td.sortcell") +brooklyn_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bkn/brooklyn-nets")).css("td.sortcell") +charlotte_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cha/charlotte-hornets")).css("td.sortcell") +chicago_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/chi/chicago-bulls")).css("td.sortcell") +cleveland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cle/cleveland-cavaliers")).css("td.sortcell") +dallas_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/dal/dallas-mavericks")).css("td.sortcell") +denver_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/den/denver-nuggets")).css("td.sortcell") +detroit_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/det/detroit-pistons")).css("td.sortcell") +warriors_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/gs/golden-state-warriors")).css("td.sortcell") +houston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/hou/houston-rockets")).css("td.sortcell") +indiana_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ind/indiana-pacers")).css("td.sortcell") +clippers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lac/la-clippers")).css("td.sortcell") +lakers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lal/los-angeles-lakers")).css("td.sortcell") +memphis_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mem/memphis-grizzlies")).css("td.sortcell") +miami_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mia/miami-heat")).css("td.sortcell") +milwaukee_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mil/milwaukee-bucks")).css("td.sortcell") +minnesota_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/min/minnesota-timberwolves")).css("td.sortcell") +nola_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/no/new-orleans-pelicans")).css("td.sortcell") +knicks_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ny/new-york-knicks")).css("td.sortcell") +okc_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/okc/oklahoma-city-thunder")).css("td.sortcell") +orlando_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/orl/orlando-magic")).css("td.sortcell") +phili_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phi/philadelphia-76ers")).css("td.sortcell") +phoenix_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phx/phoenix-suns")).css("td.sortcell") +portland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/por/portland-trail-blazers")).css("td.sortcell") +sacramento_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sac/sacramento-kings")).css("td.sortcell") +spurs_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sa/san-antonio-spurs")).css("td.sortcell") +toronto_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/tor/toronto-raptors")).css("td.sortcell") +utah_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/utah/utah-jazz")).css("td.sortcell") +washington_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/wsh/washington-wizards")).css("td.sortcell") +players = [ + atlanta_players, + boston_players, + brooklyn_players, + charlotte_players, + chicago_players, + cleveland_players, + dallas_players, + denver_players, + detroit_players, + warriors_players, + houston_players, + indiana_players, + clippers_players, + lakers_players, + memphis_players, + miami_players, + milwaukee_players, + minnesota_players, + nola_players, + knicks_players, + okc_players, + orlando_players, + phili_players, + phoenix_players, + portland_players, + sacramento_players, + spurs_players, + toronto_players, + utah_players, + washington_players +] +players.each_with_index do |roster, index| + Team.create(name: teams[index][0], mascot: teams[index][1], stadium: teams[index][2]) + roster.each do |player| + Team.last.players.create(name: player.text) + end +end diff --git a/Rodolfo_Valdivieso/models/optimize/test/fixtures/.keep b/dylan_eckert/models/optimize/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/fixtures/.keep rename to dylan_eckert/models/optimize/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/test/helpers/.keep b/dylan_eckert/models/optimize/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/helpers/.keep rename to dylan_eckert/models/optimize/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/test/integration/.keep b/dylan_eckert/models/optimize/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/integration/.keep rename to dylan_eckert/models/optimize/log/.keep diff --git a/dylan_eckert/models/optimize/public/404.html b/dylan_eckert/models/optimize/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/models/optimize/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/optimize/public/422.html b/dylan_eckert/models/optimize/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/models/optimize/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/optimize/public/500.html b/dylan_eckert/models/optimize/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/models/optimize/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Rodolfo_Valdivieso/models/optimize/test/mailers/.keep b/dylan_eckert/models/optimize/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/mailers/.keep rename to dylan_eckert/models/optimize/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/models/optimize/test/models/.keep b/dylan_eckert/models/optimize/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/models/.keep rename to dylan_eckert/models/optimize/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/models/self_join/public/favicon.ico b/dylan_eckert/models/optimize/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/public/favicon.ico rename to dylan_eckert/models/optimize/public/favicon.ico diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/public/robots.txt b/dylan_eckert/models/optimize/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/public/robots.txt rename to dylan_eckert/models/optimize/public/robots.txt diff --git a/Rodolfo_Valdivieso/models/optimize/vendor/assets/javascripts/.keep b/dylan_eckert/models/optimize/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/vendor/assets/javascripts/.keep rename to dylan_eckert/models/optimize/test/controllers/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/vendor/assets/stylesheets/.keep b/dylan_eckert/models/optimize/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/vendor/assets/stylesheets/.keep rename to dylan_eckert/models/optimize/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/app/assets/images/.keep b/dylan_eckert/models/optimize/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/app/assets/images/.keep rename to dylan_eckert/models/optimize/test/fixtures/files/.keep diff --git a/dylan_eckert/models/optimize/test/fixtures/players.yml b/dylan_eckert/models/optimize/test/fixtures/players.yml new file mode 100644 index 0000000..e36ea90 --- /dev/null +++ b/dylan_eckert/models/optimize/test/fixtures/players.yml @@ -0,0 +1,9 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + name: MyString + team: one + +two: + name: MyString + team: two diff --git a/Rodolfo_Valdivieso/models/optimize/test/fixtures/teams.yml b/dylan_eckert/models/optimize/test/fixtures/teams.yml similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/fixtures/teams.yml rename to dylan_eckert/models/optimize/test/fixtures/teams.yml diff --git a/Rodolfo_Valdivieso/models/self_join/app/controllers/concerns/.keep b/dylan_eckert/models/optimize/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/app/controllers/concerns/.keep rename to dylan_eckert/models/optimize/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/app/mailers/.keep b/dylan_eckert/models/optimize/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/app/mailers/.keep rename to dylan_eckert/models/optimize/test/integration/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/app/models/.keep b/dylan_eckert/models/optimize/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/app/models/.keep rename to dylan_eckert/models/optimize/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/app/models/concerns/.keep b/dylan_eckert/models/optimize/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/app/models/concerns/.keep rename to dylan_eckert/models/optimize/test/models/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/test/models/player_test.rb b/dylan_eckert/models/optimize/test/models/player_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/models/player_test.rb rename to dylan_eckert/models/optimize/test/models/player_test.rb diff --git a/Rodolfo_Valdivieso/models/optimize/test/models/team_test.rb b/dylan_eckert/models/optimize/test/models/team_test.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/models/team_test.rb rename to dylan_eckert/models/optimize/test/models/team_test.rb diff --git a/Rodolfo_Valdivieso/models/blogs2/test/test_helper.rb b/dylan_eckert/models/optimize/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/blogs2/test/test_helper.rb rename to dylan_eckert/models/optimize/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/models/self_join/lib/assets/.keep b/dylan_eckert/models/optimize/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/lib/assets/.keep rename to dylan_eckert/models/optimize/tmp/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/lib/tasks/.keep b/dylan_eckert/models/optimize/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/lib/tasks/.keep rename to dylan_eckert/models/optimize/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/log/.keep b/dylan_eckert/models/optimize/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/log/.keep rename to dylan_eckert/models/optimize/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/models/orm_practice/.gitignore b/dylan_eckert/models/orm_practice/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/models/orm_practice/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/models/orm_practice/Gemfile b/dylan_eckert/models/orm_practice/Gemfile new file mode 100644 index 0000000..8d7b3eb --- /dev/null +++ b/dylan_eckert/models/orm_practice/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.1' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/models/orm_practice/Gemfile.lock b/dylan_eckert/models/orm_practice/Gemfile.lock new file mode 100644 index 0000000..bb14b46 --- /dev/null +++ b/dylan_eckert/models/orm_practice/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.1) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.12.5 diff --git a/dylan_eckert/models/orm_practice/README.md b/dylan_eckert/models/orm_practice/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/models/orm_practice/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/models/orm_practice/Rakefile b/dylan_eckert/models/orm_practice/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/models/orm_practice/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/models/orm_practice/app/assets/config/manifest.js b/dylan_eckert/models/orm_practice/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/models/self_join/test/controllers/.keep b/dylan_eckert/models/orm_practice/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/controllers/.keep rename to dylan_eckert/models/orm_practice/app/assets/images/.keep diff --git a/dylan_eckert/models/orm_practice/app/assets/javascripts/application.js b/dylan_eckert/models/orm_practice/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/models/orm_practice/app/assets/javascripts/cable.js b/dylan_eckert/models/orm_practice/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/models/self_join/test/fixtures/.keep b/dylan_eckert/models/orm_practice/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/fixtures/.keep rename to dylan_eckert/models/orm_practice/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/models/orm_practice/app/assets/stylesheets/application.css b/dylan_eckert/models/orm_practice/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/models/orm_practice/app/channels/application_cable/channel.rb b/dylan_eckert/models/orm_practice/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/models/orm_practice/app/channels/application_cable/connection.rb b/dylan_eckert/models/orm_practice/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/models/orm_practice/app/controllers/application_controller.rb b/dylan_eckert/models/orm_practice/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/models/self_join/test/helpers/.keep b/dylan_eckert/models/orm_practice/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/helpers/.keep rename to dylan_eckert/models/orm_practice/app/controllers/concerns/.keep diff --git a/Rodolfo_Valdivieso/models/optimize/app/helpers/application_helper.rb b/dylan_eckert/models/orm_practice/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/app/helpers/application_helper.rb rename to dylan_eckert/models/orm_practice/app/helpers/application_helper.rb diff --git a/dylan_eckert/models/orm_practice/app/jobs/application_job.rb b/dylan_eckert/models/orm_practice/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/models/orm_practice/app/mailers/application_mailer.rb b/dylan_eckert/models/orm_practice/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/models/orm_practice/app/models/application_record.rb b/dylan_eckert/models/orm_practice/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/models/self_join/test/integration/.keep b/dylan_eckert/models/orm_practice/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/integration/.keep rename to dylan_eckert/models/orm_practice/app/models/concerns/.keep diff --git a/dylan_eckert/models/orm_practice/app/models/user.rb b/dylan_eckert/models/orm_practice/app/models/user.rb new file mode 100644 index 0000000..a16bf90 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/models/user.rb @@ -0,0 +1,33 @@ +class User < ActiveRecord::Base + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :first_name, :last_name, presence: true, length: { in: 2..20 } + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + # this callback will run before saving on create and update + before_save :downcase_email + + # this callback will run after creating a new user + after_create :successfully_created + + # this callback will run after updating an existing user + after_update :successfully_updated + + # this callback will only run on creating a record to ensure a default age of 0 + before_validation :default_age, on: [:create] + + private + def downcase_email + self.email.downcase! + end + + def successfully_created + puts "Successfully created a new user" + end + def successfully_updated + puts "Successfully updated a existing user" + end + + def default_age + self.age = 0 unless self.age? + end +end diff --git a/dylan_eckert/models/orm_practice/app/views/layouts/application.html.erb b/dylan_eckert/models/orm_practice/app/views/layouts/application.html.erb new file mode 100644 index 0000000..db0de64 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + OrmPractice + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/models/orm_practice/app/views/layouts/mailer.html.erb b/dylan_eckert/models/orm_practice/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/models/orm_practice/app/views/layouts/mailer.text.erb b/dylan_eckert/models/orm_practice/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/models/orm_practice/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/Rodolfo_Valdivieso/models/optimize/bin/bundle b/dylan_eckert/models/orm_practice/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/bin/bundle rename to dylan_eckert/models/orm_practice/bin/bundle diff --git a/dylan_eckert/models/orm_practice/bin/rails b/dylan_eckert/models/orm_practice/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/models/orm_practice/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/optimize/bin/rake b/dylan_eckert/models/orm_practice/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/bin/rake rename to dylan_eckert/models/orm_practice/bin/rake diff --git a/dylan_eckert/models/orm_practice/bin/setup b/dylan_eckert/models/orm_practice/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/models/orm_practice/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/models/optimize/bin/spring b/dylan_eckert/models/orm_practice/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/bin/spring rename to dylan_eckert/models/orm_practice/bin/spring diff --git a/dylan_eckert/models/orm_practice/bin/update b/dylan_eckert/models/orm_practice/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/models/orm_practice/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/models/orm_practice/config.ru b/dylan_eckert/models/orm_practice/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/models/orm_practice/config/application.rb b/dylan_eckert/models/orm_practice/config/application.rb new file mode 100644 index 0000000..4e4a726 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/application.rb @@ -0,0 +1,15 @@ +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) + +module OrmPractice + 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. + end +end diff --git a/dylan_eckert/models/orm_practice/config/boot.rb b/dylan_eckert/models/orm_practice/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/models/orm_practice/config/cable.yml b/dylan_eckert/models/orm_practice/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/config/database.yml b/dylan_eckert/models/orm_practice/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/config/database.yml rename to dylan_eckert/models/orm_practice/config/database.yml diff --git a/dylan_eckert/models/orm_practice/config/environment.rb b/dylan_eckert/models/orm_practice/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/models/orm_practice/config/environments/development.rb b/dylan_eckert/models/orm_practice/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/models/orm_practice/config/environments/production.rb b/dylan_eckert/models/orm_practice/config/environments/production.rb new file mode 100644 index 0000000..e9fd9cb --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "orm_practice_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/models/orm_practice/config/environments/test.rb b/dylan_eckert/models/orm_practice/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/models/orm_practice/config/initializers/application_controller_renderer.rb b/dylan_eckert/models/orm_practice/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..51639b6 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/initializers/application_controller_renderer.rb @@ -0,0 +1,6 @@ +# Be sure to restart your server when you modify this file. + +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) diff --git a/Rodolfo_Valdivieso/models/self_join/config/initializers/assets.rb b/dylan_eckert/models/orm_practice/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/config/initializers/assets.rb rename to dylan_eckert/models/orm_practice/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/models/optimize/config/initializers/backtrace_silencers.rb b/dylan_eckert/models/orm_practice/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/initializers/backtrace_silencers.rb rename to dylan_eckert/models/orm_practice/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/models/orm_practice/config/initializers/cookies_serializer.rb b/dylan_eckert/models/orm_practice/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/models/optimize/config/initializers/filter_parameter_logging.rb b/dylan_eckert/models/orm_practice/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/models/orm_practice/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/models/optimize/config/initializers/inflections.rb b/dylan_eckert/models/orm_practice/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/initializers/inflections.rb rename to dylan_eckert/models/orm_practice/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/models/optimize/config/initializers/mime_types.rb b/dylan_eckert/models/orm_practice/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/initializers/mime_types.rb rename to dylan_eckert/models/orm_practice/config/initializers/mime_types.rb diff --git a/dylan_eckert/models/orm_practice/config/initializers/new_framework_defaults.rb b/dylan_eckert/models/orm_practice/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..671abb6 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/initializers/new_framework_defaults.rb @@ -0,0 +1,24 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/justin_quiros/orm_practice/config/initializers/session_store.rb b/dylan_eckert/models/orm_practice/config/initializers/session_store.rb similarity index 100% rename from justin_quiros/orm_practice/config/initializers/session_store.rb rename to dylan_eckert/models/orm_practice/config/initializers/session_store.rb diff --git a/dylan_eckert/models/orm_practice/config/initializers/wrap_parameters.rb b/dylan_eckert/models/orm_practice/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/models/optimize/config/locales/en.yml b/dylan_eckert/models/orm_practice/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/locales/en.yml rename to dylan_eckert/models/orm_practice/config/locales/en.yml diff --git a/dylan_eckert/models/orm_practice/config/puma.rb b/dylan_eckert/models/orm_practice/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/models/orm_practice/config/routes.rb b/dylan_eckert/models/orm_practice/config/routes.rb new file mode 100644 index 0000000..787824f --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/routes.rb @@ -0,0 +1,3 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/dylan_eckert/models/orm_practice/config/secrets.yml b/dylan_eckert/models/orm_practice/config/secrets.yml new file mode 100644 index 0000000..b64df17 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: d27bdb2715b5afd1da77b7a2fa0bb3e21d13dae8b89c98e50e6117f977f7a6514ff50f4ad085a6a4867b2fc3dfc64e5fe44c416d04a48e832a813de5c7dc7467 + +test: + secret_key_base: d78240025d499140d7997510c0cec3c12661b5a319d892a8f63c5481c5c574511b9b8b8ad04ef1ae98901c2f4aabcddfb6006ff912ed6f38744bc2754ceb5188 + +# 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/dylan_eckert/models/orm_practice/config/spring.rb b/dylan_eckert/models/orm_practice/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/models/orm_practice/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/models/orm_practice/db/migrate/20171129193306_create_users.rb b/dylan_eckert/models/orm_practice/db/migrate/20171129193306_create_users.rb new file mode 100644 index 0000000..61fbb77 --- /dev/null +++ b/dylan_eckert/models/orm_practice/db/migrate/20171129193306_create_users.rb @@ -0,0 +1,13 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :fname + t.string :lname + t.string :email + t.string :password + t.integer :age + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/orm_practice/db/schema.rb b/dylan_eckert/models/orm_practice/db/schema.rb new file mode 100644 index 0000000..6fac6a9 --- /dev/null +++ b/dylan_eckert/models/orm_practice/db/schema.rb @@ -0,0 +1,25 @@ +# 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: 20171129193306) do + + create_table "users", force: :cascade do |t| + t.string "fname" + t.string "lname" + t.string "email" + t.string "password" + t.integer "age" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/models/orm_practice/db/seeds.rb b/dylan_eckert/models/orm_practice/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/models/orm_practice/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/models/self_join/test/mailers/.keep b/dylan_eckert/models/orm_practice/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/mailers/.keep rename to dylan_eckert/models/orm_practice/lib/assets/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/test/models/.keep b/dylan_eckert/models/orm_practice/lib/tasks/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/models/.keep rename to dylan_eckert/models/orm_practice/lib/tasks/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/vendor/assets/javascripts/.keep b/dylan_eckert/models/orm_practice/log/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/vendor/assets/javascripts/.keep rename to dylan_eckert/models/orm_practice/log/.keep diff --git a/Rodolfo_Valdivieso/controllers/basic_models/public/404.html b/dylan_eckert/models/orm_practice/public/404.html similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/public/404.html rename to dylan_eckert/models/orm_practice/public/404.html diff --git a/Rodolfo_Valdivieso/controllers/basic_models/public/422.html b/dylan_eckert/models/orm_practice/public/422.html similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/public/422.html rename to dylan_eckert/models/orm_practice/public/422.html diff --git a/Rodolfo_Valdivieso/controllers/basic_models/public/500.html b/dylan_eckert/models/orm_practice/public/500.html similarity index 100% rename from Rodolfo_Valdivieso/controllers/basic_models/public/500.html rename to dylan_eckert/models/orm_practice/public/500.html diff --git a/Rodolfo_Valdivieso/models/self_join/vendor/assets/stylesheets/.keep b/dylan_eckert/models/orm_practice/public/apple-touch-icon-precomposed.png similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/vendor/assets/stylesheets/.keep rename to dylan_eckert/models/orm_practice/public/apple-touch-icon-precomposed.png diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/assets/images/.keep b/dylan_eckert/models/orm_practice/public/apple-touch-icon.png similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/app/assets/images/.keep rename to dylan_eckert/models/orm_practice/public/apple-touch-icon.png diff --git a/Rodolfo_Valdivieso/models/user_login_project/public/favicon.ico b/dylan_eckert/models/orm_practice/public/favicon.ico similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/public/favicon.ico rename to dylan_eckert/models/orm_practice/public/favicon.ico diff --git a/Rodolfo_Valdivieso/models/optimize/public/robots.txt b/dylan_eckert/models/orm_practice/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/public/robots.txt rename to dylan_eckert/models/orm_practice/public/robots.txt diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/controllers/concerns/.keep b/dylan_eckert/models/orm_practice/test/controllers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/app/controllers/concerns/.keep rename to dylan_eckert/models/orm_practice/test/controllers/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/mailers/.keep b/dylan_eckert/models/orm_practice/test/fixtures/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/app/mailers/.keep rename to dylan_eckert/models/orm_practice/test/fixtures/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/models/.keep b/dylan_eckert/models/orm_practice/test/fixtures/files/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/app/models/.keep rename to dylan_eckert/models/orm_practice/test/fixtures/files/.keep diff --git a/dylan_eckert/models/orm_practice/test/fixtures/users.yml b/dylan_eckert/models/orm_practice/test/fixtures/users.yml new file mode 100644 index 0000000..85915c3 --- /dev/null +++ b/dylan_eckert/models/orm_practice/test/fixtures/users.yml @@ -0,0 +1,15 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + fname: MyString + lname: MyString + email: MyString + password: MyString + age: 1 + +two: + fname: MyString + lname: MyString + email: MyString + password: MyString + age: 1 diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/models/concerns/.keep b/dylan_eckert/models/orm_practice/test/helpers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/app/models/concerns/.keep rename to dylan_eckert/models/orm_practice/test/helpers/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/lib/assets/.keep b/dylan_eckert/models/orm_practice/test/integration/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/lib/assets/.keep rename to dylan_eckert/models/orm_practice/test/integration/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/lib/tasks/.keep b/dylan_eckert/models/orm_practice/test/mailers/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/lib/tasks/.keep rename to dylan_eckert/models/orm_practice/test/mailers/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/log/.keep b/dylan_eckert/models/orm_practice/test/models/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/log/.keep rename to dylan_eckert/models/orm_practice/test/models/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/test/models/user_test.rb b/dylan_eckert/models/orm_practice/test/models/user_test.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/models/user_test.rb rename to dylan_eckert/models/orm_practice/test/models/user_test.rb diff --git a/Rodolfo_Valdivieso/models/dojo_ninjas/test/test_helper.rb b/dylan_eckert/models/orm_practice/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/dojo_ninjas/test/test_helper.rb rename to dylan_eckert/models/orm_practice/test/test_helper.rb diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/controllers/.keep b/dylan_eckert/models/orm_practice/tmp/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/controllers/.keep rename to dylan_eckert/models/orm_practice/tmp/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/fixtures/.keep b/dylan_eckert/models/orm_practice/vendor/assets/javascripts/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/fixtures/.keep rename to dylan_eckert/models/orm_practice/vendor/assets/javascripts/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/helpers/.keep b/dylan_eckert/models/orm_practice/vendor/assets/stylesheets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/helpers/.keep rename to dylan_eckert/models/orm_practice/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/models/polymorphismcommands.txt b/dylan_eckert/models/polymorphismcommands.txt new file mode 100644 index 0000000..1260e26 --- /dev/null +++ b/dylan_eckert/models/polymorphismcommands.txt @@ -0,0 +1,13 @@ +rails g model Comment content:text commentable:references{polymorphic} + +rake db:migrate + +has_many :comments, as: :commentable + +Comment.create(content: "this is comment for blog 1" commentable: Blog.first) + +Blog.first.comments + +Blog.first.comments.first.update(content:"update comment") + +Blog.first.comments.first.destroy diff --git a/dylan_eckert/models/user_log_proj/.gitignore b/dylan_eckert/models/user_log_proj/.gitignore new file mode 100644 index 0000000..bab620d --- /dev/null +++ b/dylan_eckert/models/user_log_proj/.gitignore @@ -0,0 +1,21 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore the default SQLite database. +/db/*.sqlite3 +/db/*.sqlite3-journal + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/models/user_log_proj/Gemfile b/dylan_eckert/models/user_log_proj/Gemfile new file mode 100644 index 0000000..59d57f6 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/Gemfile @@ -0,0 +1,53 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use sqlite3 as the database for Active Record +gem 'sqlite3' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +# gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + # Call 'byebug' anywhere in the code to stop execution and get a debugger console + gem 'byebug', platform: :mri +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/models/user_log_proj/Gemfile.lock b/dylan_eckert/models/user_log_proj/Gemfile.lock new file mode 100644 index 0000000..5642395 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/Gemfile.lock @@ -0,0 +1,179 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + arel (7.1.4) + bindex (0.5.0) + builder (3.2.3) + byebug (9.1.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + erubis (2.7.0) + execjs (2.7.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + sqlite3 (1.3.13) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (3.2.0) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + +PLATFORMS + ruby + +DEPENDENCIES + byebug + coffee-rails (~> 4.2) + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + puma (~> 3.0) + rails (~> 5.0.6) + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + sqlite3 + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.12.5 diff --git a/dylan_eckert/models/user_log_proj/README.md b/dylan_eckert/models/user_log_proj/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/models/user_log_proj/Rakefile b/dylan_eckert/models/user_log_proj/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/models/user_log_proj/app/assets/config/manifest.js b/dylan_eckert/models/user_log_proj/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/integration/.keep b/dylan_eckert/models/user_log_proj/app/assets/images/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/integration/.keep rename to dylan_eckert/models/user_log_proj/app/assets/images/.keep diff --git a/dylan_eckert/models/user_log_proj/app/assets/javascripts/application.js b/dylan_eckert/models/user_log_proj/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/models/user_log_proj/app/assets/javascripts/cable.js b/dylan_eckert/models/user_log_proj/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/mailers/.keep b/dylan_eckert/models/user_log_proj/app/assets/javascripts/channels/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/mailers/.keep rename to dylan_eckert/models/user_log_proj/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/models/user_log_proj/app/assets/stylesheets/application.css b/dylan_eckert/models/user_log_proj/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/models/user_log_proj/app/channels/application_cable/channel.rb b/dylan_eckert/models/user_log_proj/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/models/user_log_proj/app/channels/application_cable/connection.rb b/dylan_eckert/models/user_log_proj/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/models/user_log_proj/app/controllers/application_controller.rb b/dylan_eckert/models/user_log_proj/app/controllers/application_controller.rb new file mode 100644 index 0000000..1c07694 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/controllers/application_controller.rb @@ -0,0 +1,3 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception +end diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/models/.keep b/dylan_eckert/models/user_log_proj/app/controllers/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/models/.keep rename to dylan_eckert/models/user_log_proj/app/controllers/concerns/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/app/helpers/application_helper.rb b/dylan_eckert/models/user_log_proj/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/app/helpers/application_helper.rb rename to dylan_eckert/models/user_log_proj/app/helpers/application_helper.rb diff --git a/dylan_eckert/models/user_log_proj/app/jobs/application_job.rb b/dylan_eckert/models/user_log_proj/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/models/user_log_proj/app/mailers/application_mailer.rb b/dylan_eckert/models/user_log_proj/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/models/user_log_proj/app/models/application_record.rb b/dylan_eckert/models/user_log_proj/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Rodolfo_Valdivieso/models/user_login_project/vendor/assets/javascripts/.keep b/dylan_eckert/models/user_log_proj/app/models/concerns/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/vendor/assets/javascripts/.keep rename to dylan_eckert/models/user_log_proj/app/models/concerns/.keep diff --git a/dylan_eckert/models/user_log_proj/app/models/user.rb b/dylan_eckert/models/user_log_proj/app/models/user.rb new file mode 100644 index 0000000..eef1df5 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/models/user.rb @@ -0,0 +1,22 @@ +class User < ApplicationRecord + validates :fname, :lname, :email, presence: true, length:{in: 2..20} + validates :age, numericality:{only_integer: true, greater_than: 9, less_than: 151} +end + +# irb(main):003:0> User.create(fname:"j",lname:"dued",age:"27",email:"email").errors.full_messages +# (0.3ms) begin transaction +# (0.1ms) rollback transaction +# => ["Fname is too short (minimum is 2 characters)"] + +# user = User.new +# user.fname = "dude" +# user.lname = "bro" +# user.email = "email" +# user.age = 5 +# irb(main):009:0> user.save +# (0.1ms) begin transaction +# (0.1ms) rollback transaction +# => false +# irb(main):011:0> user.errors.full_messages +# => ["Age must be greater than 9"] +# saving a new user to a variable (user in this case) and then running errors stores all the errors in that variable for displaying errors diff --git a/dylan_eckert/models/user_log_proj/app/views/layouts/application.html.erb b/dylan_eckert/models/user_log_proj/app/views/layouts/application.html.erb new file mode 100644 index 0000000..7a8082a --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/views/layouts/application.html.erb @@ -0,0 +1,14 @@ + + + + UserLogProj + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + <%= yield %> + + diff --git a/dylan_eckert/models/user_log_proj/app/views/layouts/mailer.html.erb b/dylan_eckert/models/user_log_proj/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/models/user_log_proj/app/views/layouts/mailer.text.erb b/dylan_eckert/models/user_log_proj/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/models/user_log_proj/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/Rodolfo_Valdivieso/models/self_join/bin/bundle b/dylan_eckert/models/user_log_proj/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/bin/bundle rename to dylan_eckert/models/user_log_proj/bin/bundle diff --git a/dylan_eckert/models/user_log_proj/bin/rails b/dylan_eckert/models/user_log_proj/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/models/user_log_proj/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/self_join/bin/rake b/dylan_eckert/models/user_log_proj/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/bin/rake rename to dylan_eckert/models/user_log_proj/bin/rake diff --git a/dylan_eckert/models/user_log_proj/bin/setup b/dylan_eckert/models/user_log_proj/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/models/user_log_proj/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/models/self_join/bin/spring b/dylan_eckert/models/user_log_proj/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/bin/spring rename to dylan_eckert/models/user_log_proj/bin/spring diff --git a/dylan_eckert/models/user_log_proj/bin/update b/dylan_eckert/models/user_log_proj/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/models/user_log_proj/commands.txt b/dylan_eckert/models/user_log_proj/commands.txt new file mode 100644 index 0000000..0c66f05 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/commands.txt @@ -0,0 +1,35 @@ +User.create(fname:"jon",lname:"doe",email:"email",age:10) + +irb(main):003:0> User.create(fname:"j",lname:"dued",age:"27",email:"email").errors.full_messages + (0.3ms) begin transaction + (0.1ms) rollback transaction +=> ["Fname is too short (minimum is 2 characters)"] + +user = User.new +user.fname = "dude" +user.lname = "bro" +user.email = "email" +user.age = 5 +irb(main):009:0> user.save + (0.1ms) begin transaction + (0.1ms) rollback transaction +=> false +irb(main):011:0> user.errors.full_messages +=> ["Age must be greater than 9"] +saving a new user to a variable (user in this case) and then running errors stores all the errors in that variable for displaying errors + +User.all +User.first +User.last +User.new.valid? +User.order(first_name: :desc) + +u = User.find(3) +u.update(last_name: "Smith") + +User.find(4).destroy + +class User < ApplicationRecord + validates :fname, :lname, :email, presence: true, length:{in: 2..20} + validates :age, numericality:{only_integer: true, greater_than: 9, less_than: 151} +end diff --git a/dylan_eckert/models/user_log_proj/config.ru b/dylan_eckert/models/user_log_proj/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/models/user_log_proj/config/application.rb b/dylan_eckert/models/user_log_proj/config/application.rb new file mode 100644 index 0000000..bdaf020 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/application.rb @@ -0,0 +1,15 @@ +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) + +module UserLogProj + 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. + end +end diff --git a/dylan_eckert/models/user_log_proj/config/boot.rb b/dylan_eckert/models/user_log_proj/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/models/user_log_proj/config/cable.yml b/dylan_eckert/models/user_log_proj/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/Rodolfo_Valdivieso/models/optimize/config/database.yml b/dylan_eckert/models/user_log_proj/config/database.yml similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/config/database.yml rename to dylan_eckert/models/user_log_proj/config/database.yml diff --git a/dylan_eckert/models/user_log_proj/config/environment.rb b/dylan_eckert/models/user_log_proj/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/models/user_log_proj/config/environments/development.rb b/dylan_eckert/models/user_log_proj/config/environments/development.rb new file mode 100644 index 0000000..6f71970 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/environments/development.rb @@ -0,0 +1,54 @@ +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. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/models/user_log_proj/config/environments/production.rb b/dylan_eckert/models/user_log_proj/config/environments/production.rb new file mode 100644 index 0000000..39e75e6 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "user_log_proj_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/models/user_log_proj/config/environments/test.rb b/dylan_eckert/models/user_log_proj/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/models/user_log_proj/config/initializers/application_controller_renderer.rb b/dylan_eckert/models/user_log_proj/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/initializers/assets.rb b/dylan_eckert/models/user_log_proj/config/initializers/assets.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/config/initializers/assets.rb rename to dylan_eckert/models/user_log_proj/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/models/self_join/config/initializers/backtrace_silencers.rb b/dylan_eckert/models/user_log_proj/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/config/initializers/backtrace_silencers.rb rename to dylan_eckert/models/user_log_proj/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/models/user_log_proj/config/initializers/cookies_serializer.rb b/dylan_eckert/models/user_log_proj/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/models/self_join/config/initializers/filter_parameter_logging.rb b/dylan_eckert/models/user_log_proj/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/models/user_log_proj/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/models/self_join/config/initializers/inflections.rb b/dylan_eckert/models/user_log_proj/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/config/initializers/inflections.rb rename to dylan_eckert/models/user_log_proj/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/models/self_join/config/initializers/mime_types.rb b/dylan_eckert/models/user_log_proj/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/config/initializers/mime_types.rb rename to dylan_eckert/models/user_log_proj/config/initializers/mime_types.rb diff --git a/dylan_eckert/models/user_log_proj/config/initializers/new_framework_defaults.rb b/dylan_eckert/models/user_log_proj/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/models/user_log_proj/config/initializers/session_store.rb b/dylan_eckert/models/user_log_proj/config/initializers/session_store.rb new file mode 100644 index 0000000..c25827b --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_user_log_proj_session' diff --git a/dylan_eckert/models/user_log_proj/config/initializers/wrap_parameters.rb b/dylan_eckert/models/user_log_proj/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/models/self_join/config/locales/en.yml b/dylan_eckert/models/user_log_proj/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/config/locales/en.yml rename to dylan_eckert/models/user_log_proj/config/locales/en.yml diff --git a/dylan_eckert/models/user_log_proj/config/puma.rb b/dylan_eckert/models/user_log_proj/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/models/user_log_proj/config/routes.rb b/dylan_eckert/models/user_log_proj/config/routes.rb new file mode 100644 index 0000000..787824f --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/routes.rb @@ -0,0 +1,3 @@ +Rails.application.routes.draw do + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/dylan_eckert/models/user_log_proj/config/secrets.yml b/dylan_eckert/models/user_log_proj/config/secrets.yml new file mode 100644 index 0000000..e580271 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: f01aa430b99f38af5192173ff07c782b899e08ab479e165bd311bd7cf333637aa88e11572ee03d83c39625c17007dfb82dc3f657770c6847bd61d2a1ecbb2410 + +test: + secret_key_base: 896db28164e1513edde5cfc428303e7a7292688075c90c7c4e0d584925c4b8885c5216dd1f60d5f0308fa042a239010910dca04da63fbb602b97061efc22399e + +# 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/dylan_eckert/models/user_log_proj/config/spring.rb b/dylan_eckert/models/user_log_proj/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/models/user_log_proj/db/migrate/20171129202800_create_users.rb b/dylan_eckert/models/user_log_proj/db/migrate/20171129202800_create_users.rb new file mode 100644 index 0000000..28e7c83 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/db/migrate/20171129202800_create_users.rb @@ -0,0 +1,12 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :fname + t.string :lname + t.integer :age + t.string :email + + t.timestamps + end + end +end diff --git a/dylan_eckert/models/user_log_proj/db/schema.rb b/dylan_eckert/models/user_log_proj/db/schema.rb new file mode 100644 index 0000000..324acf9 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/db/schema.rb @@ -0,0 +1,24 @@ +# 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: 20171129202800) do + + create_table "users", force: :cascade do |t| + t.string "fname" + t.string "lname" + t.integer "age" + t.string "email" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/models/user_log_proj/db/seeds.rb b/dylan_eckert/models/user_log_proj/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/models/user_log_proj/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Rodolfo_Valdivieso/models/user_login_project/vendor/assets/stylesheets/.keep b/dylan_eckert/models/user_log_proj/lib/assets/.keep similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/vendor/assets/stylesheets/.keep rename to dylan_eckert/models/user_log_proj/lib/assets/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/app/assets/images/.keep b/dylan_eckert/models/user_log_proj/lib/tasks/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/app/assets/images/.keep rename to dylan_eckert/models/user_log_proj/lib/tasks/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/app/controllers/concerns/.keep b/dylan_eckert/models/user_log_proj/log/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/app/controllers/concerns/.keep rename to dylan_eckert/models/user_log_proj/log/.keep diff --git a/dylan_eckert/models/user_log_proj/public/404.html b/dylan_eckert/models/user_log_proj/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/user_log_proj/public/422.html b/dylan_eckert/models/user_log_proj/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/models/user_log_proj/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/models/user_log_proj/public/500.html b/dylan_eckert/models/user_log_proj/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/models/user_log_proj/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Stephen Weil/Rails/Models/blogs_one/app/mailers/.keep b/dylan_eckert/models/user_log_proj/public/apple-touch-icon-precomposed.png similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/app/mailers/.keep rename to dylan_eckert/models/user_log_proj/public/apple-touch-icon-precomposed.png diff --git a/Stephen Weil/Rails/Models/blogs_one/app/models/.keep b/dylan_eckert/models/user_log_proj/public/apple-touch-icon.png similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/app/models/.keep rename to dylan_eckert/models/user_log_proj/public/apple-touch-icon.png diff --git a/Stephen Weil/Rails/Models/blogs_one/public/favicon.ico b/dylan_eckert/models/user_log_proj/public/favicon.ico similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/public/favicon.ico rename to dylan_eckert/models/user_log_proj/public/favicon.ico diff --git a/Rodolfo_Valdivieso/models/self_join/public/robots.txt b/dylan_eckert/models/user_log_proj/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/public/robots.txt rename to dylan_eckert/models/user_log_proj/public/robots.txt diff --git a/Stephen Weil/Rails/Models/blogs_one/app/models/concerns/.keep b/dylan_eckert/models/user_log_proj/test/controllers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/app/models/concerns/.keep rename to dylan_eckert/models/user_log_proj/test/controllers/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/lib/assets/.keep b/dylan_eckert/models/user_log_proj/test/fixtures/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/lib/assets/.keep rename to dylan_eckert/models/user_log_proj/test/fixtures/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/lib/tasks/.keep b/dylan_eckert/models/user_log_proj/test/fixtures/files/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/lib/tasks/.keep rename to dylan_eckert/models/user_log_proj/test/fixtures/files/.keep diff --git a/dylan_eckert/models/user_log_proj/test/fixtures/users.yml b/dylan_eckert/models/user_log_proj/test/fixtures/users.yml new file mode 100644 index 0000000..32bf32d --- /dev/null +++ b/dylan_eckert/models/user_log_proj/test/fixtures/users.yml @@ -0,0 +1,13 @@ +# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html + +one: + fname: MyString + lname: MyString + age: 1 + email: MyString + +two: + fname: MyString + lname: MyString + age: 1 + email: MyString diff --git a/Stephen Weil/Rails/Models/blogs_one/log/.keep b/dylan_eckert/models/user_log_proj/test/helpers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/log/.keep rename to dylan_eckert/models/user_log_proj/test/helpers/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/test/controllers/.keep b/dylan_eckert/models/user_log_proj/test/integration/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/controllers/.keep rename to dylan_eckert/models/user_log_proj/test/integration/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/test/fixtures/.keep b/dylan_eckert/models/user_log_proj/test/mailers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/fixtures/.keep rename to dylan_eckert/models/user_log_proj/test/mailers/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/test/helpers/.keep b/dylan_eckert/models/user_log_proj/test/models/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/helpers/.keep rename to dylan_eckert/models/user_log_proj/test/models/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/models/user_test.rb b/dylan_eckert/models/user_log_proj/test/models/user_test.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/test/models/user_test.rb rename to dylan_eckert/models/user_log_proj/test/models/user_test.rb diff --git a/Rodolfo_Valdivieso/models/optimize/test/test_helper.rb b/dylan_eckert/models/user_log_proj/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/optimize/test/test_helper.rb rename to dylan_eckert/models/user_log_proj/test/test_helper.rb diff --git a/Stephen Weil/Rails/Models/blogs_one/test/integration/.keep b/dylan_eckert/models/user_log_proj/tmp/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/integration/.keep rename to dylan_eckert/models/user_log_proj/tmp/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/test/mailers/.keep b/dylan_eckert/models/user_log_proj/vendor/assets/javascripts/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/mailers/.keep rename to dylan_eckert/models/user_log_proj/vendor/assets/javascripts/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/test/models/.keep b/dylan_eckert/models/user_log_proj/vendor/assets/stylesheets/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/models/.keep rename to dylan_eckert/models/user_log_proj/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/oop/bank.rb b/dylan_eckert/oop/bank.rb new file mode 100644 index 0000000..4f79dc3 --- /dev/null +++ b/dylan_eckert/oop/bank.rb @@ -0,0 +1,66 @@ +class BankAccount + attr_accessor :acctnum, :checkbal, :savebal + @@accounts = 0 + def initialize + @acctnum = genAcct + @checkbal = 0 + @savebal = 0 + @@accounts += 1 + @interest = 0.01 + end + def showCheck + puts "Checking: #{@checkbal}" + self + end + def showSave + puts "Savings: #{@savebal}" + self + end + def deposit(acct, num) + if acct == "checking" + @checkbal += num + elsif acct == "saving" + @savebal += num + else + p "No matching account name" + end + self + end + def withdraw(acct, num) + if acct == "checking" + @checkbal -= num + elsif acct == "saving" + @savebal -= num + else + p "No matching account name" + end + self + end + def showTotal + total = @checkbal + @savebal + end + def showAcct + puts "Account Number: #{@acctnum} Interest: #{@interest} #{self.showTotal}" + self + end + def self.accounts + p "Total Accounts: #{@@accounts}" + end + private + def genAcct + @acctnum = rand(1..10) + end +end + +dylan = BankAccount.new +dylan.showAcct.showSave.showCheck +dylan.deposit("checking", 20) +dylan.deposit("saving", 50) +dylan.deposit("kbdlkaf", 20) +dylan.showAcct.showSave.showCheck +dylan.withdraw("checking", 10) +dylan.withdraw("saving", 20) +dylan.withdraw("kbdlkaf", 20) +dylan.showAcct.showSave.showCheck + +BankAccount.accounts diff --git a/dylan_eckert/oop/dog.zip b/dylan_eckert/oop/dog.zip new file mode 100644 index 0000000..42fbb4f Binary files /dev/null and b/dylan_eckert/oop/dog.zip differ diff --git a/dylan_eckert/oop/human.rb b/dylan_eckert/oop/human.rb new file mode 100644 index 0000000..a1e18b0 --- /dev/null +++ b/dylan_eckert/oop/human.rb @@ -0,0 +1,25 @@ +class Human + attr_accessor :strength, :int, :health, :stealth + def initialize + @strength = 3 + @int = 3 + @stealth = 3 + @health = 100 + end + def attack(obj) + if obj.class.ancestors.include?(Human) + obj.health -= 10 + true + else + false + end + end +end + +dylan = Human.new +p "dylan: #{dylan.health}" +badguy = Human.new +p "badguy: #{badguy.health}" +dylan.attack(badguy) +p "Dylan attacks badguy!" +p "badguy: #{badguy.health}" diff --git a/dylan_eckert/oop/lion.zip b/dylan_eckert/oop/lion.zip new file mode 100644 index 0000000..4fe057e Binary files /dev/null and b/dylan_eckert/oop/lion.zip differ diff --git a/dylan_eckert/oop/mathdojo.rb b/dylan_eckert/oop/mathdojo.rb new file mode 100644 index 0000000..fcb393f --- /dev/null +++ b/dylan_eckert/oop/mathdojo.rb @@ -0,0 +1,18 @@ +class MathDojo + attr_accessor :result + def initialize + @result = 0 + end + def add(*nums) + @result += nums.flatten.reduce(0, :+) + self + end + def subtract(*nums) + @result -= nums.flatten.reduce(0, :+) + self + end +end +challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).result # => 4 +challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).result # => 23.15 +puts challenge1 +puts challenge2 diff --git a/dylan_eckert/oop/project.rb b/dylan_eckert/oop/project.rb new file mode 100644 index 0000000..c989ba8 --- /dev/null +++ b/dylan_eckert/oop/project.rb @@ -0,0 +1,13 @@ +class Project + attr_accessor :name, :desc + def initialize(name, desc) + @name = name + @desc = desc + end + def elevator_pitch + puts "#{@name}, #{@desc}" + end +end +project1 = Project.new("Project 1", "Description 1") +puts project1.name # => "Project 1" +project1.elevator_pitch # => "Project 1, Description 1" diff --git a/dylan_eckert/oop/user.rb b/dylan_eckert/oop/user.rb new file mode 100644 index 0000000..2017c50 --- /dev/null +++ b/dylan_eckert/oop/user.rb @@ -0,0 +1,22 @@ +class User + attr_accessor :fname, :lname + def initialize(fname, lname) + @fname = fname + @lname = lname + self + end + def full_name + puts "I am #{@fname} #{@lname}" + self + end + def hello + puts "Hello" + self + end + def self.created + puts "User created" + end +end +dylan = User.new("Dylan", "Eckert") +User.created +dylan.full_name.hello diff --git a/dylan_eckert/oop/wizninsam.zip b/dylan_eckert/oop/wizninsam.zip new file mode 100644 index 0000000..991ce80 Binary files /dev/null and b/dylan_eckert/oop/wizninsam.zip differ diff --git a/dylan_eckert/rails2/DojoSecrets/.gitignore b/dylan_eckert/rails2/DojoSecrets/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/Tamisha_Damas/Rails II/dojo_secrets/.rspec b/dylan_eckert/rails2/DojoSecrets/.rspec similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/.rspec rename to dylan_eckert/rails2/DojoSecrets/.rspec diff --git a/dylan_eckert/rails2/DojoSecrets/Gemfile b/dylan_eckert/rails2/DojoSecrets/Gemfile new file mode 100644 index 0000000..8d464a7 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + gem 'rspec-rails' + gem 'factory_bot_rails' + gem 'capybara' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/rails2/DojoSecrets/Gemfile.lock b/dylan_eckert/rails2/DojoSecrets/Gemfile.lock new file mode 100644 index 0000000..1368646 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/Gemfile.lock @@ -0,0 +1,217 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + capybara (2.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + diff-lcs (1.3) + erubis (2.7.0) + execjs (2.7.0) + factory_bot (4.8.2) + activesupport (>= 3.0.0) + factory_bot_rails (4.8.2) + factory_bot (~> 4.8.2) + railties (>= 3.0.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + public_suffix (3.0.1) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rspec-core (3.7.0) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-rails (3.7.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.0) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + capybara + coffee-rails (~> 4.2) + factory_bot_rails + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rspec-rails + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/rails2/DojoSecrets/README.md b/dylan_eckert/rails2/DojoSecrets/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/rails2/DojoSecrets/Rakefile b/dylan_eckert/rails2/DojoSecrets/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/rails2/DojoSecrets/app/assets/config/manifest.js b/dylan_eckert/rails2/DojoSecrets/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Stephen Weil/Rails/Models/blogs_one/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/DojoSecrets/app/assets/images/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/DojoSecrets/app/assets/images/.keep diff --git a/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/application.js b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/cable.js b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Stephen Weil/Rails/Models/blogs_one/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/channels/.keep similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/channels/.keep diff --git a/Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/javascripts/rpg.coffee b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/likes.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/ninjaGold/app/assets/javascripts/rpg.coffee rename to dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/likes.coffee diff --git a/Rodolfo_Valdivieso/controllers/routes/app/assets/javascripts/products.coffee b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/secrets.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/assets/javascripts/products.coffee rename to dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/secrets.coffee diff --git a/Rodolfo_Valdivieso/controllers/routes/app/assets/javascripts/test.coffee b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/sessions.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/routes/app/assets/javascripts/test.coffee rename to dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/sessions.coffee diff --git a/justin_quiros/models/app/assets/javascripts/users.coffee b/dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/users.coffee similarity index 100% rename from justin_quiros/models/app/assets/javascripts/users.coffee rename to dylan_eckert/rails2/DojoSecrets/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/application.css b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/likes.scss b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/likes.scss new file mode 100644 index 0000000..dacd946 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/likes.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Likes controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/secrets.scss b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/secrets.scss new file mode 100644 index 0000000..f1aed55 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/secrets.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Secrets controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/sessions.scss b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000..ccb1ed2 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/stylesheets/users.scss b/dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/users.scss similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/stylesheets/users.scss rename to dylan_eckert/rails2/DojoSecrets/app/assets/stylesheets/users.scss diff --git a/dylan_eckert/rails2/DojoSecrets/app/channels/application_cable/channel.rb b/dylan_eckert/rails2/DojoSecrets/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/channels/application_cable/connection.rb b/dylan_eckert/rails2/DojoSecrets/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/controllers/application_controller.rb b/dylan_eckert/rails2/DojoSecrets/app/controllers/application_controller.rb new file mode 100644 index 0000000..122a954 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/controllers/application_controller.rb @@ -0,0 +1,15 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login + + def require_login + return redirect_to new_session_path unless session[:user_id] + end + def current_user + # ONLY USE THIS IF YOU ARE NEEDING THE FULL USER INFO (name, email, etc) if you are going for an id, just use session[:user_id] + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/assets/images/.keep b/dylan_eckert/rails2/DojoSecrets/app/controllers/concerns/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/app/assets/images/.keep rename to dylan_eckert/rails2/DojoSecrets/app/controllers/concerns/.keep diff --git a/dylan_eckert/rails2/DojoSecrets/app/controllers/likes_controller.rb b/dylan_eckert/rails2/DojoSecrets/app/controllers/likes_controller.rb new file mode 100644 index 0000000..f64accc --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/controllers/likes_controller.rb @@ -0,0 +1,17 @@ +class LikesController < ApplicationController + def create + Like.create(like_params) + redirect_to secrets_path + end + + def destroy + @like = Like.find(params[:id]) + @like.destroy if session[:user_id] === @like.user_id + # this is a check to make sure that if somehow a user who didnt create the like tries to delete the like(unlike), the destroy method will not run + redirect_to secrets_path + end + private + def like_params + params.require(:like).permit(:secret_id).merge(user: current_user) + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/controllers/secrets_controller.rb b/dylan_eckert/rails2/DojoSecrets/app/controllers/secrets_controller.rb new file mode 100644 index 0000000..b841f71 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/controllers/secrets_controller.rb @@ -0,0 +1,23 @@ +class SecretsController < ApplicationController + def index + @secrets = Secret.all + # this is to get all secrets, I then have + end + def create + secret = Secret.new secret_params + unless secret.save + flash[:errors] = secret.errors.full_messages + end + redirect_to user_path current_user.id + end + def destroy + @secret = Secret.find(params[:id]) + @secret.destroy if @secret.user === current_user + redirect_to user_path current_user.id + end + private + def secret_params + params.require(:secret).permit(:content).merge(user: current_user) + # make strong params for secret, including content and merging the user that created it by using my application controller's method current_user to find the current user logged in to the session + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/controllers/sessions_controller.rb b/dylan_eckert/rails2/DojoSecrets/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..6a0abf2 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/controllers/sessions_controller.rb @@ -0,0 +1,26 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def new + end + + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to user_path user.id + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: new_session_path + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/controllers/users_controller.rb b/dylan_eckert/rails2/DojoSecrets/app/controllers/users_controller.rb new file mode 100644 index 0000000..e59122e --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/controllers/users_controller.rb @@ -0,0 +1,51 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:new, :create] + before_action :user_auth, except: [:new, :create] + def new + end + + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to user_path user.id + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: new_user_path + end + end + + def show + @user = User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def update + user = User.find(params[:id]) + user.update(user_params) + redirect_to user_path user.id + end + + def destroy + user = User.find(params[:id]) + user.destroy + reset_session + redirect_to new_session_path + end + + private + + def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) + end + + def user_auth + if params[:id].to_i != session[:user_id] + # anything put into params or forms are treated as strings, so basically, session[:user_id] is a true integer because it comes from the user object. params[:id] is a string and must be converted to an integer in order for the comparison to occur + redirect_to user_path session[:user_id] + end + end +end diff --git a/Rodolfo_Valdivieso/models/user_login_project/app/helpers/application_helper.rb b/dylan_eckert/rails2/DojoSecrets/app/helpers/application_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/app/helpers/application_helper.rb rename to dylan_eckert/rails2/DojoSecrets/app/helpers/application_helper.rb diff --git a/dylan_eckert/rails2/DojoSecrets/app/helpers/likes_helper.rb b/dylan_eckert/rails2/DojoSecrets/app/helpers/likes_helper.rb new file mode 100644 index 0000000..a78a759 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/helpers/likes_helper.rb @@ -0,0 +1,2 @@ +module LikesHelper +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/helpers/secrets_helper.rb b/dylan_eckert/rails2/DojoSecrets/app/helpers/secrets_helper.rb new file mode 100644 index 0000000..17ab1ea --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/helpers/secrets_helper.rb @@ -0,0 +1,2 @@ +module SecretsHelper +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/helpers/sessions_helper.rb b/dylan_eckert/rails2/DojoSecrets/app/helpers/sessions_helper.rb new file mode 100644 index 0000000..309f8b2 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/brittney_jackson/rails/integrateModels/app/helpers/users_helper.rb b/dylan_eckert/rails2/DojoSecrets/app/helpers/users_helper.rb similarity index 100% rename from brittney_jackson/rails/integrateModels/app/helpers/users_helper.rb rename to dylan_eckert/rails2/DojoSecrets/app/helpers/users_helper.rb diff --git a/dylan_eckert/rails2/DojoSecrets/app/jobs/application_job.rb b/dylan_eckert/rails2/DojoSecrets/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/mailers/application_mailer.rb b/dylan_eckert/rails2/DojoSecrets/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/models/application_record.rb b/dylan_eckert/rails2/DojoSecrets/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/controllers/concerns/.keep b/dylan_eckert/rails2/DojoSecrets/app/models/concerns/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/app/controllers/concerns/.keep rename to dylan_eckert/rails2/DojoSecrets/app/models/concerns/.keep diff --git a/dylan_eckert/rails2/DojoSecrets/app/models/like.rb b/dylan_eckert/rails2/DojoSecrets/app/models/like.rb new file mode 100644 index 0000000..85908ea --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/models/like.rb @@ -0,0 +1,4 @@ +class Like < ApplicationRecord + belongs_to :secret + belongs_to :user +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/models/secret.rb b/dylan_eckert/rails2/DojoSecrets/app/models/secret.rb new file mode 100644 index 0000000..1a3958f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/models/secret.rb @@ -0,0 +1,7 @@ +class Secret < ApplicationRecord + belongs_to :user + has_many :likes, dependent: :destroy + has_many :users, through: :likes + + validates :content, presence: true +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/models/user.rb b/dylan_eckert/rails2/DojoSecrets/app/models/user.rb new file mode 100644 index 0000000..60bda5f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/models/user.rb @@ -0,0 +1,20 @@ +class User < ApplicationRecord + has_secure_password + has_many :secrets + has_many :likes, dependent: :destroy + has_many :secrets_liked, through: :likes, source: :secret + # the line above is there to allow for us so the query User.first.secrets will show all of the secrets the user created, not the secrets the user has liked + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :input_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def input_lowercase + self.email.downcase! + self.name.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/layouts/application.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4c62c3f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/layouts/application.html.erb @@ -0,0 +1,25 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/layouts/mailer.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/layouts/mailer.text.erb b/dylan_eckert/rails2/DojoSecrets/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/likes/create.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/likes/create.html.erb new file mode 100644 index 0000000..7159391 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/likes/create.html.erb @@ -0,0 +1,2 @@ +

Likes#create

+

Find me in app/views/likes/create.html.erb

diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/likes/destroy.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/likes/destroy.html.erb new file mode 100644 index 0000000..b7ab94f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/likes/destroy.html.erb @@ -0,0 +1,2 @@ +

Likes#destroy

+

Find me in app/views/likes/destroy.html.erb

diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/secrets/index.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/secrets/index.html.erb new file mode 100644 index 0000000..eb436f1 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/secrets/index.html.erb @@ -0,0 +1,26 @@ +

All Secrets

+<% @secrets.all.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> + <% unless secret.users.include?(current_user) %> +
+ + + +
+ <% else %> +
+ + + + +
+ <% end %> +<% end %> diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/sessions/new.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/sessions/new.html.erb new file mode 100644 index 0000000..9da5dea --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/users/edit.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/users/edit.html.erb new file mode 100644 index 0000000..c23f602 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/users/edit.html.erb @@ -0,0 +1,12 @@ +

Edit User <%= @user.id %>

+ +
+ + + Name: + + Email: + + +
+Delete Account diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/users/new.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/users/new.html.erb new file mode 100644 index 0000000..f4aed5d --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/users/new.html.erb @@ -0,0 +1,13 @@ +

Register

+
+ +

Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ + +
diff --git a/dylan_eckert/rails2/DojoSecrets/app/views/users/show.html.erb b/dylan_eckert/rails2/DojoSecrets/app/views/users/show.html.erb new file mode 100644 index 0000000..6aea1b2 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/app/views/users/show.html.erb @@ -0,0 +1,21 @@ +

<%= @user.name %>

+

<%= @user.email %>

+
+ + + +
+ + +<% @user.secrets.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> +<% end %> +Update Account diff --git a/Rodolfo_Valdivieso/models/user_login_project/bin/bundle b/dylan_eckert/rails2/DojoSecrets/bin/bundle old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/bin/bundle rename to dylan_eckert/rails2/DojoSecrets/bin/bundle diff --git a/dylan_eckert/rails2/DojoSecrets/bin/rails b/dylan_eckert/rails2/DojoSecrets/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Rodolfo_Valdivieso/models/user_login_project/bin/rake b/dylan_eckert/rails2/DojoSecrets/bin/rake old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/bin/rake rename to dylan_eckert/rails2/DojoSecrets/bin/rake diff --git a/dylan_eckert/rails2/DojoSecrets/bin/setup b/dylan_eckert/rails2/DojoSecrets/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Rodolfo_Valdivieso/models/user_login_project/bin/spring b/dylan_eckert/rails2/DojoSecrets/bin/spring old mode 100644 new mode 100755 similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/bin/spring rename to dylan_eckert/rails2/DojoSecrets/bin/spring diff --git a/dylan_eckert/rails2/DojoSecrets/bin/update b/dylan_eckert/rails2/DojoSecrets/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/rails2/DojoSecrets/config.ru b/dylan_eckert/rails2/DojoSecrets/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/rails2/DojoSecrets/config/application.rb b/dylan_eckert/rails2/DojoSecrets/config/application.rb new file mode 100644 index 0000000..65de0bc --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoSecrets + 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. + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/config/boot.rb b/dylan_eckert/rails2/DojoSecrets/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/rails2/DojoSecrets/config/cable.yml b/dylan_eckert/rails2/DojoSecrets/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/rails2/DojoSecrets/config/database.yml b/dylan_eckert/rails2/DojoSecrets/config/database.yml new file mode 100644 index 0000000..efc5910 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: DojoSecrets_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: DojoSecrets + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: DojoSecrets_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: DojoSecrets_production + username: DojoSecrets + password: <%= ENV['DOJOSECRETS_DATABASE_PASSWORD'] %> diff --git a/dylan_eckert/rails2/DojoSecrets/config/environment.rb b/dylan_eckert/rails2/DojoSecrets/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/rails2/DojoSecrets/config/environments/development.rb b/dylan_eckert/rails2/DojoSecrets/config/environments/development.rb new file mode 100644 index 0000000..77fe74d --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/environments/development.rb @@ -0,0 +1,55 @@ +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 rest art the web server when you make code changes. + config.cache_classes = false + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/rails2/DojoSecrets/config/environments/production.rb b/dylan_eckert/rails2/DojoSecrets/config/environments/production.rb new file mode 100644 index 0000000..f8e01b7 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "DojoSecrets_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/rails2/DojoSecrets/config/environments/test.rb b/dylan_eckert/rails2/DojoSecrets/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/rails2/DojoSecrets/config/initializers/application_controller_renderer.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Stephen Weil/Rails/Models/blogs_one/config/initializers/assets.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/assets.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/config/initializers/assets.rb rename to dylan_eckert/rails2/DojoSecrets/config/initializers/assets.rb diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/initializers/backtrace_silencers.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/backtrace_silencers.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/config/initializers/backtrace_silencers.rb rename to dylan_eckert/rails2/DojoSecrets/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/rails2/DojoSecrets/config/initializers/cookies_serializer.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/initializers/filter_parameter_logging.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/rails2/DojoSecrets/config/initializers/filter_parameter_logging.rb diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/initializers/inflections.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/inflections.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/config/initializers/inflections.rb rename to dylan_eckert/rails2/DojoSecrets/config/initializers/inflections.rb diff --git a/Rodolfo_Valdivieso/models/user_login_project/config/initializers/mime_types.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/mime_types.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/config/initializers/mime_types.rb rename to dylan_eckert/rails2/DojoSecrets/config/initializers/mime_types.rb diff --git a/dylan_eckert/rails2/DojoSecrets/config/initializers/new_framework_defaults.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/rails2/DojoSecrets/config/initializers/session_store.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/session_store.rb new file mode 100644 index 0000000..745fa7c --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_DojoSecrets_session' diff --git a/dylan_eckert/rails2/DojoSecrets/config/initializers/wrap_parameters.rb b/dylan_eckert/rails2/DojoSecrets/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Rodolfo_Valdivieso/models/user_login_project/config/locales/en.yml b/dylan_eckert/rails2/DojoSecrets/config/locales/en.yml similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/config/locales/en.yml rename to dylan_eckert/rails2/DojoSecrets/config/locales/en.yml diff --git a/dylan_eckert/rails2/DojoSecrets/config/puma.rb b/dylan_eckert/rails2/DojoSecrets/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/rails2/DojoSecrets/config/routes.rb b/dylan_eckert/rails2/DojoSecrets/config/routes.rb new file mode 100644 index 0000000..27bab57 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/routes.rb @@ -0,0 +1,8 @@ +Rails.application.routes.draw do + resources :sessions, only: [:new, :create, :destroy] + resources :users, except: [:index] + resources :secrets, only: [:index, :create, :destroy] + resources :likes, only: [:create, :destroy] + # The priority is based upon order of creation from top to bottom + # rake routes lets you see all available routes and their names +end diff --git a/dylan_eckert/rails2/DojoSecrets/config/secrets.yml b/dylan_eckert/rails2/DojoSecrets/config/secrets.yml new file mode 100644 index 0000000..41e0de4 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: df5bfd362ae400b400d79af9bc419e988c72e7a2df7aebc541137d2f27e125bb93b09d877ecc0cae931a9b8c16ef96f1c7329a8b2d788eadf3a0f5cc9bb4d4e7 + +test: + secret_key_base: 91a21b8af0492c5893228989638a977f5e7cf895e0a94a3a0cd34976a4582b84e68c4e940e3369f2297218eaebf4bce2cc07441512a9c2d645734c20e08024b9 + +# 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/dylan_eckert/rails2/DojoSecrets/config/spring.rb b/dylan_eckert/rails2/DojoSecrets/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/rails2/DojoSecrets/db/migrate/20171211192257_create_users.rb b/dylan_eckert/rails2/DojoSecrets/db/migrate/20171211192257_create_users.rb new file mode 100644 index 0000000..9e6ab64 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/db/migrate/20171211192257_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/db/migrate/20171212235708_create_secrets.rb b/dylan_eckert/rails2/DojoSecrets/db/migrate/20171212235708_create_secrets.rb new file mode 100644 index 0000000..df773f3 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/db/migrate/20171212235708_create_secrets.rb @@ -0,0 +1,10 @@ +class CreateSecrets < ActiveRecord::Migration[5.0] + def change + create_table :secrets do |t| + t.text :content + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/db/migrate/20171212235821_create_likes.rb b/dylan_eckert/rails2/DojoSecrets/db/migrate/20171212235821_create_likes.rb new file mode 100644 index 0000000..0c95c79 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/db/migrate/20171212235821_create_likes.rb @@ -0,0 +1,10 @@ +class CreateLikes < ActiveRecord::Migration[5.0] + def change + create_table :likes do |t| + t.references :secret, foreign_key: true + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/db/schema.rb b/dylan_eckert/rails2/DojoSecrets/db/schema.rb new file mode 100644 index 0000000..e0d9fe8 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/db/schema.rb @@ -0,0 +1,46 @@ +# 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: 20171212235821) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "likes", force: :cascade do |t| + t.integer "secret_id" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["secret_id"], name: "index_likes_on_secret_id", using: :btree + t.index ["user_id"], name: "index_likes_on_user_id", using: :btree + end + + create_table "secrets", force: :cascade do |t| + t.text "content" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id"], name: "index_secrets_on_user_id", using: :btree + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + add_foreign_key "likes", "secrets" + add_foreign_key "likes", "users" + add_foreign_key "secrets", "users" +end diff --git a/dylan_eckert/rails2/DojoSecrets/db/seeds.rb b/dylan_eckert/rails2/DojoSecrets/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/mailers/.keep b/dylan_eckert/rails2/DojoSecrets/lib/assets/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/app/mailers/.keep rename to dylan_eckert/rails2/DojoSecrets/lib/assets/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/models/.keep b/dylan_eckert/rails2/DojoSecrets/lib/tasks/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/app/models/.keep rename to dylan_eckert/rails2/DojoSecrets/lib/tasks/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/models/concerns/.keep b/dylan_eckert/rails2/DojoSecrets/log/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/app/models/concerns/.keep rename to dylan_eckert/rails2/DojoSecrets/log/.keep diff --git a/dylan_eckert/rails2/DojoSecrets/public/404.html b/dylan_eckert/rails2/DojoSecrets/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/DojoSecrets/public/422.html b/dylan_eckert/rails2/DojoSecrets/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/DojoSecrets/public/500.html b/dylan_eckert/rails2/DojoSecrets/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Stephen Weil/Rails/Models/dojo_ninjas/lib/assets/.keep b/dylan_eckert/rails2/DojoSecrets/public/apple-touch-icon-precomposed.png similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/lib/assets/.keep rename to dylan_eckert/rails2/DojoSecrets/public/apple-touch-icon-precomposed.png diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/lib/tasks/.keep b/dylan_eckert/rails2/DojoSecrets/public/apple-touch-icon.png similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/lib/tasks/.keep rename to dylan_eckert/rails2/DojoSecrets/public/apple-touch-icon.png diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/public/favicon.ico b/dylan_eckert/rails2/DojoSecrets/public/favicon.ico similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/public/favicon.ico rename to dylan_eckert/rails2/DojoSecrets/public/favicon.ico diff --git a/Rodolfo_Valdivieso/models/user_login_project/public/robots.txt b/dylan_eckert/rails2/DojoSecrets/public/robots.txt similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/public/robots.txt rename to dylan_eckert/rails2/DojoSecrets/public/robots.txt diff --git a/dylan_eckert/rails2/DojoSecrets/spec/controllers/secrets_controller_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/controllers/secrets_controller_spec.rb new file mode 100644 index 0000000..582e299 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/controllers/secrets_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe SecretsController, type: :controller do + +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/factories/likes.rb b/dylan_eckert/rails2/DojoSecrets/spec/factories/likes.rb new file mode 100644 index 0000000..56765c9 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/factories/likes.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :like do + secret nil + user nil + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/factories/secrets.rb b/dylan_eckert/rails2/DojoSecrets/spec/factories/secrets.rb new file mode 100644 index 0000000..af5f0e0 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/factories/secrets.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :secret do + content "MyText" + user nil + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/factories/users.rb b/dylan_eckert/rails2/DojoSecrets/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/helpers/likes_helper_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/helpers/likes_helper_spec.rb new file mode 100644 index 0000000..bc19687 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/helpers/likes_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the LikesHelper. For example: +# +# describe LikesHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe LikesHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/helpers/secrets_helper_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/helpers/secrets_helper_spec.rb new file mode 100644 index 0000000..285256a --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/helpers/secrets_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SecretsHelper. For example: +# +# describe SecretsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SecretsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/helpers/sessions_helper_spec.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/spec/helpers/sessions_helper_spec.rb rename to dylan_eckert/rails2/DojoSecrets/spec/helpers/sessions_helper_spec.rb diff --git a/Tamisha_Damas/Rails II/dojo_secrets/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/helpers/users_helper_spec.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/spec/helpers/users_helper_spec.rb rename to dylan_eckert/rails2/DojoSecrets/spec/helpers/users_helper_spec.rb diff --git a/dylan_eckert/rails2/DojoSecrets/spec/models/like_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/models/like_spec.rb new file mode 100644 index 0000000..3284133 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/models/like_spec.rb @@ -0,0 +1,17 @@ +require 'rails_helper' + +RSpec.describe Like, type: :model do + describe 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'belongs to a user' do + expect(@like.user).to eq(@user) + end + it 'belongs to a secret' do + expect(@like.secret).to eq(@secret) + end + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/models/secret_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/models/secret_spec.rb new file mode 100644 index 0000000..fb755b5 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/models/secret_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Secret, type: :model do + it 'requires content' do + expect(build(:secret, content: "")).to be_invalid + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, user: @user, secret: @secret) + end + it 'belongs to a user' do + expect(@secret.user).to eq(@user) + end + it 'has likes' do + expect(@secret.likes).to include(@like) + end + it 'has users through likes table' do + expect(@secret.users).to include(@user) + end + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/models/user_spec.rb b/dylan_eckert/rails2/DojoSecrets/spec/models/user_spec.rb new file mode 100644 index 0000000..5d8f4be --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/models/user_spec.rb @@ -0,0 +1,56 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, content: 'secret 1', user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'has secrets' do + expect(@user.secrets).to include(@secret) + end + it 'has likes' do + expect(@user.likes).to include(@like) + end + it "has secrets through likes table" do + expect(@user.secrets_liked).to include(@secret) + end + end +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/rails_helper.rb b/dylan_eckert/rails2/DojoSecrets/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/DojoSecrets/spec/spec_helper.rb b/dylan_eckert/rails2/DojoSecrets/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/DojoSecrets/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/log/.keep b/dylan_eckert/rails2/DojoSecrets/test/controllers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/log/.keep rename to dylan_eckert/rails2/DojoSecrets/test/controllers/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/controllers/.keep b/dylan_eckert/rails2/DojoSecrets/test/fixtures/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/test/controllers/.keep rename to dylan_eckert/rails2/DojoSecrets/test/fixtures/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/.keep b/dylan_eckert/rails2/DojoSecrets/test/fixtures/files/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/test/fixtures/.keep rename to dylan_eckert/rails2/DojoSecrets/test/fixtures/files/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/helpers/.keep b/dylan_eckert/rails2/DojoSecrets/test/helpers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/test/helpers/.keep rename to dylan_eckert/rails2/DojoSecrets/test/helpers/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/integration/.keep b/dylan_eckert/rails2/DojoSecrets/test/integration/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/test/integration/.keep rename to dylan_eckert/rails2/DojoSecrets/test/integration/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/mailers/.keep b/dylan_eckert/rails2/DojoSecrets/test/mailers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/test/mailers/.keep rename to dylan_eckert/rails2/DojoSecrets/test/mailers/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/models/.keep b/dylan_eckert/rails2/DojoSecrets/test/models/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/test/models/.keep rename to dylan_eckert/rails2/DojoSecrets/test/models/.keep diff --git a/Rodolfo_Valdivieso/models/self_join/test/test_helper.rb b/dylan_eckert/rails2/DojoSecrets/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/self_join/test/test_helper.rb rename to dylan_eckert/rails2/DojoSecrets/test/test_helper.rb diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/DojoSecrets/tmp/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/DojoSecrets/tmp/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/DojoSecrets/vendor/assets/javascripts/.keep similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/DojoSecrets/vendor/assets/javascripts/.keep diff --git a/Stephen Weil/Rails/Models/optimize/app/assets/images/.keep b/dylan_eckert/rails2/DojoSecrets/vendor/assets/stylesheets/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/app/assets/images/.keep rename to dylan_eckert/rails2/DojoSecrets/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/rails2/auth1/application_controller.rb b/dylan_eckert/rails2/auth1/application_controller.rb new file mode 100644 index 0000000..b4155ec --- /dev/null +++ b/dylan_eckert/rails2/auth1/application_controller.rb @@ -0,0 +1,8 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + def current_user + User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user +end diff --git a/dylan_eckert/rails2/auth1/layouts/application.html.erb b/dylan_eckert/rails2/auth1/layouts/application.html.erb new file mode 100644 index 0000000..1f916b7 --- /dev/null +++ b/dylan_eckert/rails2/auth1/layouts/application.html.erb @@ -0,0 +1,29 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + + + <% if flash[:errors] %> + <% flash[:errors].each do |e| %> + <%= e %> + <% end %> + <% end %> + + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + + diff --git a/dylan_eckert/rails2/auth1/layouts/mailer.html.erb b/dylan_eckert/rails2/auth1/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/auth1/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/auth1/layouts/mailer.text.erb b/dylan_eckert/rails2/auth1/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/auth1/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/auth1/sessions/new.html.erb b/dylan_eckert/rails2/auth1/sessions/new.html.erb new file mode 100644 index 0000000..50bb3a6 --- /dev/null +++ b/dylan_eckert/rails2/auth1/sessions/new.html.erb @@ -0,0 +1,6 @@ +
+ + + + +
diff --git a/dylan_eckert/rails2/auth1/sessions_controller.rb b/dylan_eckert/rails2/auth1/sessions_controller.rb new file mode 100644 index 0000000..8edfb36 --- /dev/null +++ b/dylan_eckert/rails2/auth1/sessions_controller.rb @@ -0,0 +1,22 @@ +class SessionsController < ApplicationController + def new + end + + def create + @user = User.find_by_email(params[:email]) + # find by email + if @user && @user.authenticate(params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = @user.id + redirect_to "/users/#{@user.id}" + else + flash[:errors] = ["Invalid username or password"] + redirect_to "/sessions/new" + end + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/auth1/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/auth1/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/auth1/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/auth1/spec/factories/users.rb b/dylan_eckert/rails2/auth1/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/auth1/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/auth1/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/auth1/spec/helpers/sessions_helper_spec.rb new file mode 100644 index 0000000..9484198 --- /dev/null +++ b/dylan_eckert/rails2/auth1/spec/helpers/sessions_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SessionsHelper. For example: +# +# describe SessionsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SessionsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/auth1/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/auth1/spec/helpers/users_helper_spec.rb new file mode 100644 index 0000000..b2e3444 --- /dev/null +++ b/dylan_eckert/rails2/auth1/spec/helpers/users_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the UsersHelper. For example: +# +# describe UsersHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe UsersHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/auth1/spec/models/user_spec.rb b/dylan_eckert/rails2/auth1/spec/models/user_spec.rb new file mode 100644 index 0000000..648c0b2 --- /dev/null +++ b/dylan_eckert/rails2/auth1/spec/models/user_spec.rb @@ -0,0 +1,39 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end +end diff --git a/dylan_eckert/rails2/auth1/spec/rails_helper.rb b/dylan_eckert/rails2/auth1/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/auth1/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/auth1/spec/spec_helper.rb b/dylan_eckert/rails2/auth1/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/auth1/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/dylan_eckert/rails2/auth1/user.rb b/dylan_eckert/rails2/auth1/user.rb new file mode 100644 index 0000000..ca6fbd6 --- /dev/null +++ b/dylan_eckert/rails2/auth1/user.rb @@ -0,0 +1,15 @@ +class User < ApplicationRecord + has_secure_password + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :email_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def email_lowercase + email.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/auth1/users/edit.html.erb b/dylan_eckert/rails2/auth1/users/edit.html.erb new file mode 100644 index 0000000..ea91003 --- /dev/null +++ b/dylan_eckert/rails2/auth1/users/edit.html.erb @@ -0,0 +1 @@ +

Edit User

diff --git a/dylan_eckert/rails2/auth1/users/new.html.erb b/dylan_eckert/rails2/auth1/users/new.html.erb new file mode 100644 index 0000000..efcecda --- /dev/null +++ b/dylan_eckert/rails2/auth1/users/new.html.erb @@ -0,0 +1 @@ +

New User

diff --git a/dylan_eckert/rails2/auth1/users/show.html.erb b/dylan_eckert/rails2/auth1/users/show.html.erb new file mode 100644 index 0000000..4f41143 --- /dev/null +++ b/dylan_eckert/rails2/auth1/users/show.html.erb @@ -0,0 +1 @@ +

<%= @user.name %>

diff --git a/dylan_eckert/rails2/auth1/users_controller.rb b/dylan_eckert/rails2/auth1/users_controller.rb new file mode 100644 index 0000000..aae708e --- /dev/null +++ b/dylan_eckert/rails2/auth1/users_controller.rb @@ -0,0 +1,13 @@ +class UsersController < ApplicationController + + def new + end + + def show + @user = User.find(params[:id]) + end + + def edit + end + +end diff --git a/dylan_eckert/rails2/auth2/.gitignore b/dylan_eckert/rails2/auth2/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/rails2/auth2/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/rails2/auth2/.rspec b/dylan_eckert/rails2/auth2/.rspec new file mode 100644 index 0000000..c99d2e7 --- /dev/null +++ b/dylan_eckert/rails2/auth2/.rspec @@ -0,0 +1 @@ +--require spec_helper diff --git a/dylan_eckert/rails2/auth2/Gemfile b/dylan_eckert/rails2/auth2/Gemfile new file mode 100644 index 0000000..8d464a7 --- /dev/null +++ b/dylan_eckert/rails2/auth2/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + gem 'rspec-rails' + gem 'factory_bot_rails' + gem 'capybara' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/rails2/auth2/Gemfile.lock b/dylan_eckert/rails2/auth2/Gemfile.lock new file mode 100644 index 0000000..1368646 --- /dev/null +++ b/dylan_eckert/rails2/auth2/Gemfile.lock @@ -0,0 +1,217 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + capybara (2.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + diff-lcs (1.3) + erubis (2.7.0) + execjs (2.7.0) + factory_bot (4.8.2) + activesupport (>= 3.0.0) + factory_bot_rails (4.8.2) + factory_bot (~> 4.8.2) + railties (>= 3.0.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + public_suffix (3.0.1) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rspec-core (3.7.0) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-rails (3.7.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.0) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + capybara + coffee-rails (~> 4.2) + factory_bot_rails + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rspec-rails + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/rails2/auth2/README.md b/dylan_eckert/rails2/auth2/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/rails2/auth2/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/rails2/auth2/Rakefile b/dylan_eckert/rails2/auth2/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/rails2/auth2/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/rails2/auth2/app/assets/config/manifest.js b/dylan_eckert/rails2/auth2/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Stephen Weil/Rails/Models/optimize/app/controllers/concerns/.keep b/dylan_eckert/rails2/auth2/app/assets/images/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/app/controllers/concerns/.keep rename to dylan_eckert/rails2/auth2/app/assets/images/.keep diff --git a/dylan_eckert/rails2/auth2/app/assets/javascripts/application.js b/dylan_eckert/rails2/auth2/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/rails2/auth2/app/assets/javascripts/cable.js b/dylan_eckert/rails2/auth2/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Stephen Weil/Rails/Models/optimize/app/mailers/.keep b/dylan_eckert/rails2/auth2/app/assets/javascripts/channels/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/app/mailers/.keep rename to dylan_eckert/rails2/auth2/app/assets/javascripts/channels/.keep diff --git a/Rodolfo_Valdivieso/controllers/survey_form/app/assets/javascripts/surveys.coffee b/dylan_eckert/rails2/auth2/app/assets/javascripts/likes.coffee similarity index 100% rename from Rodolfo_Valdivieso/controllers/survey_form/app/assets/javascripts/surveys.coffee rename to dylan_eckert/rails2/auth2/app/assets/javascripts/likes.coffee diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/javascripts/times.coffee b/dylan_eckert/rails2/auth2/app/assets/javascripts/secrets.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/javascripts/times.coffee rename to dylan_eckert/rails2/auth2/app/assets/javascripts/secrets.coffee diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/javascripts/dojos.coffee b/dylan_eckert/rails2/auth2/app/assets/javascripts/sessions.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/javascripts/dojos.coffee rename to dylan_eckert/rails2/auth2/app/assets/javascripts/sessions.coffee diff --git a/richardN/controllers/imc2/app/assets/javascripts/users.coffee b/dylan_eckert/rails2/auth2/app/assets/javascripts/users.coffee similarity index 100% rename from richardN/controllers/imc2/app/assets/javascripts/users.coffee rename to dylan_eckert/rails2/auth2/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/rails2/auth2/app/assets/stylesheets/application.css b/dylan_eckert/rails2/auth2/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/rails2/auth2/app/assets/stylesheets/likes.scss b/dylan_eckert/rails2/auth2/app/assets/stylesheets/likes.scss new file mode 100644 index 0000000..dacd946 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/assets/stylesheets/likes.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Likes controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/auth2/app/assets/stylesheets/secrets.scss b/dylan_eckert/rails2/auth2/app/assets/stylesheets/secrets.scss new file mode 100644 index 0000000..f1aed55 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/assets/stylesheets/secrets.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Secrets controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/auth2/app/assets/stylesheets/sessions.scss b/dylan_eckert/rails2/auth2/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000..ccb1ed2 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/brittney_jackson/rails/integrateModels/app/assets/stylesheets/users.scss b/dylan_eckert/rails2/auth2/app/assets/stylesheets/users.scss similarity index 100% rename from brittney_jackson/rails/integrateModels/app/assets/stylesheets/users.scss rename to dylan_eckert/rails2/auth2/app/assets/stylesheets/users.scss diff --git a/dylan_eckert/rails2/auth2/app/channels/application_cable/channel.rb b/dylan_eckert/rails2/auth2/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/rails2/auth2/app/channels/application_cable/connection.rb b/dylan_eckert/rails2/auth2/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/rails2/auth2/app/controllers/application_controller.rb b/dylan_eckert/rails2/auth2/app/controllers/application_controller.rb new file mode 100644 index 0000000..122a954 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/controllers/application_controller.rb @@ -0,0 +1,15 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login + + def require_login + return redirect_to new_session_path unless session[:user_id] + end + def current_user + # ONLY USE THIS IF YOU ARE NEEDING THE FULL USER INFO (name, email, etc) if you are going for an id, just use session[:user_id] + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/Stephen Weil/Rails/Models/optimize/app/models/.keep b/dylan_eckert/rails2/auth2/app/controllers/concerns/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/app/models/.keep rename to dylan_eckert/rails2/auth2/app/controllers/concerns/.keep diff --git a/dylan_eckert/rails2/auth2/app/controllers/likes_controller.rb b/dylan_eckert/rails2/auth2/app/controllers/likes_controller.rb new file mode 100644 index 0000000..f64accc --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/controllers/likes_controller.rb @@ -0,0 +1,17 @@ +class LikesController < ApplicationController + def create + Like.create(like_params) + redirect_to secrets_path + end + + def destroy + @like = Like.find(params[:id]) + @like.destroy if session[:user_id] === @like.user_id + # this is a check to make sure that if somehow a user who didnt create the like tries to delete the like(unlike), the destroy method will not run + redirect_to secrets_path + end + private + def like_params + params.require(:like).permit(:secret_id).merge(user: current_user) + end +end diff --git a/dylan_eckert/rails2/auth2/app/controllers/secrets_controller.rb b/dylan_eckert/rails2/auth2/app/controllers/secrets_controller.rb new file mode 100644 index 0000000..b841f71 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/controllers/secrets_controller.rb @@ -0,0 +1,23 @@ +class SecretsController < ApplicationController + def index + @secrets = Secret.all + # this is to get all secrets, I then have + end + def create + secret = Secret.new secret_params + unless secret.save + flash[:errors] = secret.errors.full_messages + end + redirect_to user_path current_user.id + end + def destroy + @secret = Secret.find(params[:id]) + @secret.destroy if @secret.user === current_user + redirect_to user_path current_user.id + end + private + def secret_params + params.require(:secret).permit(:content).merge(user: current_user) + # make strong params for secret, including content and merging the user that created it by using my application controller's method current_user to find the current user logged in to the session + end +end diff --git a/dylan_eckert/rails2/auth2/app/controllers/sessions_controller.rb b/dylan_eckert/rails2/auth2/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..6a0abf2 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/controllers/sessions_controller.rb @@ -0,0 +1,26 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def new + end + + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to user_path user.id + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: new_session_path + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/auth2/app/controllers/users_controller.rb b/dylan_eckert/rails2/auth2/app/controllers/users_controller.rb new file mode 100644 index 0000000..cb2cd2e --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/controllers/users_controller.rb @@ -0,0 +1,43 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:new, :create] + def new + end + + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to user_path user.id + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: new_user_path + end + end + + def show + @user = User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def update + user = User.find(params[:id]) + user.update(user_params) + redirect_to user_path user.id + end + + def destroy + user = User.find(params[:id]) + user.destroy + reset_session + redirect_to new_session_path + end + + private + + def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) + end +end diff --git a/Stephen Weil/Rails/Models/blogs_one/app/helpers/application_helper.rb b/dylan_eckert/rails2/auth2/app/helpers/application_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/app/helpers/application_helper.rb rename to dylan_eckert/rails2/auth2/app/helpers/application_helper.rb diff --git a/dylan_eckert/rails2/auth2/app/helpers/likes_helper.rb b/dylan_eckert/rails2/auth2/app/helpers/likes_helper.rb new file mode 100644 index 0000000..a78a759 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/helpers/likes_helper.rb @@ -0,0 +1,2 @@ +module LikesHelper +end diff --git a/dylan_eckert/rails2/auth2/app/helpers/secrets_helper.rb b/dylan_eckert/rails2/auth2/app/helpers/secrets_helper.rb new file mode 100644 index 0000000..17ab1ea --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/helpers/secrets_helper.rb @@ -0,0 +1,2 @@ +module SecretsHelper +end diff --git a/dylan_eckert/rails2/auth2/app/helpers/sessions_helper.rb b/dylan_eckert/rails2/auth2/app/helpers/sessions_helper.rb new file mode 100644 index 0000000..309f8b2 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/justin_quiros/models/app/helpers/users_helper.rb b/dylan_eckert/rails2/auth2/app/helpers/users_helper.rb similarity index 100% rename from justin_quiros/models/app/helpers/users_helper.rb rename to dylan_eckert/rails2/auth2/app/helpers/users_helper.rb diff --git a/dylan_eckert/rails2/auth2/app/jobs/application_job.rb b/dylan_eckert/rails2/auth2/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/rails2/auth2/app/mailers/application_mailer.rb b/dylan_eckert/rails2/auth2/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/rails2/auth2/app/models/application_record.rb b/dylan_eckert/rails2/auth2/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Stephen Weil/Rails/Models/optimize/app/models/concerns/.keep b/dylan_eckert/rails2/auth2/app/models/concerns/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/app/models/concerns/.keep rename to dylan_eckert/rails2/auth2/app/models/concerns/.keep diff --git a/dylan_eckert/rails2/auth2/app/models/like.rb b/dylan_eckert/rails2/auth2/app/models/like.rb new file mode 100644 index 0000000..85908ea --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/models/like.rb @@ -0,0 +1,4 @@ +class Like < ApplicationRecord + belongs_to :secret + belongs_to :user +end diff --git a/dylan_eckert/rails2/auth2/app/models/secret.rb b/dylan_eckert/rails2/auth2/app/models/secret.rb new file mode 100644 index 0000000..1a3958f --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/models/secret.rb @@ -0,0 +1,7 @@ +class Secret < ApplicationRecord + belongs_to :user + has_many :likes, dependent: :destroy + has_many :users, through: :likes + + validates :content, presence: true +end diff --git a/dylan_eckert/rails2/auth2/app/models/user.rb b/dylan_eckert/rails2/auth2/app/models/user.rb new file mode 100644 index 0000000..60bda5f --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/models/user.rb @@ -0,0 +1,20 @@ +class User < ApplicationRecord + has_secure_password + has_many :secrets + has_many :likes, dependent: :destroy + has_many :secrets_liked, through: :likes, source: :secret + # the line above is there to allow for us so the query User.first.secrets will show all of the secrets the user created, not the secrets the user has liked + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :input_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def input_lowercase + self.email.downcase! + self.name.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/auth2/app/views/layouts/application.html.erb b/dylan_eckert/rails2/auth2/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4c62c3f --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/layouts/application.html.erb @@ -0,0 +1,25 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + diff --git a/dylan_eckert/rails2/auth2/app/views/layouts/mailer.html.erb b/dylan_eckert/rails2/auth2/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/auth2/app/views/layouts/mailer.text.erb b/dylan_eckert/rails2/auth2/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/auth2/app/views/likes/create.html.erb b/dylan_eckert/rails2/auth2/app/views/likes/create.html.erb new file mode 100644 index 0000000..7159391 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/likes/create.html.erb @@ -0,0 +1,2 @@ +

Likes#create

+

Find me in app/views/likes/create.html.erb

diff --git a/dylan_eckert/rails2/auth2/app/views/likes/destroy.html.erb b/dylan_eckert/rails2/auth2/app/views/likes/destroy.html.erb new file mode 100644 index 0000000..b7ab94f --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/likes/destroy.html.erb @@ -0,0 +1,2 @@ +

Likes#destroy

+

Find me in app/views/likes/destroy.html.erb

diff --git a/dylan_eckert/rails2/auth2/app/views/secrets/index.html.erb b/dylan_eckert/rails2/auth2/app/views/secrets/index.html.erb new file mode 100644 index 0000000..eb436f1 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/secrets/index.html.erb @@ -0,0 +1,26 @@ +

All Secrets

+<% @secrets.all.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> + <% unless secret.users.include?(current_user) %> +
+ + + +
+ <% else %> +
+ + + + +
+ <% end %> +<% end %> diff --git a/dylan_eckert/rails2/auth2/app/views/sessions/new.html.erb b/dylan_eckert/rails2/auth2/app/views/sessions/new.html.erb new file mode 100644 index 0000000..9da5dea --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/rails2/auth2/app/views/users/edit.html.erb b/dylan_eckert/rails2/auth2/app/views/users/edit.html.erb new file mode 100644 index 0000000..c23f602 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/users/edit.html.erb @@ -0,0 +1,12 @@ +

Edit User <%= @user.id %>

+ +
+ + + Name: + + Email: + + +
+Delete Account diff --git a/dylan_eckert/rails2/auth2/app/views/users/new.html.erb b/dylan_eckert/rails2/auth2/app/views/users/new.html.erb new file mode 100644 index 0000000..f4aed5d --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/users/new.html.erb @@ -0,0 +1,13 @@ +

Register

+
+ +

Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ + +
diff --git a/dylan_eckert/rails2/auth2/app/views/users/show.html.erb b/dylan_eckert/rails2/auth2/app/views/users/show.html.erb new file mode 100644 index 0000000..6aea1b2 --- /dev/null +++ b/dylan_eckert/rails2/auth2/app/views/users/show.html.erb @@ -0,0 +1,21 @@ +

<%= @user.name %>

+

<%= @user.email %>

+
+ + + +
+ + +<% @user.secrets.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> +<% end %> +Update Account diff --git a/Stephen Weil/Rails/Models/blogs_one/bin/bundle b/dylan_eckert/rails2/auth2/bin/bundle similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/bin/bundle rename to dylan_eckert/rails2/auth2/bin/bundle diff --git a/dylan_eckert/rails2/auth2/bin/rails b/dylan_eckert/rails2/auth2/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/rails2/auth2/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/blogs_one/bin/rake b/dylan_eckert/rails2/auth2/bin/rake similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/bin/rake rename to dylan_eckert/rails2/auth2/bin/rake diff --git a/dylan_eckert/rails2/auth2/bin/setup b/dylan_eckert/rails2/auth2/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/rails2/auth2/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Stephen Weil/Rails/Models/blogs_one/bin/spring b/dylan_eckert/rails2/auth2/bin/spring similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/bin/spring rename to dylan_eckert/rails2/auth2/bin/spring diff --git a/dylan_eckert/rails2/auth2/bin/update b/dylan_eckert/rails2/auth2/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/rails2/auth2/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/rails2/auth2/config.ru b/dylan_eckert/rails2/auth2/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/rails2/auth2/config/application.rb b/dylan_eckert/rails2/auth2/config/application.rb new file mode 100644 index 0000000..65de0bc --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoSecrets + 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. + end +end diff --git a/dylan_eckert/rails2/auth2/config/boot.rb b/dylan_eckert/rails2/auth2/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/rails2/auth2/config/cable.yml b/dylan_eckert/rails2/auth2/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/rails2/auth2/config/database.yml b/dylan_eckert/rails2/auth2/config/database.yml new file mode 100644 index 0000000..efc5910 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: DojoSecrets_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: DojoSecrets + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: DojoSecrets_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: DojoSecrets_production + username: DojoSecrets + password: <%= ENV['DOJOSECRETS_DATABASE_PASSWORD'] %> diff --git a/dylan_eckert/rails2/auth2/config/environment.rb b/dylan_eckert/rails2/auth2/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/rails2/auth2/config/environments/development.rb b/dylan_eckert/rails2/auth2/config/environments/development.rb new file mode 100644 index 0000000..77fe74d --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/environments/development.rb @@ -0,0 +1,55 @@ +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 rest art the web server when you make code changes. + config.cache_classes = false + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/rails2/auth2/config/environments/production.rb b/dylan_eckert/rails2/auth2/config/environments/production.rb new file mode 100644 index 0000000..f8e01b7 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "DojoSecrets_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/rails2/auth2/config/environments/test.rb b/dylan_eckert/rails2/auth2/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/rails2/auth2/config/initializers/application_controller_renderer.rb b/dylan_eckert/rails2/auth2/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/assets.rb b/dylan_eckert/rails2/auth2/config/initializers/assets.rb similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/assets.rb rename to dylan_eckert/rails2/auth2/config/initializers/assets.rb diff --git a/Stephen Weil/Rails/Models/blogs_one/config/initializers/backtrace_silencers.rb b/dylan_eckert/rails2/auth2/config/initializers/backtrace_silencers.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/config/initializers/backtrace_silencers.rb rename to dylan_eckert/rails2/auth2/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/rails2/auth2/config/initializers/cookies_serializer.rb b/dylan_eckert/rails2/auth2/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Stephen Weil/Rails/Models/blogs_one/config/initializers/filter_parameter_logging.rb b/dylan_eckert/rails2/auth2/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/rails2/auth2/config/initializers/filter_parameter_logging.rb diff --git a/Stephen Weil/Rails/Models/blogs_one/config/initializers/inflections.rb b/dylan_eckert/rails2/auth2/config/initializers/inflections.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/config/initializers/inflections.rb rename to dylan_eckert/rails2/auth2/config/initializers/inflections.rb diff --git a/Stephen Weil/Rails/Models/blogs_one/config/initializers/mime_types.rb b/dylan_eckert/rails2/auth2/config/initializers/mime_types.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/config/initializers/mime_types.rb rename to dylan_eckert/rails2/auth2/config/initializers/mime_types.rb diff --git a/dylan_eckert/rails2/auth2/config/initializers/new_framework_defaults.rb b/dylan_eckert/rails2/auth2/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/rails2/auth2/config/initializers/session_store.rb b/dylan_eckert/rails2/auth2/config/initializers/session_store.rb new file mode 100644 index 0000000..745fa7c --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_DojoSecrets_session' diff --git a/dylan_eckert/rails2/auth2/config/initializers/wrap_parameters.rb b/dylan_eckert/rails2/auth2/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Stephen Weil/Rails/Models/blogs_one/config/locales/en.yml b/dylan_eckert/rails2/auth2/config/locales/en.yml similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/config/locales/en.yml rename to dylan_eckert/rails2/auth2/config/locales/en.yml diff --git a/dylan_eckert/rails2/auth2/config/puma.rb b/dylan_eckert/rails2/auth2/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/rails2/auth2/config/routes.rb b/dylan_eckert/rails2/auth2/config/routes.rb new file mode 100644 index 0000000..27bab57 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/routes.rb @@ -0,0 +1,8 @@ +Rails.application.routes.draw do + resources :sessions, only: [:new, :create, :destroy] + resources :users, except: [:index] + resources :secrets, only: [:index, :create, :destroy] + resources :likes, only: [:create, :destroy] + # The priority is based upon order of creation from top to bottom + # rake routes lets you see all available routes and their names +end diff --git a/dylan_eckert/rails2/auth2/config/secrets.yml b/dylan_eckert/rails2/auth2/config/secrets.yml new file mode 100644 index 0000000..41e0de4 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: df5bfd362ae400b400d79af9bc419e988c72e7a2df7aebc541137d2f27e125bb93b09d877ecc0cae931a9b8c16ef96f1c7329a8b2d788eadf3a0f5cc9bb4d4e7 + +test: + secret_key_base: 91a21b8af0492c5893228989638a977f5e7cf895e0a94a3a0cd34976a4582b84e68c4e940e3369f2297218eaebf4bce2cc07441512a9c2d645734c20e08024b9 + +# 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/dylan_eckert/rails2/auth2/config/spring.rb b/dylan_eckert/rails2/auth2/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/rails2/auth2/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/rails2/auth2/db/migrate/20171211192257_create_users.rb b/dylan_eckert/rails2/auth2/db/migrate/20171211192257_create_users.rb new file mode 100644 index 0000000..9e6ab64 --- /dev/null +++ b/dylan_eckert/rails2/auth2/db/migrate/20171211192257_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/auth2/db/migrate/20171212235708_create_secrets.rb b/dylan_eckert/rails2/auth2/db/migrate/20171212235708_create_secrets.rb new file mode 100644 index 0000000..df773f3 --- /dev/null +++ b/dylan_eckert/rails2/auth2/db/migrate/20171212235708_create_secrets.rb @@ -0,0 +1,10 @@ +class CreateSecrets < ActiveRecord::Migration[5.0] + def change + create_table :secrets do |t| + t.text :content + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/auth2/db/migrate/20171212235821_create_likes.rb b/dylan_eckert/rails2/auth2/db/migrate/20171212235821_create_likes.rb new file mode 100644 index 0000000..0c95c79 --- /dev/null +++ b/dylan_eckert/rails2/auth2/db/migrate/20171212235821_create_likes.rb @@ -0,0 +1,10 @@ +class CreateLikes < ActiveRecord::Migration[5.0] + def change + create_table :likes do |t| + t.references :secret, foreign_key: true + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/auth2/db/schema.rb b/dylan_eckert/rails2/auth2/db/schema.rb new file mode 100644 index 0000000..e0d9fe8 --- /dev/null +++ b/dylan_eckert/rails2/auth2/db/schema.rb @@ -0,0 +1,46 @@ +# 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: 20171212235821) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "likes", force: :cascade do |t| + t.integer "secret_id" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["secret_id"], name: "index_likes_on_secret_id", using: :btree + t.index ["user_id"], name: "index_likes_on_user_id", using: :btree + end + + create_table "secrets", force: :cascade do |t| + t.text "content" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id"], name: "index_secrets_on_user_id", using: :btree + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + add_foreign_key "likes", "secrets" + add_foreign_key "likes", "users" + add_foreign_key "secrets", "users" +end diff --git a/dylan_eckert/rails2/auth2/db/seeds.rb b/dylan_eckert/rails2/auth2/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/rails2/auth2/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Stephen Weil/Rails/Models/optimize/lib/assets/.keep b/dylan_eckert/rails2/auth2/lib/assets/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/lib/assets/.keep rename to dylan_eckert/rails2/auth2/lib/assets/.keep diff --git a/Stephen Weil/Rails/Models/optimize/lib/tasks/.keep b/dylan_eckert/rails2/auth2/lib/tasks/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/lib/tasks/.keep rename to dylan_eckert/rails2/auth2/lib/tasks/.keep diff --git a/Stephen Weil/Rails/Models/optimize/log/.keep b/dylan_eckert/rails2/auth2/log/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/log/.keep rename to dylan_eckert/rails2/auth2/log/.keep diff --git a/dylan_eckert/rails2/auth2/public/404.html b/dylan_eckert/rails2/auth2/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/rails2/auth2/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/auth2/public/422.html b/dylan_eckert/rails2/auth2/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/rails2/auth2/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/auth2/public/500.html b/dylan_eckert/rails2/auth2/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/rails2/auth2/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Stephen Weil/Rails/Models/optimize/public/favicon.ico b/dylan_eckert/rails2/auth2/public/apple-touch-icon-precomposed.png similarity index 100% rename from Stephen Weil/Rails/Models/optimize/public/favicon.ico rename to dylan_eckert/rails2/auth2/public/apple-touch-icon-precomposed.png diff --git a/Stephen Weil/Rails/Models/optimize/test/controllers/.keep b/dylan_eckert/rails2/auth2/public/apple-touch-icon.png similarity index 100% rename from Stephen Weil/Rails/Models/optimize/test/controllers/.keep rename to dylan_eckert/rails2/auth2/public/apple-touch-icon.png diff --git a/Stephen Weil/Rails/Models/user_login_project/public/favicon.ico b/dylan_eckert/rails2/auth2/public/favicon.ico similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/public/favicon.ico rename to dylan_eckert/rails2/auth2/public/favicon.ico diff --git a/Stephen Weil/Rails/Models/blogs_one/public/robots.txt b/dylan_eckert/rails2/auth2/public/robots.txt similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/public/robots.txt rename to dylan_eckert/rails2/auth2/public/robots.txt diff --git a/dylan_eckert/rails2/auth2/spec/controllers/secrets_controller_spec.rb b/dylan_eckert/rails2/auth2/spec/controllers/secrets_controller_spec.rb new file mode 100644 index 0000000..582e299 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/controllers/secrets_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe SecretsController, type: :controller do + +end diff --git a/dylan_eckert/rails2/auth2/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/auth2/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/auth2/spec/factories/likes.rb b/dylan_eckert/rails2/auth2/spec/factories/likes.rb new file mode 100644 index 0000000..56765c9 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/factories/likes.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :like do + secret nil + user nil + end +end diff --git a/dylan_eckert/rails2/auth2/spec/factories/secrets.rb b/dylan_eckert/rails2/auth2/spec/factories/secrets.rb new file mode 100644 index 0000000..af5f0e0 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/factories/secrets.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :secret do + content "MyText" + user nil + end +end diff --git a/dylan_eckert/rails2/auth2/spec/factories/users.rb b/dylan_eckert/rails2/auth2/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/auth2/spec/helpers/likes_helper_spec.rb b/dylan_eckert/rails2/auth2/spec/helpers/likes_helper_spec.rb new file mode 100644 index 0000000..bc19687 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/helpers/likes_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the LikesHelper. For example: +# +# describe LikesHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe LikesHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/auth2/spec/helpers/secrets_helper_spec.rb b/dylan_eckert/rails2/auth2/spec/helpers/secrets_helper_spec.rb new file mode 100644 index 0000000..285256a --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/helpers/secrets_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SecretsHelper. For example: +# +# describe SecretsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SecretsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/auth2/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/auth2/spec/helpers/sessions_helper_spec.rb new file mode 100644 index 0000000..9484198 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/helpers/sessions_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SessionsHelper. For example: +# +# describe SessionsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SessionsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/auth2/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/auth2/spec/helpers/users_helper_spec.rb new file mode 100644 index 0000000..b2e3444 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/helpers/users_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the UsersHelper. For example: +# +# describe UsersHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe UsersHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/auth2/spec/models/like_spec.rb b/dylan_eckert/rails2/auth2/spec/models/like_spec.rb new file mode 100644 index 0000000..3284133 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/models/like_spec.rb @@ -0,0 +1,17 @@ +require 'rails_helper' + +RSpec.describe Like, type: :model do + describe 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'belongs to a user' do + expect(@like.user).to eq(@user) + end + it 'belongs to a secret' do + expect(@like.secret).to eq(@secret) + end + end +end diff --git a/dylan_eckert/rails2/auth2/spec/models/secret_spec.rb b/dylan_eckert/rails2/auth2/spec/models/secret_spec.rb new file mode 100644 index 0000000..fb755b5 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/models/secret_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Secret, type: :model do + it 'requires content' do + expect(build(:secret, content: "")).to be_invalid + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, user: @user, secret: @secret) + end + it 'belongs to a user' do + expect(@secret.user).to eq(@user) + end + it 'has likes' do + expect(@secret.likes).to include(@like) + end + it 'has users through likes table' do + expect(@secret.users).to include(@user) + end + end +end diff --git a/dylan_eckert/rails2/auth2/spec/models/user_spec.rb b/dylan_eckert/rails2/auth2/spec/models/user_spec.rb new file mode 100644 index 0000000..5d8f4be --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/models/user_spec.rb @@ -0,0 +1,56 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, content: 'secret 1', user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'has secrets' do + expect(@user.secrets).to include(@secret) + end + it 'has likes' do + expect(@user.likes).to include(@like) + end + it "has secrets through likes table" do + expect(@user.secrets_liked).to include(@secret) + end + end +end diff --git a/dylan_eckert/rails2/auth2/spec/rails_helper.rb b/dylan_eckert/rails2/auth2/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/auth2/spec/spec_helper.rb b/dylan_eckert/rails2/auth2/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/auth2/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/Stephen Weil/Rails/Models/optimize/test/fixtures/.keep b/dylan_eckert/rails2/auth2/test/controllers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/test/fixtures/.keep rename to dylan_eckert/rails2/auth2/test/controllers/.keep diff --git a/Stephen Weil/Rails/Models/optimize/test/helpers/.keep b/dylan_eckert/rails2/auth2/test/fixtures/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/test/helpers/.keep rename to dylan_eckert/rails2/auth2/test/fixtures/.keep diff --git a/Stephen Weil/Rails/Models/optimize/test/integration/.keep b/dylan_eckert/rails2/auth2/test/fixtures/files/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/test/integration/.keep rename to dylan_eckert/rails2/auth2/test/fixtures/files/.keep diff --git a/Stephen Weil/Rails/Models/optimize/test/mailers/.keep b/dylan_eckert/rails2/auth2/test/helpers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/test/mailers/.keep rename to dylan_eckert/rails2/auth2/test/helpers/.keep diff --git a/Stephen Weil/Rails/Models/optimize/test/models/.keep b/dylan_eckert/rails2/auth2/test/integration/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/test/models/.keep rename to dylan_eckert/rails2/auth2/test/integration/.keep diff --git a/Stephen Weil/Rails/Models/optimize/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/auth2/test/mailers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/auth2/test/mailers/.keep diff --git a/Stephen Weil/Rails/Models/optimize/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/auth2/test/models/.keep similarity index 100% rename from Stephen Weil/Rails/Models/optimize/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/auth2/test/models/.keep diff --git a/Rodolfo_Valdivieso/models/user_login_project/test/test_helper.rb b/dylan_eckert/rails2/auth2/test/test_helper.rb similarity index 100% rename from Rodolfo_Valdivieso/models/user_login_project/test/test_helper.rb rename to dylan_eckert/rails2/auth2/test/test_helper.rb diff --git a/Stephen Weil/Rails/Models/user_login_project/app/assets/images/.keep b/dylan_eckert/rails2/auth2/tmp/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/app/assets/images/.keep rename to dylan_eckert/rails2/auth2/tmp/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/app/controllers/concerns/.keep b/dylan_eckert/rails2/auth2/vendor/assets/javascripts/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/app/controllers/concerns/.keep rename to dylan_eckert/rails2/auth2/vendor/assets/javascripts/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/app/mailers/.keep b/dylan_eckert/rails2/auth2/vendor/assets/stylesheets/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/app/mailers/.keep rename to dylan_eckert/rails2/auth2/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/rails2/authorization/.gitignore b/dylan_eckert/rails2/authorization/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/rails2/authorization/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/rails2/authorization/.rspec b/dylan_eckert/rails2/authorization/.rspec new file mode 100644 index 0000000..c99d2e7 --- /dev/null +++ b/dylan_eckert/rails2/authorization/.rspec @@ -0,0 +1 @@ +--require spec_helper diff --git a/dylan_eckert/rails2/authorization/Gemfile b/dylan_eckert/rails2/authorization/Gemfile new file mode 100644 index 0000000..8d464a7 --- /dev/null +++ b/dylan_eckert/rails2/authorization/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + gem 'rspec-rails' + gem 'factory_bot_rails' + gem 'capybara' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/rails2/authorization/Gemfile.lock b/dylan_eckert/rails2/authorization/Gemfile.lock new file mode 100644 index 0000000..1368646 --- /dev/null +++ b/dylan_eckert/rails2/authorization/Gemfile.lock @@ -0,0 +1,217 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + capybara (2.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + diff-lcs (1.3) + erubis (2.7.0) + execjs (2.7.0) + factory_bot (4.8.2) + activesupport (>= 3.0.0) + factory_bot_rails (4.8.2) + factory_bot (~> 4.8.2) + railties (>= 3.0.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + public_suffix (3.0.1) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rspec-core (3.7.0) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-rails (3.7.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.0) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + capybara + coffee-rails (~> 4.2) + factory_bot_rails + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rspec-rails + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/rails2/authorization/README.md b/dylan_eckert/rails2/authorization/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/rails2/authorization/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/rails2/authorization/Rakefile b/dylan_eckert/rails2/authorization/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/rails2/authorization/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/rails2/authorization/app/assets/config/manifest.js b/dylan_eckert/rails2/authorization/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Stephen Weil/Rails/Models/user_login_project/app/models/.keep b/dylan_eckert/rails2/authorization/app/assets/images/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/app/models/.keep rename to dylan_eckert/rails2/authorization/app/assets/images/.keep diff --git a/dylan_eckert/rails2/authorization/app/assets/javascripts/application.js b/dylan_eckert/rails2/authorization/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/rails2/authorization/app/assets/javascripts/cable.js b/dylan_eckert/rails2/authorization/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Stephen Weil/Rails/Models/user_login_project/app/models/concerns/.keep b/dylan_eckert/rails2/authorization/app/assets/javascripts/channels/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/app/models/concerns/.keep rename to dylan_eckert/rails2/authorization/app/assets/javascripts/channels/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/javascripts/dojos.coffee b/dylan_eckert/rails2/authorization/app/assets/javascripts/likes.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/javascripts/dojos.coffee rename to dylan_eckert/rails2/authorization/app/assets/javascripts/likes.coffee diff --git a/Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/javascripts/displays.coffee b/dylan_eckert/rails2/authorization/app/assets/javascripts/secrets.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /routes_controllers/app/assets/javascripts/displays.coffee rename to dylan_eckert/rails2/authorization/app/assets/javascripts/secrets.coffee diff --git a/Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/javascripts/dojos.coffee b/dylan_eckert/rails2/authorization/app/assets/javascripts/sessions.coffee similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /student_dashboard/app/assets/javascripts/dojos.coffee rename to dylan_eckert/rails2/authorization/app/assets/javascripts/sessions.coffee diff --git a/brittney_jackson/rails/routesControllers/app/assets/javascripts/hellos.coffee b/dylan_eckert/rails2/authorization/app/assets/javascripts/users.coffee similarity index 100% rename from brittney_jackson/rails/routesControllers/app/assets/javascripts/hellos.coffee rename to dylan_eckert/rails2/authorization/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/rails2/authorization/app/assets/stylesheets/application.css b/dylan_eckert/rails2/authorization/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/rails2/authorization/app/assets/stylesheets/likes.scss b/dylan_eckert/rails2/authorization/app/assets/stylesheets/likes.scss new file mode 100644 index 0000000..dacd946 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/assets/stylesheets/likes.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Likes controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/authorization/app/assets/stylesheets/secrets.scss b/dylan_eckert/rails2/authorization/app/assets/stylesheets/secrets.scss new file mode 100644 index 0000000..f1aed55 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/assets/stylesheets/secrets.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Secrets controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/authorization/app/assets/stylesheets/sessions.scss b/dylan_eckert/rails2/authorization/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000..ccb1ed2 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/justin_quiros/models/app/assets/stylesheets/users.scss b/dylan_eckert/rails2/authorization/app/assets/stylesheets/users.scss similarity index 100% rename from justin_quiros/models/app/assets/stylesheets/users.scss rename to dylan_eckert/rails2/authorization/app/assets/stylesheets/users.scss diff --git a/dylan_eckert/rails2/authorization/app/channels/application_cable/channel.rb b/dylan_eckert/rails2/authorization/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/rails2/authorization/app/channels/application_cable/connection.rb b/dylan_eckert/rails2/authorization/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/rails2/authorization/app/controllers/application_controller.rb b/dylan_eckert/rails2/authorization/app/controllers/application_controller.rb new file mode 100644 index 0000000..122a954 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/controllers/application_controller.rb @@ -0,0 +1,15 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login + + def require_login + return redirect_to new_session_path unless session[:user_id] + end + def current_user + # ONLY USE THIS IF YOU ARE NEEDING THE FULL USER INFO (name, email, etc) if you are going for an id, just use session[:user_id] + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/Stephen Weil/Rails/Models/user_login_project/lib/assets/.keep b/dylan_eckert/rails2/authorization/app/controllers/concerns/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/lib/assets/.keep rename to dylan_eckert/rails2/authorization/app/controllers/concerns/.keep diff --git a/dylan_eckert/rails2/authorization/app/controllers/likes_controller.rb b/dylan_eckert/rails2/authorization/app/controllers/likes_controller.rb new file mode 100644 index 0000000..f64accc --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/controllers/likes_controller.rb @@ -0,0 +1,17 @@ +class LikesController < ApplicationController + def create + Like.create(like_params) + redirect_to secrets_path + end + + def destroy + @like = Like.find(params[:id]) + @like.destroy if session[:user_id] === @like.user_id + # this is a check to make sure that if somehow a user who didnt create the like tries to delete the like(unlike), the destroy method will not run + redirect_to secrets_path + end + private + def like_params + params.require(:like).permit(:secret_id).merge(user: current_user) + end +end diff --git a/dylan_eckert/rails2/authorization/app/controllers/secrets_controller.rb b/dylan_eckert/rails2/authorization/app/controllers/secrets_controller.rb new file mode 100644 index 0000000..b841f71 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/controllers/secrets_controller.rb @@ -0,0 +1,23 @@ +class SecretsController < ApplicationController + def index + @secrets = Secret.all + # this is to get all secrets, I then have + end + def create + secret = Secret.new secret_params + unless secret.save + flash[:errors] = secret.errors.full_messages + end + redirect_to user_path current_user.id + end + def destroy + @secret = Secret.find(params[:id]) + @secret.destroy if @secret.user === current_user + redirect_to user_path current_user.id + end + private + def secret_params + params.require(:secret).permit(:content).merge(user: current_user) + # make strong params for secret, including content and merging the user that created it by using my application controller's method current_user to find the current user logged in to the session + end +end diff --git a/dylan_eckert/rails2/authorization/app/controllers/sessions_controller.rb b/dylan_eckert/rails2/authorization/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..6a0abf2 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/controllers/sessions_controller.rb @@ -0,0 +1,26 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def new + end + + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to user_path user.id + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: new_session_path + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/authorization/app/controllers/users_controller.rb b/dylan_eckert/rails2/authorization/app/controllers/users_controller.rb new file mode 100644 index 0000000..e59122e --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/controllers/users_controller.rb @@ -0,0 +1,51 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:new, :create] + before_action :user_auth, except: [:new, :create] + def new + end + + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to user_path user.id + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: new_user_path + end + end + + def show + @user = User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def update + user = User.find(params[:id]) + user.update(user_params) + redirect_to user_path user.id + end + + def destroy + user = User.find(params[:id]) + user.destroy + reset_session + redirect_to new_session_path + end + + private + + def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) + end + + def user_auth + if params[:id].to_i != session[:user_id] + # anything put into params or forms are treated as strings, so basically, session[:user_id] is a true integer because it comes from the user object. params[:id] is a string and must be converted to an integer in order for the comparison to occur + redirect_to user_path session[:user_id] + end + end +end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/app/helpers/application_helper.rb b/dylan_eckert/rails2/authorization/app/helpers/application_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/app/helpers/application_helper.rb rename to dylan_eckert/rails2/authorization/app/helpers/application_helper.rb diff --git a/dylan_eckert/rails2/authorization/app/helpers/likes_helper.rb b/dylan_eckert/rails2/authorization/app/helpers/likes_helper.rb new file mode 100644 index 0000000..a78a759 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/helpers/likes_helper.rb @@ -0,0 +1,2 @@ +module LikesHelper +end diff --git a/dylan_eckert/rails2/authorization/app/helpers/secrets_helper.rb b/dylan_eckert/rails2/authorization/app/helpers/secrets_helper.rb new file mode 100644 index 0000000..17ab1ea --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/helpers/secrets_helper.rb @@ -0,0 +1,2 @@ +module SecretsHelper +end diff --git a/dylan_eckert/rails2/authorization/app/helpers/sessions_helper.rb b/dylan_eckert/rails2/authorization/app/helpers/sessions_helper.rb new file mode 100644 index 0000000..309f8b2 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/richardN/controllers/imc2/app/helpers/users_helper.rb b/dylan_eckert/rails2/authorization/app/helpers/users_helper.rb similarity index 100% rename from richardN/controllers/imc2/app/helpers/users_helper.rb rename to dylan_eckert/rails2/authorization/app/helpers/users_helper.rb diff --git a/dylan_eckert/rails2/authorization/app/jobs/application_job.rb b/dylan_eckert/rails2/authorization/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/rails2/authorization/app/mailers/application_mailer.rb b/dylan_eckert/rails2/authorization/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/rails2/authorization/app/models/application_record.rb b/dylan_eckert/rails2/authorization/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Stephen Weil/Rails/Models/user_login_project/lib/tasks/.keep b/dylan_eckert/rails2/authorization/app/models/concerns/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/lib/tasks/.keep rename to dylan_eckert/rails2/authorization/app/models/concerns/.keep diff --git a/dylan_eckert/rails2/authorization/app/models/like.rb b/dylan_eckert/rails2/authorization/app/models/like.rb new file mode 100644 index 0000000..85908ea --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/models/like.rb @@ -0,0 +1,4 @@ +class Like < ApplicationRecord + belongs_to :secret + belongs_to :user +end diff --git a/dylan_eckert/rails2/authorization/app/models/secret.rb b/dylan_eckert/rails2/authorization/app/models/secret.rb new file mode 100644 index 0000000..1a3958f --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/models/secret.rb @@ -0,0 +1,7 @@ +class Secret < ApplicationRecord + belongs_to :user + has_many :likes, dependent: :destroy + has_many :users, through: :likes + + validates :content, presence: true +end diff --git a/dylan_eckert/rails2/authorization/app/models/user.rb b/dylan_eckert/rails2/authorization/app/models/user.rb new file mode 100644 index 0000000..60bda5f --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/models/user.rb @@ -0,0 +1,20 @@ +class User < ApplicationRecord + has_secure_password + has_many :secrets + has_many :likes, dependent: :destroy + has_many :secrets_liked, through: :likes, source: :secret + # the line above is there to allow for us so the query User.first.secrets will show all of the secrets the user created, not the secrets the user has liked + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :input_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def input_lowercase + self.email.downcase! + self.name.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/authorization/app/views/layouts/application.html.erb b/dylan_eckert/rails2/authorization/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4c62c3f --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/layouts/application.html.erb @@ -0,0 +1,25 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + diff --git a/dylan_eckert/rails2/authorization/app/views/layouts/mailer.html.erb b/dylan_eckert/rails2/authorization/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/authorization/app/views/layouts/mailer.text.erb b/dylan_eckert/rails2/authorization/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/authorization/app/views/likes/create.html.erb b/dylan_eckert/rails2/authorization/app/views/likes/create.html.erb new file mode 100644 index 0000000..7159391 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/likes/create.html.erb @@ -0,0 +1,2 @@ +

Likes#create

+

Find me in app/views/likes/create.html.erb

diff --git a/dylan_eckert/rails2/authorization/app/views/likes/destroy.html.erb b/dylan_eckert/rails2/authorization/app/views/likes/destroy.html.erb new file mode 100644 index 0000000..b7ab94f --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/likes/destroy.html.erb @@ -0,0 +1,2 @@ +

Likes#destroy

+

Find me in app/views/likes/destroy.html.erb

diff --git a/dylan_eckert/rails2/authorization/app/views/secrets/index.html.erb b/dylan_eckert/rails2/authorization/app/views/secrets/index.html.erb new file mode 100644 index 0000000..eb436f1 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/secrets/index.html.erb @@ -0,0 +1,26 @@ +

All Secrets

+<% @secrets.all.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> + <% unless secret.users.include?(current_user) %> +
+ + + +
+ <% else %> +
+ + + + +
+ <% end %> +<% end %> diff --git a/dylan_eckert/rails2/authorization/app/views/sessions/new.html.erb b/dylan_eckert/rails2/authorization/app/views/sessions/new.html.erb new file mode 100644 index 0000000..9da5dea --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/rails2/authorization/app/views/users/edit.html.erb b/dylan_eckert/rails2/authorization/app/views/users/edit.html.erb new file mode 100644 index 0000000..c23f602 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/users/edit.html.erb @@ -0,0 +1,12 @@ +

Edit User <%= @user.id %>

+ +
+ + + Name: + + Email: + + +
+Delete Account diff --git a/dylan_eckert/rails2/authorization/app/views/users/new.html.erb b/dylan_eckert/rails2/authorization/app/views/users/new.html.erb new file mode 100644 index 0000000..f4aed5d --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/users/new.html.erb @@ -0,0 +1,13 @@ +

Register

+
+ +

Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ + +
diff --git a/dylan_eckert/rails2/authorization/app/views/users/show.html.erb b/dylan_eckert/rails2/authorization/app/views/users/show.html.erb new file mode 100644 index 0000000..6aea1b2 --- /dev/null +++ b/dylan_eckert/rails2/authorization/app/views/users/show.html.erb @@ -0,0 +1,21 @@ +

<%= @user.name %>

+

<%= @user.email %>

+
+ + + +
+ + +<% @user.secrets.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> +<% end %> +Update Account diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/bin/bundle b/dylan_eckert/rails2/authorization/bin/bundle similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/bin/bundle rename to dylan_eckert/rails2/authorization/bin/bundle diff --git a/dylan_eckert/rails2/authorization/bin/rails b/dylan_eckert/rails2/authorization/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/rails2/authorization/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/bin/rake b/dylan_eckert/rails2/authorization/bin/rake similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/bin/rake rename to dylan_eckert/rails2/authorization/bin/rake diff --git a/dylan_eckert/rails2/authorization/bin/setup b/dylan_eckert/rails2/authorization/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/rails2/authorization/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/bin/spring b/dylan_eckert/rails2/authorization/bin/spring similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/bin/spring rename to dylan_eckert/rails2/authorization/bin/spring diff --git a/dylan_eckert/rails2/authorization/bin/update b/dylan_eckert/rails2/authorization/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/rails2/authorization/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/rails2/authorization/config.ru b/dylan_eckert/rails2/authorization/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/rails2/authorization/config/application.rb b/dylan_eckert/rails2/authorization/config/application.rb new file mode 100644 index 0000000..65de0bc --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoSecrets + 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. + end +end diff --git a/dylan_eckert/rails2/authorization/config/boot.rb b/dylan_eckert/rails2/authorization/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/rails2/authorization/config/cable.yml b/dylan_eckert/rails2/authorization/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/rails2/authorization/config/database.yml b/dylan_eckert/rails2/authorization/config/database.yml new file mode 100644 index 0000000..efc5910 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: DojoSecrets_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: DojoSecrets + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: DojoSecrets_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: DojoSecrets_production + username: DojoSecrets + password: <%= ENV['DOJOSECRETS_DATABASE_PASSWORD'] %> diff --git a/dylan_eckert/rails2/authorization/config/environment.rb b/dylan_eckert/rails2/authorization/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/rails2/authorization/config/environments/development.rb b/dylan_eckert/rails2/authorization/config/environments/development.rb new file mode 100644 index 0000000..77fe74d --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/environments/development.rb @@ -0,0 +1,55 @@ +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 rest art the web server when you make code changes. + config.cache_classes = false + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/rails2/authorization/config/environments/production.rb b/dylan_eckert/rails2/authorization/config/environments/production.rb new file mode 100644 index 0000000..f8e01b7 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "DojoSecrets_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/rails2/authorization/config/environments/test.rb b/dylan_eckert/rails2/authorization/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/rails2/authorization/config/initializers/application_controller_renderer.rb b/dylan_eckert/rails2/authorization/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Stephen Weil/Rails/Models/optimize/config/initializers/assets.rb b/dylan_eckert/rails2/authorization/config/initializers/assets.rb similarity index 100% rename from Stephen Weil/Rails/Models/optimize/config/initializers/assets.rb rename to dylan_eckert/rails2/authorization/config/initializers/assets.rb diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/backtrace_silencers.rb b/dylan_eckert/rails2/authorization/config/initializers/backtrace_silencers.rb similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/backtrace_silencers.rb rename to dylan_eckert/rails2/authorization/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/rails2/authorization/config/initializers/cookies_serializer.rb b/dylan_eckert/rails2/authorization/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/filter_parameter_logging.rb b/dylan_eckert/rails2/authorization/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/rails2/authorization/config/initializers/filter_parameter_logging.rb diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/inflections.rb b/dylan_eckert/rails2/authorization/config/initializers/inflections.rb similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/inflections.rb rename to dylan_eckert/rails2/authorization/config/initializers/inflections.rb diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/mime_types.rb b/dylan_eckert/rails2/authorization/config/initializers/mime_types.rb similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/config/initializers/mime_types.rb rename to dylan_eckert/rails2/authorization/config/initializers/mime_types.rb diff --git a/dylan_eckert/rails2/authorization/config/initializers/new_framework_defaults.rb b/dylan_eckert/rails2/authorization/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/rails2/authorization/config/initializers/session_store.rb b/dylan_eckert/rails2/authorization/config/initializers/session_store.rb new file mode 100644 index 0000000..745fa7c --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_DojoSecrets_session' diff --git a/dylan_eckert/rails2/authorization/config/initializers/wrap_parameters.rb b/dylan_eckert/rails2/authorization/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Stephen Weil/Rails/Models/dojo_ninjas/config/locales/en.yml b/dylan_eckert/rails2/authorization/config/locales/en.yml similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/config/locales/en.yml rename to dylan_eckert/rails2/authorization/config/locales/en.yml diff --git a/dylan_eckert/rails2/authorization/config/puma.rb b/dylan_eckert/rails2/authorization/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/rails2/authorization/config/routes.rb b/dylan_eckert/rails2/authorization/config/routes.rb new file mode 100644 index 0000000..27bab57 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/routes.rb @@ -0,0 +1,8 @@ +Rails.application.routes.draw do + resources :sessions, only: [:new, :create, :destroy] + resources :users, except: [:index] + resources :secrets, only: [:index, :create, :destroy] + resources :likes, only: [:create, :destroy] + # The priority is based upon order of creation from top to bottom + # rake routes lets you see all available routes and their names +end diff --git a/dylan_eckert/rails2/authorization/config/secrets.yml b/dylan_eckert/rails2/authorization/config/secrets.yml new file mode 100644 index 0000000..41e0de4 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: df5bfd362ae400b400d79af9bc419e988c72e7a2df7aebc541137d2f27e125bb93b09d877ecc0cae931a9b8c16ef96f1c7329a8b2d788eadf3a0f5cc9bb4d4e7 + +test: + secret_key_base: 91a21b8af0492c5893228989638a977f5e7cf895e0a94a3a0cd34976a4582b84e68c4e940e3369f2297218eaebf4bce2cc07441512a9c2d645734c20e08024b9 + +# 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/dylan_eckert/rails2/authorization/config/spring.rb b/dylan_eckert/rails2/authorization/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/rails2/authorization/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/rails2/authorization/db/migrate/20171211192257_create_users.rb b/dylan_eckert/rails2/authorization/db/migrate/20171211192257_create_users.rb new file mode 100644 index 0000000..9e6ab64 --- /dev/null +++ b/dylan_eckert/rails2/authorization/db/migrate/20171211192257_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/authorization/db/migrate/20171212235708_create_secrets.rb b/dylan_eckert/rails2/authorization/db/migrate/20171212235708_create_secrets.rb new file mode 100644 index 0000000..df773f3 --- /dev/null +++ b/dylan_eckert/rails2/authorization/db/migrate/20171212235708_create_secrets.rb @@ -0,0 +1,10 @@ +class CreateSecrets < ActiveRecord::Migration[5.0] + def change + create_table :secrets do |t| + t.text :content + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/authorization/db/migrate/20171212235821_create_likes.rb b/dylan_eckert/rails2/authorization/db/migrate/20171212235821_create_likes.rb new file mode 100644 index 0000000..0c95c79 --- /dev/null +++ b/dylan_eckert/rails2/authorization/db/migrate/20171212235821_create_likes.rb @@ -0,0 +1,10 @@ +class CreateLikes < ActiveRecord::Migration[5.0] + def change + create_table :likes do |t| + t.references :secret, foreign_key: true + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/authorization/db/schema.rb b/dylan_eckert/rails2/authorization/db/schema.rb new file mode 100644 index 0000000..e0d9fe8 --- /dev/null +++ b/dylan_eckert/rails2/authorization/db/schema.rb @@ -0,0 +1,46 @@ +# 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: 20171212235821) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "likes", force: :cascade do |t| + t.integer "secret_id" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["secret_id"], name: "index_likes_on_secret_id", using: :btree + t.index ["user_id"], name: "index_likes_on_user_id", using: :btree + end + + create_table "secrets", force: :cascade do |t| + t.text "content" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id"], name: "index_secrets_on_user_id", using: :btree + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + add_foreign_key "likes", "secrets" + add_foreign_key "likes", "users" + add_foreign_key "secrets", "users" +end diff --git a/dylan_eckert/rails2/authorization/db/seeds.rb b/dylan_eckert/rails2/authorization/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/rails2/authorization/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Stephen Weil/Rails/Models/user_login_project/log/.keep b/dylan_eckert/rails2/authorization/lib/assets/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/log/.keep rename to dylan_eckert/rails2/authorization/lib/assets/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/test/controllers/.keep b/dylan_eckert/rails2/authorization/lib/tasks/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/controllers/.keep rename to dylan_eckert/rails2/authorization/lib/tasks/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/test/fixtures/.keep b/dylan_eckert/rails2/authorization/log/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/fixtures/.keep rename to dylan_eckert/rails2/authorization/log/.keep diff --git a/dylan_eckert/rails2/authorization/public/404.html b/dylan_eckert/rails2/authorization/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/rails2/authorization/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/authorization/public/422.html b/dylan_eckert/rails2/authorization/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/rails2/authorization/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/authorization/public/500.html b/dylan_eckert/rails2/authorization/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/rails2/authorization/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Stephen Weil/Rails/Models/user_login_project/test/helpers/.keep b/dylan_eckert/rails2/authorization/public/apple-touch-icon-precomposed.png similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/helpers/.keep rename to dylan_eckert/rails2/authorization/public/apple-touch-icon-precomposed.png diff --git a/Stephen Weil/Rails/Models/user_login_project/test/integration/.keep b/dylan_eckert/rails2/authorization/public/apple-touch-icon.png similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/integration/.keep rename to dylan_eckert/rails2/authorization/public/apple-touch-icon.png diff --git a/Tamisha_Damas/Rails II/dojo_secrets/public/favicon.ico b/dylan_eckert/rails2/authorization/public/favicon.ico similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/public/favicon.ico rename to dylan_eckert/rails2/authorization/public/favicon.ico diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/public/robots.txt b/dylan_eckert/rails2/authorization/public/robots.txt similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/public/robots.txt rename to dylan_eckert/rails2/authorization/public/robots.txt diff --git a/dylan_eckert/rails2/authorization/spec/controllers/secrets_controller_spec.rb b/dylan_eckert/rails2/authorization/spec/controllers/secrets_controller_spec.rb new file mode 100644 index 0000000..582e299 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/controllers/secrets_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe SecretsController, type: :controller do + +end diff --git a/dylan_eckert/rails2/authorization/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/authorization/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/authorization/spec/factories/likes.rb b/dylan_eckert/rails2/authorization/spec/factories/likes.rb new file mode 100644 index 0000000..56765c9 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/factories/likes.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :like do + secret nil + user nil + end +end diff --git a/dylan_eckert/rails2/authorization/spec/factories/secrets.rb b/dylan_eckert/rails2/authorization/spec/factories/secrets.rb new file mode 100644 index 0000000..af5f0e0 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/factories/secrets.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :secret do + content "MyText" + user nil + end +end diff --git a/dylan_eckert/rails2/authorization/spec/factories/users.rb b/dylan_eckert/rails2/authorization/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/authorization/spec/helpers/likes_helper_spec.rb b/dylan_eckert/rails2/authorization/spec/helpers/likes_helper_spec.rb new file mode 100644 index 0000000..bc19687 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/helpers/likes_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the LikesHelper. For example: +# +# describe LikesHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe LikesHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/authorization/spec/helpers/secrets_helper_spec.rb b/dylan_eckert/rails2/authorization/spec/helpers/secrets_helper_spec.rb new file mode 100644 index 0000000..285256a --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/helpers/secrets_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SecretsHelper. For example: +# +# describe SecretsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SecretsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/authorization/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/authorization/spec/helpers/sessions_helper_spec.rb new file mode 100644 index 0000000..9484198 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/helpers/sessions_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SessionsHelper. For example: +# +# describe SessionsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SessionsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/authorization/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/authorization/spec/helpers/users_helper_spec.rb new file mode 100644 index 0000000..b2e3444 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/helpers/users_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the UsersHelper. For example: +# +# describe UsersHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe UsersHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/authorization/spec/models/like_spec.rb b/dylan_eckert/rails2/authorization/spec/models/like_spec.rb new file mode 100644 index 0000000..3284133 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/models/like_spec.rb @@ -0,0 +1,17 @@ +require 'rails_helper' + +RSpec.describe Like, type: :model do + describe 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'belongs to a user' do + expect(@like.user).to eq(@user) + end + it 'belongs to a secret' do + expect(@like.secret).to eq(@secret) + end + end +end diff --git a/dylan_eckert/rails2/authorization/spec/models/secret_spec.rb b/dylan_eckert/rails2/authorization/spec/models/secret_spec.rb new file mode 100644 index 0000000..fb755b5 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/models/secret_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Secret, type: :model do + it 'requires content' do + expect(build(:secret, content: "")).to be_invalid + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, user: @user, secret: @secret) + end + it 'belongs to a user' do + expect(@secret.user).to eq(@user) + end + it 'has likes' do + expect(@secret.likes).to include(@like) + end + it 'has users through likes table' do + expect(@secret.users).to include(@user) + end + end +end diff --git a/dylan_eckert/rails2/authorization/spec/models/user_spec.rb b/dylan_eckert/rails2/authorization/spec/models/user_spec.rb new file mode 100644 index 0000000..5d8f4be --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/models/user_spec.rb @@ -0,0 +1,56 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, content: 'secret 1', user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'has secrets' do + expect(@user.secrets).to include(@secret) + end + it 'has likes' do + expect(@user.likes).to include(@like) + end + it "has secrets through likes table" do + expect(@user.secrets_liked).to include(@secret) + end + end +end diff --git a/dylan_eckert/rails2/authorization/spec/rails_helper.rb b/dylan_eckert/rails2/authorization/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/authorization/spec/spec_helper.rb b/dylan_eckert/rails2/authorization/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/authorization/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/Stephen Weil/Rails/Models/user_login_project/test/mailers/.keep b/dylan_eckert/rails2/authorization/test/controllers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/mailers/.keep rename to dylan_eckert/rails2/authorization/test/controllers/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/test/models/.keep b/dylan_eckert/rails2/authorization/test/fixtures/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/models/.keep rename to dylan_eckert/rails2/authorization/test/fixtures/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/authorization/test/fixtures/files/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/authorization/test/fixtures/files/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/authorization/test/helpers/.keep similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/authorization/test/helpers/.keep diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/assets/images/.keep b/dylan_eckert/rails2/authorization/test/integration/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/assets/images/.keep rename to dylan_eckert/rails2/authorization/test/integration/.keep diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/controllers/concerns/.keep b/dylan_eckert/rails2/authorization/test/mailers/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/controllers/concerns/.keep rename to dylan_eckert/rails2/authorization/test/mailers/.keep diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/mailers/.keep b/dylan_eckert/rails2/authorization/test/models/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/mailers/.keep rename to dylan_eckert/rails2/authorization/test/models/.keep diff --git a/Stephen Weil/Rails/Models/blogs_one/test/test_helper.rb b/dylan_eckert/rails2/authorization/test/test_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/blogs_one/test/test_helper.rb rename to dylan_eckert/rails2/authorization/test/test_helper.rb diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/models/.keep b/dylan_eckert/rails2/authorization/tmp/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/models/.keep rename to dylan_eckert/rails2/authorization/tmp/.keep diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/models/concerns/.keep b/dylan_eckert/rails2/authorization/vendor/assets/javascripts/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/models/concerns/.keep rename to dylan_eckert/rails2/authorization/vendor/assets/javascripts/.keep diff --git a/Tamisha_Damas/Rails II/dojo_secrets/lib/assets/.keep b/dylan_eckert/rails2/authorization/vendor/assets/stylesheets/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/lib/assets/.keep rename to dylan_eckert/rails2/authorization/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/rails2/likefeatures/.gitignore b/dylan_eckert/rails2/likefeatures/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/rails2/likefeatures/.rspec b/dylan_eckert/rails2/likefeatures/.rspec new file mode 100644 index 0000000..c99d2e7 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/.rspec @@ -0,0 +1 @@ +--require spec_helper diff --git a/dylan_eckert/rails2/likefeatures/Gemfile b/dylan_eckert/rails2/likefeatures/Gemfile new file mode 100644 index 0000000..8d464a7 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + gem 'rspec-rails' + gem 'factory_bot_rails' + gem 'capybara' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/rails2/likefeatures/Gemfile.lock b/dylan_eckert/rails2/likefeatures/Gemfile.lock new file mode 100644 index 0000000..1368646 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/Gemfile.lock @@ -0,0 +1,217 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + capybara (2.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + diff-lcs (1.3) + erubis (2.7.0) + execjs (2.7.0) + factory_bot (4.8.2) + activesupport (>= 3.0.0) + factory_bot_rails (4.8.2) + factory_bot (~> 4.8.2) + railties (>= 3.0.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + public_suffix (3.0.1) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rspec-core (3.7.0) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-rails (3.7.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.0) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + capybara + coffee-rails (~> 4.2) + factory_bot_rails + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rspec-rails + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/rails2/likefeatures/README.md b/dylan_eckert/rails2/likefeatures/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/rails2/likefeatures/Rakefile b/dylan_eckert/rails2/likefeatures/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/rails2/likefeatures/app/assets/config/manifest.js b/dylan_eckert/rails2/likefeatures/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Tamisha_Damas/Rails II/dojo_secrets/lib/tasks/.keep b/dylan_eckert/rails2/likefeatures/app/assets/images/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/lib/tasks/.keep rename to dylan_eckert/rails2/likefeatures/app/assets/images/.keep diff --git a/dylan_eckert/rails2/likefeatures/app/assets/javascripts/application.js b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/rails2/likefeatures/app/assets/javascripts/cable.js b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Tamisha_Damas/Rails II/dojo_secrets/log/.keep b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/channels/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/log/.keep rename to dylan_eckert/rails2/likefeatures/app/assets/javascripts/channels/.keep diff --git a/brittney_jackson/rails/timeDisplay/app/assets/javascripts/times.coffee b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/likes.coffee similarity index 100% rename from brittney_jackson/rails/timeDisplay/app/assets/javascripts/times.coffee rename to dylan_eckert/rails2/likefeatures/app/assets/javascripts/likes.coffee diff --git a/justin_quiros/demo/app/assets/javascripts/products.coffee b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/secrets.coffee similarity index 100% rename from justin_quiros/demo/app/assets/javascripts/products.coffee rename to dylan_eckert/rails2/likefeatures/app/assets/javascripts/secrets.coffee diff --git a/justin_quiros/display/app/assets/javascripts/times.coffee b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/sessions.coffee similarity index 100% rename from justin_quiros/display/app/assets/javascripts/times.coffee rename to dylan_eckert/rails2/likefeatures/app/assets/javascripts/sessions.coffee diff --git a/justin_quiros/dojo_dashboard/app/assets/javascripts/dojos.coffee b/dylan_eckert/rails2/likefeatures/app/assets/javascripts/users.coffee similarity index 100% rename from justin_quiros/dojo_dashboard/app/assets/javascripts/dojos.coffee rename to dylan_eckert/rails2/likefeatures/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/application.css b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/likes.scss b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/likes.scss new file mode 100644 index 0000000..dacd946 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/likes.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Likes controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/secrets.scss b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/secrets.scss new file mode 100644 index 0000000..f1aed55 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/secrets.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Secrets controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/sessions.scss b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000..ccb1ed2 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/richardN/controllers/imc2/app/assets/stylesheets/users.scss b/dylan_eckert/rails2/likefeatures/app/assets/stylesheets/users.scss similarity index 100% rename from richardN/controllers/imc2/app/assets/stylesheets/users.scss rename to dylan_eckert/rails2/likefeatures/app/assets/stylesheets/users.scss diff --git a/dylan_eckert/rails2/likefeatures/app/channels/application_cable/channel.rb b/dylan_eckert/rails2/likefeatures/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/rails2/likefeatures/app/channels/application_cable/connection.rb b/dylan_eckert/rails2/likefeatures/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/rails2/likefeatures/app/controllers/application_controller.rb b/dylan_eckert/rails2/likefeatures/app/controllers/application_controller.rb new file mode 100644 index 0000000..122a954 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/controllers/application_controller.rb @@ -0,0 +1,15 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login + + def require_login + return redirect_to new_session_path unless session[:user_id] + end + def current_user + # ONLY USE THIS IF YOU ARE NEEDING THE FULL USER INFO (name, email, etc) if you are going for an id, just use session[:user_id] + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/likefeatures/app/controllers/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/likefeatures/app/controllers/concerns/.keep diff --git a/dylan_eckert/rails2/likefeatures/app/controllers/likes_controller.rb b/dylan_eckert/rails2/likefeatures/app/controllers/likes_controller.rb new file mode 100644 index 0000000..f64accc --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/controllers/likes_controller.rb @@ -0,0 +1,17 @@ +class LikesController < ApplicationController + def create + Like.create(like_params) + redirect_to secrets_path + end + + def destroy + @like = Like.find(params[:id]) + @like.destroy if session[:user_id] === @like.user_id + # this is a check to make sure that if somehow a user who didnt create the like tries to delete the like(unlike), the destroy method will not run + redirect_to secrets_path + end + private + def like_params + params.require(:like).permit(:secret_id).merge(user: current_user) + end +end diff --git a/dylan_eckert/rails2/likefeatures/app/controllers/secrets_controller.rb b/dylan_eckert/rails2/likefeatures/app/controllers/secrets_controller.rb new file mode 100644 index 0000000..b841f71 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/controllers/secrets_controller.rb @@ -0,0 +1,23 @@ +class SecretsController < ApplicationController + def index + @secrets = Secret.all + # this is to get all secrets, I then have + end + def create + secret = Secret.new secret_params + unless secret.save + flash[:errors] = secret.errors.full_messages + end + redirect_to user_path current_user.id + end + def destroy + @secret = Secret.find(params[:id]) + @secret.destroy if @secret.user === current_user + redirect_to user_path current_user.id + end + private + def secret_params + params.require(:secret).permit(:content).merge(user: current_user) + # make strong params for secret, including content and merging the user that created it by using my application controller's method current_user to find the current user logged in to the session + end +end diff --git a/dylan_eckert/rails2/likefeatures/app/controllers/sessions_controller.rb b/dylan_eckert/rails2/likefeatures/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..6a0abf2 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/controllers/sessions_controller.rb @@ -0,0 +1,26 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def new + end + + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to user_path user.id + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: new_session_path + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/likefeatures/app/controllers/users_controller.rb b/dylan_eckert/rails2/likefeatures/app/controllers/users_controller.rb new file mode 100644 index 0000000..cb2cd2e --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/controllers/users_controller.rb @@ -0,0 +1,43 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:new, :create] + def new + end + + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to user_path user.id + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: new_user_path + end + end + + def show + @user = User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def update + user = User.find(params[:id]) + user.update(user_params) + redirect_to user_path user.id + end + + def destroy + user = User.find(params[:id]) + user.destroy + reset_session + redirect_to new_session_path + end + + private + + def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) + end +end diff --git a/Stephen Weil/Rails/Models/optimize/app/helpers/application_helper.rb b/dylan_eckert/rails2/likefeatures/app/helpers/application_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/optimize/app/helpers/application_helper.rb rename to dylan_eckert/rails2/likefeatures/app/helpers/application_helper.rb diff --git a/dylan_eckert/rails2/likefeatures/app/helpers/likes_helper.rb b/dylan_eckert/rails2/likefeatures/app/helpers/likes_helper.rb new file mode 100644 index 0000000..a78a759 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/helpers/likes_helper.rb @@ -0,0 +1,2 @@ +module LikesHelper +end diff --git a/dylan_eckert/rails2/likefeatures/app/helpers/secrets_helper.rb b/dylan_eckert/rails2/likefeatures/app/helpers/secrets_helper.rb new file mode 100644 index 0000000..17ab1ea --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/helpers/secrets_helper.rb @@ -0,0 +1,2 @@ +module SecretsHelper +end diff --git a/dylan_eckert/rails2/likefeatures/app/helpers/sessions_helper.rb b/dylan_eckert/rails2/likefeatures/app/helpers/sessions_helper.rb new file mode 100644 index 0000000..309f8b2 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/dylan_eckert/rails2/likefeatures/app/helpers/users_helper.rb b/dylan_eckert/rails2/likefeatures/app/helpers/users_helper.rb new file mode 100644 index 0000000..2310a24 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/helpers/users_helper.rb @@ -0,0 +1,2 @@ +module UsersHelper +end diff --git a/dylan_eckert/rails2/likefeatures/app/jobs/application_job.rb b/dylan_eckert/rails2/likefeatures/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/rails2/likefeatures/app/mailers/application_mailer.rb b/dylan_eckert/rails2/likefeatures/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/rails2/likefeatures/app/models/application_record.rb b/dylan_eckert/rails2/likefeatures/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/likefeatures/app/models/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/likefeatures/app/models/concerns/.keep diff --git a/dylan_eckert/rails2/likefeatures/app/models/like.rb b/dylan_eckert/rails2/likefeatures/app/models/like.rb new file mode 100644 index 0000000..85908ea --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/models/like.rb @@ -0,0 +1,4 @@ +class Like < ApplicationRecord + belongs_to :secret + belongs_to :user +end diff --git a/dylan_eckert/rails2/likefeatures/app/models/secret.rb b/dylan_eckert/rails2/likefeatures/app/models/secret.rb new file mode 100644 index 0000000..1a3958f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/models/secret.rb @@ -0,0 +1,7 @@ +class Secret < ApplicationRecord + belongs_to :user + has_many :likes, dependent: :destroy + has_many :users, through: :likes + + validates :content, presence: true +end diff --git a/dylan_eckert/rails2/likefeatures/app/models/user.rb b/dylan_eckert/rails2/likefeatures/app/models/user.rb new file mode 100644 index 0000000..60bda5f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/models/user.rb @@ -0,0 +1,20 @@ +class User < ApplicationRecord + has_secure_password + has_many :secrets + has_many :likes, dependent: :destroy + has_many :secrets_liked, through: :likes, source: :secret + # the line above is there to allow for us so the query User.first.secrets will show all of the secrets the user created, not the secrets the user has liked + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :input_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def input_lowercase + self.email.downcase! + self.name.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/likefeatures/app/views/layouts/application.html.erb b/dylan_eckert/rails2/likefeatures/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4c62c3f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/layouts/application.html.erb @@ -0,0 +1,25 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + diff --git a/dylan_eckert/rails2/likefeatures/app/views/layouts/mailer.html.erb b/dylan_eckert/rails2/likefeatures/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/likefeatures/app/views/layouts/mailer.text.erb b/dylan_eckert/rails2/likefeatures/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/likefeatures/app/views/likes/create.html.erb b/dylan_eckert/rails2/likefeatures/app/views/likes/create.html.erb new file mode 100644 index 0000000..7159391 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/likes/create.html.erb @@ -0,0 +1,2 @@ +

Likes#create

+

Find me in app/views/likes/create.html.erb

diff --git a/dylan_eckert/rails2/likefeatures/app/views/likes/destroy.html.erb b/dylan_eckert/rails2/likefeatures/app/views/likes/destroy.html.erb new file mode 100644 index 0000000..b7ab94f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/likes/destroy.html.erb @@ -0,0 +1,2 @@ +

Likes#destroy

+

Find me in app/views/likes/destroy.html.erb

diff --git a/dylan_eckert/rails2/likefeatures/app/views/secrets/index.html.erb b/dylan_eckert/rails2/likefeatures/app/views/secrets/index.html.erb new file mode 100644 index 0000000..f60f6d9 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/secrets/index.html.erb @@ -0,0 +1,26 @@ +

All Secrets

+<% @secrets.all.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> + <% unless secret.users.include?(current_user) %> +
+ + + +
+ <% else %> +
+ + + + +
+ <% end %> +<% end %> diff --git a/dylan_eckert/rails2/likefeatures/app/views/sessions/new.html.erb b/dylan_eckert/rails2/likefeatures/app/views/sessions/new.html.erb new file mode 100644 index 0000000..9da5dea --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/rails2/likefeatures/app/views/users/edit.html.erb b/dylan_eckert/rails2/likefeatures/app/views/users/edit.html.erb new file mode 100644 index 0000000..c23f602 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/users/edit.html.erb @@ -0,0 +1,12 @@ +

Edit User <%= @user.id %>

+ +
+ + + Name: + + Email: + + +
+Delete Account diff --git a/dylan_eckert/rails2/likefeatures/app/views/users/new.html.erb b/dylan_eckert/rails2/likefeatures/app/views/users/new.html.erb new file mode 100644 index 0000000..f4aed5d --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/users/new.html.erb @@ -0,0 +1,13 @@ +

Register

+
+ +

Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ + +
diff --git a/dylan_eckert/rails2/likefeatures/app/views/users/show.html.erb b/dylan_eckert/rails2/likefeatures/app/views/users/show.html.erb new file mode 100644 index 0000000..6aea1b2 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/app/views/users/show.html.erb @@ -0,0 +1,21 @@ +

<%= @user.name %>

+

<%= @user.email %>

+
+ + + +
+ + +<% @user.secrets.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> +<% end %> +Update Account diff --git a/Stephen Weil/Rails/Models/optimize/bin/bundle b/dylan_eckert/rails2/likefeatures/bin/bundle similarity index 100% rename from Stephen Weil/Rails/Models/optimize/bin/bundle rename to dylan_eckert/rails2/likefeatures/bin/bundle diff --git a/dylan_eckert/rails2/likefeatures/bin/rails b/dylan_eckert/rails2/likefeatures/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/optimize/bin/rake b/dylan_eckert/rails2/likefeatures/bin/rake similarity index 100% rename from Stephen Weil/Rails/Models/optimize/bin/rake rename to dylan_eckert/rails2/likefeatures/bin/rake diff --git a/dylan_eckert/rails2/likefeatures/bin/setup b/dylan_eckert/rails2/likefeatures/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Stephen Weil/Rails/Models/optimize/bin/spring b/dylan_eckert/rails2/likefeatures/bin/spring similarity index 100% rename from Stephen Weil/Rails/Models/optimize/bin/spring rename to dylan_eckert/rails2/likefeatures/bin/spring diff --git a/dylan_eckert/rails2/likefeatures/bin/update b/dylan_eckert/rails2/likefeatures/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/rails2/likefeatures/config.ru b/dylan_eckert/rails2/likefeatures/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/rails2/likefeatures/config/application.rb b/dylan_eckert/rails2/likefeatures/config/application.rb new file mode 100644 index 0000000..65de0bc --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoSecrets + 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. + end +end diff --git a/dylan_eckert/rails2/likefeatures/config/boot.rb b/dylan_eckert/rails2/likefeatures/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/rails2/likefeatures/config/cable.yml b/dylan_eckert/rails2/likefeatures/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/rails2/likefeatures/config/database.yml b/dylan_eckert/rails2/likefeatures/config/database.yml new file mode 100644 index 0000000..efc5910 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: DojoSecrets_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: DojoSecrets + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: DojoSecrets_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: DojoSecrets_production + username: DojoSecrets + password: <%= ENV['DOJOSECRETS_DATABASE_PASSWORD'] %> diff --git a/dylan_eckert/rails2/likefeatures/config/environment.rb b/dylan_eckert/rails2/likefeatures/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/rails2/likefeatures/config/environments/development.rb b/dylan_eckert/rails2/likefeatures/config/environments/development.rb new file mode 100644 index 0000000..77fe74d --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/environments/development.rb @@ -0,0 +1,55 @@ +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 rest art the web server when you make code changes. + config.cache_classes = false + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/rails2/likefeatures/config/environments/production.rb b/dylan_eckert/rails2/likefeatures/config/environments/production.rb new file mode 100644 index 0000000..f8e01b7 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "DojoSecrets_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/rails2/likefeatures/config/environments/test.rb b/dylan_eckert/rails2/likefeatures/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/rails2/likefeatures/config/initializers/application_controller_renderer.rb b/dylan_eckert/rails2/likefeatures/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Stephen Weil/Rails/Models/user_login_project/config/initializers/assets.rb b/dylan_eckert/rails2/likefeatures/config/initializers/assets.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/config/initializers/assets.rb rename to dylan_eckert/rails2/likefeatures/config/initializers/assets.rb diff --git a/Stephen Weil/Rails/Models/optimize/config/initializers/backtrace_silencers.rb b/dylan_eckert/rails2/likefeatures/config/initializers/backtrace_silencers.rb similarity index 100% rename from Stephen Weil/Rails/Models/optimize/config/initializers/backtrace_silencers.rb rename to dylan_eckert/rails2/likefeatures/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/rails2/likefeatures/config/initializers/cookies_serializer.rb b/dylan_eckert/rails2/likefeatures/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Stephen Weil/Rails/Models/optimize/config/initializers/filter_parameter_logging.rb b/dylan_eckert/rails2/likefeatures/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Stephen Weil/Rails/Models/optimize/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/rails2/likefeatures/config/initializers/filter_parameter_logging.rb diff --git a/Stephen Weil/Rails/Models/optimize/config/initializers/inflections.rb b/dylan_eckert/rails2/likefeatures/config/initializers/inflections.rb similarity index 100% rename from Stephen Weil/Rails/Models/optimize/config/initializers/inflections.rb rename to dylan_eckert/rails2/likefeatures/config/initializers/inflections.rb diff --git a/Stephen Weil/Rails/Models/optimize/config/initializers/mime_types.rb b/dylan_eckert/rails2/likefeatures/config/initializers/mime_types.rb similarity index 100% rename from Stephen Weil/Rails/Models/optimize/config/initializers/mime_types.rb rename to dylan_eckert/rails2/likefeatures/config/initializers/mime_types.rb diff --git a/dylan_eckert/rails2/likefeatures/config/initializers/new_framework_defaults.rb b/dylan_eckert/rails2/likefeatures/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/rails2/likefeatures/config/initializers/session_store.rb b/dylan_eckert/rails2/likefeatures/config/initializers/session_store.rb new file mode 100644 index 0000000..745fa7c --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_DojoSecrets_session' diff --git a/dylan_eckert/rails2/likefeatures/config/initializers/wrap_parameters.rb b/dylan_eckert/rails2/likefeatures/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Stephen Weil/Rails/Models/optimize/config/locales/en.yml b/dylan_eckert/rails2/likefeatures/config/locales/en.yml similarity index 100% rename from Stephen Weil/Rails/Models/optimize/config/locales/en.yml rename to dylan_eckert/rails2/likefeatures/config/locales/en.yml diff --git a/dylan_eckert/rails2/likefeatures/config/puma.rb b/dylan_eckert/rails2/likefeatures/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/rails2/likefeatures/config/routes.rb b/dylan_eckert/rails2/likefeatures/config/routes.rb new file mode 100644 index 0000000..27bab57 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/routes.rb @@ -0,0 +1,8 @@ +Rails.application.routes.draw do + resources :sessions, only: [:new, :create, :destroy] + resources :users, except: [:index] + resources :secrets, only: [:index, :create, :destroy] + resources :likes, only: [:create, :destroy] + # The priority is based upon order of creation from top to bottom + # rake routes lets you see all available routes and their names +end diff --git a/dylan_eckert/rails2/likefeatures/config/secrets.yml b/dylan_eckert/rails2/likefeatures/config/secrets.yml new file mode 100644 index 0000000..41e0de4 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: df5bfd362ae400b400d79af9bc419e988c72e7a2df7aebc541137d2f27e125bb93b09d877ecc0cae931a9b8c16ef96f1c7329a8b2d788eadf3a0f5cc9bb4d4e7 + +test: + secret_key_base: 91a21b8af0492c5893228989638a977f5e7cf895e0a94a3a0cd34976a4582b84e68c4e940e3369f2297218eaebf4bce2cc07441512a9c2d645734c20e08024b9 + +# 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/dylan_eckert/rails2/likefeatures/config/spring.rb b/dylan_eckert/rails2/likefeatures/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/rails2/likefeatures/db/migrate/20171211192257_create_users.rb b/dylan_eckert/rails2/likefeatures/db/migrate/20171211192257_create_users.rb new file mode 100644 index 0000000..9e6ab64 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/db/migrate/20171211192257_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/likefeatures/db/migrate/20171212235708_create_secrets.rb b/dylan_eckert/rails2/likefeatures/db/migrate/20171212235708_create_secrets.rb new file mode 100644 index 0000000..df773f3 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/db/migrate/20171212235708_create_secrets.rb @@ -0,0 +1,10 @@ +class CreateSecrets < ActiveRecord::Migration[5.0] + def change + create_table :secrets do |t| + t.text :content + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/likefeatures/db/migrate/20171212235821_create_likes.rb b/dylan_eckert/rails2/likefeatures/db/migrate/20171212235821_create_likes.rb new file mode 100644 index 0000000..0c95c79 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/db/migrate/20171212235821_create_likes.rb @@ -0,0 +1,10 @@ +class CreateLikes < ActiveRecord::Migration[5.0] + def change + create_table :likes do |t| + t.references :secret, foreign_key: true + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/likefeatures/db/schema.rb b/dylan_eckert/rails2/likefeatures/db/schema.rb new file mode 100644 index 0000000..e0d9fe8 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/db/schema.rb @@ -0,0 +1,46 @@ +# 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: 20171212235821) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "likes", force: :cascade do |t| + t.integer "secret_id" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["secret_id"], name: "index_likes_on_secret_id", using: :btree + t.index ["user_id"], name: "index_likes_on_user_id", using: :btree + end + + create_table "secrets", force: :cascade do |t| + t.text "content" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id"], name: "index_secrets_on_user_id", using: :btree + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + add_foreign_key "likes", "secrets" + add_foreign_key "likes", "users" + add_foreign_key "secrets", "users" +end diff --git a/dylan_eckert/rails2/likefeatures/db/seeds.rb b/dylan_eckert/rails2/likefeatures/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/images/.keep b/dylan_eckert/rails2/likefeatures/lib/assets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/assets/images/.keep rename to dylan_eckert/rails2/likefeatures/lib/assets/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/controllers/concerns/.keep b/dylan_eckert/rails2/likefeatures/lib/tasks/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/controllers/concerns/.keep rename to dylan_eckert/rails2/likefeatures/lib/tasks/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/mailers/.keep b/dylan_eckert/rails2/likefeatures/log/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/mailers/.keep rename to dylan_eckert/rails2/likefeatures/log/.keep diff --git a/dylan_eckert/rails2/likefeatures/public/404.html b/dylan_eckert/rails2/likefeatures/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/likefeatures/public/422.html b/dylan_eckert/rails2/likefeatures/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/likefeatures/public/500.html b/dylan_eckert/rails2/likefeatures/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/models/.keep b/dylan_eckert/rails2/likefeatures/public/apple-touch-icon-precomposed.png similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/models/.keep rename to dylan_eckert/rails2/likefeatures/public/apple-touch-icon-precomposed.png diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/models/concerns/.keep b/dylan_eckert/rails2/likefeatures/public/apple-touch-icon.png similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/models/concerns/.keep rename to dylan_eckert/rails2/likefeatures/public/apple-touch-icon.png diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/favicon.ico b/dylan_eckert/rails2/likefeatures/public/favicon.ico similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/favicon.ico rename to dylan_eckert/rails2/likefeatures/public/favicon.ico diff --git a/Stephen Weil/Rails/Models/optimize/public/robots.txt b/dylan_eckert/rails2/likefeatures/public/robots.txt similarity index 100% rename from Stephen Weil/Rails/Models/optimize/public/robots.txt rename to dylan_eckert/rails2/likefeatures/public/robots.txt diff --git a/dylan_eckert/rails2/likefeatures/spec/controllers/secrets_controller_spec.rb b/dylan_eckert/rails2/likefeatures/spec/controllers/secrets_controller_spec.rb new file mode 100644 index 0000000..582e299 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/controllers/secrets_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe SecretsController, type: :controller do + +end diff --git a/dylan_eckert/rails2/likefeatures/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/likefeatures/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/likefeatures/spec/factories/likes.rb b/dylan_eckert/rails2/likefeatures/spec/factories/likes.rb new file mode 100644 index 0000000..56765c9 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/factories/likes.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :like do + secret nil + user nil + end +end diff --git a/dylan_eckert/rails2/likefeatures/spec/factories/secrets.rb b/dylan_eckert/rails2/likefeatures/spec/factories/secrets.rb new file mode 100644 index 0000000..af5f0e0 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/factories/secrets.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :secret do + content "MyText" + user nil + end +end diff --git a/dylan_eckert/rails2/likefeatures/spec/factories/users.rb b/dylan_eckert/rails2/likefeatures/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/likefeatures/spec/helpers/likes_helper_spec.rb b/dylan_eckert/rails2/likefeatures/spec/helpers/likes_helper_spec.rb new file mode 100644 index 0000000..bc19687 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/helpers/likes_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the LikesHelper. For example: +# +# describe LikesHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe LikesHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/likefeatures/spec/helpers/secrets_helper_spec.rb b/dylan_eckert/rails2/likefeatures/spec/helpers/secrets_helper_spec.rb new file mode 100644 index 0000000..285256a --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/helpers/secrets_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SecretsHelper. For example: +# +# describe SecretsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SecretsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/likefeatures/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/likefeatures/spec/helpers/sessions_helper_spec.rb new file mode 100644 index 0000000..9484198 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/helpers/sessions_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SessionsHelper. For example: +# +# describe SessionsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SessionsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/likefeatures/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/likefeatures/spec/helpers/users_helper_spec.rb new file mode 100644 index 0000000..b2e3444 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/helpers/users_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the UsersHelper. For example: +# +# describe UsersHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe UsersHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/likefeatures/spec/models/like_spec.rb b/dylan_eckert/rails2/likefeatures/spec/models/like_spec.rb new file mode 100644 index 0000000..3284133 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/models/like_spec.rb @@ -0,0 +1,17 @@ +require 'rails_helper' + +RSpec.describe Like, type: :model do + describe 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'belongs to a user' do + expect(@like.user).to eq(@user) + end + it 'belongs to a secret' do + expect(@like.secret).to eq(@secret) + end + end +end diff --git a/dylan_eckert/rails2/likefeatures/spec/models/secret_spec.rb b/dylan_eckert/rails2/likefeatures/spec/models/secret_spec.rb new file mode 100644 index 0000000..fb755b5 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/models/secret_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Secret, type: :model do + it 'requires content' do + expect(build(:secret, content: "")).to be_invalid + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, user: @user, secret: @secret) + end + it 'belongs to a user' do + expect(@secret.user).to eq(@user) + end + it 'has likes' do + expect(@secret.likes).to include(@like) + end + it 'has users through likes table' do + expect(@secret.users).to include(@user) + end + end +end diff --git a/dylan_eckert/rails2/likefeatures/spec/models/user_spec.rb b/dylan_eckert/rails2/likefeatures/spec/models/user_spec.rb new file mode 100644 index 0000000..5d8f4be --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/models/user_spec.rb @@ -0,0 +1,56 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, content: 'secret 1', user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'has secrets' do + expect(@user.secrets).to include(@secret) + end + it 'has likes' do + expect(@user.likes).to include(@like) + end + it "has secrets through likes table" do + expect(@user.secrets_liked).to include(@secret) + end + end +end diff --git a/dylan_eckert/rails2/likefeatures/spec/rails_helper.rb b/dylan_eckert/rails2/likefeatures/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/likefeatures/spec/spec_helper.rb b/dylan_eckert/rails2/likefeatures/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/likefeatures/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/lib/assets/.keep b/dylan_eckert/rails2/likefeatures/test/controllers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/lib/assets/.keep rename to dylan_eckert/rails2/likefeatures/test/controllers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/lib/tasks/.keep b/dylan_eckert/rails2/likefeatures/test/fixtures/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/lib/tasks/.keep rename to dylan_eckert/rails2/likefeatures/test/fixtures/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/log/.keep b/dylan_eckert/rails2/likefeatures/test/fixtures/files/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/log/.keep rename to dylan_eckert/rails2/likefeatures/test/fixtures/files/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/controllers/.keep b/dylan_eckert/rails2/likefeatures/test/helpers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/controllers/.keep rename to dylan_eckert/rails2/likefeatures/test/helpers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/fixtures/.keep b/dylan_eckert/rails2/likefeatures/test/integration/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/fixtures/.keep rename to dylan_eckert/rails2/likefeatures/test/integration/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/helpers/.keep b/dylan_eckert/rails2/likefeatures/test/mailers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/helpers/.keep rename to dylan_eckert/rails2/likefeatures/test/mailers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/integration/.keep b/dylan_eckert/rails2/likefeatures/test/models/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/integration/.keep rename to dylan_eckert/rails2/likefeatures/test/models/.keep diff --git a/Stephen Weil/Rails/Models/dojo_ninjas/test/test_helper.rb b/dylan_eckert/rails2/likefeatures/test/test_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/dojo_ninjas/test/test_helper.rb rename to dylan_eckert/rails2/likefeatures/test/test_helper.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/mailers/.keep b/dylan_eckert/rails2/likefeatures/tmp/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/mailers/.keep rename to dylan_eckert/rails2/likefeatures/tmp/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/models/.keep b/dylan_eckert/rails2/likefeatures/vendor/assets/javascripts/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/models/.keep rename to dylan_eckert/rails2/likefeatures/vendor/assets/javascripts/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/likefeatures/vendor/assets/stylesheets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/likefeatures/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/rails2/likes/like_spec.rb b/dylan_eckert/rails2/likes/like_spec.rb new file mode 100644 index 0000000..3284133 --- /dev/null +++ b/dylan_eckert/rails2/likes/like_spec.rb @@ -0,0 +1,17 @@ +require 'rails_helper' + +RSpec.describe Like, type: :model do + describe 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'belongs to a user' do + expect(@like.user).to eq(@user) + end + it 'belongs to a secret' do + expect(@like.secret).to eq(@secret) + end + end +end diff --git a/dylan_eckert/rails2/likes/secret_spec.rb b/dylan_eckert/rails2/likes/secret_spec.rb new file mode 100644 index 0000000..fb755b5 --- /dev/null +++ b/dylan_eckert/rails2/likes/secret_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Secret, type: :model do + it 'requires content' do + expect(build(:secret, content: "")).to be_invalid + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, user: @user, secret: @secret) + end + it 'belongs to a user' do + expect(@secret.user).to eq(@user) + end + it 'has likes' do + expect(@secret.likes).to include(@like) + end + it 'has users through likes table' do + expect(@secret.users).to include(@user) + end + end +end diff --git a/dylan_eckert/rails2/likes/user_spec.rb b/dylan_eckert/rails2/likes/user_spec.rb new file mode 100644 index 0000000..5d8f4be --- /dev/null +++ b/dylan_eckert/rails2/likes/user_spec.rb @@ -0,0 +1,56 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, content: 'secret 1', user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'has secrets' do + expect(@user.secrets).to include(@secret) + end + it 'has likes' do + expect(@user.likes).to include(@like) + end + it "has secrets through likes table" do + expect(@user.secrets_liked).to include(@secret) + end + end +end diff --git a/dylan_eckert/rails2/secretfeatures/.gitignore b/dylan_eckert/rails2/secretfeatures/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/rails2/secretfeatures/.rspec b/dylan_eckert/rails2/secretfeatures/.rspec new file mode 100644 index 0000000..c99d2e7 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/.rspec @@ -0,0 +1 @@ +--require spec_helper diff --git a/dylan_eckert/rails2/secretfeatures/Gemfile b/dylan_eckert/rails2/secretfeatures/Gemfile new file mode 100644 index 0000000..8d464a7 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + gem 'rspec-rails' + gem 'factory_bot_rails' + gem 'capybara' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/rails2/secretfeatures/Gemfile.lock b/dylan_eckert/rails2/secretfeatures/Gemfile.lock new file mode 100644 index 0000000..1368646 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/Gemfile.lock @@ -0,0 +1,217 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + capybara (2.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + diff-lcs (1.3) + erubis (2.7.0) + execjs (2.7.0) + factory_bot (4.8.2) + activesupport (>= 3.0.0) + factory_bot_rails (4.8.2) + factory_bot (~> 4.8.2) + railties (>= 3.0.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + public_suffix (3.0.1) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rspec-core (3.7.0) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-rails (3.7.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.0) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + capybara + coffee-rails (~> 4.2) + factory_bot_rails + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rspec-rails + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/rails2/secretfeatures/README.md b/dylan_eckert/rails2/secretfeatures/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/rails2/secretfeatures/Rakefile b/dylan_eckert/rails2/secretfeatures/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/config/manifest.js b/dylan_eckert/rails2/secretfeatures/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/secretfeatures/app/assets/images/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/secretfeatures/app/assets/images/.keep diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/application.js b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/cable.js b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/images/.keep b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/channels/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/app/assets/images/.keep rename to dylan_eckert/rails2/secretfeatures/app/assets/javascripts/channels/.keep diff --git a/justin_quiros/ninja_gold/app/assets/javascripts/rpgs.coffee b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/likes.coffee similarity index 100% rename from justin_quiros/ninja_gold/app/assets/javascripts/rpgs.coffee rename to dylan_eckert/rails2/secretfeatures/app/assets/javascripts/likes.coffee diff --git a/justin_quiros/survey/app/assets/javascripts/dojos.coffee b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/secrets.coffee similarity index 100% rename from justin_quiros/survey/app/assets/javascripts/dojos.coffee rename to dylan_eckert/rails2/secretfeatures/app/assets/javascripts/secrets.coffee diff --git a/richardN/controllers/routesContollers/app/assets/javascripts/hellos.coffee b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/sessions.coffee similarity index 100% rename from richardN/controllers/routesContollers/app/assets/javascripts/hellos.coffee rename to dylan_eckert/rails2/secretfeatures/app/assets/javascripts/sessions.coffee diff --git a/richardN/controllers/timeDisplay/app/assets/javascripts/time_displays.coffee b/dylan_eckert/rails2/secretfeatures/app/assets/javascripts/users.coffee similarity index 100% rename from richardN/controllers/timeDisplay/app/assets/javascripts/time_displays.coffee rename to dylan_eckert/rails2/secretfeatures/app/assets/javascripts/users.coffee diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/application.css b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/likes.scss b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/likes.scss new file mode 100644 index 0000000..dacd946 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/likes.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Likes controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/secrets.scss b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/secrets.scss new file mode 100644 index 0000000..f1aed55 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/secrets.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Secrets controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/sessions.scss b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000..ccb1ed2 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/users.scss b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/users.scss new file mode 100644 index 0000000..31a2eac --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/assets/stylesheets/users.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Users controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/secretfeatures/app/channels/application_cable/channel.rb b/dylan_eckert/rails2/secretfeatures/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/rails2/secretfeatures/app/channels/application_cable/connection.rb b/dylan_eckert/rails2/secretfeatures/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/rails2/secretfeatures/app/controllers/application_controller.rb b/dylan_eckert/rails2/secretfeatures/app/controllers/application_controller.rb new file mode 100644 index 0000000..b521dc2 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/controllers/application_controller.rb @@ -0,0 +1,14 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login + + def require_login + return redirect_to new_session_path unless session[:user_id] + end + def current_user + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/controllers/concerns/.keep b/dylan_eckert/rails2/secretfeatures/app/controllers/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/app/controllers/concerns/.keep rename to dylan_eckert/rails2/secretfeatures/app/controllers/concerns/.keep diff --git a/dylan_eckert/rails2/secretfeatures/app/controllers/likes_controller.rb b/dylan_eckert/rails2/secretfeatures/app/controllers/likes_controller.rb new file mode 100644 index 0000000..df68c1e --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/controllers/likes_controller.rb @@ -0,0 +1,7 @@ +class LikesController < ApplicationController + def create + end + + def destroy + end +end diff --git a/dylan_eckert/rails2/secretfeatures/app/controllers/secrets_controller.rb b/dylan_eckert/rails2/secretfeatures/app/controllers/secrets_controller.rb new file mode 100644 index 0000000..b841f71 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/controllers/secrets_controller.rb @@ -0,0 +1,23 @@ +class SecretsController < ApplicationController + def index + @secrets = Secret.all + # this is to get all secrets, I then have + end + def create + secret = Secret.new secret_params + unless secret.save + flash[:errors] = secret.errors.full_messages + end + redirect_to user_path current_user.id + end + def destroy + @secret = Secret.find(params[:id]) + @secret.destroy if @secret.user === current_user + redirect_to user_path current_user.id + end + private + def secret_params + params.require(:secret).permit(:content).merge(user: current_user) + # make strong params for secret, including content and merging the user that created it by using my application controller's method current_user to find the current user logged in to the session + end +end diff --git a/dylan_eckert/rails2/secretfeatures/app/controllers/sessions_controller.rb b/dylan_eckert/rails2/secretfeatures/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..6a0abf2 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/controllers/sessions_controller.rb @@ -0,0 +1,26 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def new + end + + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to user_path user.id + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: new_session_path + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/secretfeatures/app/controllers/users_controller.rb b/dylan_eckert/rails2/secretfeatures/app/controllers/users_controller.rb new file mode 100644 index 0000000..cb2cd2e --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/controllers/users_controller.rb @@ -0,0 +1,43 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:new, :create] + def new + end + + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to user_path user.id + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: new_user_path + end + end + + def show + @user = User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def update + user = User.find(params[:id]) + user.update(user_params) + redirect_to user_path user.id + end + + def destroy + user = User.find(params[:id]) + user.destroy + reset_session + redirect_to new_session_path + end + + private + + def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) + end +end diff --git a/Stephen Weil/Rails/Models/user_login_project/app/helpers/application_helper.rb b/dylan_eckert/rails2/secretfeatures/app/helpers/application_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/app/helpers/application_helper.rb rename to dylan_eckert/rails2/secretfeatures/app/helpers/application_helper.rb diff --git a/dylan_eckert/rails2/secretfeatures/app/helpers/likes_helper.rb b/dylan_eckert/rails2/secretfeatures/app/helpers/likes_helper.rb new file mode 100644 index 0000000..a78a759 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/helpers/likes_helper.rb @@ -0,0 +1,2 @@ +module LikesHelper +end diff --git a/dylan_eckert/rails2/secretfeatures/app/helpers/secrets_helper.rb b/dylan_eckert/rails2/secretfeatures/app/helpers/secrets_helper.rb new file mode 100644 index 0000000..17ab1ea --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/helpers/secrets_helper.rb @@ -0,0 +1,2 @@ +module SecretsHelper +end diff --git a/dylan_eckert/rails2/secretfeatures/app/helpers/sessions_helper.rb b/dylan_eckert/rails2/secretfeatures/app/helpers/sessions_helper.rb new file mode 100644 index 0000000..309f8b2 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/dylan_eckert/rails2/secretfeatures/app/helpers/users_helper.rb b/dylan_eckert/rails2/secretfeatures/app/helpers/users_helper.rb new file mode 100644 index 0000000..2310a24 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/helpers/users_helper.rb @@ -0,0 +1,2 @@ +module UsersHelper +end diff --git a/dylan_eckert/rails2/secretfeatures/app/jobs/application_job.rb b/dylan_eckert/rails2/secretfeatures/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/rails2/secretfeatures/app/mailers/application_mailer.rb b/dylan_eckert/rails2/secretfeatures/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/rails2/secretfeatures/app/models/application_record.rb b/dylan_eckert/rails2/secretfeatures/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/mailers/.keep b/dylan_eckert/rails2/secretfeatures/app/models/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/app/mailers/.keep rename to dylan_eckert/rails2/secretfeatures/app/models/concerns/.keep diff --git a/dylan_eckert/rails2/secretfeatures/app/models/like.rb b/dylan_eckert/rails2/secretfeatures/app/models/like.rb new file mode 100644 index 0000000..85908ea --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/models/like.rb @@ -0,0 +1,4 @@ +class Like < ApplicationRecord + belongs_to :secret + belongs_to :user +end diff --git a/dylan_eckert/rails2/secretfeatures/app/models/secret.rb b/dylan_eckert/rails2/secretfeatures/app/models/secret.rb new file mode 100644 index 0000000..1a3958f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/models/secret.rb @@ -0,0 +1,7 @@ +class Secret < ApplicationRecord + belongs_to :user + has_many :likes, dependent: :destroy + has_many :users, through: :likes + + validates :content, presence: true +end diff --git a/dylan_eckert/rails2/secretfeatures/app/models/user.rb b/dylan_eckert/rails2/secretfeatures/app/models/user.rb new file mode 100644 index 0000000..60bda5f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/models/user.rb @@ -0,0 +1,20 @@ +class User < ApplicationRecord + has_secure_password + has_many :secrets + has_many :likes, dependent: :destroy + has_many :secrets_liked, through: :likes, source: :secret + # the line above is there to allow for us so the query User.first.secrets will show all of the secrets the user created, not the secrets the user has liked + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :input_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def input_lowercase + self.email.downcase! + self.name.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/secretfeatures/app/views/layouts/application.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4c62c3f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/layouts/application.html.erb @@ -0,0 +1,25 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + diff --git a/dylan_eckert/rails2/secretfeatures/app/views/layouts/mailer.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/secretfeatures/app/views/layouts/mailer.text.erb b/dylan_eckert/rails2/secretfeatures/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/secretfeatures/app/views/likes/create.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/likes/create.html.erb new file mode 100644 index 0000000..7159391 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/likes/create.html.erb @@ -0,0 +1,2 @@ +

Likes#create

+

Find me in app/views/likes/create.html.erb

diff --git a/dylan_eckert/rails2/secretfeatures/app/views/likes/destroy.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/likes/destroy.html.erb new file mode 100644 index 0000000..b7ab94f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/likes/destroy.html.erb @@ -0,0 +1,2 @@ +

Likes#destroy

+

Find me in app/views/likes/destroy.html.erb

diff --git a/dylan_eckert/rails2/secretfeatures/app/views/secrets/index.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/secrets/index.html.erb new file mode 100644 index 0000000..748dfce --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/secrets/index.html.erb @@ -0,0 +1,12 @@ +

All Secrets

+<% @secrets.all.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> +<% end %> diff --git a/dylan_eckert/rails2/secretfeatures/app/views/sessions/new.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/sessions/new.html.erb new file mode 100644 index 0000000..9da5dea --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/rails2/secretfeatures/app/views/users/edit.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/users/edit.html.erb new file mode 100644 index 0000000..c23f602 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/users/edit.html.erb @@ -0,0 +1,12 @@ +

Edit User <%= @user.id %>

+ +
+ + + Name: + + Email: + + +
+Delete Account diff --git a/dylan_eckert/rails2/secretfeatures/app/views/users/new.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/users/new.html.erb new file mode 100644 index 0000000..f4aed5d --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/users/new.html.erb @@ -0,0 +1,13 @@ +

Register

+
+ +

Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ + +
diff --git a/dylan_eckert/rails2/secretfeatures/app/views/users/show.html.erb b/dylan_eckert/rails2/secretfeatures/app/views/users/show.html.erb new file mode 100644 index 0000000..6aea1b2 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/app/views/users/show.html.erb @@ -0,0 +1,21 @@ +

<%= @user.name %>

+

<%= @user.email %>

+
+ + + +
+ + +<% @user.secrets.each do |secret| %> +

<%= secret.content %>

+

<%= secret.likes.count %> likes

+ <% if secret.user == current_user %> +
+ + + +
+ <% end %> +<% end %> +Update Account diff --git a/Stephen Weil/Rails/Models/user_login_project/bin/bundle b/dylan_eckert/rails2/secretfeatures/bin/bundle similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/bin/bundle rename to dylan_eckert/rails2/secretfeatures/bin/bundle diff --git a/dylan_eckert/rails2/secretfeatures/bin/rails b/dylan_eckert/rails2/secretfeatures/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Stephen Weil/Rails/Models/user_login_project/bin/rake b/dylan_eckert/rails2/secretfeatures/bin/rake similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/bin/rake rename to dylan_eckert/rails2/secretfeatures/bin/rake diff --git a/dylan_eckert/rails2/secretfeatures/bin/setup b/dylan_eckert/rails2/secretfeatures/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Stephen Weil/Rails/Models/user_login_project/bin/spring b/dylan_eckert/rails2/secretfeatures/bin/spring similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/bin/spring rename to dylan_eckert/rails2/secretfeatures/bin/spring diff --git a/dylan_eckert/rails2/secretfeatures/bin/update b/dylan_eckert/rails2/secretfeatures/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/rails2/secretfeatures/config.ru b/dylan_eckert/rails2/secretfeatures/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/rails2/secretfeatures/config/application.rb b/dylan_eckert/rails2/secretfeatures/config/application.rb new file mode 100644 index 0000000..65de0bc --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoSecrets + 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. + end +end diff --git a/dylan_eckert/rails2/secretfeatures/config/boot.rb b/dylan_eckert/rails2/secretfeatures/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/rails2/secretfeatures/config/cable.yml b/dylan_eckert/rails2/secretfeatures/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/rails2/secretfeatures/config/database.yml b/dylan_eckert/rails2/secretfeatures/config/database.yml new file mode 100644 index 0000000..efc5910 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: DojoSecrets_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: DojoSecrets + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: DojoSecrets_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: DojoSecrets_production + username: DojoSecrets + password: <%= ENV['DOJOSECRETS_DATABASE_PASSWORD'] %> diff --git a/dylan_eckert/rails2/secretfeatures/config/environment.rb b/dylan_eckert/rails2/secretfeatures/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/rails2/secretfeatures/config/environments/development.rb b/dylan_eckert/rails2/secretfeatures/config/environments/development.rb new file mode 100644 index 0000000..77fe74d --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/environments/development.rb @@ -0,0 +1,55 @@ +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 rest art the web server when you make code changes. + config.cache_classes = false + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/rails2/secretfeatures/config/environments/production.rb b/dylan_eckert/rails2/secretfeatures/config/environments/production.rb new file mode 100644 index 0000000..f8e01b7 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "DojoSecrets_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/rails2/secretfeatures/config/environments/test.rb b/dylan_eckert/rails2/secretfeatures/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/rails2/secretfeatures/config/initializers/application_controller_renderer.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/assets.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/assets.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/config/initializers/assets.rb rename to dylan_eckert/rails2/secretfeatures/config/initializers/assets.rb diff --git a/Stephen Weil/Rails/Models/user_login_project/config/initializers/backtrace_silencers.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/backtrace_silencers.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/config/initializers/backtrace_silencers.rb rename to dylan_eckert/rails2/secretfeatures/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/rails2/secretfeatures/config/initializers/cookies_serializer.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Stephen Weil/Rails/Models/user_login_project/config/initializers/filter_parameter_logging.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/rails2/secretfeatures/config/initializers/filter_parameter_logging.rb diff --git a/Stephen Weil/Rails/Models/user_login_project/config/initializers/inflections.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/inflections.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/config/initializers/inflections.rb rename to dylan_eckert/rails2/secretfeatures/config/initializers/inflections.rb diff --git a/Stephen Weil/Rails/Models/user_login_project/config/initializers/mime_types.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/mime_types.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/config/initializers/mime_types.rb rename to dylan_eckert/rails2/secretfeatures/config/initializers/mime_types.rb diff --git a/dylan_eckert/rails2/secretfeatures/config/initializers/new_framework_defaults.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/rails2/secretfeatures/config/initializers/session_store.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/session_store.rb new file mode 100644 index 0000000..745fa7c --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_DojoSecrets_session' diff --git a/dylan_eckert/rails2/secretfeatures/config/initializers/wrap_parameters.rb b/dylan_eckert/rails2/secretfeatures/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Stephen Weil/Rails/Models/user_login_project/config/locales/en.yml b/dylan_eckert/rails2/secretfeatures/config/locales/en.yml similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/config/locales/en.yml rename to dylan_eckert/rails2/secretfeatures/config/locales/en.yml diff --git a/dylan_eckert/rails2/secretfeatures/config/puma.rb b/dylan_eckert/rails2/secretfeatures/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/rails2/secretfeatures/config/routes.rb b/dylan_eckert/rails2/secretfeatures/config/routes.rb new file mode 100644 index 0000000..b6b5bd1 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/routes.rb @@ -0,0 +1,7 @@ +Rails.application.routes.draw do + resources :sessions, only: [:new, :create, :destroy] + resources :users, except: [:index] + resources :secrets, only: [:index, :create, :destroy] + # The priority is based upon order of creation from top to bottom + # rake routes lets you see all available routes and their names +end diff --git a/dylan_eckert/rails2/secretfeatures/config/secrets.yml b/dylan_eckert/rails2/secretfeatures/config/secrets.yml new file mode 100644 index 0000000..41e0de4 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: df5bfd362ae400b400d79af9bc419e988c72e7a2df7aebc541137d2f27e125bb93b09d877ecc0cae931a9b8c16ef96f1c7329a8b2d788eadf3a0f5cc9bb4d4e7 + +test: + secret_key_base: 91a21b8af0492c5893228989638a977f5e7cf895e0a94a3a0cd34976a4582b84e68c4e940e3369f2297218eaebf4bce2cc07441512a9c2d645734c20e08024b9 + +# 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/dylan_eckert/rails2/secretfeatures/config/spring.rb b/dylan_eckert/rails2/secretfeatures/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/rails2/secretfeatures/db/migrate/20171211192257_create_users.rb b/dylan_eckert/rails2/secretfeatures/db/migrate/20171211192257_create_users.rb new file mode 100644 index 0000000..9e6ab64 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/db/migrate/20171211192257_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/secretfeatures/db/migrate/20171212235708_create_secrets.rb b/dylan_eckert/rails2/secretfeatures/db/migrate/20171212235708_create_secrets.rb new file mode 100644 index 0000000..df773f3 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/db/migrate/20171212235708_create_secrets.rb @@ -0,0 +1,10 @@ +class CreateSecrets < ActiveRecord::Migration[5.0] + def change + create_table :secrets do |t| + t.text :content + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/secretfeatures/db/migrate/20171212235821_create_likes.rb b/dylan_eckert/rails2/secretfeatures/db/migrate/20171212235821_create_likes.rb new file mode 100644 index 0000000..0c95c79 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/db/migrate/20171212235821_create_likes.rb @@ -0,0 +1,10 @@ +class CreateLikes < ActiveRecord::Migration[5.0] + def change + create_table :likes do |t| + t.references :secret, foreign_key: true + t.references :user, foreign_key: true + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/secretfeatures/db/schema.rb b/dylan_eckert/rails2/secretfeatures/db/schema.rb new file mode 100644 index 0000000..e0d9fe8 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/db/schema.rb @@ -0,0 +1,46 @@ +# 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: 20171212235821) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "likes", force: :cascade do |t| + t.integer "secret_id" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["secret_id"], name: "index_likes_on_secret_id", using: :btree + t.index ["user_id"], name: "index_likes_on_user_id", using: :btree + end + + create_table "secrets", force: :cascade do |t| + t.text "content" + t.integer "user_id" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + t.index ["user_id"], name: "index_secrets_on_user_id", using: :btree + end + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + + add_foreign_key "likes", "secrets" + add_foreign_key "likes", "users" + add_foreign_key "secrets", "users" +end diff --git a/dylan_eckert/rails2/secretfeatures/db/seeds.rb b/dylan_eckert/rails2/secretfeatures/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/models/.keep b/dylan_eckert/rails2/secretfeatures/lib/assets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/app/models/.keep rename to dylan_eckert/rails2/secretfeatures/lib/assets/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/app/models/concerns/.keep b/dylan_eckert/rails2/secretfeatures/lib/tasks/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/app/models/concerns/.keep rename to dylan_eckert/rails2/secretfeatures/lib/tasks/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/lib/assets/.keep b/dylan_eckert/rails2/secretfeatures/log/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/lib/assets/.keep rename to dylan_eckert/rails2/secretfeatures/log/.keep diff --git a/dylan_eckert/rails2/secretfeatures/public/404.html b/dylan_eckert/rails2/secretfeatures/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/secretfeatures/public/422.html b/dylan_eckert/rails2/secretfeatures/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/secretfeatures/public/500.html b/dylan_eckert/rails2/secretfeatures/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Tamisha_Damas/Rails/Controllers & Views /Time_display/lib/tasks/.keep b/dylan_eckert/rails2/secretfeatures/public/apple-touch-icon-precomposed.png similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/lib/tasks/.keep rename to dylan_eckert/rails2/secretfeatures/public/apple-touch-icon-precomposed.png diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/log/.keep b/dylan_eckert/rails2/secretfeatures/public/apple-touch-icon.png similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/log/.keep rename to dylan_eckert/rails2/secretfeatures/public/apple-touch-icon.png diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/public/favicon.ico b/dylan_eckert/rails2/secretfeatures/public/favicon.ico similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/public/favicon.ico rename to dylan_eckert/rails2/secretfeatures/public/favicon.ico diff --git a/Stephen Weil/Rails/Models/user_login_project/public/robots.txt b/dylan_eckert/rails2/secretfeatures/public/robots.txt similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/public/robots.txt rename to dylan_eckert/rails2/secretfeatures/public/robots.txt diff --git a/dylan_eckert/rails2/secretfeatures/spec/controllers/secrets_controller_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/controllers/secrets_controller_spec.rb new file mode 100644 index 0000000..582e299 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/controllers/secrets_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe SecretsController, type: :controller do + +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/factories/likes.rb b/dylan_eckert/rails2/secretfeatures/spec/factories/likes.rb new file mode 100644 index 0000000..56765c9 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/factories/likes.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :like do + secret nil + user nil + end +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/factories/secrets.rb b/dylan_eckert/rails2/secretfeatures/spec/factories/secrets.rb new file mode 100644 index 0000000..af5f0e0 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/factories/secrets.rb @@ -0,0 +1,6 @@ +FactoryBot.define do + factory :secret do + content "MyText" + user nil + end +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/factories/users.rb b/dylan_eckert/rails2/secretfeatures/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/helpers/likes_helper_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/helpers/likes_helper_spec.rb new file mode 100644 index 0000000..bc19687 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/helpers/likes_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the LikesHelper. For example: +# +# describe LikesHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe LikesHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/helpers/secrets_helper_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/helpers/secrets_helper_spec.rb new file mode 100644 index 0000000..285256a --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/helpers/secrets_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SecretsHelper. For example: +# +# describe SecretsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SecretsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/helpers/sessions_helper_spec.rb new file mode 100644 index 0000000..9484198 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/helpers/sessions_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SessionsHelper. For example: +# +# describe SessionsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SessionsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/helpers/users_helper_spec.rb new file mode 100644 index 0000000..b2e3444 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/helpers/users_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the UsersHelper. For example: +# +# describe UsersHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe UsersHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/models/like_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/models/like_spec.rb new file mode 100644 index 0000000..3284133 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/models/like_spec.rb @@ -0,0 +1,17 @@ +require 'rails_helper' + +RSpec.describe Like, type: :model do + describe 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'belongs to a user' do + expect(@like.user).to eq(@user) + end + it 'belongs to a secret' do + expect(@like.secret).to eq(@secret) + end + end +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/models/secret_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/models/secret_spec.rb new file mode 100644 index 0000000..fb755b5 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/models/secret_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Secret, type: :model do + it 'requires content' do + expect(build(:secret, content: "")).to be_invalid + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, user: @user, secret: @secret) + end + it 'belongs to a user' do + expect(@secret.user).to eq(@user) + end + it 'has likes' do + expect(@secret.likes).to include(@like) + end + it 'has users through likes table' do + expect(@secret.users).to include(@user) + end + end +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/models/user_spec.rb b/dylan_eckert/rails2/secretfeatures/spec/models/user_spec.rb new file mode 100644 index 0000000..5d8f4be --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/models/user_spec.rb @@ -0,0 +1,56 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, content: 'secret 1', user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'has secrets' do + expect(@user.secrets).to include(@secret) + end + it 'has likes' do + expect(@user.likes).to include(@like) + end + it "has secrets through likes table" do + expect(@user.secrets_liked).to include(@secret) + end + end +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/rails_helper.rb b/dylan_eckert/rails2/secretfeatures/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/secretfeatures/spec/spec_helper.rb b/dylan_eckert/rails2/secretfeatures/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/secretfeatures/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/controllers/.keep b/dylan_eckert/rails2/secretfeatures/test/controllers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/test/controllers/.keep rename to dylan_eckert/rails2/secretfeatures/test/controllers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/fixtures/.keep b/dylan_eckert/rails2/secretfeatures/test/fixtures/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/test/fixtures/.keep rename to dylan_eckert/rails2/secretfeatures/test/fixtures/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/helpers/.keep b/dylan_eckert/rails2/secretfeatures/test/fixtures/files/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/test/helpers/.keep rename to dylan_eckert/rails2/secretfeatures/test/fixtures/files/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/integration/.keep b/dylan_eckert/rails2/secretfeatures/test/helpers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/test/integration/.keep rename to dylan_eckert/rails2/secretfeatures/test/helpers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/mailers/.keep b/dylan_eckert/rails2/secretfeatures/test/integration/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/test/mailers/.keep rename to dylan_eckert/rails2/secretfeatures/test/integration/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/test/models/.keep b/dylan_eckert/rails2/secretfeatures/test/mailers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/test/models/.keep rename to dylan_eckert/rails2/secretfeatures/test/mailers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/secretfeatures/test/models/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/secretfeatures/test/models/.keep diff --git a/Stephen Weil/Rails/Models/optimize/test/test_helper.rb b/dylan_eckert/rails2/secretfeatures/test/test_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/optimize/test/test_helper.rb rename to dylan_eckert/rails2/secretfeatures/test/test_helper.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/secretfeatures/tmp/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/secretfeatures/tmp/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/images/.keep b/dylan_eckert/rails2/secretfeatures/vendor/assets/javascripts/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/assets/images/.keep rename to dylan_eckert/rails2/secretfeatures/vendor/assets/javascripts/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/controllers/concerns/.keep b/dylan_eckert/rails2/secretfeatures/vendor/assets/stylesheets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/controllers/concerns/.keep rename to dylan_eckert/rails2/secretfeatures/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/rails2/secrets/secret_spec.rb b/dylan_eckert/rails2/secrets/secret_spec.rb new file mode 100644 index 0000000..fb755b5 --- /dev/null +++ b/dylan_eckert/rails2/secrets/secret_spec.rb @@ -0,0 +1,24 @@ +require 'rails_helper' + +RSpec.describe Secret, type: :model do + it 'requires content' do + expect(build(:secret, content: "")).to be_invalid + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, user: @user) + @like = create(:like, user: @user, secret: @secret) + end + it 'belongs to a user' do + expect(@secret.user).to eq(@user) + end + it 'has likes' do + expect(@secret.likes).to include(@like) + end + it 'has users through likes table' do + expect(@secret.users).to include(@user) + end + end +end diff --git a/dylan_eckert/rails2/secrets/user_spec.rb b/dylan_eckert/rails2/secrets/user_spec.rb new file mode 100644 index 0000000..5d8f4be --- /dev/null +++ b/dylan_eckert/rails2/secrets/user_spec.rb @@ -0,0 +1,56 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end + + context 'relationships' do + before do + @user = create(:user) + @secret = create(:secret, content: 'secret 1', user: @user) + @like = create(:like, secret: @secret, user: @user) + end + it 'has secrets' do + expect(@user.secrets).to include(@secret) + end + it 'has likes' do + expect(@user.likes).to include(@like) + end + it "has secrets through likes table" do + expect(@user.secrets_liked).to include(@secret) + end + end +end diff --git a/dylan_eckert/rails2/user/user.rb b/dylan_eckert/rails2/user/user.rb new file mode 100644 index 0000000..ca6fbd6 --- /dev/null +++ b/dylan_eckert/rails2/user/user.rb @@ -0,0 +1,15 @@ +class User < ApplicationRecord + has_secure_password + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :email_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def email_lowercase + email.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/user/user_spec.rb b/dylan_eckert/rails2/user/user_spec.rb new file mode 100644 index 0000000..e5b4747 --- /dev/null +++ b/dylan_eckert/rails2/user/user_spec.rb @@ -0,0 +1,39 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end +end diff --git a/dylan_eckert/rails2/user/users.rb b/dylan_eckert/rails2/user/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/user/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/userfeats/.gitignore b/dylan_eckert/rails2/userfeats/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/rails2/userfeats/.rspec b/dylan_eckert/rails2/userfeats/.rspec new file mode 100644 index 0000000..c99d2e7 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/.rspec @@ -0,0 +1 @@ +--require spec_helper diff --git a/dylan_eckert/rails2/userfeats/Gemfile b/dylan_eckert/rails2/userfeats/Gemfile new file mode 100644 index 0000000..8d464a7 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + gem 'rspec-rails' + gem 'factory_bot_rails' + gem 'capybara' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/rails2/userfeats/Gemfile.lock b/dylan_eckert/rails2/userfeats/Gemfile.lock new file mode 100644 index 0000000..1368646 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/Gemfile.lock @@ -0,0 +1,217 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + capybara (2.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + diff-lcs (1.3) + erubis (2.7.0) + execjs (2.7.0) + factory_bot (4.8.2) + activesupport (>= 3.0.0) + factory_bot_rails (4.8.2) + factory_bot (~> 4.8.2) + railties (>= 3.0.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + public_suffix (3.0.1) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rspec-core (3.7.0) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-rails (3.7.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.0) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + capybara + coffee-rails (~> 4.2) + factory_bot_rails + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rspec-rails + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/rails2/userfeats/README.md b/dylan_eckert/rails2/userfeats/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/rails2/userfeats/Rakefile b/dylan_eckert/rails2/userfeats/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/rails2/userfeats/app/assets/config/manifest.js b/dylan_eckert/rails2/userfeats/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/mailers/.keep b/dylan_eckert/rails2/userfeats/app/assets/images/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/mailers/.keep rename to dylan_eckert/rails2/userfeats/app/assets/images/.keep diff --git a/dylan_eckert/rails2/userfeats/app/assets/javascripts/application.js b/dylan_eckert/rails2/userfeats/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/rails2/userfeats/app/assets/javascripts/cable.js b/dylan_eckert/rails2/userfeats/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/models/.keep b/dylan_eckert/rails2/userfeats/app/assets/javascripts/channels/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/models/.keep rename to dylan_eckert/rails2/userfeats/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/rails2/userfeats/app/assets/javascripts/sessions.coffee b/dylan_eckert/rails2/userfeats/app/assets/javascripts/sessions.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/javascripts/sessions.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/dylan_eckert/rails2/userfeats/app/assets/javascripts/users.coffee b/dylan_eckert/rails2/userfeats/app/assets/javascripts/users.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/javascripts/users.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/dylan_eckert/rails2/userfeats/app/assets/stylesheets/application.css b/dylan_eckert/rails2/userfeats/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/rails2/userfeats/app/assets/stylesheets/sessions.scss b/dylan_eckert/rails2/userfeats/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000..ccb1ed2 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/userfeats/app/assets/stylesheets/users.scss b/dylan_eckert/rails2/userfeats/app/assets/stylesheets/users.scss new file mode 100644 index 0000000..31a2eac --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/assets/stylesheets/users.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Users controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/userfeats/app/channels/application_cable/channel.rb b/dylan_eckert/rails2/userfeats/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/rails2/userfeats/app/channels/application_cable/connection.rb b/dylan_eckert/rails2/userfeats/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/rails2/userfeats/app/controllers/application_controller.rb b/dylan_eckert/rails2/userfeats/app/controllers/application_controller.rb new file mode 100644 index 0000000..b521dc2 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/controllers/application_controller.rb @@ -0,0 +1,14 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login + + def require_login + return redirect_to new_session_path unless session[:user_id] + end + def current_user + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/models/concerns/.keep b/dylan_eckert/rails2/userfeats/app/controllers/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/app/models/concerns/.keep rename to dylan_eckert/rails2/userfeats/app/controllers/concerns/.keep diff --git a/dylan_eckert/rails2/userfeats/app/controllers/sessions_controller.rb b/dylan_eckert/rails2/userfeats/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..6a0abf2 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/controllers/sessions_controller.rb @@ -0,0 +1,26 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def new + end + + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to user_path user.id + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: new_session_path + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/userfeats/app/controllers/users_controller.rb b/dylan_eckert/rails2/userfeats/app/controllers/users_controller.rb new file mode 100644 index 0000000..7c8c16f --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/controllers/users_controller.rb @@ -0,0 +1,31 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:new, :create] + def new + + end + + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to user_path user.id + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: new_user_path + end + end + + def show + @user = User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + + private + def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) + end +end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/app/helpers/application_helper.rb b/dylan_eckert/rails2/userfeats/app/helpers/application_helper.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/app/helpers/application_helper.rb rename to dylan_eckert/rails2/userfeats/app/helpers/application_helper.rb diff --git a/dylan_eckert/rails2/userfeats/app/helpers/sessions_helper.rb b/dylan_eckert/rails2/userfeats/app/helpers/sessions_helper.rb new file mode 100644 index 0000000..309f8b2 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/dylan_eckert/rails2/userfeats/app/helpers/users_helper.rb b/dylan_eckert/rails2/userfeats/app/helpers/users_helper.rb new file mode 100644 index 0000000..2310a24 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/helpers/users_helper.rb @@ -0,0 +1,2 @@ +module UsersHelper +end diff --git a/dylan_eckert/rails2/userfeats/app/jobs/application_job.rb b/dylan_eckert/rails2/userfeats/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/rails2/userfeats/app/mailers/application_mailer.rb b/dylan_eckert/rails2/userfeats/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/rails2/userfeats/app/models/application_record.rb b/dylan_eckert/rails2/userfeats/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/lib/assets/.keep b/dylan_eckert/rails2/userfeats/app/models/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/lib/assets/.keep rename to dylan_eckert/rails2/userfeats/app/models/concerns/.keep diff --git a/dylan_eckert/rails2/userfeats/app/models/user.rb b/dylan_eckert/rails2/userfeats/app/models/user.rb new file mode 100644 index 0000000..3e5165c --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/models/user.rb @@ -0,0 +1,16 @@ +class User < ApplicationRecord + has_secure_password + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :input_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def input_lowercase + self.email.downcase! + self.name.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/userfeats/app/views/layouts/application.html.erb b/dylan_eckert/rails2/userfeats/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4c62c3f --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/views/layouts/application.html.erb @@ -0,0 +1,25 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + diff --git a/dylan_eckert/rails2/userfeats/app/views/layouts/mailer.html.erb b/dylan_eckert/rails2/userfeats/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/userfeats/app/views/layouts/mailer.text.erb b/dylan_eckert/rails2/userfeats/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/userfeats/app/views/sessions/new.html.erb b/dylan_eckert/rails2/userfeats/app/views/sessions/new.html.erb new file mode 100644 index 0000000..9da5dea --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/rails2/userfeats/app/views/users/edit.html.erb b/dylan_eckert/rails2/userfeats/app/views/users/edit.html.erb new file mode 100644 index 0000000..ea91003 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/views/users/edit.html.erb @@ -0,0 +1 @@ +

Edit User

diff --git a/dylan_eckert/rails2/userfeats/app/views/users/new.html.erb b/dylan_eckert/rails2/userfeats/app/views/users/new.html.erb new file mode 100644 index 0000000..f4aed5d --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/views/users/new.html.erb @@ -0,0 +1,13 @@ +

Register

+
+ +

Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ + +
diff --git a/dylan_eckert/rails2/userfeats/app/views/users/show.html.erb b/dylan_eckert/rails2/userfeats/app/views/users/show.html.erb new file mode 100644 index 0000000..a054ea7 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/app/views/users/show.html.erb @@ -0,0 +1,15 @@ +

<%= @user.name %>

+

<%= @user.email %>

+
+

Secrets

+ +

content of secret

+

number of likes

+ +
+
+

Secrets Liked

+ +

content of secret

+

number of likes

+
diff --git a/Tamisha_Damas/Rails II/dojo_secrets/bin/bundle b/dylan_eckert/rails2/userfeats/bin/bundle similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/bin/bundle rename to dylan_eckert/rails2/userfeats/bin/bundle diff --git a/dylan_eckert/rails2/userfeats/bin/rails b/dylan_eckert/rails2/userfeats/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/rails2/userfeats/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Tamisha_Damas/Rails II/dojo_secrets/bin/rake b/dylan_eckert/rails2/userfeats/bin/rake similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/bin/rake rename to dylan_eckert/rails2/userfeats/bin/rake diff --git a/dylan_eckert/rails2/userfeats/bin/setup b/dylan_eckert/rails2/userfeats/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/rails2/userfeats/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Tamisha_Damas/Rails II/dojo_secrets/bin/spring b/dylan_eckert/rails2/userfeats/bin/spring similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/bin/spring rename to dylan_eckert/rails2/userfeats/bin/spring diff --git a/dylan_eckert/rails2/userfeats/bin/update b/dylan_eckert/rails2/userfeats/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/rails2/userfeats/config.ru b/dylan_eckert/rails2/userfeats/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/rails2/userfeats/config/application.rb b/dylan_eckert/rails2/userfeats/config/application.rb new file mode 100644 index 0000000..65de0bc --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoSecrets + 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. + end +end diff --git a/dylan_eckert/rails2/userfeats/config/boot.rb b/dylan_eckert/rails2/userfeats/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/rails2/userfeats/config/cable.yml b/dylan_eckert/rails2/userfeats/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/rails2/userfeats/config/database.yml b/dylan_eckert/rails2/userfeats/config/database.yml new file mode 100644 index 0000000..efc5910 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: DojoSecrets_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: DojoSecrets + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: DojoSecrets_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: DojoSecrets_production + username: DojoSecrets + password: <%= ENV['DOJOSECRETS_DATABASE_PASSWORD'] %> diff --git a/dylan_eckert/rails2/userfeats/config/environment.rb b/dylan_eckert/rails2/userfeats/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/rails2/userfeats/config/environments/development.rb b/dylan_eckert/rails2/userfeats/config/environments/development.rb new file mode 100644 index 0000000..77fe74d --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/environments/development.rb @@ -0,0 +1,55 @@ +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 rest art the web server when you make code changes. + config.cache_classes = false + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/rails2/userfeats/config/environments/production.rb b/dylan_eckert/rails2/userfeats/config/environments/production.rb new file mode 100644 index 0000000..f8e01b7 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "DojoSecrets_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/rails2/userfeats/config/environments/test.rb b/dylan_eckert/rails2/userfeats/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/rails2/userfeats/config/initializers/application_controller_renderer.rb b/dylan_eckert/rails2/userfeats/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/assets.rb b/dylan_eckert/rails2/userfeats/config/initializers/assets.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/assets.rb rename to dylan_eckert/rails2/userfeats/config/initializers/assets.rb diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/backtrace_silencers.rb b/dylan_eckert/rails2/userfeats/config/initializers/backtrace_silencers.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/config/initializers/backtrace_silencers.rb rename to dylan_eckert/rails2/userfeats/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/rails2/userfeats/config/initializers/cookies_serializer.rb b/dylan_eckert/rails2/userfeats/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/filter_parameter_logging.rb b/dylan_eckert/rails2/userfeats/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/rails2/userfeats/config/initializers/filter_parameter_logging.rb diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/inflections.rb b/dylan_eckert/rails2/userfeats/config/initializers/inflections.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/config/initializers/inflections.rb rename to dylan_eckert/rails2/userfeats/config/initializers/inflections.rb diff --git a/Tamisha_Damas/Rails II/dojo_secrets/config/initializers/mime_types.rb b/dylan_eckert/rails2/userfeats/config/initializers/mime_types.rb similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/config/initializers/mime_types.rb rename to dylan_eckert/rails2/userfeats/config/initializers/mime_types.rb diff --git a/dylan_eckert/rails2/userfeats/config/initializers/new_framework_defaults.rb b/dylan_eckert/rails2/userfeats/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/rails2/userfeats/config/initializers/session_store.rb b/dylan_eckert/rails2/userfeats/config/initializers/session_store.rb new file mode 100644 index 0000000..745fa7c --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_DojoSecrets_session' diff --git a/dylan_eckert/rails2/userfeats/config/initializers/wrap_parameters.rb b/dylan_eckert/rails2/userfeats/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Tamisha_Damas/Rails II/dojo_secrets/config/locales/en.yml b/dylan_eckert/rails2/userfeats/config/locales/en.yml similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/config/locales/en.yml rename to dylan_eckert/rails2/userfeats/config/locales/en.yml diff --git a/dylan_eckert/rails2/userfeats/config/puma.rb b/dylan_eckert/rails2/userfeats/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/rails2/userfeats/config/routes.rb b/dylan_eckert/rails2/userfeats/config/routes.rb new file mode 100644 index 0000000..8c38e83 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/routes.rb @@ -0,0 +1,5 @@ +Rails.application.routes.draw do + resources :sessions, only: [:new, :create, :destroy] + resources :users, except: [:index] + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/dylan_eckert/rails2/userfeats/config/secrets.yml b/dylan_eckert/rails2/userfeats/config/secrets.yml new file mode 100644 index 0000000..41e0de4 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: df5bfd362ae400b400d79af9bc419e988c72e7a2df7aebc541137d2f27e125bb93b09d877ecc0cae931a9b8c16ef96f1c7329a8b2d788eadf3a0f5cc9bb4d4e7 + +test: + secret_key_base: 91a21b8af0492c5893228989638a977f5e7cf895e0a94a3a0cd34976a4582b84e68c4e940e3369f2297218eaebf4bce2cc07441512a9c2d645734c20e08024b9 + +# 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/dylan_eckert/rails2/userfeats/config/spring.rb b/dylan_eckert/rails2/userfeats/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/rails2/userfeats/db/migrate/20171211192257_create_users.rb b/dylan_eckert/rails2/userfeats/db/migrate/20171211192257_create_users.rb new file mode 100644 index 0000000..9e6ab64 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/db/migrate/20171211192257_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/userfeats/db/schema.rb b/dylan_eckert/rails2/userfeats/db/schema.rb new file mode 100644 index 0000000..76f3396 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/db/schema.rb @@ -0,0 +1,26 @@ +# 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: 20171211192257) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/rails2/userfeats/db/seeds.rb b/dylan_eckert/rails2/userfeats/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/rails2/userfeats/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/lib/tasks/.keep b/dylan_eckert/rails2/userfeats/lib/assets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/lib/tasks/.keep rename to dylan_eckert/rails2/userfeats/lib/assets/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/log/.keep b/dylan_eckert/rails2/userfeats/lib/tasks/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/log/.keep rename to dylan_eckert/rails2/userfeats/lib/tasks/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/controllers/.keep b/dylan_eckert/rails2/userfeats/log/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/controllers/.keep rename to dylan_eckert/rails2/userfeats/log/.keep diff --git a/dylan_eckert/rails2/userfeats/public/404.html b/dylan_eckert/rails2/userfeats/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/userfeats/public/422.html b/dylan_eckert/rails2/userfeats/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/userfeats/public/500.html b/dylan_eckert/rails2/userfeats/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/rails2/userfeats/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/favicon.ico b/dylan_eckert/rails2/userfeats/public/apple-touch-icon-precomposed.png similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/public/favicon.ico rename to dylan_eckert/rails2/userfeats/public/apple-touch-icon-precomposed.png diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/fixtures/.keep b/dylan_eckert/rails2/userfeats/public/apple-touch-icon.png similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/fixtures/.keep rename to dylan_eckert/rails2/userfeats/public/apple-touch-icon.png diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/favicon.ico b/dylan_eckert/rails2/userfeats/public/favicon.ico similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/public/favicon.ico rename to dylan_eckert/rails2/userfeats/public/favicon.ico diff --git a/Tamisha_Damas/Rails II/dojo_secrets/public/robots.txt b/dylan_eckert/rails2/userfeats/public/robots.txt similarity index 100% rename from Tamisha_Damas/Rails II/dojo_secrets/public/robots.txt rename to dylan_eckert/rails2/userfeats/public/robots.txt diff --git a/dylan_eckert/rails2/userfeats/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/userfeats/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/userfeats/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/userfeats/spec/factories/users.rb b/dylan_eckert/rails2/userfeats/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/userfeats/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/userfeats/spec/helpers/sessions_helper_spec.rb new file mode 100644 index 0000000..9484198 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/spec/helpers/sessions_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SessionsHelper. For example: +# +# describe SessionsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SessionsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/userfeats/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/userfeats/spec/helpers/users_helper_spec.rb new file mode 100644 index 0000000..b2e3444 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/spec/helpers/users_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the UsersHelper. For example: +# +# describe UsersHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe UsersHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/userfeats/spec/models/user_spec.rb b/dylan_eckert/rails2/userfeats/spec/models/user_spec.rb new file mode 100644 index 0000000..648c0b2 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/spec/models/user_spec.rb @@ -0,0 +1,39 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end +end diff --git a/dylan_eckert/rails2/userfeats/spec/rails_helper.rb b/dylan_eckert/rails2/userfeats/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/userfeats/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/userfeats/spec/spec_helper.rb b/dylan_eckert/rails2/userfeats/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/userfeats/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/helpers/.keep b/dylan_eckert/rails2/userfeats/test/controllers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/helpers/.keep rename to dylan_eckert/rails2/userfeats/test/controllers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/integration/.keep b/dylan_eckert/rails2/userfeats/test/fixtures/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/integration/.keep rename to dylan_eckert/rails2/userfeats/test/fixtures/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/mailers/.keep b/dylan_eckert/rails2/userfeats/test/fixtures/files/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/mailers/.keep rename to dylan_eckert/rails2/userfeats/test/fixtures/files/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/models/.keep b/dylan_eckert/rails2/userfeats/test/helpers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/test/models/.keep rename to dylan_eckert/rails2/userfeats/test/helpers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/userfeats/test/integration/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/userfeats/test/integration/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/userfeats/test/mailers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 2/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/userfeats/test/mailers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/images/.keep b/dylan_eckert/rails2/userfeats/test/models/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/assets/images/.keep rename to dylan_eckert/rails2/userfeats/test/models/.keep diff --git a/Stephen Weil/Rails/Models/user_login_project/test/test_helper.rb b/dylan_eckert/rails2/userfeats/test/test_helper.rb similarity index 100% rename from Stephen Weil/Rails/Models/user_login_project/test/test_helper.rb rename to dylan_eckert/rails2/userfeats/test/test_helper.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/controllers/concerns/.keep b/dylan_eckert/rails2/userfeats/tmp/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/controllers/concerns/.keep rename to dylan_eckert/rails2/userfeats/tmp/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/mailers/.keep b/dylan_eckert/rails2/userfeats/vendor/assets/javascripts/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/mailers/.keep rename to dylan_eckert/rails2/userfeats/vendor/assets/javascripts/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/models/.keep b/dylan_eckert/rails2/userfeats/vendor/assets/stylesheets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/models/.keep rename to dylan_eckert/rails2/userfeats/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/rails2/usersettings/.gitignore b/dylan_eckert/rails2/usersettings/.gitignore new file mode 100644 index 0000000..48fb168 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/.gitignore @@ -0,0 +1,17 @@ +# See https://help.github.com/articles/ignoring-files for more about ignoring files. +# +# If you find yourself ignoring temporary files generated by your text editor +# or operating system, you probably want to add a global ignore instead: +# git config --global core.excludesfile '~/.gitignore_global' + +# Ignore bundler config. +/.bundle + +# Ignore all logfiles and tempfiles. +/log/* +/tmp/* +!/log/.keep +!/tmp/.keep + +# Ignore Byebug command history file. +.byebug_history diff --git a/dylan_eckert/rails2/usersettings/.rspec b/dylan_eckert/rails2/usersettings/.rspec new file mode 100644 index 0000000..c99d2e7 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/.rspec @@ -0,0 +1 @@ +--require spec_helper diff --git a/dylan_eckert/rails2/usersettings/Gemfile b/dylan_eckert/rails2/usersettings/Gemfile new file mode 100644 index 0000000..8d464a7 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/Gemfile @@ -0,0 +1,54 @@ +source 'https://rubygems.org' + +git_source(:github) do |repo_name| + repo_name = "#{repo_name}/#{repo_name}" unless repo_name.include?("/") + "https://github.com/#{repo_name}.git" +end + + +# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' +gem 'rails', '~> 5.0.6' +# Use postgresql as the database for Active Record +gem 'pg', '~> 0.18' +# Use Puma as the app server +gem 'puma', '~> 3.0' +# Use SCSS for stylesheets +gem 'sass-rails', '~> 5.0' +# Use Uglifier as compressor for JavaScript assets +gem 'uglifier', '>= 1.3.0' +# Use CoffeeScript for .coffee assets and views +gem 'coffee-rails', '~> 4.2' +# See https://github.com/rails/execjs#readme for more supported runtimes +# gem 'therubyracer', platforms: :ruby + +# Use jquery as the JavaScript library +gem 'jquery-rails' +# Turbolinks makes navigating your web application faster. Read more: https://github.com/turbolinks/turbolinks +gem 'turbolinks', '~> 5' +# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder +gem 'jbuilder', '~> 2.5' +# Use Redis adapter to run Action Cable in production +# gem 'redis', '~> 3.0' +# Use ActiveModel has_secure_password +gem 'bcrypt', '~> 3.1.7' + +# Use Capistrano for deployment +# gem 'capistrano-rails', group: :development + +group :development, :test do + gem 'rspec-rails' + gem 'factory_bot_rails' + gem 'capybara' +end + +group :development do + # Access an IRB console on exception pages or by using <%= console %> anywhere in the code. + gem 'web-console', '>= 3.3.0' + gem 'listen', '~> 3.0.5' + # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring + gem 'spring' + gem 'spring-watcher-listen', '~> 2.0.0' +end + +# Windows does not include zoneinfo files, so bundle the tzinfo-data gem +gem 'tzinfo-data', platforms: [:mingw, :mswin, :x64_mingw, :jruby] diff --git a/dylan_eckert/rails2/usersettings/Gemfile.lock b/dylan_eckert/rails2/usersettings/Gemfile.lock new file mode 100644 index 0000000..1368646 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/Gemfile.lock @@ -0,0 +1,217 @@ +GEM + remote: https://rubygems.org/ + specs: + actioncable (5.0.6) + actionpack (= 5.0.6) + nio4r (>= 1.2, < 3.0) + websocket-driver (~> 0.6.1) + actionmailer (5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + mail (~> 2.5, >= 2.5.4) + rails-dom-testing (~> 2.0) + actionpack (5.0.6) + actionview (= 5.0.6) + activesupport (= 5.0.6) + rack (~> 2.0) + rack-test (~> 0.6.3) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.2) + actionview (5.0.6) + activesupport (= 5.0.6) + builder (~> 3.1) + erubis (~> 2.7.0) + rails-dom-testing (~> 2.0) + rails-html-sanitizer (~> 1.0, >= 1.0.3) + activejob (5.0.6) + activesupport (= 5.0.6) + globalid (>= 0.3.6) + activemodel (5.0.6) + activesupport (= 5.0.6) + activerecord (5.0.6) + activemodel (= 5.0.6) + activesupport (= 5.0.6) + arel (~> 7.0) + activesupport (5.0.6) + concurrent-ruby (~> 1.0, >= 1.0.2) + i18n (~> 0.7) + minitest (~> 5.1) + tzinfo (~> 1.1) + addressable (2.5.2) + public_suffix (>= 2.0.2, < 4.0) + arel (7.1.4) + bcrypt (3.1.11) + bindex (0.5.0) + builder (3.2.3) + capybara (2.16.1) + addressable + mini_mime (>= 0.1.3) + nokogiri (>= 1.3.3) + rack (>= 1.0.0) + rack-test (>= 0.5.4) + xpath (~> 2.0) + coffee-rails (4.2.2) + coffee-script (>= 2.2.0) + railties (>= 4.0.0) + coffee-script (2.4.1) + coffee-script-source + execjs + coffee-script-source (1.12.2) + concurrent-ruby (1.0.5) + crass (1.0.3) + diff-lcs (1.3) + erubis (2.7.0) + execjs (2.7.0) + factory_bot (4.8.2) + activesupport (>= 3.0.0) + factory_bot_rails (4.8.2) + factory_bot (~> 4.8.2) + railties (>= 3.0.0) + ffi (1.9.18) + globalid (0.4.1) + activesupport (>= 4.2.0) + i18n (0.9.1) + concurrent-ruby (~> 1.0) + jbuilder (2.7.0) + activesupport (>= 4.2.0) + multi_json (>= 1.2) + jquery-rails (4.3.1) + rails-dom-testing (>= 1, < 3) + railties (>= 4.2.0) + thor (>= 0.14, < 2.0) + listen (3.0.8) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + loofah (2.1.1) + crass (~> 1.0.2) + nokogiri (>= 1.5.9) + mail (2.7.0) + mini_mime (>= 0.1.1) + method_source (0.9.0) + mini_mime (1.0.0) + mini_portile2 (2.3.0) + minitest (5.10.3) + multi_json (1.12.2) + nio4r (2.1.0) + nokogiri (1.8.1) + mini_portile2 (~> 2.3.0) + pg (0.21.0) + public_suffix (3.0.1) + puma (3.11.0) + rack (2.0.3) + rack-test (0.6.3) + rack (>= 1.0) + rails (5.0.6) + actioncable (= 5.0.6) + actionmailer (= 5.0.6) + actionpack (= 5.0.6) + actionview (= 5.0.6) + activejob (= 5.0.6) + activemodel (= 5.0.6) + activerecord (= 5.0.6) + activesupport (= 5.0.6) + bundler (>= 1.3.0) + railties (= 5.0.6) + sprockets-rails (>= 2.0.0) + rails-dom-testing (2.0.3) + activesupport (>= 4.2.0) + nokogiri (>= 1.6) + rails-html-sanitizer (1.0.3) + loofah (~> 2.0) + railties (5.0.6) + actionpack (= 5.0.6) + activesupport (= 5.0.6) + method_source + rake (>= 0.8.7) + thor (>= 0.18.1, < 2.0) + rake (12.3.0) + rb-fsevent (0.10.2) + rb-inotify (0.9.10) + ffi (>= 0.5.0, < 2) + rspec-core (3.7.0) + rspec-support (~> 3.7.0) + rspec-expectations (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-mocks (3.7.0) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.7.0) + rspec-rails (3.7.2) + actionpack (>= 3.0) + activesupport (>= 3.0) + railties (>= 3.0) + rspec-core (~> 3.7.0) + rspec-expectations (~> 3.7.0) + rspec-mocks (~> 3.7.0) + rspec-support (~> 3.7.0) + rspec-support (3.7.0) + sass (3.5.3) + sass-listen (~> 4.0.0) + sass-listen (4.0.0) + rb-fsevent (~> 0.9, >= 0.9.4) + rb-inotify (~> 0.9, >= 0.9.7) + sass-rails (5.0.7) + railties (>= 4.0.0, < 6) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) + sprockets-rails (>= 2.0, < 4.0) + tilt (>= 1.1, < 3) + spring (2.0.2) + activesupport (>= 4.2) + spring-watcher-listen (2.0.1) + listen (>= 2.7, < 4.0) + spring (>= 1.2, < 3.0) + sprockets (3.7.1) + concurrent-ruby (~> 1.0) + rack (> 1, < 3) + sprockets-rails (3.2.1) + actionpack (>= 4.0) + activesupport (>= 4.0) + sprockets (>= 3.0.0) + thor (0.20.0) + thread_safe (0.3.6) + tilt (2.0.8) + turbolinks (5.0.1) + turbolinks-source (~> 5) + turbolinks-source (5.0.3) + tzinfo (1.2.4) + thread_safe (~> 0.1) + uglifier (4.0.2) + execjs (>= 0.3.0, < 3) + web-console (3.5.1) + actionview (>= 5.0) + activemodel (>= 5.0) + bindex (>= 0.4.0) + railties (>= 5.0) + websocket-driver (0.6.5) + websocket-extensions (>= 0.1.0) + websocket-extensions (0.1.3) + xpath (2.1.0) + nokogiri (~> 1.3) + +PLATFORMS + ruby + +DEPENDENCIES + bcrypt (~> 3.1.7) + capybara + coffee-rails (~> 4.2) + factory_bot_rails + jbuilder (~> 2.5) + jquery-rails + listen (~> 3.0.5) + pg (~> 0.18) + puma (~> 3.0) + rails (~> 5.0.6) + rspec-rails + sass-rails (~> 5.0) + spring + spring-watcher-listen (~> 2.0.0) + turbolinks (~> 5) + tzinfo-data + uglifier (>= 1.3.0) + web-console (>= 3.3.0) + +BUNDLED WITH + 1.16.0 diff --git a/dylan_eckert/rails2/usersettings/README.md b/dylan_eckert/rails2/usersettings/README.md new file mode 100644 index 0000000..7db80e4 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/README.md @@ -0,0 +1,24 @@ +# README + +This README would normally document whatever steps are necessary to get the +application up and running. + +Things you may want to cover: + +* Ruby version + +* System dependencies + +* Configuration + +* Database creation + +* Database initialization + +* How to run the test suite + +* Services (job queues, cache servers, search engines, etc.) + +* Deployment instructions + +* ... diff --git a/dylan_eckert/rails2/usersettings/Rakefile b/dylan_eckert/rails2/usersettings/Rakefile new file mode 100644 index 0000000..e85f913 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/Rakefile @@ -0,0 +1,6 @@ +# 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_relative 'config/application' + +Rails.application.load_tasks diff --git a/dylan_eckert/rails2/usersettings/app/assets/config/manifest.js b/dylan_eckert/rails2/usersettings/app/assets/config/manifest.js new file mode 100644 index 0000000..b16e53d --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/config/manifest.js @@ -0,0 +1,3 @@ +//= link_tree ../images +//= link_directory ../javascripts .js +//= link_directory ../stylesheets .css diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/models/concerns/.keep b/dylan_eckert/rails2/usersettings/app/assets/images/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/app/models/concerns/.keep rename to dylan_eckert/rails2/usersettings/app/assets/images/.keep diff --git a/dylan_eckert/rails2/usersettings/app/assets/javascripts/application.js b/dylan_eckert/rails2/usersettings/app/assets/javascripts/application.js new file mode 100644 index 0000000..b12018d --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/javascripts/application.js @@ -0,0 +1,16 @@ +// 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 any plugin's vendor/assets/javascripts directory 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. JavaScript code in this file should be added after the last require_* statement. +// +// Read Sprockets README (https://github.com/rails/sprockets#sprockets-directives) for details +// about supported directives. +// +//= require jquery +//= require jquery_ujs +//= require turbolinks +//= require_tree . diff --git a/dylan_eckert/rails2/usersettings/app/assets/javascripts/cable.js b/dylan_eckert/rails2/usersettings/app/assets/javascripts/cable.js new file mode 100644 index 0000000..71ee1e6 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/javascripts/cable.js @@ -0,0 +1,13 @@ +// Action Cable provides the framework to deal with WebSockets in Rails. +// You can generate new channels where WebSocket features live using the rails generate channel command. +// +//= require action_cable +//= require_self +//= require_tree ./channels + +(function() { + this.App || (this.App = {}); + + App.cable = ActionCable.createConsumer(); + +}).call(this); diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/lib/assets/.keep b/dylan_eckert/rails2/usersettings/app/assets/javascripts/channels/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/lib/assets/.keep rename to dylan_eckert/rails2/usersettings/app/assets/javascripts/channels/.keep diff --git a/dylan_eckert/rails2/usersettings/app/assets/javascripts/sessions.coffee b/dylan_eckert/rails2/usersettings/app/assets/javascripts/sessions.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/javascripts/sessions.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/dylan_eckert/rails2/usersettings/app/assets/javascripts/users.coffee b/dylan_eckert/rails2/usersettings/app/assets/javascripts/users.coffee new file mode 100644 index 0000000..24f83d1 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/javascripts/users.coffee @@ -0,0 +1,3 @@ +# Place all the behaviors and hooks related to the matching controller here. +# All this logic will automatically be available in application.js. +# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/dylan_eckert/rails2/usersettings/app/assets/stylesheets/application.css b/dylan_eckert/rails2/usersettings/app/assets/stylesheets/application.css new file mode 100644 index 0000000..0ebd7fe --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/stylesheets/application.css @@ -0,0 +1,15 @@ +/* + * 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 any plugin's vendor/assets/stylesheets directory 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 other CSS/SCSS + * files in this directory. Styles in this file should be added after the last require_* statement. + * It is generally better to create a new file per style scope. + * + *= require_tree . + *= require_self + */ diff --git a/dylan_eckert/rails2/usersettings/app/assets/stylesheets/sessions.scss b/dylan_eckert/rails2/usersettings/app/assets/stylesheets/sessions.scss new file mode 100644 index 0000000..ccb1ed2 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/stylesheets/sessions.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Sessions controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/usersettings/app/assets/stylesheets/users.scss b/dylan_eckert/rails2/usersettings/app/assets/stylesheets/users.scss new file mode 100644 index 0000000..31a2eac --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/assets/stylesheets/users.scss @@ -0,0 +1,3 @@ +// Place all the styles related to the Users controller here. +// They will automatically be included in application.css. +// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/dylan_eckert/rails2/usersettings/app/channels/application_cable/channel.rb b/dylan_eckert/rails2/usersettings/app/channels/application_cable/channel.rb new file mode 100644 index 0000000..d672697 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/channels/application_cable/channel.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Channel < ActionCable::Channel::Base + end +end diff --git a/dylan_eckert/rails2/usersettings/app/channels/application_cable/connection.rb b/dylan_eckert/rails2/usersettings/app/channels/application_cable/connection.rb new file mode 100644 index 0000000..0ff5442 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/channels/application_cable/connection.rb @@ -0,0 +1,4 @@ +module ApplicationCable + class Connection < ActionCable::Connection::Base + end +end diff --git a/dylan_eckert/rails2/usersettings/app/controllers/application_controller.rb b/dylan_eckert/rails2/usersettings/app/controllers/application_controller.rb new file mode 100644 index 0000000..b521dc2 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/controllers/application_controller.rb @@ -0,0 +1,14 @@ +class ApplicationController < ActionController::Base + protect_from_forgery with: :exception + + before_action :require_login + + def require_login + return redirect_to new_session_path unless session[:user_id] + end + def current_user + return User.find(session[:user_id]) if session[:user_id] + end + helper_method :current_user + helper_method :require_login +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/lib/tasks/.keep b/dylan_eckert/rails2/usersettings/app/controllers/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/lib/tasks/.keep rename to dylan_eckert/rails2/usersettings/app/controllers/concerns/.keep diff --git a/dylan_eckert/rails2/usersettings/app/controllers/sessions_controller.rb b/dylan_eckert/rails2/usersettings/app/controllers/sessions_controller.rb new file mode 100644 index 0000000..6a0abf2 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/controllers/sessions_controller.rb @@ -0,0 +1,26 @@ +class SessionsController < ApplicationController + skip_before_action :require_login, except: [:destroy] + def new + end + + def create + user = User.find_by(email: params[:email]) + # find by email + if user + if user.try(:authenticate, params[:password]) + # if the user matches a user in the database, set the session id to the user being authenticated + session[:user_id] = user.id + return redirect_to user_path user.id + end + flash[:errors] = ["Invalid password"] + else + flash[:errors] = ["Invalid email"] + end + return redirect_back fallback_location: new_session_path + end + + def destroy + reset_session + redirect_to "/sessions/new" + end +end diff --git a/dylan_eckert/rails2/usersettings/app/controllers/users_controller.rb b/dylan_eckert/rails2/usersettings/app/controllers/users_controller.rb new file mode 100644 index 0000000..cb2cd2e --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/controllers/users_controller.rb @@ -0,0 +1,43 @@ +class UsersController < ApplicationController + skip_before_action :require_login, only: [:new, :create] + def new + end + + def create + user = User.create(user_params) + if user.valid? + session[:user_id] = user.id + return redirect_to user_path user.id + else + flash[:errors] = user.errors.full_messages + return redirect_back fallback_location: new_user_path + end + end + + def show + @user = User.find(params[:id]) + end + + def edit + @user = User.find(params[:id]) + end + + def update + user = User.find(params[:id]) + user.update(user_params) + redirect_to user_path user.id + end + + def destroy + user = User.find(params[:id]) + user.destroy + reset_session + redirect_to new_session_path + end + + private + + def user_params + params.require(:user).permit(:name, :email, :password, :password_confirmation) + end +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/helpers/application_helper.rb b/dylan_eckert/rails2/usersettings/app/helpers/application_helper.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/app/helpers/application_helper.rb rename to dylan_eckert/rails2/usersettings/app/helpers/application_helper.rb diff --git a/dylan_eckert/rails2/usersettings/app/helpers/sessions_helper.rb b/dylan_eckert/rails2/usersettings/app/helpers/sessions_helper.rb new file mode 100644 index 0000000..309f8b2 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/helpers/sessions_helper.rb @@ -0,0 +1,2 @@ +module SessionsHelper +end diff --git a/dylan_eckert/rails2/usersettings/app/helpers/users_helper.rb b/dylan_eckert/rails2/usersettings/app/helpers/users_helper.rb new file mode 100644 index 0000000..2310a24 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/helpers/users_helper.rb @@ -0,0 +1,2 @@ +module UsersHelper +end diff --git a/dylan_eckert/rails2/usersettings/app/jobs/application_job.rb b/dylan_eckert/rails2/usersettings/app/jobs/application_job.rb new file mode 100644 index 0000000..a009ace --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/jobs/application_job.rb @@ -0,0 +1,2 @@ +class ApplicationJob < ActiveJob::Base +end diff --git a/dylan_eckert/rails2/usersettings/app/mailers/application_mailer.rb b/dylan_eckert/rails2/usersettings/app/mailers/application_mailer.rb new file mode 100644 index 0000000..286b223 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/mailers/application_mailer.rb @@ -0,0 +1,4 @@ +class ApplicationMailer < ActionMailer::Base + default from: 'from@example.com' + layout 'mailer' +end diff --git a/dylan_eckert/rails2/usersettings/app/models/application_record.rb b/dylan_eckert/rails2/usersettings/app/models/application_record.rb new file mode 100644 index 0000000..10a4cba --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/models/application_record.rb @@ -0,0 +1,3 @@ +class ApplicationRecord < ActiveRecord::Base + self.abstract_class = true +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/log/.keep b/dylan_eckert/rails2/usersettings/app/models/concerns/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/log/.keep rename to dylan_eckert/rails2/usersettings/app/models/concerns/.keep diff --git a/dylan_eckert/rails2/usersettings/app/models/user.rb b/dylan_eckert/rails2/usersettings/app/models/user.rb new file mode 100644 index 0000000..3e5165c --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/models/user.rb @@ -0,0 +1,16 @@ +class User < ApplicationRecord + has_secure_password + + EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i + validates :name, presence: true + validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX } + + before_save :input_lowercase + # line above says that before saving the user to the database to run the email_lowercase method + + def input_lowercase + self.email.downcase! + self.name.downcase! + # the built in method for lowercasing something is .downcase! + end +end diff --git a/dylan_eckert/rails2/usersettings/app/views/layouts/application.html.erb b/dylan_eckert/rails2/usersettings/app/views/layouts/application.html.erb new file mode 100644 index 0000000..4c62c3f --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/views/layouts/application.html.erb @@ -0,0 +1,25 @@ + + + + DojoSecrets + <%= csrf_meta_tags %> + + <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track': 'reload' %> + <%= javascript_include_tag 'application', 'data-turbolinks-track': 'reload' %> + + + <% if flash[:errors] %> + <% flash[:errors].each do |error| %> +

<%= error %>

+ <% end %> + <% end %> + <% if current_user %> +
+ + + +
+ <% end %> + <%= yield %> + + diff --git a/dylan_eckert/rails2/usersettings/app/views/layouts/mailer.html.erb b/dylan_eckert/rails2/usersettings/app/views/layouts/mailer.html.erb new file mode 100644 index 0000000..cbd34d2 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/views/layouts/mailer.html.erb @@ -0,0 +1,13 @@ + + + + + + + + + <%= yield %> + + diff --git a/dylan_eckert/rails2/usersettings/app/views/layouts/mailer.text.erb b/dylan_eckert/rails2/usersettings/app/views/layouts/mailer.text.erb new file mode 100644 index 0000000..37f0bdd --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/views/layouts/mailer.text.erb @@ -0,0 +1 @@ +<%= yield %> diff --git a/dylan_eckert/rails2/usersettings/app/views/sessions/new.html.erb b/dylan_eckert/rails2/usersettings/app/views/sessions/new.html.erb new file mode 100644 index 0000000..9da5dea --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/views/sessions/new.html.erb @@ -0,0 +1,9 @@ +

Login

+
+ +

Email

+ +

Password

+ + +
diff --git a/dylan_eckert/rails2/usersettings/app/views/users/edit.html.erb b/dylan_eckert/rails2/usersettings/app/views/users/edit.html.erb new file mode 100644 index 0000000..c23f602 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/views/users/edit.html.erb @@ -0,0 +1,12 @@ +

Edit User <%= @user.id %>

+ +
+ + + Name: + + Email: + + +
+Delete Account diff --git a/dylan_eckert/rails2/usersettings/app/views/users/new.html.erb b/dylan_eckert/rails2/usersettings/app/views/users/new.html.erb new file mode 100644 index 0000000..f4aed5d --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/views/users/new.html.erb @@ -0,0 +1,13 @@ +

Register

+
+ +

Name

+ +

Email

+ +

Password

+ +

Password Confirmation

+ + +
diff --git a/dylan_eckert/rails2/usersettings/app/views/users/show.html.erb b/dylan_eckert/rails2/usersettings/app/views/users/show.html.erb new file mode 100644 index 0000000..9056b69 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/app/views/users/show.html.erb @@ -0,0 +1,16 @@ +

<%= @user.name %>

+

<%= @user.email %>

+
+

Secrets

+ +

content of secret

+

number of likes

+ +
+
+

Secrets Liked

+ +

content of secret

+

number of likes

+
+Update Account diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/bundle b/dylan_eckert/rails2/usersettings/bin/bundle similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/bundle rename to dylan_eckert/rails2/usersettings/bin/bundle diff --git a/dylan_eckert/rails2/usersettings/bin/rails b/dylan_eckert/rails2/usersettings/bin/rails new file mode 100755 index 0000000..5badb2f --- /dev/null +++ b/dylan_eckert/rails2/usersettings/bin/rails @@ -0,0 +1,9 @@ +#!/usr/bin/env ruby +begin + load File.expand_path('../spring', __FILE__) +rescue LoadError => e + raise unless e.message.include?('spring') +end +APP_PATH = File.expand_path('../config/application', __dir__) +require_relative '../config/boot' +require 'rails/commands' diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/rake b/dylan_eckert/rails2/usersettings/bin/rake similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/rake rename to dylan_eckert/rails2/usersettings/bin/rake diff --git a/dylan_eckert/rails2/usersettings/bin/setup b/dylan_eckert/rails2/usersettings/bin/setup new file mode 100755 index 0000000..e620b4d --- /dev/null +++ b/dylan_eckert/rails2/usersettings/bin/setup @@ -0,0 +1,34 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a starting point to setup your application. + # Add necessary setup steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + # puts "\n== Copying sample files ==" + # unless File.exist?('config/database.yml') + # cp 'config/database.yml.sample', 'config/database.yml' + # end + + puts "\n== Preparing database ==" + system! 'bin/rails db:setup' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/spring b/dylan_eckert/rails2/usersettings/bin/spring similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/bin/spring rename to dylan_eckert/rails2/usersettings/bin/spring diff --git a/dylan_eckert/rails2/usersettings/bin/update b/dylan_eckert/rails2/usersettings/bin/update new file mode 100755 index 0000000..a8e4462 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/bin/update @@ -0,0 +1,29 @@ +#!/usr/bin/env ruby +require 'pathname' +require 'fileutils' +include FileUtils + +# path to your application root. +APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) + +def system!(*args) + system(*args) || abort("\n== Command #{args} failed ==") +end + +chdir APP_ROOT do + # This script is a way to update your development environment automatically. + # Add necessary update steps to this file. + + puts '== Installing dependencies ==' + system! 'gem install bundler --conservative' + system('bundle check') || system!('bundle install') + + puts "\n== Updating database ==" + system! 'bin/rails db:migrate' + + puts "\n== Removing old logs and tempfiles ==" + system! 'bin/rails log:clear tmp:clear' + + puts "\n== Restarting application server ==" + system! 'bin/rails restart' +end diff --git a/dylan_eckert/rails2/usersettings/config.ru b/dylan_eckert/rails2/usersettings/config.ru new file mode 100644 index 0000000..f7ba0b5 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config.ru @@ -0,0 +1,5 @@ +# This file is used by Rack-based servers to start the application. + +require_relative 'config/environment' + +run Rails.application diff --git a/dylan_eckert/rails2/usersettings/config/application.rb b/dylan_eckert/rails2/usersettings/config/application.rb new file mode 100644 index 0000000..65de0bc --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/application.rb @@ -0,0 +1,15 @@ +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) + +module DojoSecrets + 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. + end +end diff --git a/dylan_eckert/rails2/usersettings/config/boot.rb b/dylan_eckert/rails2/usersettings/config/boot.rb new file mode 100644 index 0000000..30f5120 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/boot.rb @@ -0,0 +1,3 @@ +ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../Gemfile', __dir__) + +require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/dylan_eckert/rails2/usersettings/config/cable.yml b/dylan_eckert/rails2/usersettings/config/cable.yml new file mode 100644 index 0000000..0bbde6f --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/cable.yml @@ -0,0 +1,9 @@ +development: + adapter: async + +test: + adapter: async + +production: + adapter: redis + url: redis://localhost:6379/1 diff --git a/dylan_eckert/rails2/usersettings/config/database.yml b/dylan_eckert/rails2/usersettings/config/database.yml new file mode 100644 index 0000000..efc5910 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/database.yml @@ -0,0 +1,85 @@ +# PostgreSQL. Versions 9.1 and up are supported. +# +# Install the pg driver: +# gem install pg +# On OS X with Homebrew: +# gem install pg -- --with-pg-config=/usr/local/bin/pg_config +# On OS X with MacPorts: +# gem install pg -- --with-pg-config=/opt/local/lib/postgresql84/bin/pg_config +# On Windows: +# gem install pg +# Choose the win32 build. +# Install PostgreSQL and put its /bin directory on your path. +# +# Configure Using Gemfile +# gem 'pg' +# +default: &default + adapter: postgresql + encoding: unicode + # For details on connection pooling, see rails configuration guide + # http://guides.rubyonrails.org/configuring.html#database-pooling + pool: <%= ENV.fetch("RAILS_MAX_THREADS") { 5 } %> + +development: + <<: *default + database: DojoSecrets_development + + # The specified database role being used to connect to postgres. + # To create additional roles in postgres see `$ createuser --help`. + # When left blank, postgres will use the default role. This is + # the same name as the operating system user that initialized the database. + #username: DojoSecrets + + # The password associated with the postgres role (username). + #password: + + # Connect on a TCP socket. Omitted by default since the client uses a + # domain socket that doesn't need configuration. Windows does not have + # domain sockets, so uncomment these lines. + #host: localhost + + # The TCP port the server listens on. Defaults to 5432. + # If your server runs on a different port number, change accordingly. + #port: 5432 + + # Schema search path. The server defaults to $user,public + #schema_search_path: myapp,sharedapp,public + + # Minimum log levels, in increasing order: + # debug5, debug4, debug3, debug2, debug1, + # log, notice, warning, error, fatal, and panic + # Defaults to warning. + #min_messages: notice + +# 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: DojoSecrets_test + +# As with config/secrets.yml, you never want to store sensitive information, +# like your database password, in your source code. If your source code is +# ever seen by anyone, they now have access to your database. +# +# Instead, provide the password as a unix environment variable when you boot +# the app. Read http://guides.rubyonrails.org/configuring.html#configuring-a-database +# for a full rundown on how to provide these environment variables in a +# production deployment. +# +# On Heroku and other platform providers, you may have a full connection URL +# available as an environment variable. For example: +# +# DATABASE_URL="postgres://myuser:mypass@localhost/somedatabase" +# +# You can use this database configuration with: +# +# production: +# url: <%= ENV['DATABASE_URL'] %> +# +production: + <<: *default + database: DojoSecrets_production + username: DojoSecrets + password: <%= ENV['DOJOSECRETS_DATABASE_PASSWORD'] %> diff --git a/dylan_eckert/rails2/usersettings/config/environment.rb b/dylan_eckert/rails2/usersettings/config/environment.rb new file mode 100644 index 0000000..426333b --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/environment.rb @@ -0,0 +1,5 @@ +# Load the Rails application. +require_relative 'application' + +# Initialize the Rails application. +Rails.application.initialize! diff --git a/dylan_eckert/rails2/usersettings/config/environments/development.rb b/dylan_eckert/rails2/usersettings/config/environments/development.rb new file mode 100644 index 0000000..77fe74d --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/environments/development.rb @@ -0,0 +1,55 @@ +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 rest art the web server when you make code changes. + config.cache_classes = false + + config.reload_classes_only_on_change = false + # Do not eager load code on boot. + config.eager_load = false + + # Show full error reports. + config.consider_all_requests_local = true + + # Enable/disable caching. By default caching is disabled. + if Rails.root.join('tmp/caching-dev.txt').exist? + config.action_controller.perform_caching = true + + config.cache_store = :memory_store + config.public_file_server.headers = { + 'Cache-Control' => 'public, max-age=172800' + } + else + config.action_controller.perform_caching = false + + config.cache_store = :null_store + end + + # Don't care if the mailer can't send. + config.action_mailer.raise_delivery_errors = false + + config.action_mailer.perform_caching = 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 + + # Suppress logger output for asset requests. + config.assets.quiet = true + + # Raises error for missing translations + # config.action_view.raise_on_missing_translations = true + + # Use an evented file watcher to asynchronously detect changes in source code, + # routes, locales, etc. This feature depends on the listen gem. + config.file_watcher = ActiveSupport::EventedFileUpdateChecker +end diff --git a/dylan_eckert/rails2/usersettings/config/environments/production.rb b/dylan_eckert/rails2/usersettings/config/environments/production.rb new file mode 100644 index 0000000..f8e01b7 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/environments/production.rb @@ -0,0 +1,86 @@ +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 + + # Disable serving static files from the `/public` folder by default since + # Apache or NGINX already handles this. + config.public_file_server.enabled = ENV['RAILS_SERVE_STATIC_FILES'].present? + + # 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 + + # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb + + # Enable serving of images, stylesheets, and JavaScripts from an asset server. + # config.action_controller.asset_host = 'http://assets.example.com' + + # 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 + + # Mount Action Cable outside main process or domain + # config.action_cable.mount_path = nil + # config.action_cable.url = 'wss://example.com/cable' + # config.action_cable.allowed_request_origins = [ 'http://example.com', /http:\/\/example.*/ ] + + # Force all access to the app over SSL, use Strict-Transport-Security, and use secure cookies. + # config.force_ssl = true + + # Use the lowest log level to ensure availability of diagnostic information + # when problems arise. + config.log_level = :debug + + # Prepend all log lines with the following tags. + config.log_tags = [ :request_id ] + + # Use a different cache store in production. + # config.cache_store = :mem_cache_store + + # Use a real queuing backend for Active Job (and separate queues per environment) + # config.active_job.queue_adapter = :resque + # config.active_job.queue_name_prefix = "DojoSecrets_#{Rails.env}" + config.action_mailer.perform_caching = false + + # 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 + + # Use default logging formatter so that PID and timestamp are not suppressed. + config.log_formatter = ::Logger::Formatter.new + + # Use a different logger for distributed setups. + # require 'syslog/logger' + # config.logger = ActiveSupport::TaggedLogging.new(Syslog::Logger.new 'app-name') + + if ENV["RAILS_LOG_TO_STDOUT"].present? + logger = ActiveSupport::Logger.new(STDOUT) + logger.formatter = config.log_formatter + config.logger = ActiveSupport::TaggedLogging.new(logger) + end + + # Do not dump schema after migrations. + config.active_record.dump_schema_after_migration = false +end diff --git a/dylan_eckert/rails2/usersettings/config/environments/test.rb b/dylan_eckert/rails2/usersettings/config/environments/test.rb new file mode 100644 index 0000000..30587ef --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/environments/test.rb @@ -0,0 +1,42 @@ +Rails.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 public file server for tests with Cache-Control for performance. + config.public_file_server.enabled = true + config.public_file_server.headers = { + '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 + config.action_mailer.perform_caching = 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/dylan_eckert/rails2/usersettings/config/initializers/application_controller_renderer.rb b/dylan_eckert/rails2/usersettings/config/initializers/application_controller_renderer.rb new file mode 100644 index 0000000..89d2efa --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/initializers/application_controller_renderer.rb @@ -0,0 +1,8 @@ +# Be sure to restart your server when you modify this file. + +# ActiveSupport::Reloader.to_prepare do +# ApplicationController.renderer.defaults.merge!( +# http_host: 'example.org', +# https: false +# ) +# end diff --git a/Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/assets.rb b/dylan_eckert/rails2/usersettings/config/initializers/assets.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Time_display/config/initializers/assets.rb rename to dylan_eckert/rails2/usersettings/config/initializers/assets.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/backtrace_silencers.rb b/dylan_eckert/rails2/usersettings/config/initializers/backtrace_silencers.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/backtrace_silencers.rb rename to dylan_eckert/rails2/usersettings/config/initializers/backtrace_silencers.rb diff --git a/dylan_eckert/rails2/usersettings/config/initializers/cookies_serializer.rb b/dylan_eckert/rails2/usersettings/config/initializers/cookies_serializer.rb new file mode 100644 index 0000000..5a6a32d --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/initializers/cookies_serializer.rb @@ -0,0 +1,5 @@ +# Be sure to restart your server when you modify this file. + +# Specify a serializer for the signed and encrypted cookie jars. +# Valid options are :json, :marshal, and :hybrid. +Rails.application.config.action_dispatch.cookies_serializer = :json diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/filter_parameter_logging.rb b/dylan_eckert/rails2/usersettings/config/initializers/filter_parameter_logging.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/filter_parameter_logging.rb rename to dylan_eckert/rails2/usersettings/config/initializers/filter_parameter_logging.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/inflections.rb b/dylan_eckert/rails2/usersettings/config/initializers/inflections.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/inflections.rb rename to dylan_eckert/rails2/usersettings/config/initializers/inflections.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/mime_types.rb b/dylan_eckert/rails2/usersettings/config/initializers/mime_types.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/initializers/mime_types.rb rename to dylan_eckert/rails2/usersettings/config/initializers/mime_types.rb diff --git a/dylan_eckert/rails2/usersettings/config/initializers/new_framework_defaults.rb b/dylan_eckert/rails2/usersettings/config/initializers/new_framework_defaults.rb new file mode 100644 index 0000000..dd236b5 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/initializers/new_framework_defaults.rb @@ -0,0 +1,26 @@ +# Be sure to restart your server when you modify this file. +# +# This file contains migration options to ease your Rails 5.0 upgrade. +# +# Read the Guide for Upgrading Ruby on Rails for more info on each option. + +Rails.application.config.action_controller.raise_on_unfiltered_parameters = true + +# Enable per-form CSRF tokens. Previous versions had false. +Rails.application.config.action_controller.per_form_csrf_tokens = true + +# Enable origin-checking CSRF mitigation. Previous versions had false. +Rails.application.config.action_controller.forgery_protection_origin_check = true + +# Make Ruby 2.4 preserve the timezone of the receiver when calling `to_time`. +# Previous versions had false. +ActiveSupport.to_time_preserves_timezone = true + +# Require `belongs_to` associations by default. Previous versions had false. +Rails.application.config.active_record.belongs_to_required_by_default = true + +# Do not halt callback chains when a callback returns false. Previous versions had true. +ActiveSupport.halt_callback_chains_on_return_false = false + +# Configure SSL options to enable HSTS with subdomains. Previous versions had false. +Rails.application.config.ssl_options = { hsts: { subdomains: true } } diff --git a/dylan_eckert/rails2/usersettings/config/initializers/session_store.rb b/dylan_eckert/rails2/usersettings/config/initializers/session_store.rb new file mode 100644 index 0000000..745fa7c --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/initializers/session_store.rb @@ -0,0 +1,3 @@ +# Be sure to restart your server when you modify this file. + +Rails.application.config.session_store :cookie_store, key: '_DojoSecrets_session' diff --git a/dylan_eckert/rails2/usersettings/config/initializers/wrap_parameters.rb b/dylan_eckert/rails2/usersettings/config/initializers/wrap_parameters.rb new file mode 100644 index 0000000..bbfc396 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/initializers/wrap_parameters.rb @@ -0,0 +1,14 @@ +# 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] +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/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/locales/en.yml b/dylan_eckert/rails2/usersettings/config/locales/en.yml similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/config/locales/en.yml rename to dylan_eckert/rails2/usersettings/config/locales/en.yml diff --git a/dylan_eckert/rails2/usersettings/config/puma.rb b/dylan_eckert/rails2/usersettings/config/puma.rb new file mode 100644 index 0000000..c7f311f --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/puma.rb @@ -0,0 +1,47 @@ +# Puma can serve each request in a thread from an internal thread pool. +# The `threads` method setting takes two numbers a minimum and maximum. +# Any libraries that use thread pools should be configured to match +# the maximum value specified for Puma. Default is set to 5 threads for minimum +# and maximum, this matches the default thread size of Active Record. +# +threads_count = ENV.fetch("RAILS_MAX_THREADS") { 5 }.to_i +threads threads_count, threads_count + +# Specifies the `port` that Puma will listen on to receive requests, default is 3000. +# +port ENV.fetch("PORT") { 3000 } + +# Specifies the `environment` that Puma will run in. +# +environment ENV.fetch("RAILS_ENV") { "development" } + +# Specifies the number of `workers` to boot in clustered mode. +# Workers are forked webserver processes. If using threads and workers together +# the concurrency of the application would be max `threads` * `workers`. +# Workers do not work on JRuby or Windows (both of which do not support +# processes). +# +# workers ENV.fetch("WEB_CONCURRENCY") { 2 } + +# Use the `preload_app!` method when specifying a `workers` number. +# This directive tells Puma to first boot the application and load code +# before forking the application. This takes advantage of Copy On Write +# process behavior so workers use less memory. If you use this option +# you need to make sure to reconnect any threads in the `on_worker_boot` +# block. +# +# preload_app! + +# The code in the `on_worker_boot` will be called if you are using +# clustered mode by specifying a number of `workers`. After each worker +# process is booted this block will be run, if you are using `preload_app!` +# option you will want to use this block to reconnect to any threads +# or connections that may have been created at application boot, Ruby +# cannot share connections between processes. +# +# on_worker_boot do +# ActiveRecord::Base.establish_connection if defined?(ActiveRecord) +# end + +# Allow puma to be restarted by `rails restart` command. +plugin :tmp_restart diff --git a/dylan_eckert/rails2/usersettings/config/routes.rb b/dylan_eckert/rails2/usersettings/config/routes.rb new file mode 100644 index 0000000..8c38e83 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/routes.rb @@ -0,0 +1,5 @@ +Rails.application.routes.draw do + resources :sessions, only: [:new, :create, :destroy] + resources :users, except: [:index] + # For details on the DSL available within this file, see http://guides.rubyonrails.org/routing.html +end diff --git a/dylan_eckert/rails2/usersettings/config/secrets.yml b/dylan_eckert/rails2/usersettings/config/secrets.yml new file mode 100644 index 0000000..41e0de4 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/secrets.yml @@ -0,0 +1,22 @@ +# 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 `rails 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: df5bfd362ae400b400d79af9bc419e988c72e7a2df7aebc541137d2f27e125bb93b09d877ecc0cae931a9b8c16ef96f1c7329a8b2d788eadf3a0f5cc9bb4d4e7 + +test: + secret_key_base: 91a21b8af0492c5893228989638a977f5e7cf895e0a94a3a0cd34976a4582b84e68c4e940e3369f2297218eaebf4bce2cc07441512a9c2d645734c20e08024b9 + +# 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/dylan_eckert/rails2/usersettings/config/spring.rb b/dylan_eckert/rails2/usersettings/config/spring.rb new file mode 100644 index 0000000..c9119b4 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/config/spring.rb @@ -0,0 +1,6 @@ +%w( + .ruby-version + .rbenv-vars + tmp/restart.txt + tmp/caching-dev.txt +).each { |path| Spring.watch(path) } diff --git a/dylan_eckert/rails2/usersettings/db/migrate/20171211192257_create_users.rb b/dylan_eckert/rails2/usersettings/db/migrate/20171211192257_create_users.rb new file mode 100644 index 0000000..9e6ab64 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/db/migrate/20171211192257_create_users.rb @@ -0,0 +1,11 @@ +class CreateUsers < ActiveRecord::Migration[5.0] + def change + create_table :users do |t| + t.string :name + t.string :email + t.string :password_digest + + t.timestamps + end + end +end diff --git a/dylan_eckert/rails2/usersettings/db/schema.rb b/dylan_eckert/rails2/usersettings/db/schema.rb new file mode 100644 index 0000000..76f3396 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/db/schema.rb @@ -0,0 +1,26 @@ +# 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: 20171211192257) do + + # These are extensions that must be enabled in order to support this database + enable_extension "plpgsql" + + create_table "users", force: :cascade do |t| + t.string "name" + t.string "email" + t.string "password_digest" + t.datetime "created_at", null: false + t.datetime "updated_at", null: false + end + +end diff --git a/dylan_eckert/rails2/usersettings/db/seeds.rb b/dylan_eckert/rails2/usersettings/db/seeds.rb new file mode 100644 index 0000000..1beea2a --- /dev/null +++ b/dylan_eckert/rails2/usersettings/db/seeds.rb @@ -0,0 +1,7 @@ +# This file should contain all the record creation needed to seed the database with its default values. +# The data can then be loaded with the rails db:seed command (or created alongside the database with db:setup). +# +# Examples: +# +# movies = Movie.create([{ name: 'Star Wars' }, { name: 'Lord of the Rings' }]) +# Character.create(name: 'Luke', movie: movies.first) diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/controllers/.keep b/dylan_eckert/rails2/usersettings/lib/assets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/controllers/.keep rename to dylan_eckert/rails2/usersettings/lib/assets/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/fixtures/.keep b/dylan_eckert/rails2/usersettings/lib/tasks/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/fixtures/.keep rename to dylan_eckert/rails2/usersettings/lib/tasks/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/helpers/.keep b/dylan_eckert/rails2/usersettings/log/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/helpers/.keep rename to dylan_eckert/rails2/usersettings/log/.keep diff --git a/dylan_eckert/rails2/usersettings/public/404.html b/dylan_eckert/rails2/usersettings/public/404.html new file mode 100644 index 0000000..2be3af2 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/public/404.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/usersettings/public/422.html b/dylan_eckert/rails2/usersettings/public/422.html new file mode 100644 index 0000000..c08eac0 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/public/422.html @@ -0,0 +1,67 @@ + + + + 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/dylan_eckert/rails2/usersettings/public/500.html b/dylan_eckert/rails2/usersettings/public/500.html new file mode 100644 index 0000000..78a030a --- /dev/null +++ b/dylan_eckert/rails2/usersettings/public/500.html @@ -0,0 +1,66 @@ + + + + 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/Tamisha_Damas/Rails/Models /Friends(self_join)/public/apple-touch-icon-precomposed.png b/dylan_eckert/rails2/usersettings/public/apple-touch-icon-precomposed.png similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/public/apple-touch-icon-precomposed.png rename to dylan_eckert/rails2/usersettings/public/apple-touch-icon-precomposed.png diff --git a/Tamisha_Damas/Rails/Models /Friends(self_join)/public/apple-touch-icon.png b/dylan_eckert/rails2/usersettings/public/apple-touch-icon.png similarity index 100% rename from Tamisha_Damas/Rails/Models /Friends(self_join)/public/apple-touch-icon.png rename to dylan_eckert/rails2/usersettings/public/apple-touch-icon.png diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/favicon.ico b/dylan_eckert/rails2/usersettings/public/favicon.ico similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/public/favicon.ico rename to dylan_eckert/rails2/usersettings/public/favicon.ico diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/robots.txt b/dylan_eckert/rails2/usersettings/public/robots.txt similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/public/robots.txt rename to dylan_eckert/rails2/usersettings/public/robots.txt diff --git a/dylan_eckert/rails2/usersettings/spec/controllers/users_controller_spec.rb b/dylan_eckert/rails2/usersettings/spec/controllers/users_controller_spec.rb new file mode 100644 index 0000000..e2c3d3b --- /dev/null +++ b/dylan_eckert/rails2/usersettings/spec/controllers/users_controller_spec.rb @@ -0,0 +1,5 @@ +require 'rails_helper' + +RSpec.describe UsersController, type: :controller do + +end diff --git a/dylan_eckert/rails2/usersettings/spec/factories/users.rb b/dylan_eckert/rails2/usersettings/spec/factories/users.rb new file mode 100644 index 0000000..35b5824 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/spec/factories/users.rb @@ -0,0 +1,8 @@ +FactoryBot.define do + factory :user do + name "Dylan Eckert" + email "email@email.com" + password "password" + password_confirmation "password" + end +end diff --git a/dylan_eckert/rails2/usersettings/spec/helpers/sessions_helper_spec.rb b/dylan_eckert/rails2/usersettings/spec/helpers/sessions_helper_spec.rb new file mode 100644 index 0000000..9484198 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/spec/helpers/sessions_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the SessionsHelper. For example: +# +# describe SessionsHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe SessionsHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/usersettings/spec/helpers/users_helper_spec.rb b/dylan_eckert/rails2/usersettings/spec/helpers/users_helper_spec.rb new file mode 100644 index 0000000..b2e3444 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/spec/helpers/users_helper_spec.rb @@ -0,0 +1,15 @@ +require 'rails_helper' + +# Specs in this file have access to a helper object that includes +# the UsersHelper. For example: +# +# describe UsersHelper do +# describe "string concat" do +# it "concats two strings with spaces" do +# expect(helper.concat_strings("this","that")).to eq("this that") +# end +# end +# end +RSpec.describe UsersHelper, type: :helper do + pending "add some examples to (or delete) #{__FILE__}" +end diff --git a/dylan_eckert/rails2/usersettings/spec/models/user_spec.rb b/dylan_eckert/rails2/usersettings/spec/models/user_spec.rb new file mode 100644 index 0000000..648c0b2 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/spec/models/user_spec.rb @@ -0,0 +1,39 @@ +require 'rails_helper' + +RSpec.describe User, type: :model do + context "with valid attributes" do + it "should save" do + expect(build(:user)).to be_valid + end + it 'automatically encrypts the password into the password_digest attribute' do + expect(build(:user).password_digest.present?).to eq(true) + end + it 'email as lowercase' do + expect(create(:user, email: 'EMAIL@GMAIL.COM').email).to eq('email@gmail.com') + end + end + context "with invalid attributes should not save if" do + it 'name is blank' do + expect(build(:user, name: '')).to be_invalid + end + it 'email is blank' do + expect(build(:user, email: '')).to be_invalid + end + it 'email format is wrong' do + emails = %w[@ user@ @example.com] + emails.each do |email| + expect(build(:user, email: email)).to be_invalid + end + end + it 'email is not unique' do + create(:user) + expect(build(:user)).to be_invalid + end + it 'password is blank' do + expect(build(:user, password: '')).to be_invalid + end + it "password doesn't match password_confirmation" do + expect(build(:user, password_confirmation: 'notpassword')).to be_invalid + end + end +end diff --git a/dylan_eckert/rails2/usersettings/spec/rails_helper.rb b/dylan_eckert/rails2/usersettings/spec/rails_helper.rb new file mode 100644 index 0000000..c136077 --- /dev/null +++ b/dylan_eckert/rails2/usersettings/spec/rails_helper.rb @@ -0,0 +1,58 @@ +# This file is copied to spec/ when you run 'rails generate rspec:install' +require 'spec_helper' +require 'factory_bot_rails' +ENV['RAILS_ENV'] ||= 'test' +require File.expand_path('../../config/environment', __FILE__) +# Prevent database truncation if the environment is production +abort("The Rails environment is running in production mode!") if Rails.env.production? +require 'rspec/rails' +# Add additional requires below this line. Rails is not loaded until this point! + +# Requires supporting ruby files with custom matchers and macros, etc, in +# spec/support/ and its subdirectories. Files matching `spec/**/*_spec.rb` are +# run as spec files by default. This means that files in spec/support that end +# in _spec.rb will both be required and run as specs, causing the specs to be +# run twice. It is recommended that you do not name files matching this glob to +# end with _spec.rb. You can configure this pattern with the --pattern +# option on the command line or in ~/.rspec, .rspec or `.rspec-local`. +# +# The following line is provided for convenience purposes. It has the downside +# of increasing the boot-up time by auto-requiring all files in the support +# directory. Alternatively, in the individual `*_spec.rb` files, manually +# require only the support files necessary. +# +# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f } + +# Checks for pending migrations and applies them before tests are run. +# If you are not using ActiveRecord, you can remove this line. +ActiveRecord::Migration.maintain_test_schema! + +RSpec.configure do |config| + # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures + config.fixture_path = "#{::Rails.root}/spec/fixtures" + config.include FactoryBot::Syntax::Methods + # If you're not using ActiveRecord, or you'd prefer not to run each of your + # examples within a transaction, remove the following line or assign false + # instead of true. + config.use_transactional_fixtures = true + + # RSpec Rails can automatically mix in different behaviours to your tests + # based on their file location, for example enabling you to call `get` and + # `post` in specs under `spec/controllers`. + # + # You can disable this behaviour by removing the line below, and instead + # explicitly tag your specs with their type, e.g.: + # + # RSpec.describe UsersController, :type => :controller do + # # ... + # end + # + # The different available types are documented in the features, such as in + # https://relishapp.com/rspec/rspec-rails/docs + config.infer_spec_type_from_file_location! + + # Filter lines from Rails gems in backtraces. + config.filter_rails_from_backtrace! + # arbitrary gems may also be filtered via: + # config.filter_gems_from_backtrace("gem name") +end diff --git a/dylan_eckert/rails2/usersettings/spec/spec_helper.rb b/dylan_eckert/rails2/usersettings/spec/spec_helper.rb new file mode 100644 index 0000000..6bd448f --- /dev/null +++ b/dylan_eckert/rails2/usersettings/spec/spec_helper.rb @@ -0,0 +1,111 @@ +# This file was generated by the `rails generate rspec:install` command. Conventionally, all +# specs live under a `spec` directory, which RSpec adds to the `$LOAD_PATH`. +# The generated `.rspec` file contains `--require spec_helper` which will cause +# this file to always be loaded, without a need to explicitly require it in any +# files. +# +# Given that it is always loaded, you are encouraged to keep this file as +# light-weight as possible. Requiring heavyweight dependencies from this file +# will add to the boot time of your test suite on EVERY test run, even for an +# individual file that may not need all of that loaded. Instead, consider making +# a separate helper file that requires the additional dependencies and performs +# the additional setup, and require it from the spec files that actually need +# it. +# +def log_in email: "oscar@gmail.com", password: "password" + visit '/sessions/new' unless current_path == "/sessions/new" + fill_in 'Email', with: email + fill_in 'Password', with: password + click_button 'Log In' +end +# The code below should already be included in your file +RSpec.configure do |config| + config.expect_with :rspec do |expectations| + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + config.mock_with :rspec do |mocks| + mocks.verify_partial_doubles = true + end +end +# See http://rubydoc.info/gems/rspec-core/RSpec/Core/Configuration +RSpec.configure do |config| + # rspec-expectations config goes here. You can use an alternate + # assertion/expectation library such as wrong or the stdlib/minitest + # assertions if you prefer. + config.expect_with :rspec do |expectations| + # This option will default to `true` in RSpec 4. It makes the `description` + # and `failure_message` of custom matchers include text for helper methods + # defined using `chain`, e.g.: + # be_bigger_than(2).and_smaller_than(4).description + # # => "be bigger than 2 and smaller than 4" + # ...rather than: + # # => "be bigger than 2" + expectations.include_chain_clauses_in_custom_matcher_descriptions = true + end + + # rspec-mocks config goes here. You can use an alternate test double + # library (such as bogus or mocha) by changing the `mock_with` option here. + config.mock_with :rspec do |mocks| + # Prevents you from mocking or stubbing a method that does not exist on + # a real object. This is generally recommended, and will default to + # `true` in RSpec 4. + mocks.verify_partial_doubles = true + end + + # This option will default to `:apply_to_host_groups` in RSpec 4 (and will + # have no way to turn it off -- the option exists only for backwards + # compatibility in RSpec 3). It causes shared context metadata to be + # inherited by the metadata hash of host groups and examples, rather than + # triggering implicit auto-inclusion in groups with matching metadata. + config.shared_context_metadata_behavior = :apply_to_host_groups + +# The settings below are suggested to provide a good initial experience +# with RSpec, but feel free to customize to your heart's content. +=begin + # This allows you to limit a spec run to individual examples or groups + # you care about by tagging them with `:focus` metadata. When nothing + # is tagged with `:focus`, all examples get run. RSpec also provides + # aliases for `it`, `describe`, and `context` that include `:focus` + # metadata: `fit`, `fdescribe` and `fcontext`, respectively. + config.filter_run_when_matching :focus + + # Allows RSpec to persist some state between runs in order to support + # the `--only-failures` and `--next-failure` CLI options. We recommend + # you configure your source control system to ignore this file. + config.example_status_persistence_file_path = "spec/examples.txt" + + # Limits the available syntax to the non-monkey patched syntax that is + # recommended. For more details, see: + # - http://rspec.info/blog/2012/06/rspecs-new-expectation-syntax/ + # - http://www.teaisaweso.me/blog/2013/05/27/rspecs-new-message-expectation-syntax/ + # - http://rspec.info/blog/2014/05/notable-changes-in-rspec-3/#zero-monkey-patching-mode + config.disable_monkey_patching! + + # Many RSpec users commonly either run the entire suite or an individual + # file, and it's useful to allow more verbose output when running an + # individual spec file. + if config.files_to_run.one? + # Use the documentation formatter for detailed output, + # unless a formatter has already been configured + # (e.g. via a command-line flag). + config.default_formatter = "doc" + end + + # Print the 10 slowest examples and example groups at the + # end of the spec run, to help surface which specs are running + # particularly slow. + config.profile_examples = 10 + + # Run specs in random order to surface order dependencies. If you find an + # order dependency and want to debug it, you can fix the order by providing + # the seed, which is printed after each run. + # --seed 1234 + config.order = :random + + # Seed global randomization in this process using the `--seed` CLI option. + # Setting this allows you to use `--seed` to deterministically reproduce + # test failures related to randomization by passing the same `--seed` value + # as the one that triggered the failure. + Kernel.srand config.seed +=end +end diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/integration/.keep b/dylan_eckert/rails2/usersettings/test/controllers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/integration/.keep rename to dylan_eckert/rails2/usersettings/test/controllers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/mailers/.keep b/dylan_eckert/rails2/usersettings/test/fixtures/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/mailers/.keep rename to dylan_eckert/rails2/usersettings/test/fixtures/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/models/.keep b/dylan_eckert/rails2/usersettings/test/fixtures/files/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/test/models/.keep rename to dylan_eckert/rails2/usersettings/test/fixtures/files/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/vendor/assets/javascripts/.keep b/dylan_eckert/rails2/usersettings/test/helpers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/vendor/assets/javascripts/.keep rename to dylan_eckert/rails2/usersettings/test/helpers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/vendor/assets/stylesheets/.keep b/dylan_eckert/rails2/usersettings/test/integration/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /dojo_dashboard 3/vendor/assets/stylesheets/.keep rename to dylan_eckert/rails2/usersettings/test/integration/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/images/.keep b/dylan_eckert/rails2/usersettings/test/mailers/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/assets/images/.keep rename to dylan_eckert/rails2/usersettings/test/mailers/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/controllers/concerns/.keep b/dylan_eckert/rails2/usersettings/test/models/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/controllers/concerns/.keep rename to dylan_eckert/rails2/usersettings/test/models/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/test_helper.rb b/dylan_eckert/rails2/usersettings/test/test_helper.rb similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /Survey_Form/test/test_helper.rb rename to dylan_eckert/rails2/usersettings/test/test_helper.rb diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/mailers/.keep b/dylan_eckert/rails2/usersettings/tmp/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/mailers/.keep rename to dylan_eckert/rails2/usersettings/tmp/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/models/.keep b/dylan_eckert/rails2/usersettings/vendor/assets/javascripts/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/models/.keep rename to dylan_eckert/rails2/usersettings/vendor/assets/javascripts/.keep diff --git a/Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/models/concerns/.keep b/dylan_eckert/rails2/usersettings/vendor/assets/stylesheets/.keep similarity index 100% rename from Tamisha_Damas/Rails/Controllers & Views /intergrating_m/app/models/concerns/.keep rename to dylan_eckert/rails2/usersettings/vendor/assets/stylesheets/.keep diff --git a/dylan_eckert/rails2/zips/auth1.zip b/dylan_eckert/rails2/zips/auth1.zip new file mode 100644 index 0000000..930201a Binary files /dev/null and b/dylan_eckert/rails2/zips/auth1.zip differ diff --git a/dylan_eckert/rails2/zips/auth2.zip b/dylan_eckert/rails2/zips/auth2.zip new file mode 100644 index 0000000..8098525 Binary files /dev/null and b/dylan_eckert/rails2/zips/auth2.zip differ diff --git a/dylan_eckert/rails2/zips/authorization.zip b/dylan_eckert/rails2/zips/authorization.zip new file mode 100644 index 0000000..a07c39b Binary files /dev/null and b/dylan_eckert/rails2/zips/authorization.zip differ diff --git a/dylan_eckert/rails2/zips/likefeatures.zip b/dylan_eckert/rails2/zips/likefeatures.zip new file mode 100644 index 0000000..e5caf22 Binary files /dev/null and b/dylan_eckert/rails2/zips/likefeatures.zip differ diff --git a/dylan_eckert/rails2/zips/likes.zip b/dylan_eckert/rails2/zips/likes.zip new file mode 100644 index 0000000..a422f28 Binary files /dev/null and b/dylan_eckert/rails2/zips/likes.zip differ diff --git a/dylan_eckert/rails2/zips/secretfeatures.zip b/dylan_eckert/rails2/zips/secretfeatures.zip new file mode 100644 index 0000000..2ea27e5 Binary files /dev/null and b/dylan_eckert/rails2/zips/secretfeatures.zip differ diff --git a/dylan_eckert/rails2/zips/secrets.zip b/dylan_eckert/rails2/zips/secrets.zip new file mode 100644 index 0000000..80d8ba6 Binary files /dev/null and b/dylan_eckert/rails2/zips/secrets.zip differ diff --git a/dylan_eckert/rails2/zips/user.zip b/dylan_eckert/rails2/zips/user.zip new file mode 100644 index 0000000..0951441 Binary files /dev/null and b/dylan_eckert/rails2/zips/user.zip differ diff --git a/dylan_eckert/rails2/zips/userfeats.zip b/dylan_eckert/rails2/zips/userfeats.zip new file mode 100644 index 0000000..9c3edfc Binary files /dev/null and b/dylan_eckert/rails2/zips/userfeats.zip differ diff --git a/dylan_eckert/rails2/zips/usersettings.zip b/dylan_eckert/rails2/zips/usersettings.zip new file mode 100644 index 0000000..395082a Binary files /dev/null and b/dylan_eckert/rails2/zips/usersettings.zip differ diff --git a/dylan_eckert/tdd/railstdd/capybara.zip b/dylan_eckert/tdd/railstdd/capybara.zip new file mode 100644 index 0000000..2a1fc70 Binary files /dev/null and b/dylan_eckert/tdd/railstdd/capybara.zip differ diff --git a/dylan_eckert/tdd/railstdd/msa.zip b/dylan_eckert/tdd/railstdd/msa.zip new file mode 100644 index 0000000..107bd82 Binary files /dev/null and b/dylan_eckert/tdd/railstdd/msa.zip differ diff --git a/dylan_eckert/tdd/rubytdd/bank.zip b/dylan_eckert/tdd/rubytdd/bank.zip new file mode 100644 index 0000000..29e35bf Binary files /dev/null and b/dylan_eckert/tdd/rubytdd/bank.zip differ diff --git a/dylan_eckert/tdd/rubytdd/project.zip b/dylan_eckert/tdd/rubytdd/project.zip new file mode 100644 index 0000000..927a4e0 Binary files /dev/null and b/dylan_eckert/tdd/rubytdd/project.zip differ diff --git a/justin_quiros/13.rb b/justin_quiros/13.rb deleted file mode 100644 index e81ca8c..0000000 --- a/justin_quiros/13.rb +++ /dev/null @@ -1,49 +0,0 @@ -# 1 -# (1..255).each {|i| puts i} - -# 2 -# (1..255).each {|i| puts i if i.odd?} - -# 3 -# sum = 0 -# (0..255).each {|i| puts "New number: #{i} Sum: #{sum+=i}"} - -# 4 -# [1,3,5,7,9,13].each {|i| puts i} - -# 5 -# puts [-3, -5, -7].max - -# # 6 -# x = [1,2,4,3] -# puts x.reduce(:+) / x.length.to_f - -# 7 -# y = [] -# (1..255).each {|i| y.push(i) if i.odd?} -# puts y - -# 8 -# y = 1 -# arr = [4,3,2,6] -# puts arr.count {|i| y < i } - -# 9 -# arr = [1, 5, 10, -2] -# arr.map! {|i| puts i*i} - -#10 -# arr = [1, 5, 10, -2] -# puts arr.each_index { |index| arr[index] = 0 if arr[index] < 0 } - -# 11 -# arr = [1, 5, 10, -2] -# puts arr.max, arr.min, arr.reduce(:+) / arr.length.to_f - -# 12 -# arr = [1, 5, 10, 7, -2] -# puts arr.rotate!(1) - -#13 -# arr = [-1, -3, 2] -# puts arr.each_index { |i| arr[i] = "Dojo" if arr[i] < 0 } \ No newline at end of file diff --git a/justin_quiros/animals/dog.rb b/justin_quiros/animals/dog.rb deleted file mode 100644 index cb40c8c..0000000 --- a/justin_quiros/animals/dog.rb +++ /dev/null @@ -1,22 +0,0 @@ -require_relative 'mammal' -class Dog < Mammal - def pet - @health += 5 - self - end - def walk - @health -= 1 - self - end - def run - @health -= 10 - self - end - def subclass_method - display_health - end -end - -dog = Dog.new - -dog.subclass_method.walk.walk.walk.run.run.pet.subclass_method \ No newline at end of file diff --git a/justin_quiros/animals/lion.rb b/justin_quiros/animals/lion.rb deleted file mode 100644 index c4346b2..0000000 --- a/justin_quiros/animals/lion.rb +++ /dev/null @@ -1,24 +0,0 @@ -require_relative 'mammal' -class Lion < Mammal - def initialize - @health = 170 - end - def fly - @health -= 10 - self - end - def attack_town - @health -= 50 - self - end - def eat_humans - @health += 20 - self - end - def display_health - puts "This is a lion! " - super - end -end - -lion = Lion.new.display_health.attack_town.attack_town.attack_town.eat_humans.eat_humans.fly.fly.display_health \ No newline at end of file diff --git a/justin_quiros/animals/mammal.rb b/justin_quiros/animals/mammal.rb deleted file mode 100644 index 14c3bc4..0000000 --- a/justin_quiros/animals/mammal.rb +++ /dev/null @@ -1,9 +0,0 @@ -class Mammal - def initialize - @health = 150 - end - def display_health - puts "Current health: #{@health}" - self - end -end diff --git a/justin_quiros/array.rb b/justin_quiros/array.rb deleted file mode 100644 index f284e53..0000000 --- a/justin_quiros/array.rb +++ /dev/null @@ -1,15 +0,0 @@ -a = ["Justin", "Dustin", "Mike", "Corie"] -b = [5, 6, 9, 3] -c = ["Dustin", 3] -# a = %w{Justin Matt Doug} -# # x = a+b-c -# puts a.fetch(1) #displays the element of index 1 -# a. delete("Corie") #deletes corie from array -#puts a.reverse #reverses order of array -# puts "Length of a is #{a.length}" #displays length of array -#puts a.sort #sorts array alphanumerically -#puts b.sort -#a.slice!(0) #removes index 0 from array permanently -# puts a.shuffle.join(',') #randomly shuffles array and seperates with a , -# a.insert(2, "Josh") #inserts josh at index 2 -puts a.values_at(2,3).join(' and ') #puts values at index 2 and 3 and joins with an and diff --git a/justin_quiros/bank_account.rb b/justin_quiros/bank_account.rb deleted file mode 100644 index 3561604..0000000 --- a/justin_quiros/bank_account.rb +++ /dev/null @@ -1,95 +0,0 @@ -class BankAccount - @@no_of_accounts = 0 - private - @interest - - public - def initialize - create_account() - @@no_of_accounts += 1 - @check_bal = 0 - @save_bal = 0 - @interest = 0.01 - end - - def check_account_bal - return @check_bal - self - end - - def save_account_bal - return @save_bal - self - end - - def deposit(num, acct) - if acct.end_with?("savings") - @save_bal += num - self - elsif acct.end_with?("checkings") - @check_bal += num - self - else - puts "Please enter the correct account type." - self - end - end - - def withdrawl(num, acct) - if acct.end_with?("savings") - if @save_bal > num - @save_bal -= num - self - else @save_bal < num - puts "Sorry, this account has insufficient funds." - self - end - end - if acct.end_with?("checkings") - if @check_bal > num - @check_bal -= num - self - else @check_bal < num - puts "Sorry, this account has insufficient funds." - self - end - end - self - end - - def account_total - puts "Your total balance is #{@check_bal + @save_bal}" - self - end - - def self.no_of_accounts - return @@no_of_accounts - self - end - - def account_information - - puts "Account num: #{@account_num}" - puts "Total account balance: #{@check_bal + @save_bal}" - puts "Checking account balance: #{@check_bal}" - puts "Saving account balance: #{@save_bal}" - puts "Your current interest rate:" + show_interest().to_s - self - end - - private - def create_account - @account_num = Random.rand(100000..700000) - end - def show_interest - return @interest - end -end - -user1 = BankAccount.new.deposit(1000, "savings").withdrawl(20, "savings").deposit(1000, "checkings").withdrawl(100, "checkings").account_total -user1.account_information -p "This bank has " + BankAccount.no_of_accounts.to_s + " bank accounts." - - - - diff --git a/justin_quiros/bpm/.gitignore b/justin_quiros/bpm/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/bpm/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/bpm/Gemfile b/justin_quiros/bpm/Gemfile deleted file mode 100644 index 0ee61bd..0000000 --- a/justin_quiros/bpm/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' diff --git a/justin_quiros/bpm/Gemfile.lock b/justin_quiros/bpm/Gemfile.lock deleted file mode 100644 index c2e340f..0000000 --- a/justin_quiros/bpm/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/bpm/README.rdoc b/justin_quiros/bpm/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/bpm/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/bpm/Rakefile b/justin_quiros/bpm/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/app/assets/images/.keep b/justin_quiros/bpm/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/app/assets/javascripts/application.js b/justin_quiros/bpm/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/bpm/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/bpm/app/assets/stylesheets/application.css b/justin_quiros/bpm/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/bpm/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/bpm/app/controllers/application_controller.rb b/justin_quiros/bpm/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/app/controllers/concerns/.keep b/justin_quiros/bpm/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/app/helpers/application_helper.rb b/justin_quiros/bpm/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/bpm/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/bpm/app/mailers/.keep b/justin_quiros/bpm/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/app/models/.keep b/justin_quiros/bpm/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/app/models/blog.rb b/justin_quiros/bpm/app/models/blog.rb deleted file mode 100644 index 83e3a64..0000000 --- a/justin_quiros/bpm/app/models/blog.rb +++ /dev/null @@ -1,10 +0,0 @@ -class Blog < ActiveRecord::Base - - has_many :users - has_many :posts - has_many :owners - has_many :users, through: :owners - has_many :comments, as: :imageable - - validates :name, :description, presence: true -end diff --git a/justin_quiros/bpm/app/models/comment.rb b/justin_quiros/bpm/app/models/comment.rb deleted file mode 100644 index 96598ab..0000000 --- a/justin_quiros/bpm/app/models/comment.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Comment < ActiveRecord::Base - belongs_to :imageable, polymorphic: true -end diff --git a/justin_quiros/bpm/app/models/concerns/.keep b/justin_quiros/bpm/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/app/models/message.rb b/justin_quiros/bpm/app/models/message.rb deleted file mode 100644 index 3b5a974..0000000 --- a/justin_quiros/bpm/app/models/message.rb +++ /dev/null @@ -1,15 +0,0 @@ -class Message < ActiveRecord::Base - - belongs_to :post - belongs_to :user - has_many :comments, as: :imageable - - validates :author, presence: true - validates :message, length: { in: 15..1000 } -end - - -# Query I used to get messages that were on the last blog -# I connected the tables from the middle out -# Blog -> Post -> Message -# Post.joins(:messages).joins(:blog).where(blog: Blog.last) \ No newline at end of file diff --git a/justin_quiros/bpm/app/models/owner.rb b/justin_quiros/bpm/app/models/owner.rb deleted file mode 100644 index dfd7701..0000000 --- a/justin_quiros/bpm/app/models/owner.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Owner < ActiveRecord::Base - - belongs_to :user - belongs_to :blog -end diff --git a/justin_quiros/bpm/app/models/post.rb b/justin_quiros/bpm/app/models/post.rb deleted file mode 100644 index 5fd19e8..0000000 --- a/justin_quiros/bpm/app/models/post.rb +++ /dev/null @@ -1,13 +0,0 @@ -class Post < ActiveRecord::Base - - belongs_to :blog - belongs_to :user - has_many :comments, as: :imageable - - has_many :messages, :dependent => :destroy - validates :title, :content, presence: true - validates :title, length: { in: 7..1000 } -end - - -# Post.joins(:messages).joins(:blog).where(blog: Blog.last) diff --git a/justin_quiros/bpm/app/models/user.rb b/justin_quiros/bpm/app/models/user.rb deleted file mode 100644 index 2168871..0000000 --- a/justin_quiros/bpm/app/models/user.rb +++ /dev/null @@ -1,13 +0,0 @@ -class User < ActiveRecord::Base - - has_many :messages - has_many :posts - has_many :owners - has_many :blogs, through: :owners - has_many :comments, as: :imageable - - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, presence: true, length: { in: 2..20 } - validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX }, length: { in: 4..40 } - -end diff --git a/justin_quiros/bpm/app/views/layouts/application.html.erb b/justin_quiros/bpm/app/views/layouts/application.html.erb deleted file mode 100644 index 534513e..0000000 --- a/justin_quiros/bpm/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Bpm - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/bpm/bin/bundle b/justin_quiros/bpm/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/bin/rails b/justin_quiros/bpm/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/bpm/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/bpm/bin/rake b/justin_quiros/bpm/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/bpm/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/bpm/bin/setup b/justin_quiros/bpm/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/bpm/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/bpm/bin/spring b/justin_quiros/bpm/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/bpm/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/bpm/config.ru b/justin_quiros/bpm/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/application.rb b/justin_quiros/bpm/config/application.rb deleted file mode 100644 index e10519e..0000000 --- a/justin_quiros/bpm/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Bpm - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/bpm/config/boot.rb b/justin_quiros/bpm/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/bpm/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/bpm/config/database.yml b/justin_quiros/bpm/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/environment.rb b/justin_quiros/bpm/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/environments/development.rb b/justin_quiros/bpm/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/bpm/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/bpm/config/environments/production.rb b/justin_quiros/bpm/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/bpm/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/bpm/config/environments/test.rb b/justin_quiros/bpm/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/bpm/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/bpm/config/initializers/assets.rb b/justin_quiros/bpm/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/bpm/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/bpm/config/initializers/backtrace_silencers.rb b/justin_quiros/bpm/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/initializers/cookies_serializer.rb b/justin_quiros/bpm/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/bpm/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 diff --git a/justin_quiros/bpm/config/initializers/filter_parameter_logging.rb b/justin_quiros/bpm/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/initializers/inflections.rb b/justin_quiros/bpm/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/initializers/mime_types.rb b/justin_quiros/bpm/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/initializers/session_store.rb b/justin_quiros/bpm/config/initializers/session_store.rb deleted file mode 100644 index e1f9e8c..0000000 --- a/justin_quiros/bpm/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: '_bpm_session' diff --git a/justin_quiros/bpm/config/initializers/wrap_parameters.rb b/justin_quiros/bpm/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/locales/en.yml b/justin_quiros/bpm/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/config/routes.rb b/justin_quiros/bpm/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/bpm/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/bpm/config/secrets.yml b/justin_quiros/bpm/config/secrets.yml deleted file mode 100644 index 8c85ae8..0000000 --- a/justin_quiros/bpm/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: 2adcd4f35cb3dc81529333e364fabd5813be799165a74a6701653e75a59305485ae232c4fce047bbe84099d2ff757d82fffa45e1f06095763665f792af9f0625 - -test: - secret_key_base: 3a7598ecf1e015abaa8232648420dc8b608e70b8264d005763cb57e93cd510f9fd964bf10623e4fbe6e749d1197ea95eb1a47d4ca04d9b0acbaabe4b394501d0 - -# 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/justin_quiros/bpm/db/migrate/20171130134326_create_blogs.rb b/justin_quiros/bpm/db/migrate/20171130134326_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/justin_quiros/bpm/db/migrate/20171130134326_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/bpm/db/migrate/20171130134338_create_posts.rb b/justin_quiros/bpm/db/migrate/20171130134338_create_posts.rb deleted file mode 100644 index 90e2db8..0000000 --- a/justin_quiros/bpm/db/migrate/20171130134338_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/bpm/db/migrate/20171130134346_create_messages.rb b/justin_quiros/bpm/db/migrate/20171130134346_create_messages.rb deleted file mode 100644 index cf927e7..0000000 --- a/justin_quiros/bpm/db/migrate/20171130134346_create_messages.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :post, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/bpm/db/migrate/20171130165120_create_users.rb b/justin_quiros/bpm/db/migrate/20171130165120_create_users.rb deleted file mode 100644 index cc285fe..0000000 --- a/justin_quiros/bpm/db/migrate/20171130165120_create_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/bpm/db/migrate/20171130173850_create_owners.rb b/justin_quiros/bpm/db/migrate/20171130173850_create_owners.rb deleted file mode 100644 index e76114e..0000000 --- a/justin_quiros/bpm/db/migrate/20171130173850_create_owners.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateOwners < ActiveRecord::Migration - def change - create_table :owners do |t| - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/bpm/db/migrate/20171130182335_add_user_to_post.rb b/justin_quiros/bpm/db/migrate/20171130182335_add_user_to_post.rb deleted file mode 100644 index 3009ed7..0000000 --- a/justin_quiros/bpm/db/migrate/20171130182335_add_user_to_post.rb +++ /dev/null @@ -1,5 +0,0 @@ -class AddUserToPost < ActiveRecord::Migration - def change - add_reference :posts, :user, index: true, foreign_key: true - end -end diff --git a/justin_quiros/bpm/db/migrate/20171130202315_create_comments.rb b/justin_quiros/bpm/db/migrate/20171130202315_create_comments.rb deleted file mode 100644 index e8c1724..0000000 --- a/justin_quiros/bpm/db/migrate/20171130202315_create_comments.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateComments < ActiveRecord::Migration - def change - create_table :comments do |t| - t.references :imageable, polymorphic: true, index: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/bpm/db/schema.rb b/justin_quiros/bpm/db/schema.rb deleted file mode 100644 index 20e98bc..0000000 --- a/justin_quiros/bpm/db/schema.rb +++ /dev/null @@ -1,74 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130202315) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "comments", force: :cascade do |t| - t.integer "imageable_id" - t.string "imageable_type" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "comments", ["imageable_type", "imageable_id"], name: "index_comments_on_imageable_type_and_imageable_id" - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "post_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "user_id" - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - add_index "messages", ["user_id"], name: "index_messages_on_user_id" - - create_table "owners", force: :cascade do |t| - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "owners", ["blog_id"], name: "index_owners_on_blog_id" - add_index "owners", ["user_id"], name: "index_owners_on_user_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - t.integer "user_id" - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - add_index "posts", ["user_id"], name: "index_posts_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/bpm/db/seeds.rb b/justin_quiros/bpm/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/bpm/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/bpm/lib/assets/.keep b/justin_quiros/bpm/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/lib/tasks/.keep b/justin_quiros/bpm/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/log/.keep b/justin_quiros/bpm/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/public/404.html b/justin_quiros/bpm/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/public/422.html b/justin_quiros/bpm/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/public/500.html b/justin_quiros/bpm/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/bpm/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/justin_quiros/bpm/public/favicon.ico b/justin_quiros/bpm/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/public/robots.txt b/justin_quiros/bpm/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/bpm/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/bpm/test/controllers/.keep b/justin_quiros/bpm/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/test/fixtures/.keep b/justin_quiros/bpm/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/test/fixtures/blogs.yml b/justin_quiros/bpm/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/justin_quiros/bpm/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/justin_quiros/bpm/test/fixtures/comments.yml b/justin_quiros/bpm/test/fixtures/comments.yml deleted file mode 100644 index 24eee9e..0000000 --- a/justin_quiros/bpm/test/fixtures/comments.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - imageable_id: - imageable_type: Imageable - -two: - imageable_id: - imageable_type: Imageable diff --git a/justin_quiros/bpm/test/fixtures/messages.yml b/justin_quiros/bpm/test/fixtures/messages.yml deleted file mode 100644 index e3c84c8..0000000 --- a/justin_quiros/bpm/test/fixtures/messages.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - post_id: - -two: - author: MyString - message: MyText - post_id: diff --git a/justin_quiros/bpm/test/fixtures/owners.yml b/justin_quiros/bpm/test/fixtures/owners.yml deleted file mode 100644 index 99a91f2..0000000 --- a/justin_quiros/bpm/test/fixtures/owners.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user_id: - blog_id: - -two: - user_id: - blog_id: diff --git a/justin_quiros/bpm/test/fixtures/posts.yml b/justin_quiros/bpm/test/fixtures/posts.yml deleted file mode 100644 index dcc822e..0000000 --- a/justin_quiros/bpm/test/fixtures/posts.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - blog_id: - -two: - title: MyString - content: MyText - blog_id: diff --git a/justin_quiros/bpm/test/fixtures/users.yml b/justin_quiros/bpm/test/fixtures/users.yml deleted file mode 100644 index ef04625..0000000 --- a/justin_quiros/bpm/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email: MyString - -two: - first_name: MyString - last_name: MyString - email: MyString diff --git a/justin_quiros/bpm/test/helpers/.keep b/justin_quiros/bpm/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/test/integration/.keep b/justin_quiros/bpm/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/test/mailers/.keep b/justin_quiros/bpm/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/test/models/.keep b/justin_quiros/bpm/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/test/models/blog_test.rb b/justin_quiros/bpm/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/justin_quiros/bpm/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/bpm/test/models/comment_test.rb b/justin_quiros/bpm/test/models/comment_test.rb deleted file mode 100644 index b6d6131..0000000 --- a/justin_quiros/bpm/test/models/comment_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class CommentTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/bpm/test/models/message_test.rb b/justin_quiros/bpm/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/justin_quiros/bpm/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/bpm/test/models/owner_test.rb b/justin_quiros/bpm/test/models/owner_test.rb deleted file mode 100644 index d857cee..0000000 --- a/justin_quiros/bpm/test/models/owner_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class OwnerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/bpm/test/models/post_test.rb b/justin_quiros/bpm/test/models/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/justin_quiros/bpm/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/bpm/test/models/user_test.rb b/justin_quiros/bpm/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/justin_quiros/bpm/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/bpm/test/test_helper.rb b/justin_quiros/bpm/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/bpm/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/bpm/vendor/assets/javascripts/.keep b/justin_quiros/bpm/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/bpm/vendor/assets/stylesheets/.keep b/justin_quiros/bpm/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/.gitignore b/justin_quiros/demo/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/demo/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/demo/Gemfile b/justin_quiros/demo/Gemfile deleted file mode 100644 index 66c1aef..0000000 --- a/justin_quiros/demo/Gemfile +++ /dev/null @@ -1,50 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' -gem 'rails-footnotes', '>= 4.0.0', '<5' - diff --git a/justin_quiros/demo/Gemfile.lock b/justin_quiros/demo/Gemfile.lock deleted file mode 100644 index eefb285..0000000 --- a/justin_quiros/demo/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/demo/README.rdoc b/justin_quiros/demo/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/demo/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/demo/Rakefile b/justin_quiros/demo/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/app/assets/images/.keep b/justin_quiros/demo/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/app/assets/javascripts/application.js b/justin_quiros/demo/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/demo/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/demo/app/assets/stylesheets/application.css b/justin_quiros/demo/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/demo/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/demo/app/assets/stylesheets/products.scss b/justin_quiros/demo/app/assets/stylesheets/products.scss deleted file mode 100644 index 89e2e8d..0000000 --- a/justin_quiros/demo/app/assets/stylesheets/products.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the products controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/justin_quiros/demo/app/controllers/application_controller.rb b/justin_quiros/demo/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/app/controllers/concerns/.keep b/justin_quiros/demo/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/app/controllers/products_controller.rb b/justin_quiros/demo/app/controllers/products_controller.rb deleted file mode 100644 index e846287..0000000 --- a/justin_quiros/demo/app/controllers/products_controller.rb +++ /dev/null @@ -1,19 +0,0 @@ -class ProductsController < ApplicationController - def index - @products = Product.all - # render json: @products - # if errors? - # flash[:error] = "You must put a product name and description" - # redirect_to '/products' - # else - # flash[:success] = "You added a new product!" - # redirect_to '/products' - # end - - end - - def new - @product = Product.create(name: params[:name], description: params[:description]) - redirect_to '/products' - end -end diff --git a/justin_quiros/demo/app/helpers/application_helper.rb b/justin_quiros/demo/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/demo/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/demo/app/helpers/products_helper.rb b/justin_quiros/demo/app/helpers/products_helper.rb deleted file mode 100644 index ab5c42b..0000000 --- a/justin_quiros/demo/app/helpers/products_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ProductsHelper -end diff --git a/justin_quiros/demo/app/mailers/.keep b/justin_quiros/demo/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/app/models/.keep b/justin_quiros/demo/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/app/models/concerns/.keep b/justin_quiros/demo/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/app/models/product.rb b/justin_quiros/demo/app/models/product.rb deleted file mode 100644 index 077a819..0000000 --- a/justin_quiros/demo/app/models/product.rb +++ /dev/null @@ -1,2 +0,0 @@ -class Product < ActiveRecord::Base -end diff --git a/justin_quiros/demo/app/views/layouts/application.html.erb b/justin_quiros/demo/app/views/layouts/application.html.erb deleted file mode 100644 index 6de4112..0000000 --- a/justin_quiros/demo/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Demo - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/demo/app/views/products/index.html.erb b/justin_quiros/demo/app/views/products/index.html.erb deleted file mode 100644 index 39b9dc8..0000000 --- a/justin_quiros/demo/app/views/products/index.html.erb +++ /dev/null @@ -1,29 +0,0 @@ -

Products

- - - - - - - - - - <% @products.each do |product| %> - - - - - - <% end %> - -
NameDescriptionCreated At
<%= product.name %><%= product.description %><%= product.created_at %>
-
-
- - -
-
- -
- -
diff --git a/justin_quiros/demo/app/views/products/new.html.erb b/justin_quiros/demo/app/views/products/new.html.erb deleted file mode 100644 index a14e0d9..0000000 --- a/justin_quiros/demo/app/views/products/new.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Products#new

-

Find me in app/views/products/new.html.erb

diff --git a/justin_quiros/demo/bin/bundle b/justin_quiros/demo/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/bin/rails b/justin_quiros/demo/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/demo/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/demo/bin/rake b/justin_quiros/demo/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/demo/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/demo/bin/setup b/justin_quiros/demo/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/demo/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/demo/bin/spring b/justin_quiros/demo/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/demo/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/demo/config.ru b/justin_quiros/demo/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/application.rb b/justin_quiros/demo/config/application.rb deleted file mode 100644 index ecdb688..0000000 --- a/justin_quiros/demo/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Demo - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/demo/config/boot.rb b/justin_quiros/demo/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/demo/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/demo/config/database.yml b/justin_quiros/demo/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/environment.rb b/justin_quiros/demo/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/environments/development.rb b/justin_quiros/demo/config/environments/development.rb deleted file mode 100644 index 0624810..0000000 --- a/justin_quiros/demo/config/environments/development.rb +++ /dev/null @@ -1,46 +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 - - # Use the below so you don't have to shut down server everytime you make a change in your controller - config.reload_classes_only_on_change = false - - # Use the below to get rid of unwanted text in console - config.log_level = :warn - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/demo/config/environments/production.rb b/justin_quiros/demo/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/demo/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/demo/config/environments/test.rb b/justin_quiros/demo/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/demo/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/demo/config/initializers/assets.rb b/justin_quiros/demo/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/demo/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/demo/config/initializers/backtrace_silencers.rb b/justin_quiros/demo/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/initializers/cookies_serializer.rb b/justin_quiros/demo/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/demo/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 diff --git a/justin_quiros/demo/config/initializers/filter_parameter_logging.rb b/justin_quiros/demo/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/initializers/inflections.rb b/justin_quiros/demo/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/initializers/mime_types.rb b/justin_quiros/demo/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/initializers/rails_footnotes.rb b/justin_quiros/demo/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/justin_quiros/demo/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/justin_quiros/demo/config/initializers/session_store.rb b/justin_quiros/demo/config/initializers/session_store.rb deleted file mode 100644 index 27842ef..0000000 --- a/justin_quiros/demo/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: '_demo_session' diff --git a/justin_quiros/demo/config/initializers/wrap_parameters.rb b/justin_quiros/demo/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/locales/en.yml b/justin_quiros/demo/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/config/routes.rb b/justin_quiros/demo/config/routes.rb deleted file mode 100644 index 28bdd92..0000000 --- a/justin_quiros/demo/config/routes.rb +++ /dev/null @@ -1,73 +0,0 @@ -Rails.application.routes.draw do - get 'products/index' - get 'products/new' - post "products" => 'products#new' - root 'products#index' - - resources :products - - get "products" => "products#index" - get "products/new" => "products#new" - post "products" => "products#create" - get "products/:id" => "products#show" - get "products/:id/edit" => "products#edit" - patch "products/:id" => "products#update" - delete "products/:id" => "products#destroy" - - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/demo/config/secrets.yml b/justin_quiros/demo/config/secrets.yml deleted file mode 100644 index d78a5f5..0000000 --- a/justin_quiros/demo/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: b57506a4396865b961fc24e19d82d160d6f30102c00320353e7bfab882b930632cede8f49fbf904e0920580964f890bbbe61d13393365099fab53e387d5b5801 - -test: - secret_key_base: 36894e87d42fff7805e5ccd637940710790753be7a2a3e08de161be8ada0e8d5fca4fa3dab127063ed075dc7fd7d408ed171c3b39c27989d072b866786249b96 - -# 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/justin_quiros/demo/db/migrate/20171201182659_create_products.rb b/justin_quiros/demo/db/migrate/20171201182659_create_products.rb deleted file mode 100644 index 012aece..0000000 --- a/justin_quiros/demo/db/migrate/20171201182659_create_products.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateProducts < ActiveRecord::Migration - def change - create_table :products do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/demo/db/schema.rb b/justin_quiros/demo/db/schema.rb deleted file mode 100644 index 279b761..0000000 --- a/justin_quiros/demo/db/schema.rb +++ /dev/null @@ -1,23 +0,0 @@ -# encoding: UTF-8 -# 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: 20171201182659) do - - create_table "products", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/demo/db/seeds.rb b/justin_quiros/demo/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/demo/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/demo/lib/assets/.keep b/justin_quiros/demo/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/lib/tasks/.keep b/justin_quiros/demo/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/log/.keep b/justin_quiros/demo/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/public/404.html b/justin_quiros/demo/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/public/422.html b/justin_quiros/demo/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/public/500.html b/justin_quiros/demo/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/demo/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/justin_quiros/demo/public/favicon.ico b/justin_quiros/demo/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/public/robots.txt b/justin_quiros/demo/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/demo/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/demo/test/controllers/.keep b/justin_quiros/demo/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/test/controllers/products_controller_test.rb b/justin_quiros/demo/test/controllers/products_controller_test.rb deleted file mode 100644 index d97d2ba..0000000 --- a/justin_quiros/demo/test/controllers/products_controller_test.rb +++ /dev/null @@ -1,14 +0,0 @@ -require 'test_helper' - -class ProductsControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get new" do - get :new - assert_response :success - end - -end diff --git a/justin_quiros/demo/test/fixtures/.keep b/justin_quiros/demo/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/test/fixtures/products.yml b/justin_quiros/demo/test/fixtures/products.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/justin_quiros/demo/test/fixtures/products.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/justin_quiros/demo/test/helpers/.keep b/justin_quiros/demo/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/test/integration/.keep b/justin_quiros/demo/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/test/mailers/.keep b/justin_quiros/demo/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/test/models/.keep b/justin_quiros/demo/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/test/models/product_test.rb b/justin_quiros/demo/test/models/product_test.rb deleted file mode 100644 index 211cdd0..0000000 --- a/justin_quiros/demo/test/models/product_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class ProductTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/demo/test/test_helper.rb b/justin_quiros/demo/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/demo/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/demo/vendor/assets/javascripts/.keep b/justin_quiros/demo/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/demo/vendor/assets/stylesheets/.keep b/justin_quiros/demo/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/.gitignore b/justin_quiros/display/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/display/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/display/Gemfile b/justin_quiros/display/Gemfile deleted file mode 100644 index acc0432..0000000 --- a/justin_quiros/display/Gemfile +++ /dev/null @@ -1,50 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -gem 'hirb' -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -gem 'rails-footnotes', '>= 4.0.0', '<5' - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/justin_quiros/display/Gemfile.lock b/justin_quiros/display/Gemfile.lock deleted file mode 100644 index eefb285..0000000 --- a/justin_quiros/display/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (>= 4.0.0, < 5) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/display/README.rdoc b/justin_quiros/display/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/display/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/display/Rakefile b/justin_quiros/display/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/display/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/justin_quiros/display/app/assets/images/.keep b/justin_quiros/display/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/app/assets/javascripts/application.js b/justin_quiros/display/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/display/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/display/app/assets/stylesheets/application.css b/justin_quiros/display/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/display/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/display/app/assets/stylesheets/times.scss b/justin_quiros/display/app/assets/stylesheets/times.scss deleted file mode 100644 index 8aca602..0000000 --- a/justin_quiros/display/app/assets/stylesheets/times.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Times controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/justin_quiros/display/app/controllers/application_controller.rb b/justin_quiros/display/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/display/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/justin_quiros/display/app/controllers/concerns/.keep b/justin_quiros/display/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/app/controllers/times_controller.rb b/justin_quiros/display/app/controllers/times_controller.rb deleted file mode 100644 index 1a43f93..0000000 --- a/justin_quiros/display/app/controllers/times_controller.rb +++ /dev/null @@ -1,6 +0,0 @@ -class TimesController < ApplicationController - def main - @date = Time.now.strftime("%m/%d/%Y") - @time = Time.now.strftime("%H:%M:%S") - end -end diff --git a/justin_quiros/display/app/helpers/application_helper.rb b/justin_quiros/display/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/display/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/display/app/helpers/times_helper.rb b/justin_quiros/display/app/helpers/times_helper.rb deleted file mode 100644 index db171a4..0000000 --- a/justin_quiros/display/app/helpers/times_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module TimesHelper -end diff --git a/justin_quiros/display/app/mailers/.keep b/justin_quiros/display/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/app/models/.keep b/justin_quiros/display/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/app/models/concerns/.keep b/justin_quiros/display/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/app/views/layouts/application.html.erb b/justin_quiros/display/app/views/layouts/application.html.erb deleted file mode 100644 index 6f0044c..0000000 --- a/justin_quiros/display/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Display - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/display/app/views/times/main.html.erb b/justin_quiros/display/app/views/times/main.html.erb deleted file mode 100644 index c67cc27..0000000 --- a/justin_quiros/display/app/views/times/main.html.erb +++ /dev/null @@ -1,3 +0,0 @@ -

The current time and date:

-

<%= @date %>

-

<%= @time %>

diff --git a/justin_quiros/display/bin/bundle b/justin_quiros/display/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/display/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/justin_quiros/display/bin/rails b/justin_quiros/display/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/display/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/display/bin/rake b/justin_quiros/display/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/display/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/display/bin/setup b/justin_quiros/display/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/display/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/display/bin/spring b/justin_quiros/display/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/display/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/display/config.ru b/justin_quiros/display/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/application.rb b/justin_quiros/display/config/application.rb deleted file mode 100644 index 04a7b99..0000000 --- a/justin_quiros/display/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Display - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/display/config/boot.rb b/justin_quiros/display/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/display/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/display/config/database.yml b/justin_quiros/display/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/environment.rb b/justin_quiros/display/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/environments/development.rb b/justin_quiros/display/config/environments/development.rb deleted file mode 100644 index b9b130c..0000000 --- a/justin_quiros/display/config/environments/development.rb +++ /dev/null @@ -1,48 +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 - - - # Use the below so you don't have to shut down server everytime you make a change in your controller - config.reload_classes_only_on_change = false - - # Use the below to get rid of unwanted text in console - config.log_level = :warn - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/display/config/environments/production.rb b/justin_quiros/display/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/display/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/display/config/environments/test.rb b/justin_quiros/display/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/display/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/display/config/initializers/assets.rb b/justin_quiros/display/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/display/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/display/config/initializers/backtrace_silencers.rb b/justin_quiros/display/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/initializers/cookies_serializer.rb b/justin_quiros/display/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/display/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 diff --git a/justin_quiros/display/config/initializers/filter_parameter_logging.rb b/justin_quiros/display/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/initializers/inflections.rb b/justin_quiros/display/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/initializers/mime_types.rb b/justin_quiros/display/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/initializers/session_store.rb b/justin_quiros/display/config/initializers/session_store.rb deleted file mode 100644 index a9cccfc..0000000 --- a/justin_quiros/display/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: '_display_session' diff --git a/justin_quiros/display/config/initializers/wrap_parameters.rb b/justin_quiros/display/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/locales/en.yml b/justin_quiros/display/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/display/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/justin_quiros/display/config/routes.rb b/justin_quiros/display/config/routes.rb deleted file mode 100644 index ff97cf0..0000000 --- a/justin_quiros/display/config/routes.rb +++ /dev/null @@ -1,60 +0,0 @@ -Rails.application.routes.draw do - get 'times/main' - - get '/' => 'times#main' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/display/config/secrets.yml b/justin_quiros/display/config/secrets.yml deleted file mode 100644 index a640577..0000000 --- a/justin_quiros/display/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: 0848331822edc2ce6a66f09bc831e2a98431c74a386bdf4097a27635e026cb388d8326f73d2da1bc79428e966e6e7b00b71762fade69d885d693eb3314737538 - -test: - secret_key_base: e08455af1dd3f09a85b6c6029fb6fe0e131017cc20deec04a10d5b27e8a2100bf2f04b025abb4d3868dc581df6db15f49ebf0819abc26e697a5be430fcf5401f - -# 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/justin_quiros/display/db/seeds.rb b/justin_quiros/display/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/display/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/display/lib/assets/.keep b/justin_quiros/display/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/lib/tasks/.keep b/justin_quiros/display/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/log/.keep b/justin_quiros/display/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/public/404.html b/justin_quiros/display/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/display/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/justin_quiros/display/public/422.html b/justin_quiros/display/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/display/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/justin_quiros/display/public/500.html b/justin_quiros/display/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/display/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/justin_quiros/display/public/favicon.ico b/justin_quiros/display/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/public/robots.txt b/justin_quiros/display/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/display/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/display/test/controllers/.keep b/justin_quiros/display/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/test/controllers/times_controller_test.rb b/justin_quiros/display/test/controllers/times_controller_test.rb deleted file mode 100644 index 649dafa..0000000 --- a/justin_quiros/display/test/controllers/times_controller_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -class TimesControllerTest < ActionController::TestCase - test "should get main" do - get :main - assert_response :success - end - -end diff --git a/justin_quiros/display/test/fixtures/.keep b/justin_quiros/display/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/test/helpers/.keep b/justin_quiros/display/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/test/integration/.keep b/justin_quiros/display/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/test/mailers/.keep b/justin_quiros/display/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/test/models/.keep b/justin_quiros/display/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/test/test_helper.rb b/justin_quiros/display/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/display/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/display/vendor/assets/javascripts/.keep b/justin_quiros/display/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/display/vendor/assets/stylesheets/.keep b/justin_quiros/display/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/.gitignore b/justin_quiros/dojo_dashboard/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/dojo_dashboard/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/dojo_dashboard/Gemfile b/justin_quiros/dojo_dashboard/Gemfile deleted file mode 100644 index 53b91be..0000000 --- a/justin_quiros/dojo_dashboard/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -gem 'hirb' -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/justin_quiros/dojo_dashboard/Gemfile.lock b/justin_quiros/dojo_dashboard/Gemfile.lock deleted file mode 100644 index 69988e1..0000000 --- a/justin_quiros/dojo_dashboard/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.1) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/dojo_dashboard/README.rdoc b/justin_quiros/dojo_dashboard/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/dojo_dashboard/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/dojo_dashboard/Rakefile b/justin_quiros/dojo_dashboard/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/app/assets/images/.keep b/justin_quiros/dojo_dashboard/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/app/assets/javascripts/application.js b/justin_quiros/dojo_dashboard/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/dojo_dashboard/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/dojo_dashboard/app/assets/stylesheets/application.css b/justin_quiros/dojo_dashboard/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/dojo_dashboard/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/dojo_dashboard/app/assets/stylesheets/dojos.scss b/justin_quiros/dojo_dashboard/app/assets/stylesheets/dojos.scss deleted file mode 100644 index fb30922..0000000 --- a/justin_quiros/dojo_dashboard/app/assets/stylesheets/dojos.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Dojos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/justin_quiros/dojo_dashboard/app/controllers/application_controller.rb b/justin_quiros/dojo_dashboard/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/app/controllers/concerns/.keep b/justin_quiros/dojo_dashboard/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/app/controllers/dojos_controller.rb b/justin_quiros/dojo_dashboard/app/controllers/dojos_controller.rb deleted file mode 100644 index 1e9cbed..0000000 --- a/justin_quiros/dojo_dashboard/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,54 +0,0 @@ -class DojosController < ApplicationController - def index - @dojos = Dojo.all - end - - def new - @dojo = Dojo.new - end - - def create - # session[:form] = form_params - @dojo = Dojo.new(form_params) - if @dojo.save - flash[:success] = "You have successfully created a Dojo!" - redirect_to dojos_path - else - flash[:errors] = @dojo.errors.full_messages - redirect_to dojos_new_path - end - end - - def show - @dojo = Dojo.find(params[:id]) - end - - def edit - @dojo = Dojo.find(params[:id]) - - end - - def update - dojo = Dojo.find(params[:id]) - - if dojo.update(form_params) - flash[:success] = "You have successfully updated a Dojo!" - redirect_to dojos_path - else - flash[:errors] = dojo.errors.full_messages - redirect_to :back - end - end - - def destroy - dojo = Dojo.find(params[:id]) - dojo.destroy - redirect_to dojos_path - end - - private - def form_params - params.require(:form).permit(:branch, :street, :city, :state) - end -end - \ No newline at end of file diff --git a/justin_quiros/dojo_dashboard/app/helpers/application_helper.rb b/justin_quiros/dojo_dashboard/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/dojo_dashboard/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/dojo_dashboard/app/helpers/dojos_helper.rb b/justin_quiros/dojo_dashboard/app/helpers/dojos_helper.rb deleted file mode 100644 index 194211a..0000000 --- a/justin_quiros/dojo_dashboard/app/helpers/dojos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DojosHelper -end diff --git a/justin_quiros/dojo_dashboard/app/mailers/.keep b/justin_quiros/dojo_dashboard/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/app/models/.keep b/justin_quiros/dojo_dashboard/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/app/models/concerns/.keep b/justin_quiros/dojo_dashboard/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/app/models/dojo.rb b/justin_quiros/dojo_dashboard/app/models/dojo.rb deleted file mode 100644 index b387055..0000000 --- a/justin_quiros/dojo_dashboard/app/models/dojo.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Dojo < ActiveRecord::Base - validates :branch, :street, :city, presence: true, length: { in: 2..40 } - validates :state, presence: true, length: { is: 2 } -end diff --git a/justin_quiros/dojo_dashboard/app/views/dojos/edit.html.erb b/justin_quiros/dojo_dashboard/app/views/dojos/edit.html.erb deleted file mode 100644 index db49cfa..0000000 --- a/justin_quiros/dojo_dashboard/app/views/dojos/edit.html.erb +++ /dev/null @@ -1,21 +0,0 @@ -

Editing <%= @dojo.city %>

-<% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> -<% end %> -
- - -

-

-

-

-

-

-

-

- -
- -

Home | Show \ No newline at end of file diff --git a/justin_quiros/dojo_dashboard/app/views/dojos/index.html.erb b/justin_quiros/dojo_dashboard/app/views/dojos/index.html.erb deleted file mode 100644 index 4cf6445..0000000 --- a/justin_quiros/dojo_dashboard/app/views/dojos/index.html.erb +++ /dev/null @@ -1,36 +0,0 @@ - -

Listing <%= @dojos.count %> Dojos

-<% if flash[:success] %> -

<%= flash[:success] %>

-<% end %> - - - - - - - - - - - - <% @dojos.each do |dojo| %> - - - - - - - - - <% end %> - -
Coding Dojo BranchStreetCityStateActions
<%= dojo.branch %> - <%= dojo.street %> - <%= dojo.city %> - <%= dojo.state %> - ShowEdit -
- -
-

New Dojo

diff --git a/justin_quiros/dojo_dashboard/app/views/dojos/new.html.erb b/justin_quiros/dojo_dashboard/app/views/dojos/new.html.erb deleted file mode 100644 index fe85395..0000000 --- a/justin_quiros/dojo_dashboard/app/views/dojos/new.html.erb +++ /dev/null @@ -1,20 +0,0 @@ -

New Dojo

-<% if flash[:errors] %> - <% flash[:errors].each do |error| %> -

<%= error %>

- <% end %> -<% end %> -
- -

-

-

-

-

-

-

-

- -
- -

Go Back

\ No newline at end of file diff --git a/justin_quiros/dojo_dashboard/app/views/dojos/show.html.erb b/justin_quiros/dojo_dashboard/app/views/dojos/show.html.erb deleted file mode 100644 index e6c4a19..0000000 --- a/justin_quiros/dojo_dashboard/app/views/dojos/show.html.erb +++ /dev/null @@ -1,4 +0,0 @@ -

<%= @dojo.city %> Dojo

-
Address: <%= @dojo.street %>
-
City: <%= @dojo.city %>
-Home | Edit \ No newline at end of file diff --git a/justin_quiros/dojo_dashboard/app/views/layouts/application.html.erb b/justin_quiros/dojo_dashboard/app/views/layouts/application.html.erb deleted file mode 100644 index 0a5ffc5..0000000 --- a/justin_quiros/dojo_dashboard/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoDashboard - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/dojo_dashboard/bin/bundle b/justin_quiros/dojo_dashboard/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/bin/rails b/justin_quiros/dojo_dashboard/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/dojo_dashboard/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/dojo_dashboard/bin/rake b/justin_quiros/dojo_dashboard/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/dojo_dashboard/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/dojo_dashboard/bin/setup b/justin_quiros/dojo_dashboard/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/dojo_dashboard/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/dojo_dashboard/bin/spring b/justin_quiros/dojo_dashboard/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/dojo_dashboard/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/dojo_dashboard/config.ru b/justin_quiros/dojo_dashboard/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/application.rb b/justin_quiros/dojo_dashboard/config/application.rb deleted file mode 100644 index 0e5ac64..0000000 --- a/justin_quiros/dojo_dashboard/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoDashboard - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/dojo_dashboard/config/boot.rb b/justin_quiros/dojo_dashboard/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/dojo_dashboard/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/dojo_dashboard/config/database.yml b/justin_quiros/dojo_dashboard/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/environment.rb b/justin_quiros/dojo_dashboard/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/environments/development.rb b/justin_quiros/dojo_dashboard/config/environments/development.rb deleted file mode 100644 index 587a52e..0000000 --- a/justin_quiros/dojo_dashboard/config/environments/development.rb +++ /dev/null @@ -1,47 +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 - - # Use the below so you don't have to shut down server everytime you make a change in your controller - config.reload_classes_only_on_change = false - - # Use the below to get rid of unwanted text in console - config.log_level = :warn - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/dojo_dashboard/config/environments/production.rb b/justin_quiros/dojo_dashboard/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/dojo_dashboard/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/dojo_dashboard/config/environments/test.rb b/justin_quiros/dojo_dashboard/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/dojo_dashboard/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/dojo_dashboard/config/initializers/assets.rb b/justin_quiros/dojo_dashboard/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/dojo_dashboard/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/dojo_dashboard/config/initializers/backtrace_silencers.rb b/justin_quiros/dojo_dashboard/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/initializers/cookies_serializer.rb b/justin_quiros/dojo_dashboard/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/dojo_dashboard/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 diff --git a/justin_quiros/dojo_dashboard/config/initializers/filter_parameter_logging.rb b/justin_quiros/dojo_dashboard/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/initializers/inflections.rb b/justin_quiros/dojo_dashboard/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/initializers/mime_types.rb b/justin_quiros/dojo_dashboard/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/initializers/session_store.rb b/justin_quiros/dojo_dashboard/config/initializers/session_store.rb deleted file mode 100644 index d8522bf..0000000 --- a/justin_quiros/dojo_dashboard/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: '_dojo_dashboard_session' diff --git a/justin_quiros/dojo_dashboard/config/initializers/wrap_parameters.rb b/justin_quiros/dojo_dashboard/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/locales/en.yml b/justin_quiros/dojo_dashboard/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/config/routes.rb b/justin_quiros/dojo_dashboard/config/routes.rb deleted file mode 100644 index 445e575..0000000 --- a/justin_quiros/dojo_dashboard/config/routes.rb +++ /dev/null @@ -1,65 +0,0 @@ -Rails.application.routes.draw do - - get "dojos" => 'dojos#index' - get "dojos/new" => 'dojos#new' - post "dojos/create" => 'dojos#create' - get "dojos/:id" => 'dojos#show' - get "dojos/:id/edit" => 'dojos#edit' - patch "dojos/:id/edit" => 'dojos#update' - delete "dojos/:id" => 'dojos#destroy' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/dojo_dashboard/config/secrets.yml b/justin_quiros/dojo_dashboard/config/secrets.yml deleted file mode 100644 index 9430dc1..0000000 --- a/justin_quiros/dojo_dashboard/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: 7a7a0f859c51b032b28d214542e690851cef105ada0a6cc7e519bf2e31af064242291f1cfbca7683ffe20142f7ddc087aeb6a5f4ecc7f0eee1c987296602dd9c - -test: - secret_key_base: d38d67298b102b67cfeaffd5ac59a542943eb1c2c1fc5b2950180355da39164ea4b577a463c59e5eb11c8dab727b7a7c19e65d80f2d5f40d6b586f4f748d2238 - -# 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/justin_quiros/dojo_dashboard/db/migrate/20171203234313_create_dojos.rb b/justin_quiros/dojo_dashboard/db/migrate/20171203234313_create_dojos.rb deleted file mode 100644 index 0df8b3d..0000000 --- a/justin_quiros/dojo_dashboard/db/migrate/20171203234313_create_dojos.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :branch - t.string :street - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/dojo_dashboard/db/schema.rb b/justin_quiros/dojo_dashboard/db/schema.rb deleted file mode 100644 index d15f0de..0000000 --- a/justin_quiros/dojo_dashboard/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171203234313) do - - create_table "dojos", force: :cascade do |t| - t.string "branch" - t.string "street" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/dojo_dashboard/db/seeds.rb b/justin_quiros/dojo_dashboard/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/dojo_dashboard/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/dojo_dashboard/lib/assets/.keep b/justin_quiros/dojo_dashboard/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/lib/tasks/.keep b/justin_quiros/dojo_dashboard/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/log/.keep b/justin_quiros/dojo_dashboard/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/public/404.html b/justin_quiros/dojo_dashboard/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/public/422.html b/justin_quiros/dojo_dashboard/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/public/500.html b/justin_quiros/dojo_dashboard/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/dojo_dashboard/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/justin_quiros/dojo_dashboard/public/favicon.ico b/justin_quiros/dojo_dashboard/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/public/robots.txt b/justin_quiros/dojo_dashboard/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/dojo_dashboard/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/dojo_dashboard/test/controllers/.keep b/justin_quiros/dojo_dashboard/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/test/controllers/dojos_controller_test.rb b/justin_quiros/dojo_dashboard/test/controllers/dojos_controller_test.rb deleted file mode 100644 index 3c565bf..0000000 --- a/justin_quiros/dojo_dashboard/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - -end diff --git a/justin_quiros/dojo_dashboard/test/fixtures/.keep b/justin_quiros/dojo_dashboard/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/test/fixtures/dojos.yml b/justin_quiros/dojo_dashboard/test/fixtures/dojos.yml deleted file mode 100644 index 215263e..0000000 --- a/justin_quiros/dojo_dashboard/test/fixtures/dojos.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - branch: MyString - street: MyString - city: MyString - state: MyString - -two: - branch: MyString - street: MyString - city: MyString - state: MyString diff --git a/justin_quiros/dojo_dashboard/test/helpers/.keep b/justin_quiros/dojo_dashboard/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/test/integration/.keep b/justin_quiros/dojo_dashboard/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/test/mailers/.keep b/justin_quiros/dojo_dashboard/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/test/models/.keep b/justin_quiros/dojo_dashboard/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/test/models/dojo_test.rb b/justin_quiros/dojo_dashboard/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/justin_quiros/dojo_dashboard/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/dojo_dashboard/test/test_helper.rb b/justin_quiros/dojo_dashboard/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/dojo_dashboard/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/dojo_dashboard/vendor/assets/javascripts/.keep b/justin_quiros/dojo_dashboard/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_dashboard/vendor/assets/stylesheets/.keep b/justin_quiros/dojo_dashboard/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/.gitignore b/justin_quiros/dojo_ninjas/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/dojo_ninjas/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/dojo_ninjas/Gemfile b/justin_quiros/dojo_ninjas/Gemfile deleted file mode 100644 index 0ee61bd..0000000 --- a/justin_quiros/dojo_ninjas/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' diff --git a/justin_quiros/dojo_ninjas/Gemfile.lock b/justin_quiros/dojo_ninjas/Gemfile.lock deleted file mode 100644 index c2e340f..0000000 --- a/justin_quiros/dojo_ninjas/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/dojo_ninjas/README.rdoc b/justin_quiros/dojo_ninjas/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/dojo_ninjas/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/dojo_ninjas/Rakefile b/justin_quiros/dojo_ninjas/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/app/assets/images/.keep b/justin_quiros/dojo_ninjas/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/app/assets/javascripts/application.js b/justin_quiros/dojo_ninjas/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/dojo_ninjas/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/dojo_ninjas/app/assets/stylesheets/application.css b/justin_quiros/dojo_ninjas/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/dojo_ninjas/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/dojo_ninjas/app/controllers/application_controller.rb b/justin_quiros/dojo_ninjas/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/app/controllers/concerns/.keep b/justin_quiros/dojo_ninjas/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/app/helpers/application_helper.rb b/justin_quiros/dojo_ninjas/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/dojo_ninjas/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/dojo_ninjas/app/mailers/.keep b/justin_quiros/dojo_ninjas/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/app/models/.keep b/justin_quiros/dojo_ninjas/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/app/models/concerns/.keep b/justin_quiros/dojo_ninjas/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/app/models/dojo.rb b/justin_quiros/dojo_ninjas/app/models/dojo.rb deleted file mode 100644 index a4a2e9a..0000000 --- a/justin_quiros/dojo_ninjas/app/models/dojo.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Dojo < ActiveRecord::Base - validates :name, :city, :state, presence: true, length: { in: 2..40 } - has_many :ninjas, :dependent => :nullify -end diff --git a/justin_quiros/dojo_ninjas/app/models/ninja.rb b/justin_quiros/dojo_ninjas/app/models/ninja.rb deleted file mode 100644 index 8ea043e..0000000 --- a/justin_quiros/dojo_ninjas/app/models/ninja.rb +++ /dev/null @@ -1,8 +0,0 @@ -class Ninja < ActiveRecord::Base - validates :first_name, :last_name, presence: true, length: { in: 2..20 } - belongs_to :dojo - - def name - self.first_name - end -end diff --git a/justin_quiros/dojo_ninjas/app/views/layouts/application.html.erb b/justin_quiros/dojo_ninjas/app/views/layouts/application.html.erb deleted file mode 100644 index 40d7e51..0000000 --- a/justin_quiros/dojo_ninjas/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoNinjas - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/dojo_ninjas/bin/bundle b/justin_quiros/dojo_ninjas/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/bin/rails b/justin_quiros/dojo_ninjas/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/dojo_ninjas/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/dojo_ninjas/bin/rake b/justin_quiros/dojo_ninjas/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/dojo_ninjas/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/dojo_ninjas/bin/setup b/justin_quiros/dojo_ninjas/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/dojo_ninjas/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/dojo_ninjas/bin/spring b/justin_quiros/dojo_ninjas/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/dojo_ninjas/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/dojo_ninjas/config.ru b/justin_quiros/dojo_ninjas/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/application.rb b/justin_quiros/dojo_ninjas/config/application.rb deleted file mode 100644 index 156a9d5..0000000 --- a/justin_quiros/dojo_ninjas/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoNinjas - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/dojo_ninjas/config/boot.rb b/justin_quiros/dojo_ninjas/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/dojo_ninjas/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/dojo_ninjas/config/database.yml b/justin_quiros/dojo_ninjas/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/environment.rb b/justin_quiros/dojo_ninjas/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/environments/development.rb b/justin_quiros/dojo_ninjas/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/dojo_ninjas/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/dojo_ninjas/config/environments/production.rb b/justin_quiros/dojo_ninjas/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/dojo_ninjas/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/dojo_ninjas/config/environments/test.rb b/justin_quiros/dojo_ninjas/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/dojo_ninjas/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/dojo_ninjas/config/initializers/assets.rb b/justin_quiros/dojo_ninjas/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/dojo_ninjas/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/dojo_ninjas/config/initializers/backtrace_silencers.rb b/justin_quiros/dojo_ninjas/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/initializers/cookies_serializer.rb b/justin_quiros/dojo_ninjas/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/dojo_ninjas/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 diff --git a/justin_quiros/dojo_ninjas/config/initializers/filter_parameter_logging.rb b/justin_quiros/dojo_ninjas/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/initializers/inflections.rb b/justin_quiros/dojo_ninjas/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/initializers/mime_types.rb b/justin_quiros/dojo_ninjas/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/initializers/session_store.rb b/justin_quiros/dojo_ninjas/config/initializers/session_store.rb deleted file mode 100644 index 313a66f..0000000 --- a/justin_quiros/dojo_ninjas/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: '_dojo_ninjas_session' diff --git a/justin_quiros/dojo_ninjas/config/initializers/wrap_parameters.rb b/justin_quiros/dojo_ninjas/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/locales/en.yml b/justin_quiros/dojo_ninjas/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/config/routes.rb b/justin_quiros/dojo_ninjas/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/dojo_ninjas/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/dojo_ninjas/config/secrets.yml b/justin_quiros/dojo_ninjas/config/secrets.yml deleted file mode 100644 index f601568..0000000 --- a/justin_quiros/dojo_ninjas/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: 2fead8c0015a4c6e45ee7540187a08c56e04e30750265e2ebe3fe9a9b6980c3779f6d8485d17e27df94756804b44b3fab335a0e7627970c6e8d4091448894469 - -test: - secret_key_base: 5d3c5279179ad94c7882f1c1ab12d5e8c9ab9e49c3f2fed458bccd0e12b10dcca462204027230e5fe39ea5af1d8590f8846898145d45738d8be4d5cb082adb27 - -# 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/justin_quiros/dojo_ninjas/db/migrate/20171129204110_create_dojos.rb b/justin_quiros/dojo_ninjas/db/migrate/20171129204110_create_dojos.rb deleted file mode 100644 index ece0705..0000000 --- a/justin_quiros/dojo_ninjas/db/migrate/20171129204110_create_dojos.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :name - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/dojo_ninjas/db/migrate/20171129204212_create_ninjas.rb b/justin_quiros/dojo_ninjas/db/migrate/20171129204212_create_ninjas.rb deleted file mode 100644 index 8334127..0000000 --- a/justin_quiros/dojo_ninjas/db/migrate/20171129204212_create_ninjas.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateNinjas < ActiveRecord::Migration - def change - create_table :ninjas do |t| - t.string :first_name - t.string :last_name - t.references :dojo, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/dojo_ninjas/db/schema.rb b/justin_quiros/dojo_ninjas/db/schema.rb deleted file mode 100644 index e57fb30..0000000 --- a/justin_quiros/dojo_ninjas/db/schema.rb +++ /dev/null @@ -1,34 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129204212) do - - create_table "dojos", force: :cascade do |t| - t.string "name" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "ninjas", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.integer "dojo_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "ninjas", ["dojo_id"], name: "index_ninjas_on_dojo_id" - -end diff --git a/justin_quiros/dojo_ninjas/db/seeds.rb b/justin_quiros/dojo_ninjas/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/dojo_ninjas/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/dojo_ninjas/lib/assets/.keep b/justin_quiros/dojo_ninjas/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/lib/tasks/.keep b/justin_quiros/dojo_ninjas/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/log/.keep b/justin_quiros/dojo_ninjas/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/public/404.html b/justin_quiros/dojo_ninjas/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/public/422.html b/justin_quiros/dojo_ninjas/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/public/500.html b/justin_quiros/dojo_ninjas/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/dojo_ninjas/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/justin_quiros/dojo_ninjas/public/favicon.ico b/justin_quiros/dojo_ninjas/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/public/robots.txt b/justin_quiros/dojo_ninjas/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/dojo_ninjas/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/dojo_ninjas/test/controllers/.keep b/justin_quiros/dojo_ninjas/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/test/fixtures/.keep b/justin_quiros/dojo_ninjas/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/test/fixtures/dojos.yml b/justin_quiros/dojo_ninjas/test/fixtures/dojos.yml deleted file mode 100644 index 07bb5b1..0000000 --- a/justin_quiros/dojo_ninjas/test/fixtures/dojos.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - city: MyString - state: MyString - -two: - name: MyString - city: MyString - state: MyString diff --git a/justin_quiros/dojo_ninjas/test/fixtures/ninjas.yml b/justin_quiros/dojo_ninjas/test/fixtures/ninjas.yml deleted file mode 100644 index ddd337f..0000000 --- a/justin_quiros/dojo_ninjas/test/fixtures/ninjas.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - dojo_id: - -two: - first_name: MyString - last_name: MyString - dojo_id: diff --git a/justin_quiros/dojo_ninjas/test/helpers/.keep b/justin_quiros/dojo_ninjas/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/test/integration/.keep b/justin_quiros/dojo_ninjas/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/test/mailers/.keep b/justin_quiros/dojo_ninjas/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/test/models/.keep b/justin_quiros/dojo_ninjas/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/test/models/dojo_test.rb b/justin_quiros/dojo_ninjas/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/justin_quiros/dojo_ninjas/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/dojo_ninjas/test/models/ninja_test.rb b/justin_quiros/dojo_ninjas/test/models/ninja_test.rb deleted file mode 100644 index d21c152..0000000 --- a/justin_quiros/dojo_ninjas/test/models/ninja_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class NinjaTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/dojo_ninjas/test/test_helper.rb b/justin_quiros/dojo_ninjas/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/dojo_ninjas/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/dojo_ninjas/vendor/assets/javascripts/.keep b/justin_quiros/dojo_ninjas/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/dojo_ninjas/vendor/assets/stylesheets/.keep b/justin_quiros/dojo_ninjas/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/exercise1.rb b/justin_quiros/exercise1.rb deleted file mode 100644 index 3104064..0000000 --- a/justin_quiros/exercise1.rb +++ /dev/null @@ -1,90 +0,0 @@ -=begin - - -This is how you -comment out multiple lines. - -=end - - - - - -# first_name = "Justin" -# last_name = "Quiros" - -# # puts "Your name is " +first_name+" "+last_name -# # puts "First name is #{first_name} and last name is #{last_name}" -# # puts "First name is %s and last name is %s" % [first_name, last_name] -# z = 50 -# puts "Value of z is #{z}" -# puts "Value of z is %d" % z - -# puts "I am 6'1\" tall" - -# # puts "hello" -# # puts "Coding" -# # puts "Dojo" - -# # # print "hello" -# # print "Coding" -# x = 5 -# y = 10 -# z = x+y - -# puts z - - -# BEGIN { -# puts "this runs before my puts" -# } - -# END { -# puts "this runs after my puts" -# } - -# class CodingDojo -# @@no_of_branches = 0 -# def initialize(id, name, address) -# @branch_id = id -# @branch_name = name -# @branch_address = address -# @@no_of_branches += 1 -# puts "Created branch #{@@no_of_branches}" -# end -# def hello -# puts "Hello CodingDojo!" -# end -# def display_all -# puts "Branch ID: #{@branch_id}" -# puts "Branch name: #{@branch_name}" -# puts "Branch address: #{@branch_address}" -# end -# end - -# branch = CodingDojo.new(177, "Alaska CodingDojo", "Anchorage AK") -# branch.display_all -# branch.hello - -# branch2 = CodingDojo.new(22, "Scranton CodingDojo", "Scranton PA") -# branch2.display_all - - - -#Returning self allows you to chain methods like OOP in Python -class Mammal - def initialize - puts "I am alive" - self - end - def breath - puts "Inhale and exhale" - self - end - - def who_am_i - puts self - self - end -end -my_mammal = Mammal.new.who_am_i.breath diff --git a/justin_quiros/friends/.gitignore b/justin_quiros/friends/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/friends/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/friends/Gemfile b/justin_quiros/friends/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/justin_quiros/friends/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/justin_quiros/friends/Gemfile.lock b/justin_quiros/friends/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/justin_quiros/friends/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/friends/README.rdoc b/justin_quiros/friends/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/friends/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/friends/Rakefile b/justin_quiros/friends/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/app/assets/images/.keep b/justin_quiros/friends/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/app/assets/javascripts/application.js b/justin_quiros/friends/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/friends/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/friends/app/assets/stylesheets/application.css b/justin_quiros/friends/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/friends/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/friends/app/controllers/application_controller.rb b/justin_quiros/friends/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/app/controllers/concerns/.keep b/justin_quiros/friends/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/app/helpers/application_helper.rb b/justin_quiros/friends/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/friends/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/friends/app/mailers/.keep b/justin_quiros/friends/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/app/models/.keep b/justin_quiros/friends/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/app/models/concerns/.keep b/justin_quiros/friends/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/app/models/homie.rb b/justin_quiros/friends/app/models/homie.rb deleted file mode 100644 index dce1b7b..0000000 --- a/justin_quiros/friends/app/models/homie.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Homie < ActiveRecord::Base - belongs_to :user - belongs_to :receiver, foreign_key: :receiver_id, class_name: 'User' -end diff --git a/justin_quiros/friends/app/models/user.rb b/justin_quiros/friends/app/models/user.rb deleted file mode 100644 index 9581469..0000000 --- a/justin_quiros/friends/app/models/user.rb +++ /dev/null @@ -1,5 +0,0 @@ -class User < ActiveRecord::Base - has_many :homies, class_name: 'Homie' - has_many :friends, through: :homies, source: :receiver - -end diff --git a/justin_quiros/friends/app/views/layouts/application.html.erb b/justin_quiros/friends/app/views/layouts/application.html.erb deleted file mode 100644 index 167610a..0000000 --- a/justin_quiros/friends/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Friends - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/friends/bin/bundle b/justin_quiros/friends/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/bin/rails b/justin_quiros/friends/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/friends/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/friends/bin/rake b/justin_quiros/friends/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/friends/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/friends/bin/setup b/justin_quiros/friends/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/friends/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/friends/bin/spring b/justin_quiros/friends/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/friends/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/friends/config.ru b/justin_quiros/friends/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/application.rb b/justin_quiros/friends/config/application.rb deleted file mode 100644 index 7cf2d47..0000000 --- a/justin_quiros/friends/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Friends - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/friends/config/boot.rb b/justin_quiros/friends/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/friends/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/friends/config/database.yml b/justin_quiros/friends/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/environment.rb b/justin_quiros/friends/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/environments/development.rb b/justin_quiros/friends/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/friends/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/friends/config/environments/production.rb b/justin_quiros/friends/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/friends/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/friends/config/environments/test.rb b/justin_quiros/friends/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/friends/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/friends/config/initializers/assets.rb b/justin_quiros/friends/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/friends/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/friends/config/initializers/backtrace_silencers.rb b/justin_quiros/friends/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/initializers/cookies_serializer.rb b/justin_quiros/friends/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/friends/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 diff --git a/justin_quiros/friends/config/initializers/filter_parameter_logging.rb b/justin_quiros/friends/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/initializers/inflections.rb b/justin_quiros/friends/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/initializers/mime_types.rb b/justin_quiros/friends/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/initializers/session_store.rb b/justin_quiros/friends/config/initializers/session_store.rb deleted file mode 100644 index 916ead8..0000000 --- a/justin_quiros/friends/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: '_friends_session' diff --git a/justin_quiros/friends/config/initializers/wrap_parameters.rb b/justin_quiros/friends/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/locales/en.yml b/justin_quiros/friends/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/config/routes.rb b/justin_quiros/friends/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/friends/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/friends/config/secrets.yml b/justin_quiros/friends/config/secrets.yml deleted file mode 100644 index 8a96300..0000000 --- a/justin_quiros/friends/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: 25770e305e6b4a46e4c742aca992df3c1b4ea214634a2ff02c0e97e7b9087c3dadd6cde46a0cbcffb28ee22f56d5344e8273ebae73d6fe47a8edcdf876879b99 - -test: - secret_key_base: bbefc9e60c07308ea8adf61538048dbbbdd58bb932fabc24f201b532766ebdee9e27ccd46c4d17929f9500a0133bd02e4e7d9418917cfb73a8f36390a4c9a448 - -# 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/justin_quiros/friends/db/migrate/20171130212913_create_users.rb b/justin_quiros/friends/db/migrate/20171130212913_create_users.rb deleted file mode 100644 index 36d0b1b..0000000 --- a/justin_quiros/friends/db/migrate/20171130212913_create_users.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/friends/db/migrate/20171130214705_create_homies.rb b/justin_quiros/friends/db/migrate/20171130214705_create_homies.rb deleted file mode 100644 index 427512f..0000000 --- a/justin_quiros/friends/db/migrate/20171130214705_create_homies.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateHomies < ActiveRecord::Migration - def change - create_table :homies do |t| - t.references :user, index: true, foreign_key: true - t.references :receiver, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/friends/db/schema.rb b/justin_quiros/friends/db/schema.rb deleted file mode 100644 index 6f1371e..0000000 --- a/justin_quiros/friends/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130214705) do - - create_table "homies", force: :cascade do |t| - t.integer "user_id" - t.integer "receiver_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "homies", ["receiver_id"], name: "index_homies_on_receiver_id" - add_index "homies", ["user_id"], name: "index_homies_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/friends/db/seeds.rb b/justin_quiros/friends/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/friends/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/friends/lib/assets/.keep b/justin_quiros/friends/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/lib/tasks/.keep b/justin_quiros/friends/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/log/.keep b/justin_quiros/friends/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/public/404.html b/justin_quiros/friends/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/public/422.html b/justin_quiros/friends/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/public/500.html b/justin_quiros/friends/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/friends/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/justin_quiros/friends/public/favicon.ico b/justin_quiros/friends/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/public/robots.txt b/justin_quiros/friends/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/friends/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/friends/test/controllers/.keep b/justin_quiros/friends/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/test/fixtures/.keep b/justin_quiros/friends/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/test/fixtures/homies.yml b/justin_quiros/friends/test/fixtures/homies.yml deleted file mode 100644 index 02e98ea..0000000 --- a/justin_quiros/friends/test/fixtures/homies.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user_id: - receiver_id: - -two: - user_id: - receiver_id: diff --git a/justin_quiros/friends/test/fixtures/users.yml b/justin_quiros/friends/test/fixtures/users.yml deleted file mode 100644 index afdaa6a..0000000 --- a/justin_quiros/friends/test/fixtures/users.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - -two: - first_name: MyString - last_name: MyString diff --git a/justin_quiros/friends/test/helpers/.keep b/justin_quiros/friends/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/test/integration/.keep b/justin_quiros/friends/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/test/mailers/.keep b/justin_quiros/friends/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/test/models/.keep b/justin_quiros/friends/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/test/models/homie_test.rb b/justin_quiros/friends/test/models/homie_test.rb deleted file mode 100644 index bd8c17a..0000000 --- a/justin_quiros/friends/test/models/homie_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class HomieTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/friends/test/models/user_test.rb b/justin_quiros/friends/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/justin_quiros/friends/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/friends/test/test_helper.rb b/justin_quiros/friends/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/friends/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/friends/vendor/assets/javascripts/.keep b/justin_quiros/friends/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/friends/vendor/assets/stylesheets/.keep b/justin_quiros/friends/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/guess.rb b/justin_quiros/guess.rb deleted file mode 100644 index 9954022..0000000 --- a/justin_quiros/guess.rb +++ /dev/null @@ -1,11 +0,0 @@ -def guess_number guess - number = 25 - if number == guess - puts "You got it!" - elsif number > guess - puts "Guess was too low!" - else - puts "Guess was too high!" - end -end -guess_number 26 diff --git a/justin_quiros/hashes.rb b/justin_quiros/hashes.rb deleted file mode 100644 index 119318b..0000000 --- a/justin_quiros/hashes.rb +++ /dev/null @@ -1,18 +0,0 @@ -q = {:first_name => "Justin", :last_name => "Quiros"} -q.delete(:first_name) -p q - -i = {} -p i.empty? - -p q.has_key?(:last_name) - -p q.has_value?("Quiros") - - -def new_user user = {first_name: "first", last_name: "last"} - puts "Welcome to our site, #{user[:first_name]} #{user[:last_name]}!" -end -our_user = {first_name: 'Justin', last_name: "Quiros"} -new_user # => "Welcome to our site, first last!" -new_user our_user # => "Welcome to our site, Oscar Vasquez!" diff --git a/justin_quiros/mathdojo.rb b/justin_quiros/mathdojo.rb deleted file mode 100644 index 2b586dd..0000000 --- a/justin_quiros/mathdojo.rb +++ /dev/null @@ -1,21 +0,0 @@ -class MathDojo - def initialize - @result = 0 - end - def add(*val) - @result += val.flatten.reduce(:+) - self - end - def subtract(*val) - @result -= val.flatten.reduce(:+) - self - end - def result - @result - end -end - -# challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).result # => 4 -# p challenge1 -challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).result # => 23.15 -p challenge2 \ No newline at end of file diff --git a/justin_quiros/models/.gitignore b/justin_quiros/models/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/models/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/models/Gemfile b/justin_quiros/models/Gemfile deleted file mode 100644 index 732f093..0000000 --- a/justin_quiros/models/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - diff --git a/justin_quiros/models/Gemfile.lock b/justin_quiros/models/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/justin_quiros/models/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/models/README.rdoc b/justin_quiros/models/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/models/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/models/Rakefile b/justin_quiros/models/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/models/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/justin_quiros/models/app/assets/images/.keep b/justin_quiros/models/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/app/assets/javascripts/application.js b/justin_quiros/models/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/models/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/models/app/assets/stylesheets/application.css b/justin_quiros/models/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/models/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/models/app/controllers/application_controller.rb b/justin_quiros/models/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/models/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/justin_quiros/models/app/controllers/concerns/.keep b/justin_quiros/models/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/app/controllers/users_controller.rb b/justin_quiros/models/app/controllers/users_controller.rb deleted file mode 100644 index 1d9518c..0000000 --- a/justin_quiros/models/app/controllers/users_controller.rb +++ /dev/null @@ -1,27 +0,0 @@ -class UsersController < ApplicationController - def index - @users = User.all - render json: @users - end - - def new - end - - def show - user = User.find(params[:id]) - render json: user - end - def create - @user = User.create(name: params[:name]) - redirect_to '/users' - end - def edit - @users = User.find(params[:id]) - puts @users.name - end - - def total - @total = User.all.count - render :text => "There are " + @total.to_s + " users!" - end -end diff --git a/justin_quiros/models/app/helpers/application_helper.rb b/justin_quiros/models/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/models/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/models/app/mailers/.keep b/justin_quiros/models/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/app/models/.keep b/justin_quiros/models/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/app/models/concerns/.keep b/justin_quiros/models/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/app/models/user.rb b/justin_quiros/models/app/models/user.rb deleted file mode 100644 index 4a57cf0..0000000 --- a/justin_quiros/models/app/models/user.rb +++ /dev/null @@ -1,2 +0,0 @@ -class User < ActiveRecord::Base -end diff --git a/justin_quiros/models/app/views/layouts/application.html.erb b/justin_quiros/models/app/views/layouts/application.html.erb deleted file mode 100644 index 7af9dc7..0000000 --- a/justin_quiros/models/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Models - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/models/app/views/users/edit.html.erb b/justin_quiros/models/app/views/users/edit.html.erb deleted file mode 100644 index 6261069..0000000 --- a/justin_quiros/models/app/views/users/edit.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

Update User

-
- - -
-
- -
\ No newline at end of file diff --git a/justin_quiros/models/app/views/users/index.html.erb b/justin_quiros/models/app/views/users/index.html.erb deleted file mode 100644 index 51968c8..0000000 --- a/justin_quiros/models/app/views/users/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#index

-

Find me in app/views/users/index.html.erb

diff --git a/justin_quiros/models/app/views/users/new.html.erb b/justin_quiros/models/app/views/users/new.html.erb deleted file mode 100644 index e8fa012..0000000 --- a/justin_quiros/models/app/views/users/new.html.erb +++ /dev/null @@ -1,8 +0,0 @@ -

Create a new User

-
- - -
-
- -
\ No newline at end of file diff --git a/justin_quiros/models/app/views/users/total.html.erb b/justin_quiros/models/app/views/users/total.html.erb deleted file mode 100644 index 936b68c..0000000 --- a/justin_quiros/models/app/views/users/total.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Users#total

-

Find me in app/views/users/total.html.erb

diff --git a/justin_quiros/models/bin/bundle b/justin_quiros/models/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/models/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/justin_quiros/models/bin/rails b/justin_quiros/models/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/models/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/models/bin/rake b/justin_quiros/models/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/models/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/models/bin/setup b/justin_quiros/models/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/models/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/models/bin/spring b/justin_quiros/models/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/models/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/models/config.ru b/justin_quiros/models/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/application.rb b/justin_quiros/models/config/application.rb deleted file mode 100644 index 0407fb0..0000000 --- a/justin_quiros/models/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Models - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/models/config/boot.rb b/justin_quiros/models/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/models/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/models/config/database.yml b/justin_quiros/models/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/environment.rb b/justin_quiros/models/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/environments/development.rb b/justin_quiros/models/config/environments/development.rb deleted file mode 100644 index cbfa466..0000000 --- a/justin_quiros/models/config/environments/development.rb +++ /dev/null @@ -1,48 +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 - - - # Use the below so you don't have to shut down server everytime you make a change in your controller - config.reload_classes_only_on_change = false - - # Use the below to get rid of unwanted text in console - config.log_level = :warn - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/models/config/environments/production.rb b/justin_quiros/models/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/models/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/models/config/environments/test.rb b/justin_quiros/models/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/models/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/models/config/initializers/assets.rb b/justin_quiros/models/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/models/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/models/config/initializers/backtrace_silencers.rb b/justin_quiros/models/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/initializers/cookies_serializer.rb b/justin_quiros/models/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/models/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 diff --git a/justin_quiros/models/config/initializers/filter_parameter_logging.rb b/justin_quiros/models/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/initializers/inflections.rb b/justin_quiros/models/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/initializers/mime_types.rb b/justin_quiros/models/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/initializers/session_store.rb b/justin_quiros/models/config/initializers/session_store.rb deleted file mode 100644 index 809e98c..0000000 --- a/justin_quiros/models/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: '_models_session' diff --git a/justin_quiros/models/config/initializers/wrap_parameters.rb b/justin_quiros/models/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/locales/en.yml b/justin_quiros/models/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/models/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/justin_quiros/models/config/routes.rb b/justin_quiros/models/config/routes.rb deleted file mode 100644 index 2db1674..0000000 --- a/justin_quiros/models/config/routes.rb +++ /dev/null @@ -1,68 +0,0 @@ -Rails.application.routes.draw do - get 'users/index' - get 'users/new' - get 'users/edit' - get 'users/total' - - get 'users' => "users#index" - get 'users/total' => "users#total" - post 'users' => "users#create" - get 'users/new' => "users#new" - get 'users/:id' => "users#show" - get 'users/:id/edit' => "users#edit" - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/models/config/secrets.yml b/justin_quiros/models/config/secrets.yml deleted file mode 100644 index e4b9b69..0000000 --- a/justin_quiros/models/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: 8e82a2b061c0ac9c6b9e9d62b19dfae268bb9290a76f728eaa8590f6487ea7dab23977868281f826d3f17be2b00d1ed33b17d30b72c401c08a7a81e99d1a90b6 - -test: - secret_key_base: bdaa15ee41b4356d5134f455707f3f52350cb3c8c80bd230f2eeeeab7e3fd1260527f485b56790c561a380caa161831bc3403f86d4ee39203502b87362555167 - -# 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/justin_quiros/models/db/migrate/20171201201239_create_users.rb b/justin_quiros/models/db/migrate/20171201201239_create_users.rb deleted file mode 100644 index 5494756..0000000 --- a/justin_quiros/models/db/migrate/20171201201239_create_users.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :name - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/models/db/schema.rb b/justin_quiros/models/db/schema.rb deleted file mode 100644 index d83cf9e..0000000 --- a/justin_quiros/models/db/schema.rb +++ /dev/null @@ -1,22 +0,0 @@ -# encoding: UTF-8 -# 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: 20171201201239) do - - create_table "users", force: :cascade do |t| - t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/models/db/seeds.rb b/justin_quiros/models/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/models/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/models/lib/assets/.keep b/justin_quiros/models/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/lib/tasks/.keep b/justin_quiros/models/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/log/.keep b/justin_quiros/models/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/public/404.html b/justin_quiros/models/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/models/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/justin_quiros/models/public/422.html b/justin_quiros/models/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/models/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/justin_quiros/models/public/500.html b/justin_quiros/models/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/models/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/justin_quiros/models/public/favicon.ico b/justin_quiros/models/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/public/robots.txt b/justin_quiros/models/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/models/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/models/test/controllers/.keep b/justin_quiros/models/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/test/controllers/users_controller_test.rb b/justin_quiros/models/test/controllers/users_controller_test.rb deleted file mode 100644 index 1f794df..0000000 --- a/justin_quiros/models/test/controllers/users_controller_test.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'test_helper' - -class UsersControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get new" do - get :new - assert_response :success - end - - test "should get edit" do - get :edit - assert_response :success - end - - test "should get total" do - get :total - assert_response :success - end - -end diff --git a/justin_quiros/models/test/fixtures/.keep b/justin_quiros/models/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/test/fixtures/users.yml b/justin_quiros/models/test/fixtures/users.yml deleted file mode 100644 index 56066c6..0000000 --- a/justin_quiros/models/test/fixtures/users.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - -two: - name: MyString diff --git a/justin_quiros/models/test/helpers/.keep b/justin_quiros/models/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/test/integration/.keep b/justin_quiros/models/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/test/mailers/.keep b/justin_quiros/models/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/test/models/.keep b/justin_quiros/models/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/test/models/user_test.rb b/justin_quiros/models/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/justin_quiros/models/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/models/test/test_helper.rb b/justin_quiros/models/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/models/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/models/vendor/assets/javascripts/.keep b/justin_quiros/models/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/models/vendor/assets/stylesheets/.keep b/justin_quiros/models/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/module_practice/main.rb b/justin_quiros/module_practice/main.rb deleted file mode 100644 index 4c3213c..0000000 --- a/justin_quiros/module_practice/main.rb +++ /dev/null @@ -1,9 +0,0 @@ -require_relative 'printer_module' -class Array - include Printer -end -class String - include Printer -end -[1,2,3].print_each_element -"hello".print_each_element \ No newline at end of file diff --git a/justin_quiros/module_practice/printer_module.rb b/justin_quiros/module_practice/printer_module.rb deleted file mode 100644 index fd368c2..0000000 --- a/justin_quiros/module_practice/printer_module.rb +++ /dev/null @@ -1,7 +0,0 @@ -module Printer - def print_each_element - for i in 0...self.length - puts self[i] - end - end -end \ No newline at end of file diff --git a/justin_quiros/my_app/.gitignore b/justin_quiros/my_app/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/my_app/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/my_app/Gemfile b/justin_quiros/my_app/Gemfile deleted file mode 100644 index a589995..0000000 --- a/justin_quiros/my_app/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - diff --git a/justin_quiros/my_app/Gemfile.lock b/justin_quiros/my_app/Gemfile.lock deleted file mode 100644 index c2e340f..0000000 --- a/justin_quiros/my_app/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/my_app/README.rdoc b/justin_quiros/my_app/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/my_app/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/my_app/Rakefile b/justin_quiros/my_app/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/app/assets/images/.keep b/justin_quiros/my_app/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/app/assets/javascripts/application.js b/justin_quiros/my_app/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/my_app/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/my_app/app/assets/stylesheets/application.css b/justin_quiros/my_app/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/my_app/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/my_app/app/controllers/application_controller.rb b/justin_quiros/my_app/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/app/controllers/concerns/.keep b/justin_quiros/my_app/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/app/helpers/application_helper.rb b/justin_quiros/my_app/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/my_app/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/my_app/app/mailers/.keep b/justin_quiros/my_app/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/app/models/.keep b/justin_quiros/my_app/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/app/models/address.rb b/justin_quiros/my_app/app/models/address.rb deleted file mode 100644 index 2c0c20b..0000000 --- a/justin_quiros/my_app/app/models/address.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Address < ActiveRecord::Base - belongs_to :user -end diff --git a/justin_quiros/my_app/app/models/concerns/.keep b/justin_quiros/my_app/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/app/models/message.rb b/justin_quiros/my_app/app/models/message.rb deleted file mode 100644 index 2c176a2..0000000 --- a/justin_quiros/my_app/app/models/message.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Message < ActiveRecord::Base - belongs_to :user -end diff --git a/justin_quiros/my_app/app/models/user.rb b/justin_quiros/my_app/app/models/user.rb deleted file mode 100644 index 68e80d1..0000000 --- a/justin_quiros/my_app/app/models/user.rb +++ /dev/null @@ -1,7 +0,0 @@ -class User < ActiveRecord::Base - has_many :messages - has_one :address - # def messages - # User.find_by_sql("SELECT * FROM messages WHERE messages.user_id = #{self.id}") - # end -end diff --git a/justin_quiros/my_app/app/views/layouts/application.html.erb b/justin_quiros/my_app/app/views/layouts/application.html.erb deleted file mode 100644 index 8b06376..0000000 --- a/justin_quiros/my_app/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - MyApp - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/my_app/bin/bundle b/justin_quiros/my_app/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/bin/rails b/justin_quiros/my_app/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/my_app/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/my_app/bin/rake b/justin_quiros/my_app/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/my_app/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/my_app/bin/setup b/justin_quiros/my_app/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/my_app/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/my_app/bin/spring b/justin_quiros/my_app/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/my_app/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/my_app/config.ru b/justin_quiros/my_app/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/application.rb b/justin_quiros/my_app/config/application.rb deleted file mode 100644 index 7872863..0000000 --- a/justin_quiros/my_app/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module MyApp - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/my_app/config/boot.rb b/justin_quiros/my_app/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/my_app/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/my_app/config/database.yml b/justin_quiros/my_app/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/environment.rb b/justin_quiros/my_app/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/environments/development.rb b/justin_quiros/my_app/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/my_app/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/my_app/config/environments/production.rb b/justin_quiros/my_app/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/my_app/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/my_app/config/environments/test.rb b/justin_quiros/my_app/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/my_app/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/my_app/config/initializers/assets.rb b/justin_quiros/my_app/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/my_app/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/my_app/config/initializers/backtrace_silencers.rb b/justin_quiros/my_app/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/initializers/cookies_serializer.rb b/justin_quiros/my_app/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/my_app/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 diff --git a/justin_quiros/my_app/config/initializers/filter_parameter_logging.rb b/justin_quiros/my_app/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/initializers/inflections.rb b/justin_quiros/my_app/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/initializers/mime_types.rb b/justin_quiros/my_app/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/initializers/session_store.rb b/justin_quiros/my_app/config/initializers/session_store.rb deleted file mode 100644 index 7bd3bcd..0000000 --- a/justin_quiros/my_app/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: '_my_app_session' diff --git a/justin_quiros/my_app/config/initializers/wrap_parameters.rb b/justin_quiros/my_app/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/locales/en.yml b/justin_quiros/my_app/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/config/routes.rb b/justin_quiros/my_app/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/my_app/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/my_app/config/secrets.yml b/justin_quiros/my_app/config/secrets.yml deleted file mode 100644 index cb158cd..0000000 --- a/justin_quiros/my_app/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: 32ef5ee11aa6e2a743a9b7647d5098519ee19b35ccd1206f31ebd8703bc35d04f04c1cb19a136941270b7e08cdaa54909f81a38b91b744bb7956f719c1183310 - -test: - secret_key_base: 9dba3d9f84303371a92ef9e56d07095e377fc8078a6602d8c59372be666966c72184b83387ac5585f00a3960f49bb207068e5d48a9dce948c29821d3f3f31f6e - -# 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/justin_quiros/my_app/db/migrate/20171129194421_create_users.rb b/justin_quiros/my_app/db/migrate/20171129194421_create_users.rb deleted file mode 100644 index 36d0b1b..0000000 --- a/justin_quiros/my_app/db/migrate/20171129194421_create_users.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/my_app/db/migrate/20171129200004_create_messages.rb b/justin_quiros/my_app/db/migrate/20171129200004_create_messages.rb deleted file mode 100644 index 2f88371..0000000 --- a/justin_quiros/my_app/db/migrate/20171129200004_create_messages.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.text :content - t.references :user, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/my_app/db/migrate/20171129200910_create_addresses.rb b/justin_quiros/my_app/db/migrate/20171129200910_create_addresses.rb deleted file mode 100644 index f7b2ac0..0000000 --- a/justin_quiros/my_app/db/migrate/20171129200910_create_addresses.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateAddresses < ActiveRecord::Migration - def change - create_table :addresses do |t| - t.string :street - t.string :city - t.string :state - t.references :user, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/my_app/db/schema.rb b/justin_quiros/my_app/db/schema.rb deleted file mode 100644 index d75d2c5..0000000 --- a/justin_quiros/my_app/db/schema.rb +++ /dev/null @@ -1,43 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129200910) do - - create_table "addresses", force: :cascade do |t| - t.string "street" - t.string "city" - t.string "state" - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "addresses", ["user_id"], name: "index_addresses_on_user_id" - - create_table "messages", force: :cascade do |t| - t.text "content" - t.integer "user_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["user_id"], name: "index_messages_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/my_app/db/seeds.rb b/justin_quiros/my_app/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/my_app/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/my_app/lib/assets/.keep b/justin_quiros/my_app/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/lib/tasks/.keep b/justin_quiros/my_app/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/log/.keep b/justin_quiros/my_app/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/public/404.html b/justin_quiros/my_app/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/public/422.html b/justin_quiros/my_app/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/public/500.html b/justin_quiros/my_app/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/my_app/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/justin_quiros/my_app/public/favicon.ico b/justin_quiros/my_app/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/public/robots.txt b/justin_quiros/my_app/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/my_app/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/my_app/test/controllers/.keep b/justin_quiros/my_app/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/test/fixtures/.keep b/justin_quiros/my_app/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/test/fixtures/addresses.yml b/justin_quiros/my_app/test/fixtures/addresses.yml deleted file mode 100644 index 7207a5c..0000000 --- a/justin_quiros/my_app/test/fixtures/addresses.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - street: MyString - city: MyString - state: MyString - user_id: - -two: - street: MyString - city: MyString - state: MyString - user_id: diff --git a/justin_quiros/my_app/test/fixtures/messages.yml b/justin_quiros/my_app/test/fixtures/messages.yml deleted file mode 100644 index a5153b6..0000000 --- a/justin_quiros/my_app/test/fixtures/messages.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - content: MyText - user_id: - -two: - content: MyText - user_id: diff --git a/justin_quiros/my_app/test/fixtures/users.yml b/justin_quiros/my_app/test/fixtures/users.yml deleted file mode 100644 index afdaa6a..0000000 --- a/justin_quiros/my_app/test/fixtures/users.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - -two: - first_name: MyString - last_name: MyString diff --git a/justin_quiros/my_app/test/helpers/.keep b/justin_quiros/my_app/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/test/integration/.keep b/justin_quiros/my_app/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/test/mailers/.keep b/justin_quiros/my_app/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/test/models/.keep b/justin_quiros/my_app/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/test/models/address_test.rb b/justin_quiros/my_app/test/models/address_test.rb deleted file mode 100644 index 44f9f9b..0000000 --- a/justin_quiros/my_app/test/models/address_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class AddressTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/my_app/test/models/message_test.rb b/justin_quiros/my_app/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/justin_quiros/my_app/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/my_app/test/models/user_test.rb b/justin_quiros/my_app/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/justin_quiros/my_app/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/my_app/test/test_helper.rb b/justin_quiros/my_app/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/my_app/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/my_app/vendor/assets/javascripts/.keep b/justin_quiros/my_app/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/my_app/vendor/assets/stylesheets/.keep b/justin_quiros/my_app/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/myenumerable.rb b/justin_quiros/myenumerable.rb deleted file mode 100644 index 67cc61a..0000000 --- a/justin_quiros/myenumerable.rb +++ /dev/null @@ -1,14 +0,0 @@ -module MyEnumerable - def my_each - for i in 0..self.length - yield(self[i]) - end - end -end - -class Array - include MyEnumerable -end - -[1,2,3,4].my_each { |i| puts i } -[1,2,3,4].my_each { |i| puts i * 10 } \ No newline at end of file diff --git a/justin_quiros/names.rb b/justin_quiros/names.rb deleted file mode 100644 index 4f6ba40..0000000 --- a/justin_quiros/names.rb +++ /dev/null @@ -1,10 +0,0 @@ -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - -p "You have " +names.count.to_s+ " names in the 'names' array." - -names.each {|key| puts "The name is '" +key[:first_name]+ " " +key[:last_name]+ "'"} \ No newline at end of file diff --git a/justin_quiros/ninja_gold/.gitignore b/justin_quiros/ninja_gold/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/ninja_gold/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/ninja_gold/Gemfile b/justin_quiros/ninja_gold/Gemfile deleted file mode 100644 index 8b11657..0000000 --- a/justin_quiros/ninja_gold/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' -gem 'hirb' -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/justin_quiros/ninja_gold/Gemfile.lock b/justin_quiros/ninja_gold/Gemfile.lock deleted file mode 100644 index be50182..0000000 --- a/justin_quiros/ninja_gold/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/ninja_gold/README.rdoc b/justin_quiros/ninja_gold/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/ninja_gold/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/ninja_gold/Rakefile b/justin_quiros/ninja_gold/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/app/assets/images/.keep b/justin_quiros/ninja_gold/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/app/assets/javascripts/application.js b/justin_quiros/ninja_gold/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/ninja_gold/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/ninja_gold/app/assets/stylesheets/application.css b/justin_quiros/ninja_gold/app/assets/stylesheets/application.css deleted file mode 100644 index a101aff..0000000 --- a/justin_quiros/ninja_gold/app/assets/stylesheets/application.css +++ /dev/null @@ -1,30 +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 any plugin's vendor/assets/stylesheets directory 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 - */ - - -.win { - color: green; -} - -.lose { - color: red; -} -.activity{ - overflow: scroll; - height: 200px; - border: solid 2px black; - width: 400px; -} \ No newline at end of file diff --git a/justin_quiros/ninja_gold/app/assets/stylesheets/rpgs.scss b/justin_quiros/ninja_gold/app/assets/stylesheets/rpgs.scss deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/app/controllers/application_controller.rb b/justin_quiros/ninja_gold/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/app/controllers/concerns/.keep b/justin_quiros/ninja_gold/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/app/controllers/rpgs_controller.rb b/justin_quiros/ninja_gold/app/controllers/rpgs_controller.rb deleted file mode 100644 index fce4c9e..0000000 --- a/justin_quiros/ninja_gold/app/controllers/rpgs_controller.rb +++ /dev/null @@ -1,31 +0,0 @@ -class RpgsController < ApplicationController - - def index - session[:gold] ||= 0 - session[:activity] ||= [] - @gold = session[:gold] - @activities = session[:activity] - - end - - def win_lose - if params[:place] == 'farm' - gold = rand(10..20) - elsif params[:place] == 'cave' - gold = rand(5..10) - elsif params[:place] == 'house' - gold = rand(2..5) - elsif params[:place] == 'casino' - gold = rand(-50..50) - end - time = Time.now - - if gold > 0 - session[:activity] << "Earned #{gold} golds from the #{params[:place]}! (#{time.strftime('%Y/%m/%d %l:%M %P')})" - else - session[:activity] << "Entered a casino and lost #{gold} golds... Ouch. (#{time.strftime('%Y/%m/%d %l:%M %P')})" - end - session[:gold] += gold - redirect_to root_path - end -end diff --git a/justin_quiros/ninja_gold/app/helpers/application_helper.rb b/justin_quiros/ninja_gold/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/ninja_gold/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/ninja_gold/app/helpers/rpgs_helper.rb b/justin_quiros/ninja_gold/app/helpers/rpgs_helper.rb deleted file mode 100644 index d6ff991..0000000 --- a/justin_quiros/ninja_gold/app/helpers/rpgs_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module RpgsHelper -end diff --git a/justin_quiros/ninja_gold/app/mailers/.keep b/justin_quiros/ninja_gold/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/app/models/.keep b/justin_quiros/ninja_gold/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/app/models/concerns/.keep b/justin_quiros/ninja_gold/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/app/views/layouts/application.html.erb b/justin_quiros/ninja_gold/app/views/layouts/application.html.erb deleted file mode 100644 index e17cd6f..0000000 --- a/justin_quiros/ninja_gold/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - NinjaGold - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/ninja_gold/app/views/rpgs/index.html.erb b/justin_quiros/ninja_gold/app/views/rpgs/index.html.erb deleted file mode 100644 index 3621b26..0000000 --- a/justin_quiros/ninja_gold/app/views/rpgs/index.html.erb +++ /dev/null @@ -1,53 +0,0 @@ -<%= stylesheet_link_tag "application.css" %> - - -

Your Gold: <%= @gold %>

-
-
- -

Farm

-

(Earns 10-20 golds)

- - -
-
-
-
- -

Cave

-

(Earns 5-10 golds)

- - -
-
-
-
- -

House

-

(Earns 2-5 golds)

- - -
-
-
-
- -

Casino

-

(Earns/Takes 0-50 golds)

- - -
-
-
-
​ -

Activities:

​ -
​ - <% @activities.reverse.each do |activity| %>​ - <% if activity.include?("Earned") %>​ -

<%= activity %>

​ - <% else %>​ -

<%= activity %>

​ - <% end %>​ - <% end %>​ -
​ -
​ diff --git a/justin_quiros/ninja_gold/bin/bundle b/justin_quiros/ninja_gold/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/bin/rails b/justin_quiros/ninja_gold/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/ninja_gold/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/ninja_gold/bin/rake b/justin_quiros/ninja_gold/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/ninja_gold/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/ninja_gold/bin/setup b/justin_quiros/ninja_gold/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/ninja_gold/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/ninja_gold/bin/spring b/justin_quiros/ninja_gold/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/ninja_gold/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/ninja_gold/config.ru b/justin_quiros/ninja_gold/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/application.rb b/justin_quiros/ninja_gold/config/application.rb deleted file mode 100644 index 6d31756..0000000 --- a/justin_quiros/ninja_gold/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module NinjaGold - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/ninja_gold/config/boot.rb b/justin_quiros/ninja_gold/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/ninja_gold/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/ninja_gold/config/database.yml b/justin_quiros/ninja_gold/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/environment.rb b/justin_quiros/ninja_gold/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/environments/development.rb b/justin_quiros/ninja_gold/config/environments/development.rb deleted file mode 100644 index f47eea1..0000000 --- a/justin_quiros/ninja_gold/config/environments/development.rb +++ /dev/null @@ -1,47 +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 - - # Use the below so you don't have to shut down server everytime you make a change in your controller - config.reload_classes_only_on_change = false - - # Use the below to get rid of unwanted text in console - config.log_level = :warn - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/ninja_gold/config/environments/production.rb b/justin_quiros/ninja_gold/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/ninja_gold/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/ninja_gold/config/environments/test.rb b/justin_quiros/ninja_gold/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/ninja_gold/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/ninja_gold/config/initializers/assets.rb b/justin_quiros/ninja_gold/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/ninja_gold/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/ninja_gold/config/initializers/backtrace_silencers.rb b/justin_quiros/ninja_gold/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/initializers/cookies_serializer.rb b/justin_quiros/ninja_gold/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/ninja_gold/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 diff --git a/justin_quiros/ninja_gold/config/initializers/filter_parameter_logging.rb b/justin_quiros/ninja_gold/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/initializers/inflections.rb b/justin_quiros/ninja_gold/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/initializers/mime_types.rb b/justin_quiros/ninja_gold/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/initializers/session_store.rb b/justin_quiros/ninja_gold/config/initializers/session_store.rb deleted file mode 100644 index b6c33d9..0000000 --- a/justin_quiros/ninja_gold/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: '_ninja_gold_session' diff --git a/justin_quiros/ninja_gold/config/initializers/wrap_parameters.rb b/justin_quiros/ninja_gold/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/locales/en.yml b/justin_quiros/ninja_gold/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/config/routes.rb b/justin_quiros/ninja_gold/config/routes.rb deleted file mode 100644 index 04c5ff4..0000000 --- a/justin_quiros/ninja_gold/config/routes.rb +++ /dev/null @@ -1,65 +0,0 @@ -Rails.application.routes.draw do - # get 'rpgs/farm' - # get 'rpgs/cave' - # get 'rpgs/house' - # get 'rpgs/casino' - - root 'rpgs#index' - - post 'gold' => 'rpgs#win_lose' - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/ninja_gold/config/secrets.yml b/justin_quiros/ninja_gold/config/secrets.yml deleted file mode 100644 index a864b63..0000000 --- a/justin_quiros/ninja_gold/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: c53ac652c2cb6702fe19fedd0aa5df68261cd5661127b98446885a7a9ca7b4e8a74fb3667e7ad0c6a5c4f3cfb616ca9c525f969efe87c512fba3d8bfca56ee14 - -test: - secret_key_base: 5d2ce11681d38d02cea7ed3dc31b9fc142cfef1db720c6e08cda16f856b978ffb6c15dc1d5782f6fda42e21aae35c22bf527daed7e54e3c34194fc0fdb30cb29 - -# 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/justin_quiros/ninja_gold/db/seeds.rb b/justin_quiros/ninja_gold/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/ninja_gold/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/ninja_gold/lib/assets/.keep b/justin_quiros/ninja_gold/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/lib/tasks/.keep b/justin_quiros/ninja_gold/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/log/.keep b/justin_quiros/ninja_gold/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/public/404.html b/justin_quiros/ninja_gold/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/public/422.html b/justin_quiros/ninja_gold/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/public/500.html b/justin_quiros/ninja_gold/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/ninja_gold/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/justin_quiros/ninja_gold/public/favicon.ico b/justin_quiros/ninja_gold/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/public/robots.txt b/justin_quiros/ninja_gold/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/ninja_gold/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/ninja_gold/test/controllers/.keep b/justin_quiros/ninja_gold/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/test/controllers/rpgs_controller_test.rb b/justin_quiros/ninja_gold/test/controllers/rpgs_controller_test.rb deleted file mode 100644 index 8f884cd..0000000 --- a/justin_quiros/ninja_gold/test/controllers/rpgs_controller_test.rb +++ /dev/null @@ -1,24 +0,0 @@ -require 'test_helper' - -class RpgsControllerTest < ActionController::TestCase - test "should get farm" do - get :farm - assert_response :success - end - - test "should get cave" do - get :cave - assert_response :success - end - - test "should get house" do - get :house - assert_response :success - end - - test "should get casino" do - get :casino - assert_response :success - end - -end diff --git a/justin_quiros/ninja_gold/test/fixtures/.keep b/justin_quiros/ninja_gold/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/test/helpers/.keep b/justin_quiros/ninja_gold/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/test/integration/.keep b/justin_quiros/ninja_gold/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/test/mailers/.keep b/justin_quiros/ninja_gold/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/test/models/.keep b/justin_quiros/ninja_gold/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/test/test_helper.rb b/justin_quiros/ninja_gold/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/ninja_gold/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/ninja_gold/vendor/assets/javascripts/.keep b/justin_quiros/ninja_gold/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/ninja_gold/vendor/assets/stylesheets/.keep b/justin_quiros/ninja_gold/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/.gitignore b/justin_quiros/optimize/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/optimize/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/optimize/Gemfile b/justin_quiros/optimize/Gemfile deleted file mode 100644 index 732f093..0000000 --- a/justin_quiros/optimize/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - diff --git a/justin_quiros/optimize/Gemfile.lock b/justin_quiros/optimize/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/justin_quiros/optimize/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/optimize/Jerebko b/justin_quiros/optimize/Jerebko deleted file mode 100644 index 45a7fe5..0000000 --- a/justin_quiros/optimize/Jerebko +++ /dev/null @@ -1,230 +0,0 @@ - - SSUUMMMMAARRYY OOFF LLEESSSS CCOOMMMMAANNDDSS - - Commands marked with * may be preceded by a number, _N. - Notes in parentheses indicate the behavior if _N is given. - A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K. - - h H Display this help. - q :q Q :Q ZZ Exit. - --------------------------------------------------------------------------- - - MMOOVVIINNGG - - e ^E j ^N CR * Forward one line (or _N lines). - y ^Y k ^K ^P * Backward one line (or _N lines). - f ^F ^V SPACE * Forward one window (or _N lines). - b ^B ESC-v * Backward one window (or _N lines). - z * Forward one window (and set window to _N). - w * Backward one window (and set window to _N). - ESC-SPACE * Forward one window, but don't stop at end-of-file. - d ^D * Forward one half-window (and set half-window to _N). - u ^U * Backward one half-window (and set half-window to _N). - ESC-) RightArrow * Left one half screen width (or _N positions). - ESC-( LeftArrow * Right one half screen width (or _N positions). - F Forward forever; like "tail -f". - r ^R ^L Repaint screen. - R Repaint screen, discarding buffered input. - --------------------------------------------------- - Default "window" is the screen height. - Default "half-window" is half of the screen height. - --------------------------------------------------------------------------- - - SSEEAARRCCHHIINNGG - - /_p_a_t_t_e_r_n * Search forward for (_N-th) matching line. - ?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line. - n * Repeat previous search (for _N-th occurrence). - N * Repeat previous search in reverse direction. - ESC-n * Repeat previous search, spanning files. - ESC-N * Repeat previous search, reverse dir. & spanning files. - ESC-u Undo (toggle) search highlighting. - &_p_a_t_t_e_r_n * Display only matching lines - --------------------------------------------------- - A search pattern may be preceded by one or more of: - ^N or ! Search for NON-matching lines. - ^E or * Search multiple files (pass thru END OF FILE). - ^F or @ Start search at FIRST file (for /) or last file (for ?). - ^K Highlight matches, but don't move (KEEP position). - ^R Don't use REGULAR EXPRESSIONS. - --------------------------------------------------------------------------- - - JJUUMMPPIINNGG - - g < ESC-< * Go to first line in file (or line _N). - G > ESC-> * Go to last line in file (or line _N). - p % * Go to beginning of file (or _N percent into file). - t * Go to the (_N-th) next tag. - T * Go to the (_N-th) previous tag. - { ( [ * Find close bracket } ) ]. - } ) ] * Find open bracket { ( [. - ESC-^F _<_c_1_> _<_c_2_> * Find close bracket _<_c_2_>. - ESC-^B _<_c_1_> _<_c_2_> * Find open bracket _<_c_1_> - --------------------------------------------------- - Each "find close bracket" command goes forward to the close bracket - matching the (_N-th) open bracket in the top line. - Each "find open bracket" command goes backward to the open bracket - matching the (_N-th) close bracket in the bottom line. - - m_<_l_e_t_t_e_r_> Mark the current position with . - '_<_l_e_t_t_e_r_> Go to a previously marked position. - '' Go to the previous position. - ^X^X Same as '. - --------------------------------------------------- - A mark is any upper-case or lower-case letter. - Certain marks are predefined: - ^ means beginning of the file - $ means end of the file - --------------------------------------------------------------------------- - - CCHHAANNGGIINNGG FFIILLEESS - - :e [_f_i_l_e] Examine a new file. - ^X^V Same as :e. - :n * Examine the (_N-th) next file from the command line. - :p * Examine the (_N-th) previous file from the command line. - :x * Examine the first (or _N-th) file from the command line. - :d Delete the current file from the command line list. - = ^G :f Print current file name. - --------------------------------------------------------------------------- - - MMIISSCCEELLLLAANNEEOOUUSS CCOOMMMMAANNDDSS - - -_<_f_l_a_g_> Toggle a command line option [see OPTIONS below]. - --_<_n_a_m_e_> Toggle a command line option, by name. - __<_f_l_a_g_> Display the setting of a command line option. - ___<_n_a_m_e_> Display the setting of an option, by name. - +_c_m_d Execute the less cmd each time a new file is examined. - - !_c_o_m_m_a_n_d Execute the shell command with $SHELL. - |XX_c_o_m_m_a_n_d Pipe file between current pos & mark XX to shell command. - v Edit the current file with $VISUAL or $EDITOR. - V Print version number of "less". - --------------------------------------------------------------------------- - - OOPPTTIIOONNSS - - Most options may be changed either on the command line, - or from within less by using the - or -- command. - Options may be given in one of two forms: either a single - character preceded by a -, or a name preceded by --. - - -? ........ --help - Display help (from command line). - -a ........ --search-skip-screen - Search skips current screen. - -A ........ --SEARCH-SKIP-SCREEN - Search starts just after target line. - -b [_N] .... --buffers=[_N] - Number of buffers. - -B ........ --auto-buffers - Don't automatically allocate buffers for pipes. - -c ........ --clear-screen - Repaint by clearing rather than scrolling. - -d ........ --dumb - Dumb terminal. - -D [_x_n_._n] . --color=_x_n_._n - Set screen colors. (MS-DOS only) - -e -E .... --quit-at-eof --QUIT-AT-EOF - Quit at end of file. - -f ........ --force - Force open non-regular files. - -F ........ --quit-if-one-screen - Quit if entire file fits on first screen. - -g ........ --hilite-search - Highlight only last match for searches. - -G ........ --HILITE-SEARCH - Don't highlight any matches for searches. - -h [_N] .... --max-back-scroll=[_N] - Backward scroll limit. - -i ........ --ignore-case - Ignore case in searches that do not contain uppercase. - -I ........ --IGNORE-CASE - Ignore case in all searches. - -j [_N] .... --jump-target=[_N] - Screen position of target lines. - -J ........ --status-column - Display a status column at left edge of screen. - -k [_f_i_l_e] . --lesskey-file=[_f_i_l_e] - Use a lesskey file. - -K --quit-on-intr - Exit less in response to ctrl-C. - -L ........ --no-lessopen - Ignore the LESSOPEN environment variable. - -m -M .... --long-prompt --LONG-PROMPT - Set prompt style. - -n -N .... --line-numbers --LINE-NUMBERS - Don't use line numbers. - -o [_f_i_l_e] . --log-file=[_f_i_l_e] - Copy to log file (standard input only). - -O [_f_i_l_e] . --LOG-FILE=[_f_i_l_e] - Copy to log file (unconditionally overwrite). - -p [_p_a_t_t_e_r_n] --pattern=[_p_a_t_t_e_r_n] - Start at pattern (from command line). - -P [_p_r_o_m_p_t] --prompt=[_p_r_o_m_p_t] - Define new prompt. - -q -Q .... --quiet --QUIET --silent --SILENT - Quiet the terminal bell. - -r -R .... --raw-control-chars --RAW-CONTROL-CHARS - Output "raw" control characters. - -s ........ --squeeze-blank-lines - Squeeze multiple blank lines. - -S ........ --chop-long-lines - Chop (truncate) long lines rather than wrapping. - -t [_t_a_g] .. --tag=[_t_a_g] - Find a tag. - -T [_t_a_g_s_f_i_l_e] --tag-file=[_t_a_g_s_f_i_l_e] - Use an alternate tags file. - -u -U .... --underline-special --UNDERLINE-SPECIAL - Change handling of backspaces. - -V ........ --version - Display the version number of "less". - -w ........ --hilite-unread - Highlight first new line after forward-screen. - -W ........ --HILITE-UNREAD - Highlight first new line after any forward movement. - -x [_N[,...]] --tabs=[_N[,...]] - Set tab stops. - -X ........ --no-init - Don't use termcap init/deinit strings. - -y [_N] .... --max-forw-scroll=[_N] - Forward scroll limit. - -z [_N] .... --window=[_N] - Set size of window. - -" [_c[_c]] . --quotes=[_c[_c]] - Set shell quote characters. - -~ ........ --tilde - Don't display tildes after end of file. - -# [_N] .... --shift=[_N] - Horizontal scroll amount (0 = one half screen width) - ........ --no-keypad - Don't send termcap keypad init/deinit strings. - ........ --follow-name - The F command changes files if the input file is renamed. - - - --------------------------------------------------------------------------- - - LLIINNEE EEDDIITTIINNGG - - These keys can be used to edit text being entered - on the "command line" at the bottom of the screen. - - RightArrow ESC-l Move cursor right one character. - LeftArrow ESC-h Move cursor left one character. - ctrl-RightArrow ESC-RightArrow ESC-w Move cursor right one word. - ctrl-LeftArrow ESC-LeftArrow ESC-b Move cursor left one word. - HOME ESC-0 Move cursor to start of line. - END ESC-$ Move cursor to end of line. - BACKSPACE Delete char to left of cursor. - DELETE ESC-x Delete char under cursor. - ctrl-BACKSPACE ESC-BACKSPACE Delete word to left of cursor. - ctrl-DELETE ESC-DELETE ESC-X Delete word under cursor. - ctrl-U ESC (MS-DOS only) Delete entire line. - UpArrow ESC-k Retrieve previous command line. - DownArrow ESC-j Retrieve next command line. - TAB Complete filename & cycle. - SHIFT-TAB ESC-TAB Complete filename & reverse cycle. - ctrl-L Complete filename, list all. - - diff --git a/justin_quiros/optimize/McCullough b/justin_quiros/optimize/McCullough deleted file mode 100644 index 45a7fe5..0000000 --- a/justin_quiros/optimize/McCullough +++ /dev/null @@ -1,230 +0,0 @@ - - SSUUMMMMAARRYY OOFF LLEESSSS CCOOMMMMAANNDDSS - - Commands marked with * may be preceded by a number, _N. - Notes in parentheses indicate the behavior if _N is given. - A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K. - - h H Display this help. - q :q Q :Q ZZ Exit. - --------------------------------------------------------------------------- - - MMOOVVIINNGG - - e ^E j ^N CR * Forward one line (or _N lines). - y ^Y k ^K ^P * Backward one line (or _N lines). - f ^F ^V SPACE * Forward one window (or _N lines). - b ^B ESC-v * Backward one window (or _N lines). - z * Forward one window (and set window to _N). - w * Backward one window (and set window to _N). - ESC-SPACE * Forward one window, but don't stop at end-of-file. - d ^D * Forward one half-window (and set half-window to _N). - u ^U * Backward one half-window (and set half-window to _N). - ESC-) RightArrow * Left one half screen width (or _N positions). - ESC-( LeftArrow * Right one half screen width (or _N positions). - F Forward forever; like "tail -f". - r ^R ^L Repaint screen. - R Repaint screen, discarding buffered input. - --------------------------------------------------- - Default "window" is the screen height. - Default "half-window" is half of the screen height. - --------------------------------------------------------------------------- - - SSEEAARRCCHHIINNGG - - /_p_a_t_t_e_r_n * Search forward for (_N-th) matching line. - ?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line. - n * Repeat previous search (for _N-th occurrence). - N * Repeat previous search in reverse direction. - ESC-n * Repeat previous search, spanning files. - ESC-N * Repeat previous search, reverse dir. & spanning files. - ESC-u Undo (toggle) search highlighting. - &_p_a_t_t_e_r_n * Display only matching lines - --------------------------------------------------- - A search pattern may be preceded by one or more of: - ^N or ! Search for NON-matching lines. - ^E or * Search multiple files (pass thru END OF FILE). - ^F or @ Start search at FIRST file (for /) or last file (for ?). - ^K Highlight matches, but don't move (KEEP position). - ^R Don't use REGULAR EXPRESSIONS. - --------------------------------------------------------------------------- - - JJUUMMPPIINNGG - - g < ESC-< * Go to first line in file (or line _N). - G > ESC-> * Go to last line in file (or line _N). - p % * Go to beginning of file (or _N percent into file). - t * Go to the (_N-th) next tag. - T * Go to the (_N-th) previous tag. - { ( [ * Find close bracket } ) ]. - } ) ] * Find open bracket { ( [. - ESC-^F _<_c_1_> _<_c_2_> * Find close bracket _<_c_2_>. - ESC-^B _<_c_1_> _<_c_2_> * Find open bracket _<_c_1_> - --------------------------------------------------- - Each "find close bracket" command goes forward to the close bracket - matching the (_N-th) open bracket in the top line. - Each "find open bracket" command goes backward to the open bracket - matching the (_N-th) close bracket in the bottom line. - - m_<_l_e_t_t_e_r_> Mark the current position with . - '_<_l_e_t_t_e_r_> Go to a previously marked position. - '' Go to the previous position. - ^X^X Same as '. - --------------------------------------------------- - A mark is any upper-case or lower-case letter. - Certain marks are predefined: - ^ means beginning of the file - $ means end of the file - --------------------------------------------------------------------------- - - CCHHAANNGGIINNGG FFIILLEESS - - :e [_f_i_l_e] Examine a new file. - ^X^V Same as :e. - :n * Examine the (_N-th) next file from the command line. - :p * Examine the (_N-th) previous file from the command line. - :x * Examine the first (or _N-th) file from the command line. - :d Delete the current file from the command line list. - = ^G :f Print current file name. - --------------------------------------------------------------------------- - - MMIISSCCEELLLLAANNEEOOUUSS CCOOMMMMAANNDDSS - - -_<_f_l_a_g_> Toggle a command line option [see OPTIONS below]. - --_<_n_a_m_e_> Toggle a command line option, by name. - __<_f_l_a_g_> Display the setting of a command line option. - ___<_n_a_m_e_> Display the setting of an option, by name. - +_c_m_d Execute the less cmd each time a new file is examined. - - !_c_o_m_m_a_n_d Execute the shell command with $SHELL. - |XX_c_o_m_m_a_n_d Pipe file between current pos & mark XX to shell command. - v Edit the current file with $VISUAL or $EDITOR. - V Print version number of "less". - --------------------------------------------------------------------------- - - OOPPTTIIOONNSS - - Most options may be changed either on the command line, - or from within less by using the - or -- command. - Options may be given in one of two forms: either a single - character preceded by a -, or a name preceded by --. - - -? ........ --help - Display help (from command line). - -a ........ --search-skip-screen - Search skips current screen. - -A ........ --SEARCH-SKIP-SCREEN - Search starts just after target line. - -b [_N] .... --buffers=[_N] - Number of buffers. - -B ........ --auto-buffers - Don't automatically allocate buffers for pipes. - -c ........ --clear-screen - Repaint by clearing rather than scrolling. - -d ........ --dumb - Dumb terminal. - -D [_x_n_._n] . --color=_x_n_._n - Set screen colors. (MS-DOS only) - -e -E .... --quit-at-eof --QUIT-AT-EOF - Quit at end of file. - -f ........ --force - Force open non-regular files. - -F ........ --quit-if-one-screen - Quit if entire file fits on first screen. - -g ........ --hilite-search - Highlight only last match for searches. - -G ........ --HILITE-SEARCH - Don't highlight any matches for searches. - -h [_N] .... --max-back-scroll=[_N] - Backward scroll limit. - -i ........ --ignore-case - Ignore case in searches that do not contain uppercase. - -I ........ --IGNORE-CASE - Ignore case in all searches. - -j [_N] .... --jump-target=[_N] - Screen position of target lines. - -J ........ --status-column - Display a status column at left edge of screen. - -k [_f_i_l_e] . --lesskey-file=[_f_i_l_e] - Use a lesskey file. - -K --quit-on-intr - Exit less in response to ctrl-C. - -L ........ --no-lessopen - Ignore the LESSOPEN environment variable. - -m -M .... --long-prompt --LONG-PROMPT - Set prompt style. - -n -N .... --line-numbers --LINE-NUMBERS - Don't use line numbers. - -o [_f_i_l_e] . --log-file=[_f_i_l_e] - Copy to log file (standard input only). - -O [_f_i_l_e] . --LOG-FILE=[_f_i_l_e] - Copy to log file (unconditionally overwrite). - -p [_p_a_t_t_e_r_n] --pattern=[_p_a_t_t_e_r_n] - Start at pattern (from command line). - -P [_p_r_o_m_p_t] --prompt=[_p_r_o_m_p_t] - Define new prompt. - -q -Q .... --quiet --QUIET --silent --SILENT - Quiet the terminal bell. - -r -R .... --raw-control-chars --RAW-CONTROL-CHARS - Output "raw" control characters. - -s ........ --squeeze-blank-lines - Squeeze multiple blank lines. - -S ........ --chop-long-lines - Chop (truncate) long lines rather than wrapping. - -t [_t_a_g] .. --tag=[_t_a_g] - Find a tag. - -T [_t_a_g_s_f_i_l_e] --tag-file=[_t_a_g_s_f_i_l_e] - Use an alternate tags file. - -u -U .... --underline-special --UNDERLINE-SPECIAL - Change handling of backspaces. - -V ........ --version - Display the version number of "less". - -w ........ --hilite-unread - Highlight first new line after forward-screen. - -W ........ --HILITE-UNREAD - Highlight first new line after any forward movement. - -x [_N[,...]] --tabs=[_N[,...]] - Set tab stops. - -X ........ --no-init - Don't use termcap init/deinit strings. - -y [_N] .... --max-forw-scroll=[_N] - Forward scroll limit. - -z [_N] .... --window=[_N] - Set size of window. - -" [_c[_c]] . --quotes=[_c[_c]] - Set shell quote characters. - -~ ........ --tilde - Don't display tildes after end of file. - -# [_N] .... --shift=[_N] - Horizontal scroll amount (0 = one half screen width) - ........ --no-keypad - Don't send termcap keypad init/deinit strings. - ........ --follow-name - The F command changes files if the input file is renamed. - - - --------------------------------------------------------------------------- - - LLIINNEE EEDDIITTIINNGG - - These keys can be used to edit text being entered - on the "command line" at the bottom of the screen. - - RightArrow ESC-l Move cursor right one character. - LeftArrow ESC-h Move cursor left one character. - ctrl-RightArrow ESC-RightArrow ESC-w Move cursor right one word. - ctrl-LeftArrow ESC-LeftArrow ESC-b Move cursor left one word. - HOME ESC-0 Move cursor to start of line. - END ESC-$ Move cursor to end of line. - BACKSPACE Delete char to left of cursor. - DELETE ESC-x Delete char under cursor. - ctrl-BACKSPACE ESC-BACKSPACE Delete word to left of cursor. - ctrl-DELETE ESC-DELETE ESC-X Delete word under cursor. - ctrl-U ESC (MS-DOS only) Delete entire line. - UpArrow ESC-k Retrieve previous command line. - DownArrow ESC-j Retrieve next command line. - TAB Complete filename & cycle. - SHIFT-TAB ESC-TAB Complete filename & reverse cycle. - ctrl-L Complete filename, list all. - - diff --git a/justin_quiros/optimize/README.rdoc b/justin_quiros/optimize/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/optimize/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/optimize/Rakefile b/justin_quiros/optimize/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/app/assets/images/.keep b/justin_quiros/optimize/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/app/assets/javascripts/application.js b/justin_quiros/optimize/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/optimize/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/optimize/app/assets/stylesheets/application.css b/justin_quiros/optimize/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/optimize/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/optimize/app/controllers/application_controller.rb b/justin_quiros/optimize/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/app/controllers/concerns/.keep b/justin_quiros/optimize/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/app/helpers/application_helper.rb b/justin_quiros/optimize/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/optimize/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/optimize/app/mailers/.keep b/justin_quiros/optimize/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/app/models/.keep b/justin_quiros/optimize/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/app/models/concerns/.keep b/justin_quiros/optimize/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/app/models/player.rb b/justin_quiros/optimize/app/models/player.rb deleted file mode 100644 index b30fdc9..0000000 --- a/justin_quiros/optimize/app/models/player.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Player < ActiveRecord::Base - belongs_to :team -end diff --git a/justin_quiros/optimize/app/models/team.rb b/justin_quiros/optimize/app/models/team.rb deleted file mode 100644 index f5b01c9..0000000 --- a/justin_quiros/optimize/app/models/team.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Team < ActiveRecord::Base - has_many :players -end diff --git a/justin_quiros/optimize/app/views/layouts/application.html.erb b/justin_quiros/optimize/app/views/layouts/application.html.erb deleted file mode 100644 index 7fc9d5f..0000000 --- a/justin_quiros/optimize/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Optimize - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/optimize/bin/bundle b/justin_quiros/optimize/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/bin/rails b/justin_quiros/optimize/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/optimize/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/optimize/bin/rake b/justin_quiros/optimize/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/optimize/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/optimize/bin/setup b/justin_quiros/optimize/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/optimize/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/optimize/bin/spring b/justin_quiros/optimize/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/optimize/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/optimize/config.ru b/justin_quiros/optimize/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/application.rb b/justin_quiros/optimize/config/application.rb deleted file mode 100644 index 82f8fb1..0000000 --- a/justin_quiros/optimize/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Optimize - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/optimize/config/boot.rb b/justin_quiros/optimize/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/optimize/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/optimize/config/database.yml b/justin_quiros/optimize/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/environment.rb b/justin_quiros/optimize/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/environments/development.rb b/justin_quiros/optimize/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/optimize/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/optimize/config/environments/production.rb b/justin_quiros/optimize/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/optimize/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/optimize/config/environments/test.rb b/justin_quiros/optimize/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/optimize/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/optimize/config/initializers/assets.rb b/justin_quiros/optimize/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/optimize/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/optimize/config/initializers/backtrace_silencers.rb b/justin_quiros/optimize/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/initializers/cookies_serializer.rb b/justin_quiros/optimize/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/optimize/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 diff --git a/justin_quiros/optimize/config/initializers/filter_parameter_logging.rb b/justin_quiros/optimize/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/initializers/inflections.rb b/justin_quiros/optimize/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/initializers/mime_types.rb b/justin_quiros/optimize/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/initializers/session_store.rb b/justin_quiros/optimize/config/initializers/session_store.rb deleted file mode 100644 index 7e5d399..0000000 --- a/justin_quiros/optimize/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: '_optimize_session' diff --git a/justin_quiros/optimize/config/initializers/wrap_parameters.rb b/justin_quiros/optimize/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/locales/en.yml b/justin_quiros/optimize/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/config/routes.rb b/justin_quiros/optimize/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/optimize/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/optimize/config/secrets.yml b/justin_quiros/optimize/config/secrets.yml deleted file mode 100644 index e95fc2b..0000000 --- a/justin_quiros/optimize/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: e060ebae6cd5a928433a336bdb1233dea11d5848a69ff678d0403b8b32a3b990e7857095f5500c8936c111e320021b74e407f181f3d5aaddc6fe4f0c5d62070e - -test: - secret_key_base: 9d687bbcda3d233e25de3d714e7ba095a582c5ebc57d0c33a0afbceb3e78472836bb66f25a20711c8a6f48e4e513e3c50d5688b83f259c1ffd6205c2c9e1dae3 - -# 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/justin_quiros/optimize/db/migrate/20171130145829_create_teams.rb b/justin_quiros/optimize/db/migrate/20171130145829_create_teams.rb deleted file mode 100644 index 5f7137c..0000000 --- a/justin_quiros/optimize/db/migrate/20171130145829_create_teams.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateTeams < ActiveRecord::Migration - def change - create_table :teams do |t| - t.string :name - t.string :mascot - t.string :stadium - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/optimize/db/migrate/20171130145834_create_players.rb b/justin_quiros/optimize/db/migrate/20171130145834_create_players.rb deleted file mode 100644 index 9949aad..0000000 --- a/justin_quiros/optimize/db/migrate/20171130145834_create_players.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePlayers < ActiveRecord::Migration - def change - create_table :players do |t| - t.string :name - t.references :team, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/optimize/db/schema.rb b/justin_quiros/optimize/db/schema.rb deleted file mode 100644 index 422dab0..0000000 --- a/justin_quiros/optimize/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130145834) do - - create_table "players", force: :cascade do |t| - t.string "name" - t.integer "team_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "players", ["team_id"], name: "index_players_on_team_id" - - create_table "teams", force: :cascade do |t| - t.string "name" - t.string "mascot" - t.string "stadium" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/optimize/db/seeds.rb b/justin_quiros/optimize/db/seeds.rb deleted file mode 100644 index ef67a95..0000000 --- a/justin_quiros/optimize/db/seeds.rb +++ /dev/null @@ -1,113 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) - -# we require 'open-uri' to request the html files -require 'open-uri' -teams = [ - ["Atlanta Hawks", "Skyhawk", "Philips Arena"], - ["Boston Celtics", "Lucky the Leprechaun", "TD Garden"], - ["Brooklyn Nets", "BrooklyKnight", "Barclays Center"], - ["Charlotte Hornets", "Hugo the Hornet", "Spectrum Center"], - ["Chicago Bulls", "Benny the Bull", "United Center"], - ["Cleveland Cavaliers", "Moondog", "Quicken Loans Arena"], - ["Dallas Mavericks", "Champ", "American Airlines Center"], - ["Denver Nuggets", "Rocky the Mountain Lion", "Pepsi Center"], - ["Detroit Pistons", "Hooper", "The Palace of Auburn Hills"], - ["Golden State Warriors", "Thunder", "Oracle Arena"], - ["Houston Rockets", "Clutch", "Toyota Center"], - ["Indiana Pacers", "Boomer the Panther", "Bankers Life Fieldhouse"], - ["Los Angeles Clippers", "Chuck", "Staples Center"], - ["Los Angeles Lakers", "Jack Nicholson", "Staples Center"], - ["Memphis Grizzlies", "Griz", "FedExForum"], - ["Miami Heat", "Burnie", "American Airlines Arena"], - ["Milwaukee Bucks", "Bango", "BMO Harris Bradley Center"], - ["Minnesota Timberwolves", "Crunch the Wolf", "Target Center"], - ["New Orleans Pelicans", "Pierre the Pelican", "Smoothie King Center"], - ["New York Knicks", "Spike Lee", "Madison Square Garden"], - ["Oklahoma City Thunder", "Rumble the Bison", "Chesapeake Energy Arena"], - ["Orlando Magic", "Stuff the Magic Dragon", "Amway Center"], - ["Philadelphia 76ers", "Franklin the Dog", "Wells Fargo Center Philadelphia"], - ["Phoenix Suns", "The Suns Gorilla", "Talking Stick Resort Arena"], - ["Portland Trail Blazers", "Blaze the Trail Cat", "Moda Center"], - ["Sacramento Kings", "Slamson the Lion", "Golden 1 Center"], - ["San Antonio Spurs", "The Coyote", "AT&T Center"], - ["Toronto Raptors", "Raptor", "Air Canada Centre"], - ["Utah Jazz", "Jazz Bear", "Vivint Smart Home Arena"], - ["Washington Wizards", "G. Wiz", "Verizon Center"] -] -# Here, we are using the Nokogiri gem (already comes with Rails), to scrape the ESPN website for the list of players. -# For more information on Nokogiri, you can go to their documentation or visit http://www.nokogiri.org/ -atlanta_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/atl/atlanta-hawks")).css("td.sortcell") -boston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bos/boston-celtics")).css("td.sortcell") -brooklyn_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bkn/brooklyn-nets")).css("td.sortcell") -charlotte_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cha/charlotte-hornets")).css("td.sortcell") -chicago_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/chi/chicago-bulls")).css("td.sortcell") -cleveland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cle/cleveland-cavaliers")).css("td.sortcell") -dallas_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/dal/dallas-mavericks")).css("td.sortcell") -denver_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/den/denver-nuggets")).css("td.sortcell") -detroit_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/det/detroit-pistons")).css("td.sortcell") -warriors_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/gs/golden-state-warriors")).css("td.sortcell") -houston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/hou/houston-rockets")).css("td.sortcell") -indiana_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ind/indiana-pacers")).css("td.sortcell") -clippers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lac/la-clippers")).css("td.sortcell") -lakers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lal/los-angeles-lakers")).css("td.sortcell") -memphis_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mem/memphis-grizzlies")).css("td.sortcell") -miami_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mia/miami-heat")).css("td.sortcell") -milwaukee_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mil/milwaukee-bucks")).css("td.sortcell") -minnesota_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/min/minnesota-timberwolves")).css("td.sortcell") -nola_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/no/new-orleans-pelicans")).css("td.sortcell") -knicks_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ny/new-york-knicks")).css("td.sortcell") -okc_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/okc/oklahoma-city-thunder")).css("td.sortcell") -orlando_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/orl/orlando-magic")).css("td.sortcell") -phili_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phi/philadelphia-76ers")).css("td.sortcell") -phoenix_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phx/phoenix-suns")).css("td.sortcell") -portland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/por/portland-trail-blazers")).css("td.sortcell") -sacramento_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sac/sacramento-kings")).css("td.sortcell") -spurs_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sa/san-antonio-spurs")).css("td.sortcell") -toronto_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/tor/toronto-raptors")).css("td.sortcell") -utah_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/utah/utah-jazz")).css("td.sortcell") -washington_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/wsh/washington-wizards")).css("td.sortcell") -players = [ - atlanta_players, - boston_players, - brooklyn_players, - charlotte_players, - chicago_players, - cleveland_players, - dallas_players, - denver_players, - detroit_players, - warriors_players, - houston_players, - indiana_players, - clippers_players, - lakers_players, - memphis_players, - miami_players, - milwaukee_players, - minnesota_players, - nola_players, - knicks_players, - okc_players, - orlando_players, - phili_players, - phoenix_players, - portland_players, - sacramento_players, - spurs_players, - toronto_players, - utah_players, - washington_players -] -players.each_with_index do |roster, index| - Team.create(name: teams[index][0], mascot: teams[index][1], stadium: teams[index][2]) - roster.each do |player| - Team.last.players.create(name: player.text) - end -end - diff --git a/justin_quiros/optimize/lib/assets/.keep b/justin_quiros/optimize/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/lib/tasks/.keep b/justin_quiros/optimize/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/log/.keep b/justin_quiros/optimize/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/oJ|21|Magette | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | b/justin_quiros/optimize/oJ|21|Magette | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | deleted file mode 100644 index 45a7fe5..0000000 --- a/justin_quiros/optimize/oJ|21|Magette | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | +++ /dev/null @@ -1,230 +0,0 @@ - - SSUUMMMMAARRYY OOFF LLEESSSS CCOOMMMMAANNDDSS - - Commands marked with * may be preceded by a number, _N. - Notes in parentheses indicate the behavior if _N is given. - A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K. - - h H Display this help. - q :q Q :Q ZZ Exit. - --------------------------------------------------------------------------- - - MMOOVVIINNGG - - e ^E j ^N CR * Forward one line (or _N lines). - y ^Y k ^K ^P * Backward one line (or _N lines). - f ^F ^V SPACE * Forward one window (or _N lines). - b ^B ESC-v * Backward one window (or _N lines). - z * Forward one window (and set window to _N). - w * Backward one window (and set window to _N). - ESC-SPACE * Forward one window, but don't stop at end-of-file. - d ^D * Forward one half-window (and set half-window to _N). - u ^U * Backward one half-window (and set half-window to _N). - ESC-) RightArrow * Left one half screen width (or _N positions). - ESC-( LeftArrow * Right one half screen width (or _N positions). - F Forward forever; like "tail -f". - r ^R ^L Repaint screen. - R Repaint screen, discarding buffered input. - --------------------------------------------------- - Default "window" is the screen height. - Default "half-window" is half of the screen height. - --------------------------------------------------------------------------- - - SSEEAARRCCHHIINNGG - - /_p_a_t_t_e_r_n * Search forward for (_N-th) matching line. - ?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line. - n * Repeat previous search (for _N-th occurrence). - N * Repeat previous search in reverse direction. - ESC-n * Repeat previous search, spanning files. - ESC-N * Repeat previous search, reverse dir. & spanning files. - ESC-u Undo (toggle) search highlighting. - &_p_a_t_t_e_r_n * Display only matching lines - --------------------------------------------------- - A search pattern may be preceded by one or more of: - ^N or ! Search for NON-matching lines. - ^E or * Search multiple files (pass thru END OF FILE). - ^F or @ Start search at FIRST file (for /) or last file (for ?). - ^K Highlight matches, but don't move (KEEP position). - ^R Don't use REGULAR EXPRESSIONS. - --------------------------------------------------------------------------- - - JJUUMMPPIINNGG - - g < ESC-< * Go to first line in file (or line _N). - G > ESC-> * Go to last line in file (or line _N). - p % * Go to beginning of file (or _N percent into file). - t * Go to the (_N-th) next tag. - T * Go to the (_N-th) previous tag. - { ( [ * Find close bracket } ) ]. - } ) ] * Find open bracket { ( [. - ESC-^F _<_c_1_> _<_c_2_> * Find close bracket _<_c_2_>. - ESC-^B _<_c_1_> _<_c_2_> * Find open bracket _<_c_1_> - --------------------------------------------------- - Each "find close bracket" command goes forward to the close bracket - matching the (_N-th) open bracket in the top line. - Each "find open bracket" command goes backward to the open bracket - matching the (_N-th) close bracket in the bottom line. - - m_<_l_e_t_t_e_r_> Mark the current position with . - '_<_l_e_t_t_e_r_> Go to a previously marked position. - '' Go to the previous position. - ^X^X Same as '. - --------------------------------------------------- - A mark is any upper-case or lower-case letter. - Certain marks are predefined: - ^ means beginning of the file - $ means end of the file - --------------------------------------------------------------------------- - - CCHHAANNGGIINNGG FFIILLEESS - - :e [_f_i_l_e] Examine a new file. - ^X^V Same as :e. - :n * Examine the (_N-th) next file from the command line. - :p * Examine the (_N-th) previous file from the command line. - :x * Examine the first (or _N-th) file from the command line. - :d Delete the current file from the command line list. - = ^G :f Print current file name. - --------------------------------------------------------------------------- - - MMIISSCCEELLLLAANNEEOOUUSS CCOOMMMMAANNDDSS - - -_<_f_l_a_g_> Toggle a command line option [see OPTIONS below]. - --_<_n_a_m_e_> Toggle a command line option, by name. - __<_f_l_a_g_> Display the setting of a command line option. - ___<_n_a_m_e_> Display the setting of an option, by name. - +_c_m_d Execute the less cmd each time a new file is examined. - - !_c_o_m_m_a_n_d Execute the shell command with $SHELL. - |XX_c_o_m_m_a_n_d Pipe file between current pos & mark XX to shell command. - v Edit the current file with $VISUAL or $EDITOR. - V Print version number of "less". - --------------------------------------------------------------------------- - - OOPPTTIIOONNSS - - Most options may be changed either on the command line, - or from within less by using the - or -- command. - Options may be given in one of two forms: either a single - character preceded by a -, or a name preceded by --. - - -? ........ --help - Display help (from command line). - -a ........ --search-skip-screen - Search skips current screen. - -A ........ --SEARCH-SKIP-SCREEN - Search starts just after target line. - -b [_N] .... --buffers=[_N] - Number of buffers. - -B ........ --auto-buffers - Don't automatically allocate buffers for pipes. - -c ........ --clear-screen - Repaint by clearing rather than scrolling. - -d ........ --dumb - Dumb terminal. - -D [_x_n_._n] . --color=_x_n_._n - Set screen colors. (MS-DOS only) - -e -E .... --quit-at-eof --QUIT-AT-EOF - Quit at end of file. - -f ........ --force - Force open non-regular files. - -F ........ --quit-if-one-screen - Quit if entire file fits on first screen. - -g ........ --hilite-search - Highlight only last match for searches. - -G ........ --HILITE-SEARCH - Don't highlight any matches for searches. - -h [_N] .... --max-back-scroll=[_N] - Backward scroll limit. - -i ........ --ignore-case - Ignore case in searches that do not contain uppercase. - -I ........ --IGNORE-CASE - Ignore case in all searches. - -j [_N] .... --jump-target=[_N] - Screen position of target lines. - -J ........ --status-column - Display a status column at left edge of screen. - -k [_f_i_l_e] . --lesskey-file=[_f_i_l_e] - Use a lesskey file. - -K --quit-on-intr - Exit less in response to ctrl-C. - -L ........ --no-lessopen - Ignore the LESSOPEN environment variable. - -m -M .... --long-prompt --LONG-PROMPT - Set prompt style. - -n -N .... --line-numbers --LINE-NUMBERS - Don't use line numbers. - -o [_f_i_l_e] . --log-file=[_f_i_l_e] - Copy to log file (standard input only). - -O [_f_i_l_e] . --LOG-FILE=[_f_i_l_e] - Copy to log file (unconditionally overwrite). - -p [_p_a_t_t_e_r_n] --pattern=[_p_a_t_t_e_r_n] - Start at pattern (from command line). - -P [_p_r_o_m_p_t] --prompt=[_p_r_o_m_p_t] - Define new prompt. - -q -Q .... --quiet --QUIET --silent --SILENT - Quiet the terminal bell. - -r -R .... --raw-control-chars --RAW-CONTROL-CHARS - Output "raw" control characters. - -s ........ --squeeze-blank-lines - Squeeze multiple blank lines. - -S ........ --chop-long-lines - Chop (truncate) long lines rather than wrapping. - -t [_t_a_g] .. --tag=[_t_a_g] - Find a tag. - -T [_t_a_g_s_f_i_l_e] --tag-file=[_t_a_g_s_f_i_l_e] - Use an alternate tags file. - -u -U .... --underline-special --UNDERLINE-SPECIAL - Change handling of backspaces. - -V ........ --version - Display the version number of "less". - -w ........ --hilite-unread - Highlight first new line after forward-screen. - -W ........ --HILITE-UNREAD - Highlight first new line after any forward movement. - -x [_N[,...]] --tabs=[_N[,...]] - Set tab stops. - -X ........ --no-init - Don't use termcap init/deinit strings. - -y [_N] .... --max-forw-scroll=[_N] - Forward scroll limit. - -z [_N] .... --window=[_N] - Set size of window. - -" [_c[_c]] . --quotes=[_c[_c]] - Set shell quote characters. - -~ ........ --tilde - Don't display tildes after end of file. - -# [_N] .... --shift=[_N] - Horizontal scroll amount (0 = one half screen width) - ........ --no-keypad - Don't send termcap keypad init/deinit strings. - ........ --follow-name - The F command changes files if the input file is renamed. - - - --------------------------------------------------------------------------- - - LLIINNEE EEDDIITTIINNGG - - These keys can be used to edit text being entered - on the "command line" at the bottom of the screen. - - RightArrow ESC-l Move cursor right one character. - LeftArrow ESC-h Move cursor left one character. - ctrl-RightArrow ESC-RightArrow ESC-w Move cursor right one word. - ctrl-LeftArrow ESC-LeftArrow ESC-b Move cursor left one word. - HOME ESC-0 Move cursor to start of line. - END ESC-$ Move cursor to end of line. - BACKSPACE Delete char to left of cursor. - DELETE ESC-x Delete char under cursor. - ctrl-BACKSPACE ESC-BACKSPACE Delete word to left of cursor. - ctrl-DELETE ESC-DELETE ESC-X Delete word under cursor. - ctrl-U ESC (MS-DOS only) Delete entire line. - UpArrow ESC-k Retrieve previous command line. - DownArrow ESC-j Retrieve next command line. - TAB Complete filename & cycle. - SHIFT-TAB ESC-TAB Complete filename & reverse cycle. - ctrl-L Complete filename, list all. - - diff --git a/justin_quiros/optimize/on the Lion b/justin_quiros/optimize/on the Lion deleted file mode 100644 index 45a7fe5..0000000 --- a/justin_quiros/optimize/on the Lion +++ /dev/null @@ -1,230 +0,0 @@ - - SSUUMMMMAARRYY OOFF LLEESSSS CCOOMMMMAANNDDSS - - Commands marked with * may be preceded by a number, _N. - Notes in parentheses indicate the behavior if _N is given. - A key preceded by a caret indicates the Ctrl key; thus ^K is ctrl-K. - - h H Display this help. - q :q Q :Q ZZ Exit. - --------------------------------------------------------------------------- - - MMOOVVIINNGG - - e ^E j ^N CR * Forward one line (or _N lines). - y ^Y k ^K ^P * Backward one line (or _N lines). - f ^F ^V SPACE * Forward one window (or _N lines). - b ^B ESC-v * Backward one window (or _N lines). - z * Forward one window (and set window to _N). - w * Backward one window (and set window to _N). - ESC-SPACE * Forward one window, but don't stop at end-of-file. - d ^D * Forward one half-window (and set half-window to _N). - u ^U * Backward one half-window (and set half-window to _N). - ESC-) RightArrow * Left one half screen width (or _N positions). - ESC-( LeftArrow * Right one half screen width (or _N positions). - F Forward forever; like "tail -f". - r ^R ^L Repaint screen. - R Repaint screen, discarding buffered input. - --------------------------------------------------- - Default "window" is the screen height. - Default "half-window" is half of the screen height. - --------------------------------------------------------------------------- - - SSEEAARRCCHHIINNGG - - /_p_a_t_t_e_r_n * Search forward for (_N-th) matching line. - ?_p_a_t_t_e_r_n * Search backward for (_N-th) matching line. - n * Repeat previous search (for _N-th occurrence). - N * Repeat previous search in reverse direction. - ESC-n * Repeat previous search, spanning files. - ESC-N * Repeat previous search, reverse dir. & spanning files. - ESC-u Undo (toggle) search highlighting. - &_p_a_t_t_e_r_n * Display only matching lines - --------------------------------------------------- - A search pattern may be preceded by one or more of: - ^N or ! Search for NON-matching lines. - ^E or * Search multiple files (pass thru END OF FILE). - ^F or @ Start search at FIRST file (for /) or last file (for ?). - ^K Highlight matches, but don't move (KEEP position). - ^R Don't use REGULAR EXPRESSIONS. - --------------------------------------------------------------------------- - - JJUUMMPPIINNGG - - g < ESC-< * Go to first line in file (or line _N). - G > ESC-> * Go to last line in file (or line _N). - p % * Go to beginning of file (or _N percent into file). - t * Go to the (_N-th) next tag. - T * Go to the (_N-th) previous tag. - { ( [ * Find close bracket } ) ]. - } ) ] * Find open bracket { ( [. - ESC-^F _<_c_1_> _<_c_2_> * Find close bracket _<_c_2_>. - ESC-^B _<_c_1_> _<_c_2_> * Find open bracket _<_c_1_> - --------------------------------------------------- - Each "find close bracket" command goes forward to the close bracket - matching the (_N-th) open bracket in the top line. - Each "find open bracket" command goes backward to the open bracket - matching the (_N-th) close bracket in the bottom line. - - m_<_l_e_t_t_e_r_> Mark the current position with . - '_<_l_e_t_t_e_r_> Go to a previously marked position. - '' Go to the previous position. - ^X^X Same as '. - --------------------------------------------------- - A mark is any upper-case or lower-case letter. - Certain marks are predefined: - ^ means beginning of the file - $ means end of the file - --------------------------------------------------------------------------- - - CCHHAANNGGIINNGG FFIILLEESS - - :e [_f_i_l_e] Examine a new file. - ^X^V Same as :e. - :n * Examine the (_N-th) next file from the command line. - :p * Examine the (_N-th) previous file from the command line. - :x * Examine the first (or _N-th) file from the command line. - :d Delete the current file from the command line list. - = ^G :f Print current file name. - --------------------------------------------------------------------------- - - MMIISSCCEELLLLAANNEEOOUUSS CCOOMMMMAANNDDSS - - -_<_f_l_a_g_> Toggle a command line option [see OPTIONS below]. - --_<_n_a_m_e_> Toggle a command line option, by name. - __<_f_l_a_g_> Display the setting of a command line option. - ___<_n_a_m_e_> Display the setting of an option, by name. - +_c_m_d Execute the less cmd each time a new file is examined. - - !_c_o_m_m_a_n_d Execute the shell command with $SHELL. - |XX_c_o_m_m_a_n_d Pipe file between current pos & mark XX to shell command. - v Edit the current file with $VISUAL or $EDITOR. - V Print version number of "less". - --------------------------------------------------------------------------- - - OOPPTTIIOONNSS - - Most options may be changed either on the command line, - or from within less by using the - or -- command. - Options may be given in one of two forms: either a single - character preceded by a -, or a name preceded by --. - - -? ........ --help - Display help (from command line). - -a ........ --search-skip-screen - Search skips current screen. - -A ........ --SEARCH-SKIP-SCREEN - Search starts just after target line. - -b [_N] .... --buffers=[_N] - Number of buffers. - -B ........ --auto-buffers - Don't automatically allocate buffers for pipes. - -c ........ --clear-screen - Repaint by clearing rather than scrolling. - -d ........ --dumb - Dumb terminal. - -D [_x_n_._n] . --color=_x_n_._n - Set screen colors. (MS-DOS only) - -e -E .... --quit-at-eof --QUIT-AT-EOF - Quit at end of file. - -f ........ --force - Force open non-regular files. - -F ........ --quit-if-one-screen - Quit if entire file fits on first screen. - -g ........ --hilite-search - Highlight only last match for searches. - -G ........ --HILITE-SEARCH - Don't highlight any matches for searches. - -h [_N] .... --max-back-scroll=[_N] - Backward scroll limit. - -i ........ --ignore-case - Ignore case in searches that do not contain uppercase. - -I ........ --IGNORE-CASE - Ignore case in all searches. - -j [_N] .... --jump-target=[_N] - Screen position of target lines. - -J ........ --status-column - Display a status column at left edge of screen. - -k [_f_i_l_e] . --lesskey-file=[_f_i_l_e] - Use a lesskey file. - -K --quit-on-intr - Exit less in response to ctrl-C. - -L ........ --no-lessopen - Ignore the LESSOPEN environment variable. - -m -M .... --long-prompt --LONG-PROMPT - Set prompt style. - -n -N .... --line-numbers --LINE-NUMBERS - Don't use line numbers. - -o [_f_i_l_e] . --log-file=[_f_i_l_e] - Copy to log file (standard input only). - -O [_f_i_l_e] . --LOG-FILE=[_f_i_l_e] - Copy to log file (unconditionally overwrite). - -p [_p_a_t_t_e_r_n] --pattern=[_p_a_t_t_e_r_n] - Start at pattern (from command line). - -P [_p_r_o_m_p_t] --prompt=[_p_r_o_m_p_t] - Define new prompt. - -q -Q .... --quiet --QUIET --silent --SILENT - Quiet the terminal bell. - -r -R .... --raw-control-chars --RAW-CONTROL-CHARS - Output "raw" control characters. - -s ........ --squeeze-blank-lines - Squeeze multiple blank lines. - -S ........ --chop-long-lines - Chop (truncate) long lines rather than wrapping. - -t [_t_a_g] .. --tag=[_t_a_g] - Find a tag. - -T [_t_a_g_s_f_i_l_e] --tag-file=[_t_a_g_s_f_i_l_e] - Use an alternate tags file. - -u -U .... --underline-special --UNDERLINE-SPECIAL - Change handling of backspaces. - -V ........ --version - Display the version number of "less". - -w ........ --hilite-unread - Highlight first new line after forward-screen. - -W ........ --HILITE-UNREAD - Highlight first new line after any forward movement. - -x [_N[,...]] --tabs=[_N[,...]] - Set tab stops. - -X ........ --no-init - Don't use termcap init/deinit strings. - -y [_N] .... --max-forw-scroll=[_N] - Forward scroll limit. - -z [_N] .... --window=[_N] - Set size of window. - -" [_c[_c]] . --quotes=[_c[_c]] - Set shell quote characters. - -~ ........ --tilde - Don't display tildes after end of file. - -# [_N] .... --shift=[_N] - Horizontal scroll amount (0 = one half screen width) - ........ --no-keypad - Don't send termcap keypad init/deinit strings. - ........ --follow-name - The F command changes files if the input file is renamed. - - - --------------------------------------------------------------------------- - - LLIINNEE EEDDIITTIINNGG - - These keys can be used to edit text being entered - on the "command line" at the bottom of the screen. - - RightArrow ESC-l Move cursor right one character. - LeftArrow ESC-h Move cursor left one character. - ctrl-RightArrow ESC-RightArrow ESC-w Move cursor right one word. - ctrl-LeftArrow ESC-LeftArrow ESC-b Move cursor left one word. - HOME ESC-0 Move cursor to start of line. - END ESC-$ Move cursor to end of line. - BACKSPACE Delete char to left of cursor. - DELETE ESC-x Delete char under cursor. - ctrl-BACKSPACE ESC-BACKSPACE Delete word to left of cursor. - ctrl-DELETE ESC-DELETE ESC-X Delete word under cursor. - ctrl-U ESC (MS-DOS only) Delete entire line. - UpArrow ESC-k Retrieve previous command line. - DownArrow ESC-j Retrieve next command line. - TAB Complete filename & cycle. - SHIFT-TAB ESC-TAB Complete filename & reverse cycle. - ctrl-L Complete filename, list all. - - diff --git a/justin_quiros/optimize/public/404.html b/justin_quiros/optimize/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/public/422.html b/justin_quiros/optimize/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/public/500.html b/justin_quiros/optimize/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/optimize/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/justin_quiros/optimize/public/favicon.ico b/justin_quiros/optimize/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/public/robots.txt b/justin_quiros/optimize/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/optimize/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/optimize/q b/justin_quiros/optimize/q deleted file mode 100644 index ee99dbe..0000000 --- a/justin_quiros/optimize/q +++ /dev/null @@ -1,503 +0,0 @@ -+-----+--------------------------+---------+-------------------------+-------------------------+ -| id | name | team_id | created_at | updated_at | -+-----+--------------------------+---------+-------------------------+-------------------------+ -| 1 | Luke Babbitt | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 2 | Kent Bazemore | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 3 | Marco Belinelli | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 4 | DeAndre' Bembry | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 5 | Nicolas Brussino | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 6 | Tyler Cavanaugh | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 7 | John Collins | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 8 | Dewayne Dedmon | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 9 | Malcolm Delaney | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 10 | Tyler Dorsey | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 11 | Ersan Ilyasova | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 12 | Josh Magette | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 13 | Mike Muscala | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 14 | Miles Plumlee | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 15 | Taurean Prince | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 16 | Dennis Schroder | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 17 | Isaiah Taylor | 1 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 18 | Kadeem Allen | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 19 | Aron Baynes | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 20 | Jabari Bird | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 21 | Jaylen Brown | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 22 | Gordon Hayward | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 23 | Al Horford | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 24 | Kyrie Irving | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 25 | Shane Larkin | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 26 | Marcus Morris | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 27 | Abdel Nader | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 28 | Semi Ojeleye | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 29 | Terry Rozier | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 30 | Marcus Smart | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 31 | Jayson Tatum | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 32 | Daniel Theis | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 33 | Guerschon Yabusele | 2 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 34 | Quincy Acy | 3 | 2017-11-30 15:01:51 UTC | 2017-11-30 15:01:51 UTC | -| 35 | Jarrett Allen | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 36 | Trevor Booker | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 37 | DeMarre Carroll | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 38 | Allen Crabbe | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 39 | Spencer Dinwiddie | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 40 | Joe Harris | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 41 | Rondae Hollis-Jefferson | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 42 | Sean Kilpatrick | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 43 | Caris LeVert | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 44 | Jeremy Lin | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 45 | Timofey Mozgov | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 46 | Yakuba Ouattara | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 47 | D'Angelo Russell | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 48 | Isaiah Whitehead | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 49 | Jacob Wiley | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 50 | Tyler Zeller | 3 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 51 | Dwayne Bacon | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 52 | Nicolas Batum | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 53 | Michael Carter-Williams | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 54 | Treveon Graham | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 55 | Dwight Howard | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 56 | Frank Kaminsky | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 57 | Michael Kidd-Gilchrist | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 58 | Jeremy Lamb | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 59 | Mangok Mathiang | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 60 | Malik Monk | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 61 | Johnny O'Bryant III | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 62 | Marcus Paige | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 63 | Julyan Stone | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 64 | Kemba Walker | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 65 | Marvin Williams | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 66 | Cody Zeller | 4 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 67 | Ryan Arcidiacono | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 68 | Antonio Blakeney | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 69 | Kris Dunn | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 70 | Kay Felder | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 71 | Cristiano Felicio | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 72 | Jerian Grant | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 73 | Justin Holiday | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 74 | Zach LaVine | 5 | 2017-11-30 15:01:52 UTC | 2017-11-30 15:01:52 UTC | -| 75 | Robin Lopez | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 76 | Lauri Markkanen | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 77 | Nikola Mirotic | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 78 | David Nwaba | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 79 | Cameron Payne | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 80 | Quincy Pondexter | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 81 | Bobby Portis | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 82 | Denzel Valentine | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 83 | Paul Zipser | 5 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 84 | Jose Calderon | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 85 | Jae Crowder | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 86 | Channing Frye | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 87 | Jeff Green | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 88 | John Holland | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 89 | LeBron James | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 90 | Kyle Korver | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 91 | Kevin Love | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 92 | Cedi Osman | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 93 | London Perrantes | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 94 | Derrick Rose | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 95 | Iman Shumpert | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 96 | JR Smith | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 97 | Isaiah Thomas | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 98 | Tristan Thompson | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 99 | Dwyane Wade | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 100 | Ante Zizic | 6 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 101 | J.J. Barea | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 102 | Harrison Barnes | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 103 | Antonius Cleveland | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 104 | Seth Curry | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 105 | Yogi Ferrell | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 106 | Dorian Finney-Smith | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 107 | Devin Harris | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 108 | Maximilian Kleber | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 109 | Wesley Matthews | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 110 | Josh McRoberts | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 111 | Salah Mejri | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 112 | Johnathan Motley | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 113 | Nerlens Noel | 7 | 2017-11-30 15:01:53 UTC | 2017-11-30 15:01:53 UTC | -| 114 | Dirk Nowitzki | 7 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 115 | Dwight Powell | 7 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 116 | Dennis Smith Jr. | 7 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 117 | Jeff Withey | 7 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 118 | Darrell Arthur | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 119 | Will Barton | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 120 | Malik Beasley | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 121 | Wilson Chandler | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 122 | Torrey Craig | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 123 | Kenneth Faried | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 124 | Gary Harris | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 125 | Juan Hernangomez | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 126 | Richard Jefferson | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 127 | Nikola Jokic | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 128 | Tyler Lydon | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 129 | Trey Lyles | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 130 | Paul Millsap | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 131 | Monte Morris | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 132 | Emmanuel Mudiay | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 133 | Jamal Murray | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 134 | Mason Plumlee | 8 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 135 | Avery Bradley | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 136 | Reggie Bullock | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 137 | Dwight Buycks | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 138 | Andre Drummond | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 139 | Henry Ellenson | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 140 | Langston Galloway | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 141 | Tobias Harris | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 142 | Reggie Jackson | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 143 | Stanley Johnson | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 144 | Luke Kennard | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 145 | Jon Leuer | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 146 | Boban Marjanovic | 9 | 2017-11-30 15:01:54 UTC | 2017-11-30 15:01:54 UTC | -| 147 | Luis Montero | 9 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 148 | Eric Moreland | 9 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 149 | Ish Smith | 9 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 150 | Anthony Tolliver | 9 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 151 | Jordan Bell | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 152 | Chris Boucher | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 153 | Omri Casspi | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 154 | Quinn Cook | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 155 | Stephen Curry | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 156 | Kevin Durant | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 157 | Draymond Green | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 158 | Andre Iguodala | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 159 | Damian Jones | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 160 | Shaun Livingston | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 161 | Kevon Looney | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 162 | Patrick McCaw | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 163 | JaVale McGee | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 164 | Zaza Pachulia | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 165 | Klay Thompson | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 166 | David West | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 167 | Nick Young | 10 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 168 | Ryan Anderson | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 169 | Trevor Ariza | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 170 | Tarik Black | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 171 | Bobby Brown | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 172 | Clint Capela | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 173 | Eric Gordon | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 174 | James Harden | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 175 | Nene Hilario | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 176 | Demetrius Jackson | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 177 | Luc Mbah a Moute | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 178 | Chinanu Onuaku | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 179 | Chris Paul | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 180 | Zhou Qi | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 181 | PJ Tucker | 11 | 2017-11-30 15:01:55 UTC | 2017-11-30 15:01:55 UTC | -| 182 | Briante Weber | 11 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 183 | Troy Williams | 11 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 184 | Ike Anigbogu | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 185 | Bojan Bogdanovic | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 186 | Darren Collison | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 187 | Al Jefferson | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 188 | Cory Joseph | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 189 | T.J. Leaf | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 190 | Victor Oladipo | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 191 | Alex Poythress | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 192 | Glenn Robinson III | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 193 | Domantas Sabonis | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 194 | Lance Stephenson | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 195 | Edmond Sumner | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 196 | Myles Turner | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 197 | Damien Wilkins | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 198 | Joe Young | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 199 | Thaddeus Young | 12 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 200 | Patrick Beverley | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 201 | Sam Dekker | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 202 | Jawun Evans | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 203 | Danilo Gallinari | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 204 | Blake Griffin | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 205 | Montrezl Harrell | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 206 | Brice Johnson | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 207 | Wesley Johnson | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 208 | DeAndre Jordan | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 209 | Willie Reed | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 210 | Austin Rivers | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 211 | Milos Teodosic | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 212 | Sindarius Thornwell | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 213 | C.J. Williams | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 214 | Lou Williams | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 215 | Jamil Wilson | 13 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 216 | Lonzo Ball | 14 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 217 | Vander Blue | 14 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 218 | Andrew Bogut | 14 | 2017-11-30 15:01:56 UTC | 2017-11-30 15:01:56 UTC | -| 219 | Corey Brewer | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 220 | Thomas Bryant | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 221 | Kentavious Caldwell-Pope | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 222 | Alex Caruso | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 223 | Jordan Clarkson | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 224 | Luol Deng | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 225 | Tyler Ennis | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 226 | Josh Hart | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 227 | Brandon Ingram | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 228 | Kyle Kuzma | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 229 | Brook Lopez | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 230 | Larry Nance Jr. | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 231 | Julius Randle | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 232 | Ivica Zubac | 14 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 233 | Dillon Brooks | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 234 | Mario Chalmers | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 235 | Mike Conley | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 236 | Deyonta Davis | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 237 | James Ennis III | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 238 | Tyreke Evans | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 239 | Marc Gasol | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 240 | JaMychal Green | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 241 | Andrew Harrison | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 242 | Vince Hunter | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 243 | Jarell Martin | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 244 | Ben McLemore | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 245 | Chandler Parsons | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 246 | Ivan Rabb | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 247 | Wayne Selden | 15 | 2017-11-30 15:01:57 UTC | 2017-11-30 15:01:57 UTC | -| 248 | Kobi Simmons | 15 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 249 | Brandan Wright | 15 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 250 | Bam Adebayo | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 251 | Goran Dragic | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 252 | Wayne Ellington | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 253 | AJ Hammons | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 254 | Udonis Haslem | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 255 | James Johnson | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 256 | Tyler Johnson | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 257 | Rodney McGruder | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 258 | Jordan Mickey | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 259 | Kelly Olynyk | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 260 | Josh Richardson | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 261 | Dion Waiters | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 262 | Derrick Walton Jr. | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 263 | Okaro White | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 264 | Hassan Whiteside | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 265 | Matt Williams | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 266 | Justise Winslow | 16 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 267 | Giannis Antetokounmpo | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 268 | Eric Bledsoe | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 269 | Joel Bolomboy | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 270 | Malcolm Brogdon | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 271 | Sterling Brown | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 272 | Matthew Dellavedova | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 273 | John Henson | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 274 | DeAndre Liggins | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 275 | Thon Maker | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 276 | Khris Middleton | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 277 | Jabari Parker | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 278 | Gary Payton II | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 279 | Tony Snell | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 280 | Mirza Teletovic | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 281 | Jason Terry | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 282 | Rashad Vaughn | 17 | 2017-11-30 15:01:58 UTC | 2017-11-30 15:01:58 UTC | -| 283 | D.J. Wilson | 17 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 284 | Cole Aldrich | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 285 | Nemanja Bjelica | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 286 | Aaron Brooks | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 287 | Anthony Brown | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 288 | Jimmy Butler | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 289 | Jamal Crawford | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 290 | Gorgui Dieng | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 291 | Marcus Georges-Hunt | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 292 | Taj Gibson | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 293 | Tyus Jones | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 294 | Shabazz Muhammad | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 295 | Justin Patton | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 296 | Jeff Teague | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 297 | Karl-Anthony Towns | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 298 | Andrew Wiggins | 18 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 299 | Alexis Ajinca | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 300 | Tony Allen | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 301 | Omer Asik | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 302 | Ian Clark | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 303 | Charles Cooke | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 304 | DeMarcus Cousins | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 305 | Dante Cunningham | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 306 | Anthony Davis | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 307 | Cheick Diallo | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 308 | Solomon Hill | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 309 | Jrue Holiday | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 310 | Frank Jackson | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 311 | Jalen Jones | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 312 | Darius Miller | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 313 | E'Twaun Moore | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 314 | Jameer Nelson | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 315 | Rajon Rondo | 19 | 2017-11-30 15:01:59 UTC | 2017-11-30 15:01:59 UTC | -| 316 | Ron Baker | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 317 | Michael Beasley | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 318 | Damyean Dotson | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 319 | Tim Hardaway Jr. | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 320 | Willy Hernangomez | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 321 | Isaiah Hicks | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 322 | Jarrett Jack | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 323 | Enes Kanter | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 324 | Luke Kornet | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 325 | Courtney Lee | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 326 | Doug McDermott | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 327 | Joakim Noah | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 328 | Frank Ntilikina | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 329 | Kyle O'Quinn | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 330 | Kristaps Porzingis | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 331 | Ramon Sessions | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 332 | Lance Thomas | 20 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 333 | Alex Abrines | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 334 | Steven Adams | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 335 | Carmelo Anthony | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 336 | Nick Collison | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 337 | PJ Dozier | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 338 | Raymond Felton | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 339 | Terrance Ferguson | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 340 | Paul George | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 341 | Jerami Grant | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 342 | Daniel Hamilton | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 343 | Josh Huestis | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 344 | Dakari Johnson | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 345 | Patrick Patterson | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 346 | Andre Roberson | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 347 | Kyle Singler | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 348 | Russell Westbrook | 21 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 349 | Arron Afflalo | 22 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 350 | Jamel Artis | 22 | 2017-11-30 15:02:00 UTC | 2017-11-30 15:02:00 UTC | -| 351 | D.J. Augustin | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 352 | Khem Birch | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 353 | Bismack Biyombo | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 354 | Evan Fournier | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 355 | Aaron Gordon | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 356 | Mario Hezonja | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 357 | Jonathan Isaac | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 358 | Wesley Iwundu | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 359 | Shelvin Mack | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 360 | Adreian Payne | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 361 | Elfrid Payton | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 362 | Terrence Ross | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 363 | Jonathon Simmons | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 364 | Marreese Speights | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 365 | Nikola Vucevic | 22 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 366 | Justin Anderson | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 367 | Jerryd Bayless | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 368 | Robert Covington | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 369 | Joel Embiid | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 370 | Markelle Fultz | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 371 | Richaun Holmes | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 372 | Amir Johnson | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 373 | Furkan Korkmaz | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 374 | Timothe Luwawu-Cabarrot | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 375 | James Michael McAdoo | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 376 | T.J. McConnell | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 377 | Jahlil Okafor | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 378 | Jacob Pullen | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 379 | JJ Redick | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 380 | Dario Saric | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 381 | Ben Simmons | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 382 | Nik Stauskas | 23 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 383 | Dragan Bender | 24 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 384 | Devin Booker | 24 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 385 | Tyson Chandler | 24 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 386 | Marquese Chriss | 24 | 2017-11-30 15:02:01 UTC | 2017-11-30 15:02:01 UTC | -| 387 | Troy Daniels | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 388 | Jared Dudley | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 389 | Josh Jackson | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 390 | Mike James | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 391 | Derrick Jones Jr. | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 392 | Brandon Knight | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 393 | Alex Len | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 394 | Greg Monroe | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 395 | Alec Peters | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 396 | Davon Reed | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 397 | Tyler Ulis | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 398 | TJ Warren | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 399 | Alan Williams | 24 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 400 | Al-Farouq Aminu | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 401 | Wade Baldwin IV | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 402 | Zach Collins | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 403 | Pat Connaughton | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 404 | Ed Davis | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 405 | Maurice Harkless | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 406 | Jake Layman | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 407 | Meyers Leonard | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 408 | Damian Lillard | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 409 | CJ McCollum | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 410 | Shabazz Napier | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 411 | Jusuf Nurkic | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 412 | Caleb Swanigan | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 413 | Evan Turner | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 414 | Noah Vonleh | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 415 | CJ Wilcox | 25 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 416 | Bogdan Bogdanovic | 26 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 417 | Vince Carter | 26 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 418 | Willie Cauley-Stein | 26 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 419 | Jack Cooley | 26 | 2017-11-30 15:02:02 UTC | 2017-11-30 15:02:02 UTC | -| 420 | De'Aaron Fox | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 421 | Harry Giles | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 422 | Buddy Hield | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 423 | George Hill | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 424 | Justin Jackson | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 425 | Kosta Koufos | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 426 | Skal Labissiere | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 427 | Frank Mason III | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 428 | Georgios Papagiannis | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 429 | Zach Randolph | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 430 | Malachi Richardson | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 431 | JaKarr Sampson | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 432 | Garrett Temple | 26 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 433 | LaMarcus Aldridge | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 434 | Kyle Anderson | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 435 | Davis Bertans | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 436 | Matt Costello | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 437 | Bryn Forbes | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 438 | Pau Gasol | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 439 | Rudy Gay | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 440 | Manu Ginobili | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 441 | Danny Green | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 442 | Darrun Hilliard | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 443 | Joffrey Lauvergne | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 444 | Kawhi Leonard | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 445 | Patty Mills | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 446 | Dejounte Murray | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 447 | Tony Parker | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 448 | Brandon Paul | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 449 | Derrick White | 27 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 450 | OG Anunoby | 28 | 2017-11-30 15:02:03 UTC | 2017-11-30 15:02:03 UTC | -| 451 | Lorenzo Brown | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 452 | Bruno Caboclo | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 453 | DeMar DeRozan | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 454 | Serge Ibaka | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 455 | Kyle Lowry | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 456 | Alfonzo McKinnie | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 457 | CJ Miles | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 458 | Malcolm Miller | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 459 | Lucas Nogueira | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 460 | Jakob Poeltl | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 461 | Norman Powell | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 462 | Pascal Siakam | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 463 | Jonas Valanciunas | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 464 | Fred VanVleet | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 465 | Delon Wright | 28 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 466 | Tony Bradley | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 467 | Alec Burks | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 468 | Dante Exum | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 469 | Derrick Favors | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 470 | Rudy Gobert | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 471 | Eric Griffin | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 472 | Rodney Hood | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 473 | Joe Ingles | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 474 | Jonas Jerebko | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 475 | Joe Johnson | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 476 | Donovan Mitchell | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 477 | Raul Neto | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 478 | Royce O'Neale | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 479 | Ricky Rubio | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 480 | Thabo Sefolosha | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 481 | Ekpe Udoh | 29 | 2017-11-30 15:02:04 UTC | 2017-11-30 15:02:04 UTC | -| 482 | Nate Wolters | 29 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 483 | Bradley Beal | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 484 | Tim Frazier | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 485 | Marcin Gortat | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 486 | Sheldon Mac | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 487 | Ian Mahinmi | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 488 | Chris McCullough | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 489 | Jodie Meeks | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 490 | Markieff Morris | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 491 | Kelly Oubre Jr. | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 492 | Otto Porter Jr. | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 493 | Devin Robinson | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 494 | Tomas Satoransky | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 495 | Mike Scott | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 496 | Jason Smith | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 497 | John Wall | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -| 498 | Mike Young | 30 | 2017-11-30 15:02:05 UTC | 2017-11-30 15:02:05 UTC | -+-----+--------------------------+---------+-------------------------+-------------------------+ -498 rows in set diff --git a/justin_quiros/optimize/test/controllers/.keep b/justin_quiros/optimize/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/test/fixtures/.keep b/justin_quiros/optimize/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/test/fixtures/players.yml b/justin_quiros/optimize/test/fixtures/players.yml deleted file mode 100644 index 56a4719..0000000 --- a/justin_quiros/optimize/test/fixtures/players.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - team_id: - -two: - name: MyString - team_id: diff --git a/justin_quiros/optimize/test/fixtures/teams.yml b/justin_quiros/optimize/test/fixtures/teams.yml deleted file mode 100644 index d9c869d..0000000 --- a/justin_quiros/optimize/test/fixtures/teams.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - mascot: MyString - stadium: MyString - -two: - name: MyString - mascot: MyString - stadium: MyString diff --git a/justin_quiros/optimize/test/helpers/.keep b/justin_quiros/optimize/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/test/integration/.keep b/justin_quiros/optimize/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/test/mailers/.keep b/justin_quiros/optimize/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/test/models/.keep b/justin_quiros/optimize/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/test/models/player_test.rb b/justin_quiros/optimize/test/models/player_test.rb deleted file mode 100644 index 3cf71d7..0000000 --- a/justin_quiros/optimize/test/models/player_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PlayerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/optimize/test/models/team_test.rb b/justin_quiros/optimize/test/models/team_test.rb deleted file mode 100644 index 8b101cb..0000000 --- a/justin_quiros/optimize/test/models/team_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TeamTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/optimize/test/test_helper.rb b/justin_quiros/optimize/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/optimize/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/optimize/vendor/assets/javascripts/.keep b/justin_quiros/optimize/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/optimize/vendor/assets/stylesheets/.keep b/justin_quiros/optimize/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/.gitignore b/justin_quiros/orm_practice/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/orm_practice/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/orm_practice/Gemfile b/justin_quiros/orm_practice/Gemfile deleted file mode 100644 index 7774973..0000000 --- a/justin_quiros/orm_practice/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -#for rails console -gem 'hirb' diff --git a/justin_quiros/orm_practice/Gemfile.lock b/justin_quiros/orm_practice/Gemfile.lock deleted file mode 100644 index c2e340f..0000000 --- a/justin_quiros/orm_practice/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/orm_practice/README.rdoc b/justin_quiros/orm_practice/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/orm_practice/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/orm_practice/Rakefile b/justin_quiros/orm_practice/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/app/assets/images/.keep b/justin_quiros/orm_practice/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/app/assets/javascripts/application.js b/justin_quiros/orm_practice/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/orm_practice/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/orm_practice/app/assets/stylesheets/application.css b/justin_quiros/orm_practice/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/orm_practice/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/orm_practice/app/controllers/application_controller.rb b/justin_quiros/orm_practice/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/app/controllers/concerns/.keep b/justin_quiros/orm_practice/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/app/helpers/application_helper.rb b/justin_quiros/orm_practice/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/orm_practice/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/orm_practice/app/mailers/.keep b/justin_quiros/orm_practice/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/app/models/.keep b/justin_quiros/orm_practice/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/app/models/concerns/.keep b/justin_quiros/orm_practice/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/app/models/user.rb b/justin_quiros/orm_practice/app/models/user.rb deleted file mode 100644 index 5cac8db..0000000 --- a/justin_quiros/orm_practice/app/models/user.rb +++ /dev/null @@ -1,44 +0,0 @@ -class User < ActiveRecord::Base - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, presence: true, length: { in: 2..20 } - validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX }, length: { in: 4..40 } - -# this callback will run before saving on create and update - before_save :downcase_email - - # this callback will run after creating a new user - after_create :successfully_created - - # this callback will run after updating an existing user - after_update :successfully_updated - - # this callback will only run on creating a record to ensure a default age of 0 - before_validation :default_age, on: [:create] - - - # creating a custom instance method. self refers to the ActiveRecord object - def full_name - "#{self.first_name} #{self.last_name}" - end - - # creating a custom class method. self refers to the User model - def self.average_age - self.sum(:age) / self.count - end - - private - def downcase_email - self.email.downcase! - end - - def successfully_created - puts "Successfully created a new user" - end - def successfully_updated - puts "Successfully updated a existing user" - end - - def default_age - self.age = 0 unless self.age? - end -end diff --git a/justin_quiros/orm_practice/app/views/layouts/application.html.erb b/justin_quiros/orm_practice/app/views/layouts/application.html.erb deleted file mode 100644 index a1bac82..0000000 --- a/justin_quiros/orm_practice/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - OrmPractice - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/orm_practice/bin/bundle b/justin_quiros/orm_practice/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/bin/rails b/justin_quiros/orm_practice/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/orm_practice/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/orm_practice/bin/rake b/justin_quiros/orm_practice/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/orm_practice/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/orm_practice/bin/setup b/justin_quiros/orm_practice/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/orm_practice/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/orm_practice/bin/spring b/justin_quiros/orm_practice/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/orm_practice/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/orm_practice/config.ru b/justin_quiros/orm_practice/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/application.rb b/justin_quiros/orm_practice/config/application.rb deleted file mode 100644 index f5c981b..0000000 --- a/justin_quiros/orm_practice/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module OrmPractice - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/orm_practice/config/boot.rb b/justin_quiros/orm_practice/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/orm_practice/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/orm_practice/config/database.yml b/justin_quiros/orm_practice/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/environment.rb b/justin_quiros/orm_practice/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/environments/development.rb b/justin_quiros/orm_practice/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/orm_practice/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/orm_practice/config/environments/production.rb b/justin_quiros/orm_practice/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/orm_practice/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/orm_practice/config/environments/test.rb b/justin_quiros/orm_practice/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/orm_practice/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/orm_practice/config/initializers/assets.rb b/justin_quiros/orm_practice/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/orm_practice/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/orm_practice/config/initializers/backtrace_silencers.rb b/justin_quiros/orm_practice/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/initializers/cookies_serializer.rb b/justin_quiros/orm_practice/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/orm_practice/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 diff --git a/justin_quiros/orm_practice/config/initializers/filter_parameter_logging.rb b/justin_quiros/orm_practice/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/initializers/inflections.rb b/justin_quiros/orm_practice/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/initializers/mime_types.rb b/justin_quiros/orm_practice/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/initializers/wrap_parameters.rb b/justin_quiros/orm_practice/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/locales/en.yml b/justin_quiros/orm_practice/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/config/routes.rb b/justin_quiros/orm_practice/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/orm_practice/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/orm_practice/config/secrets.yml b/justin_quiros/orm_practice/config/secrets.yml deleted file mode 100644 index ce8e2e8..0000000 --- a/justin_quiros/orm_practice/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: cc63a6361d1904f5eec95a2355508ce0297f6c4d48369f8f1945dd7287784701b1c32d490537480add6a360f38cbbd404b095354aa16f6f78b8b7551351909fc - -test: - secret_key_base: 71fc3a76fc06a9f346ad4f297aa7c1835e51952445a6ab1055c0f1f0ecbed1424eed75bc33bc6de19b0d2d5de1b1ea94e7d58e43433d3473a726d0a5f8fc8e8a - -# 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/justin_quiros/orm_practice/db/migrate/20171129153239_create_users.rb b/justin_quiros/orm_practice/db/migrate/20171129153239_create_users.rb deleted file mode 100644 index c76d659..0000000 --- a/justin_quiros/orm_practice/db/migrate/20171129153239_create_users.rb +++ /dev/null @@ -1,13 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email - t.string :password - t.integer :age - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/orm_practice/db/schema.rb b/justin_quiros/orm_practice/db/schema.rb deleted file mode 100644 index a242e9e..0000000 --- a/justin_quiros/orm_practice/db/schema.rb +++ /dev/null @@ -1,26 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129153239) do - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email" - t.string "password" - t.integer "age" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/orm_practice/db/seeds.rb b/justin_quiros/orm_practice/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/orm_practice/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/orm_practice/lib/assets/.keep b/justin_quiros/orm_practice/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/lib/tasks/.keep b/justin_quiros/orm_practice/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/log/.keep b/justin_quiros/orm_practice/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/public/404.html b/justin_quiros/orm_practice/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/public/422.html b/justin_quiros/orm_practice/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/public/500.html b/justin_quiros/orm_practice/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/orm_practice/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/justin_quiros/orm_practice/public/favicon.ico b/justin_quiros/orm_practice/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/public/robots.txt b/justin_quiros/orm_practice/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/orm_practice/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/orm_practice/test/controllers/.keep b/justin_quiros/orm_practice/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/test/fixtures/.keep b/justin_quiros/orm_practice/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/test/fixtures/users.yml b/justin_quiros/orm_practice/test/fixtures/users.yml deleted file mode 100644 index 1b24932..0000000 --- a/justin_quiros/orm_practice/test/fixtures/users.yml +++ /dev/null @@ -1,15 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email: MyString - password: MyString - age: 1 - -two: - first_name: MyString - last_name: MyString - email: MyString - password: MyString - age: 1 diff --git a/justin_quiros/orm_practice/test/helpers/.keep b/justin_quiros/orm_practice/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/test/integration/.keep b/justin_quiros/orm_practice/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/test/mailers/.keep b/justin_quiros/orm_practice/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/test/models/.keep b/justin_quiros/orm_practice/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/test/models/user_test.rb b/justin_quiros/orm_practice/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/justin_quiros/orm_practice/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/orm_practice/test/test_helper.rb b/justin_quiros/orm_practice/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/orm_practice/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/orm_practice/vendor/assets/javascripts/.keep b/justin_quiros/orm_practice/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/orm_practice/vendor/assets/stylesheets/.keep b/justin_quiros/orm_practice/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/.gitignore b/justin_quiros/poly/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/poly/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/poly/Gemfile b/justin_quiros/poly/Gemfile deleted file mode 100644 index 732f093..0000000 --- a/justin_quiros/poly/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - diff --git a/justin_quiros/poly/Gemfile.lock b/justin_quiros/poly/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/justin_quiros/poly/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/poly/README.rdoc b/justin_quiros/poly/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/poly/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/poly/Rakefile b/justin_quiros/poly/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/app/assets/images/.keep b/justin_quiros/poly/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/app/assets/javascripts/application.js b/justin_quiros/poly/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/poly/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/poly/app/assets/stylesheets/application.css b/justin_quiros/poly/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/poly/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/poly/app/controllers/application_controller.rb b/justin_quiros/poly/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/app/controllers/concerns/.keep b/justin_quiros/poly/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/app/helpers/application_helper.rb b/justin_quiros/poly/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/poly/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/poly/app/mailers/.keep b/justin_quiros/poly/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/app/models/.keep b/justin_quiros/poly/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/app/models/concerns/.keep b/justin_quiros/poly/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/app/models/employee.rb b/justin_quiros/poly/app/models/employee.rb deleted file mode 100644 index 214b42e..0000000 --- a/justin_quiros/poly/app/models/employee.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Employee < ActiveRecord::Base - has_many :pictures, as: :imageable -end diff --git a/justin_quiros/poly/app/models/picture.rb b/justin_quiros/poly/app/models/picture.rb deleted file mode 100644 index 72a71a9..0000000 --- a/justin_quiros/poly/app/models/picture.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Picture < ActiveRecord::Base - belongs_to :imageable, polymorphic: true -end diff --git a/justin_quiros/poly/app/models/product.rb b/justin_quiros/poly/app/models/product.rb deleted file mode 100644 index b714a02..0000000 --- a/justin_quiros/poly/app/models/product.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Product < ActiveRecord::Base - has_many :pictures, as: :imageable -end diff --git a/justin_quiros/poly/app/views/layouts/application.html.erb b/justin_quiros/poly/app/views/layouts/application.html.erb deleted file mode 100644 index ef2917a..0000000 --- a/justin_quiros/poly/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Poly - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/poly/bin/bundle b/justin_quiros/poly/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/bin/rails b/justin_quiros/poly/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/poly/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/poly/bin/rake b/justin_quiros/poly/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/poly/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/poly/bin/setup b/justin_quiros/poly/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/poly/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/poly/bin/spring b/justin_quiros/poly/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/poly/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/poly/config.ru b/justin_quiros/poly/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/application.rb b/justin_quiros/poly/config/application.rb deleted file mode 100644 index dc125b0..0000000 --- a/justin_quiros/poly/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Poly - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/poly/config/boot.rb b/justin_quiros/poly/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/poly/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/poly/config/database.yml b/justin_quiros/poly/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/environment.rb b/justin_quiros/poly/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/environments/development.rb b/justin_quiros/poly/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/poly/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/poly/config/environments/production.rb b/justin_quiros/poly/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/poly/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/poly/config/environments/test.rb b/justin_quiros/poly/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/poly/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/poly/config/initializers/assets.rb b/justin_quiros/poly/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/poly/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/poly/config/initializers/backtrace_silencers.rb b/justin_quiros/poly/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/initializers/cookies_serializer.rb b/justin_quiros/poly/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/poly/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 diff --git a/justin_quiros/poly/config/initializers/filter_parameter_logging.rb b/justin_quiros/poly/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/initializers/inflections.rb b/justin_quiros/poly/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/initializers/mime_types.rb b/justin_quiros/poly/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/initializers/session_store.rb b/justin_quiros/poly/config/initializers/session_store.rb deleted file mode 100644 index 69452fb..0000000 --- a/justin_quiros/poly/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: '_poly_session' diff --git a/justin_quiros/poly/config/initializers/wrap_parameters.rb b/justin_quiros/poly/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/locales/en.yml b/justin_quiros/poly/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/config/routes.rb b/justin_quiros/poly/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/poly/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/poly/config/secrets.yml b/justin_quiros/poly/config/secrets.yml deleted file mode 100644 index 4ede6af..0000000 --- a/justin_quiros/poly/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: 0efac5736bc72a40eea754c01c95c783d82a4d39bb0d4c2c050ea2ae832c803a1fdba58b911e0002772fbb1f31da412bc95e579f787eb6ef185223fb29a68f89 - -test: - secret_key_base: f938ef5f13a0eba98c51b03090c0e475bf4d3f966489db8d6ab1f4f57a839a6b64d02d391b70f9274976d706c48e80b2c95f703a35bd6a88d165e30d624f1025 - -# 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/justin_quiros/poly/db/migrate/20171130194336_create_pictures.rb b/justin_quiros/poly/db/migrate/20171130194336_create_pictures.rb deleted file mode 100644 index c5c8b51..0000000 --- a/justin_quiros/poly/db/migrate/20171130194336_create_pictures.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreatePictures < ActiveRecord::Migration - def change - create_table :pictures do |t| - t.references :imageable, polymorphic: true, index: true - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/poly/db/migrate/20171130194343_create_employees.rb b/justin_quiros/poly/db/migrate/20171130194343_create_employees.rb deleted file mode 100644 index 918b08f..0000000 --- a/justin_quiros/poly/db/migrate/20171130194343_create_employees.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateEmployees < ActiveRecord::Migration - def change - create_table :employees do |t| - t.string :first_name - t.string :last_name - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/poly/db/migrate/20171130194351_create_products.rb b/justin_quiros/poly/db/migrate/20171130194351_create_products.rb deleted file mode 100644 index e3435f6..0000000 --- a/justin_quiros/poly/db/migrate/20171130194351_create_products.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateProducts < ActiveRecord::Migration - def change - create_table :products do |t| - t.string :name - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/poly/db/schema.rb b/justin_quiros/poly/db/schema.rb deleted file mode 100644 index 598de13..0000000 --- a/justin_quiros/poly/db/schema.rb +++ /dev/null @@ -1,38 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130194351) do - - create_table "employees", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "pictures", force: :cascade do |t| - t.integer "imageable_id" - t.string "imageable_type" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "pictures", ["imageable_type", "imageable_id"], name: "index_pictures_on_imageable_type_and_imageable_id" - - create_table "products", force: :cascade do |t| - t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/poly/db/seeds.rb b/justin_quiros/poly/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/poly/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/poly/lib/assets/.keep b/justin_quiros/poly/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/lib/tasks/.keep b/justin_quiros/poly/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/log/.keep b/justin_quiros/poly/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/public/404.html b/justin_quiros/poly/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/public/422.html b/justin_quiros/poly/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/public/500.html b/justin_quiros/poly/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/poly/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/justin_quiros/poly/public/favicon.ico b/justin_quiros/poly/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/public/robots.txt b/justin_quiros/poly/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/poly/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/poly/test/controllers/.keep b/justin_quiros/poly/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/test/fixtures/.keep b/justin_quiros/poly/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/test/fixtures/employees.yml b/justin_quiros/poly/test/fixtures/employees.yml deleted file mode 100644 index afdaa6a..0000000 --- a/justin_quiros/poly/test/fixtures/employees.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - -two: - first_name: MyString - last_name: MyString diff --git a/justin_quiros/poly/test/fixtures/pictures.yml b/justin_quiros/poly/test/fixtures/pictures.yml deleted file mode 100644 index 24eee9e..0000000 --- a/justin_quiros/poly/test/fixtures/pictures.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - imageable_id: - imageable_type: Imageable - -two: - imageable_id: - imageable_type: Imageable diff --git a/justin_quiros/poly/test/fixtures/products.yml b/justin_quiros/poly/test/fixtures/products.yml deleted file mode 100644 index 56066c6..0000000 --- a/justin_quiros/poly/test/fixtures/products.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - -two: - name: MyString diff --git a/justin_quiros/poly/test/helpers/.keep b/justin_quiros/poly/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/test/integration/.keep b/justin_quiros/poly/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/test/mailers/.keep b/justin_quiros/poly/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/test/models/.keep b/justin_quiros/poly/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/test/models/employee_test.rb b/justin_quiros/poly/test/models/employee_test.rb deleted file mode 100644 index c1674c3..0000000 --- a/justin_quiros/poly/test/models/employee_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class EmployeeTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/poly/test/models/picture_test.rb b/justin_quiros/poly/test/models/picture_test.rb deleted file mode 100644 index 59e7bb4..0000000 --- a/justin_quiros/poly/test/models/picture_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PictureTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/poly/test/models/product_test.rb b/justin_quiros/poly/test/models/product_test.rb deleted file mode 100644 index 211cdd0..0000000 --- a/justin_quiros/poly/test/models/product_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class ProductTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/poly/test/test_helper.rb b/justin_quiros/poly/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/poly/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/poly/vendor/assets/javascripts/.keep b/justin_quiros/poly/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/poly/vendor/assets/stylesheets/.keep b/justin_quiros/poly/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/project.rb b/justin_quiros/project.rb deleted file mode 100644 index 88cfc8f..0000000 --- a/justin_quiros/project.rb +++ /dev/null @@ -1,16 +0,0 @@ -class Project - def initialize(name, description) - @name = name - @description = description - end - def elevator_pitch - puts "Project name: #{@name}" - puts "Project description: #{@description}" - end - def name - puts "#{@name}" - end -end -project1 = Project.new("Cool Project", "This project is really cool") -project1.name -project1.elevator_pitch \ No newline at end of file diff --git a/justin_quiros/puzzle.rb b/justin_quiros/puzzle.rb deleted file mode 100644 index 70cfccc..0000000 --- a/justin_quiros/puzzle.rb +++ /dev/null @@ -1,38 +0,0 @@ -# 1 -# arr = [3,5,1,2,7,9,8,13,25,32] -# arr2 = [] -# p arr.inject(0, :+) -# arr.each_index {|i| arr2.push(arr[i]) if arr[i] > 10} -# p arr2 - -# 2 -# arr = ["John", "KB", "Oliver", "Cory", "Matthew", "Christopher"] -# p arr.shuffle -# arr.each_index {|i| puts arr[i] if arr[i].length > 5} - -# 3 -# arr = ("a".."z").to_a -# b = arr.shuffle.last, arr.shuffle.first -# p b -# p "The first letter in the shuffled array is a vowel!" if ["a","e","i","o","u"].include? b.first - -# 4 -# arr = [] -# 10.times { arr << rand(55..100) } -# p arr.sort -# p arr.min -# p arr.max - -# 5 -# str = "" -# 5.times { str << (65+rand(26)).chr} -# puts str - -# 6 -# arr = [] -# 10.times do -# str = "" -# 5.times { str << (65+rand(26)).chr } -# arr << str -# end -# puts arr diff --git a/justin_quiros/quiz.rb b/justin_quiros/quiz.rb deleted file mode 100644 index bb01949..0000000 --- a/justin_quiros/quiz.rb +++ /dev/null @@ -1,24 +0,0 @@ -class CodingDojo - @@no_of_branches = 0 - def initialize(id, name, address) - @branch_id = id - @branch_name = name - @branch_address = address - @@no_of_branches += 1 - puts "Created branch #{@@no_of_branches}" - end - def hello - puts "Hello CodingDojo!" - end - def display_all - puts "Branch ID: #{@branch_id}" - puts "Branch Name: #{@branch_name}" - puts "Branch Address: #{@branch_address}" - end - def self.num_of_branches - @@no_of_branches - end -end -seattle = CodingDojo.new(1, "Seattle", "123 Seattle Avenue") -san_jose = CodingDojo.new(2, "San Jose", "456 San Jose Boulevard") -burbank = CodingDojo.new(3, "Burbank", "789 Burbank Street") \ No newline at end of file diff --git a/justin_quiros/range.rb b/justin_quiros/range.rb deleted file mode 100644 index 165a97b..0000000 --- a/justin_quiros/range.rb +++ /dev/null @@ -1,6 +0,0 @@ -x = (1..20) - -puts "It does include 4!" if x.include? 4 -puts "The last number in x is " + x.last.to_s -puts "The max in x is " + x.max.to_s -puts "The min in x is " + x.min.to_s \ No newline at end of file diff --git a/justin_quiros/routes/.gitignore b/justin_quiros/routes/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/routes/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/routes/Gemfile b/justin_quiros/routes/Gemfile deleted file mode 100644 index 732f093..0000000 --- a/justin_quiros/routes/Gemfile +++ /dev/null @@ -1,49 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - diff --git a/justin_quiros/routes/Gemfile.lock b/justin_quiros/routes/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/justin_quiros/routes/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/routes/README.rdoc b/justin_quiros/routes/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/routes/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/routes/Rakefile b/justin_quiros/routes/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/app/assets/images/.keep b/justin_quiros/routes/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/app/assets/javascripts/application.js b/justin_quiros/routes/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/routes/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/routes/app/assets/stylesheets/application.css b/justin_quiros/routes/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/routes/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/routes/app/controllers/application_controller.rb b/justin_quiros/routes/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/app/controllers/concerns/.keep b/justin_quiros/routes/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/app/controllers/tests_controller.rb b/justin_quiros/routes/app/controllers/tests_controller.rb deleted file mode 100644 index 1137d57..0000000 --- a/justin_quiros/routes/app/controllers/tests_controller.rb +++ /dev/null @@ -1,32 +0,0 @@ -class TestsController < ApplicationController - - - def index - render :text => "What do you want me to say???" - end - def hi - session[:count] ||= 0 - render :text => "Hello CodingDojo!" - end - def say_hello - render :text => "Saying Hello!" - end - def hello - if params[:name] == "joe" - render :text => "Saying Hello Joe!" - else - redirect_to '/say/hello/joe' - end - end - def hello_joe - render :text => "Saying Hello Joe!" - end - def times - session[:count] += 1 - render :text => "You have visited this page " + session[:count].to_s + " times." - end - def times_restart - session[:count] = 0 - render :text => "Destroyed the session!" - end -end diff --git a/justin_quiros/routes/app/helpers/application_helper.rb b/justin_quiros/routes/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/routes/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/routes/app/mailers/.keep b/justin_quiros/routes/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/app/models/.keep b/justin_quiros/routes/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/app/models/concerns/.keep b/justin_quiros/routes/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/app/views/layouts/application.html.erb b/justin_quiros/routes/app/views/layouts/application.html.erb deleted file mode 100644 index 593f853..0000000 --- a/justin_quiros/routes/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Routes - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/routes/app/views/tests/index.html.erb b/justin_quiros/routes/app/views/tests/index.html.erb deleted file mode 100644 index 5a4c8ac..0000000 --- a/justin_quiros/routes/app/views/tests/index.html.erb +++ /dev/null @@ -1,2 +0,0 @@ -

Tests#index

-

Find me in app/views/tests/index.html.erb

diff --git a/justin_quiros/routes/bin/bundle b/justin_quiros/routes/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/bin/rails b/justin_quiros/routes/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/routes/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/routes/bin/rake b/justin_quiros/routes/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/routes/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/routes/bin/setup b/justin_quiros/routes/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/routes/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/routes/bin/spring b/justin_quiros/routes/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/routes/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/routes/config.ru b/justin_quiros/routes/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/application.rb b/justin_quiros/routes/config/application.rb deleted file mode 100644 index cb1a49d..0000000 --- a/justin_quiros/routes/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Routes - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/routes/config/boot.rb b/justin_quiros/routes/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/routes/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/routes/config/database.yml b/justin_quiros/routes/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/environment.rb b/justin_quiros/routes/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/environments/development.rb b/justin_quiros/routes/config/environments/development.rb deleted file mode 100644 index 0290ec9..0000000 --- a/justin_quiros/routes/config/environments/development.rb +++ /dev/null @@ -1,47 +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 - - # Use the below so you don't have to shut down server everytime you make a change in your controller - config.reload_classes_only_on_change = false - - # Use the below to get rid of unwanted text in console - config.log_level = :warn - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/routes/config/environments/production.rb b/justin_quiros/routes/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/routes/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/routes/config/environments/test.rb b/justin_quiros/routes/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/routes/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/routes/config/initializers/assets.rb b/justin_quiros/routes/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/routes/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/routes/config/initializers/backtrace_silencers.rb b/justin_quiros/routes/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/initializers/cookies_serializer.rb b/justin_quiros/routes/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/routes/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 diff --git a/justin_quiros/routes/config/initializers/filter_parameter_logging.rb b/justin_quiros/routes/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/initializers/inflections.rb b/justin_quiros/routes/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/initializers/mime_types.rb b/justin_quiros/routes/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/initializers/session_store.rb b/justin_quiros/routes/config/initializers/session_store.rb deleted file mode 100644 index 98f9ece..0000000 --- a/justin_quiros/routes/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: '_routes_session' diff --git a/justin_quiros/routes/config/initializers/wrap_parameters.rb b/justin_quiros/routes/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/locales/en.yml b/justin_quiros/routes/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/config/routes.rb b/justin_quiros/routes/config/routes.rb deleted file mode 100644 index 22f6ddd..0000000 --- a/justin_quiros/routes/config/routes.rb +++ /dev/null @@ -1,70 +0,0 @@ -Rails.application.routes.draw do - get 'tests/index' - - get "/" => "tests#index" - get "hello" => "tests#hi" - get "say/hello" => "tests#say_hello" - get "say/hello/:name" => "tests#hello" - get "say/hello/joe" => "tests#hello_joe" - get "times" => "tests#times" - get "times/restart" => "tests#times_restart" - - - - - - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/routes/config/secrets.yml b/justin_quiros/routes/config/secrets.yml deleted file mode 100644 index 5d98ba3..0000000 --- a/justin_quiros/routes/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: ee3fb26fde0c1263936a871126c8d490c004074702b7ca240dca4bc74b609fc7962378da3209b610ada7ee6070b1d5dcbe3ffaf1c20cfe5fa0ed3b43ff7b358e - -test: - secret_key_base: e2320cb941445789bcbb61bb4540eb00400a93f019afd59b4f483f6ec4fb08d1e6b750ca64234ce3e10664cd895f0d788e7e5bfd68cfb0731653cf9fc911640d - -# 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/justin_quiros/routes/db/seeds.rb b/justin_quiros/routes/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/routes/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/routes/lib/assets/.keep b/justin_quiros/routes/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/lib/tasks/.keep b/justin_quiros/routes/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/log/.keep b/justin_quiros/routes/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/public/404.html b/justin_quiros/routes/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/public/422.html b/justin_quiros/routes/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/public/500.html b/justin_quiros/routes/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/routes/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/justin_quiros/routes/public/favicon.ico b/justin_quiros/routes/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/public/robots.txt b/justin_quiros/routes/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/routes/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/routes/test/controllers/.keep b/justin_quiros/routes/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/test/controllers/tests_controller_test.rb b/justin_quiros/routes/test/controllers/tests_controller_test.rb deleted file mode 100644 index ab3b578..0000000 --- a/justin_quiros/routes/test/controllers/tests_controller_test.rb +++ /dev/null @@ -1,9 +0,0 @@ -require 'test_helper' - -class TestsControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - -end diff --git a/justin_quiros/routes/test/fixtures/.keep b/justin_quiros/routes/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/test/helpers/.keep b/justin_quiros/routes/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/test/integration/.keep b/justin_quiros/routes/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/test/mailers/.keep b/justin_quiros/routes/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/test/models/.keep b/justin_quiros/routes/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/test/test_helper.rb b/justin_quiros/routes/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/routes/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/routes/vendor/assets/javascripts/.keep b/justin_quiros/routes/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/routes/vendor/assets/stylesheets/.keep b/justin_quiros/routes/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/.gitignore b/justin_quiros/survey/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/survey/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/survey/Gemfile b/justin_quiros/survey/Gemfile deleted file mode 100644 index e87fad5..0000000 --- a/justin_quiros/survey/Gemfile +++ /dev/null @@ -1,47 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - diff --git a/justin_quiros/survey/Gemfile.lock b/justin_quiros/survey/Gemfile.lock deleted file mode 100644 index 2d8e864..0000000 --- a/justin_quiros/survey/Gemfile.lock +++ /dev/null @@ -1,170 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/survey/README.rdoc b/justin_quiros/survey/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/survey/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/survey/Rakefile b/justin_quiros/survey/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/app/assets/images/.keep b/justin_quiros/survey/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/app/assets/javascripts/application.js b/justin_quiros/survey/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/survey/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/survey/app/assets/stylesheets/application.css b/justin_quiros/survey/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/survey/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/survey/app/assets/stylesheets/dojos.scss b/justin_quiros/survey/app/assets/stylesheets/dojos.scss deleted file mode 100644 index fb30922..0000000 --- a/justin_quiros/survey/app/assets/stylesheets/dojos.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Dojos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/justin_quiros/survey/app/controllers/application_controller.rb b/justin_quiros/survey/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/app/controllers/concerns/.keep b/justin_quiros/survey/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/app/controllers/dojos_controller.rb b/justin_quiros/survey/app/controllers/dojos_controller.rb deleted file mode 100644 index a129c95..0000000 --- a/justin_quiros/survey/app/controllers/dojos_controller.rb +++ /dev/null @@ -1,23 +0,0 @@ -class DojosController < ApplicationController - def index - session[:views] ||= 0 - end - - def create - session[:views] += 1 - - session[:survey] = survey_params - - redirect_to dojos_show_path - end - - def show - @result = session[:survey] - flash[:success] = "Thanks for submitting this form! You have submitted this form #{ session[:views] } time(s) now." - end - - private - def survey_params - params.require(:survey).permit(:name, :location, :language, :comments) - end -end diff --git a/justin_quiros/survey/app/helpers/application_helper.rb b/justin_quiros/survey/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/survey/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/survey/app/helpers/dojos_helper.rb b/justin_quiros/survey/app/helpers/dojos_helper.rb deleted file mode 100644 index 194211a..0000000 --- a/justin_quiros/survey/app/helpers/dojos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module DojosHelper -end diff --git a/justin_quiros/survey/app/mailers/.keep b/justin_quiros/survey/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/app/models/.keep b/justin_quiros/survey/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/app/models/concerns/.keep b/justin_quiros/survey/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/app/views/dojos/index.html.erb b/justin_quiros/survey/app/views/dojos/index.html.erb deleted file mode 100644 index 69cb436..0000000 --- a/justin_quiros/survey/app/views/dojos/index.html.erb +++ /dev/null @@ -1,27 +0,0 @@ -
- - - - - - - -

- - -
\ No newline at end of file diff --git a/justin_quiros/survey/app/views/dojos/show.html.erb b/justin_quiros/survey/app/views/dojos/show.html.erb deleted file mode 100644 index bcd5a3b..0000000 --- a/justin_quiros/survey/app/views/dojos/show.html.erb +++ /dev/null @@ -1,6 +0,0 @@ -

<%= flash[:success] %>

-

Name: <%= @result['name'] %>

-

Dojo Location: <%= @result['location'] %>

-

Favorite Language: <%= @result['language'] %>

-

Comment: <%= @result['comments'] %>

-Go Back \ No newline at end of file diff --git a/justin_quiros/survey/app/views/layouts/application.html.erb b/justin_quiros/survey/app/views/layouts/application.html.erb deleted file mode 100644 index 00b0656..0000000 --- a/justin_quiros/survey/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Survey - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/survey/bin/bundle b/justin_quiros/survey/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/bin/rails b/justin_quiros/survey/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/survey/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/survey/bin/rake b/justin_quiros/survey/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/survey/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/survey/bin/setup b/justin_quiros/survey/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/survey/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/survey/bin/spring b/justin_quiros/survey/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/survey/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/survey/config.ru b/justin_quiros/survey/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/application.rb b/justin_quiros/survey/config/application.rb deleted file mode 100644 index c85fb1c..0000000 --- a/justin_quiros/survey/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Survey - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/survey/config/boot.rb b/justin_quiros/survey/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/survey/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/survey/config/database.yml b/justin_quiros/survey/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/environment.rb b/justin_quiros/survey/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/environments/development.rb b/justin_quiros/survey/config/environments/development.rb deleted file mode 100644 index 13ea7f8..0000000 --- a/justin_quiros/survey/config/environments/development.rb +++ /dev/null @@ -1,52 +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 - - - - - - # Use the below so you don't have to shut down server everytime you make a change in your controller - config.reload_classes_only_on_change = false - - # Use the below to get rid of unwanted text in console - config.log_level = :warn - - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/survey/config/environments/production.rb b/justin_quiros/survey/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/survey/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/survey/config/environments/test.rb b/justin_quiros/survey/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/survey/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/survey/config/initializers/assets.rb b/justin_quiros/survey/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/survey/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/survey/config/initializers/backtrace_silencers.rb b/justin_quiros/survey/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/initializers/cookies_serializer.rb b/justin_quiros/survey/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/survey/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 diff --git a/justin_quiros/survey/config/initializers/filter_parameter_logging.rb b/justin_quiros/survey/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/initializers/inflections.rb b/justin_quiros/survey/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/initializers/mime_types.rb b/justin_quiros/survey/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/initializers/session_store.rb b/justin_quiros/survey/config/initializers/session_store.rb deleted file mode 100644 index 1cbc3bc..0000000 --- a/justin_quiros/survey/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: '_survey_session' diff --git a/justin_quiros/survey/config/initializers/wrap_parameters.rb b/justin_quiros/survey/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/locales/en.yml b/justin_quiros/survey/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/config/routes.rb b/justin_quiros/survey/config/routes.rb deleted file mode 100644 index 04a08c3..0000000 --- a/justin_quiros/survey/config/routes.rb +++ /dev/null @@ -1,62 +0,0 @@ -Rails.application.routes.draw do - root 'dojos#index' - - - get '/' => 'dojos#index' - post 'dojos/create' =>'dojos#create' - get 'dojos/show'=> 'dojos#show' - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/survey/config/secrets.yml b/justin_quiros/survey/config/secrets.yml deleted file mode 100644 index 431110d..0000000 --- a/justin_quiros/survey/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: f28b8b085e57d477633f92315446a6b3928a04e7b6cc9fcaaffd4745cf9dbc713ec024e8b6ec8856a13c2d7856d7193b21a9abf6ce859a0e8d76d24426ce13b8 - -test: - secret_key_base: 0e7d6e557bc5f5de982339e555486eeb79a53147d0aac880fdf45934e53e6d4692a5225f720f719931706820f466fcb44bee0d5571f466bb3259b6605bf88363 - -# 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/justin_quiros/survey/db/seeds.rb b/justin_quiros/survey/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/survey/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/survey/lib/assets/.keep b/justin_quiros/survey/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/lib/tasks/.keep b/justin_quiros/survey/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/log/.keep b/justin_quiros/survey/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/public/404.html b/justin_quiros/survey/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/public/422.html b/justin_quiros/survey/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/public/500.html b/justin_quiros/survey/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/survey/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/justin_quiros/survey/public/favicon.ico b/justin_quiros/survey/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/public/robots.txt b/justin_quiros/survey/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/survey/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/survey/test/controllers/.keep b/justin_quiros/survey/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/test/controllers/dojos_controller_test.rb b/justin_quiros/survey/test/controllers/dojos_controller_test.rb deleted file mode 100644 index 5762aa7..0000000 --- a/justin_quiros/survey/test/controllers/dojos_controller_test.rb +++ /dev/null @@ -1,19 +0,0 @@ -require 'test_helper' - -class DojosControllerTest < ActionController::TestCase - test "should get index" do - get :index - assert_response :success - end - - test "should get create" do - get :create - assert_response :success - end - - test "should get show" do - get :show - assert_response :success - end - -end diff --git a/justin_quiros/survey/test/fixtures/.keep b/justin_quiros/survey/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/test/helpers/.keep b/justin_quiros/survey/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/test/integration/.keep b/justin_quiros/survey/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/test/mailers/.keep b/justin_quiros/survey/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/test/models/.keep b/justin_quiros/survey/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/test/test_helper.rb b/justin_quiros/survey/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/survey/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/survey/vendor/assets/javascripts/.keep b/justin_quiros/survey/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/survey/vendor/assets/stylesheets/.keep b/justin_quiros/survey/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user.rb b/justin_quiros/user.rb deleted file mode 100644 index f524139..0000000 --- a/justin_quiros/user.rb +++ /dev/null @@ -1,48 +0,0 @@ -class User - @first_name - - @last_name - # attr_reader :first_name - # attr_writer :first_name - # attr_reader :last_name - # attr_writer :last_name - attr_accessor :first_name, :last_name - - def initialize(f_name, l_name) - @first_name = f_name - @last_name = l_name - end - - def full_name - puts "I am #{@first_name} #{@last_name}" - end - - def say_hello - puts "Hello" - end - - def self.foo - puts "This is a class method" - end - # This is longer way of writing what is above. - # These are setter and getter methods - # VVVVVV - # def first_name=(val) - # @first_name = val - # end - # def first_name - # @first_name - # end -end - -justin = User.new("Justin", "Quiros") -# p justin.first_name + " " + justin.last_name - -puts justin.full_name -puts User.foo -# user1 = User.new -# user2 = User.new -# user1.first_name = "Justin" -# user1.last_name = "Quiros" -# p user1.first_name -# p user1.last_name \ No newline at end of file diff --git a/justin_quiros/user_login_project/.gitignore b/justin_quiros/user_login_project/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/justin_quiros/user_login_project/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/justin_quiros/user_login_project/Gemfile b/justin_quiros/user_login_project/Gemfile deleted file mode 100644 index 0ee61bd..0000000 --- a/justin_quiros/user_login_project/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' diff --git a/justin_quiros/user_login_project/Gemfile.lock b/justin_quiros/user_login_project/Gemfile.lock deleted file mode 100644 index c2e340f..0000000 --- a/justin_quiros/user_login_project/Gemfile.lock +++ /dev/null @@ -1,174 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - bcrypt (3.1.11) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - bcrypt (~> 3.1.7) - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/justin_quiros/user_login_project/README.rdoc b/justin_quiros/user_login_project/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/justin_quiros/user_login_project/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/justin_quiros/user_login_project/Rakefile b/justin_quiros/user_login_project/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/app/assets/images/.keep b/justin_quiros/user_login_project/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/app/assets/javascripts/application.js b/justin_quiros/user_login_project/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/justin_quiros/user_login_project/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/justin_quiros/user_login_project/app/assets/stylesheets/application.css b/justin_quiros/user_login_project/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/justin_quiros/user_login_project/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 any plugin's vendor/assets/stylesheets directory 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/justin_quiros/user_login_project/app/controllers/application_controller.rb b/justin_quiros/user_login_project/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/app/controllers/concerns/.keep b/justin_quiros/user_login_project/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/app/helpers/application_helper.rb b/justin_quiros/user_login_project/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/justin_quiros/user_login_project/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/justin_quiros/user_login_project/app/mailers/.keep b/justin_quiros/user_login_project/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/app/models/.keep b/justin_quiros/user_login_project/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/app/models/concerns/.keep b/justin_quiros/user_login_project/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/app/models/user.rb b/justin_quiros/user_login_project/app/models/user.rb deleted file mode 100644 index 06214cf..0000000 --- a/justin_quiros/user_login_project/app/models/user.rb +++ /dev/null @@ -1,7 +0,0 @@ -class User < ActiveRecord::Base - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, :email, :age, presence: true - validates :first_name, :last_name, length: { in: 2..50 } - validates :age, numericality: { greater_than_or_equal_to: 10, less_than: 150 } - validates :email, presence: true, uniqueness: { case_sensitive: false }, format: { with: EMAIL_REGEX }, length: { in: 4..40 } -end diff --git a/justin_quiros/user_login_project/app/views/layouts/application.html.erb b/justin_quiros/user_login_project/app/views/layouts/application.html.erb deleted file mode 100644 index 03b8954..0000000 --- a/justin_quiros/user_login_project/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - UserLoginProject - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/justin_quiros/user_login_project/bin/bundle b/justin_quiros/user_login_project/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/bin/rails b/justin_quiros/user_login_project/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/justin_quiros/user_login_project/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/justin_quiros/user_login_project/bin/rake b/justin_quiros/user_login_project/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/justin_quiros/user_login_project/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/justin_quiros/user_login_project/bin/setup b/justin_quiros/user_login_project/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/justin_quiros/user_login_project/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/justin_quiros/user_login_project/bin/spring b/justin_quiros/user_login_project/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/justin_quiros/user_login_project/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/justin_quiros/user_login_project/config.ru b/justin_quiros/user_login_project/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/application.rb b/justin_quiros/user_login_project/config/application.rb deleted file mode 100644 index 49c5e84..0000000 --- a/justin_quiros/user_login_project/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module UserLoginProject - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/justin_quiros/user_login_project/config/boot.rb b/justin_quiros/user_login_project/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/justin_quiros/user_login_project/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/justin_quiros/user_login_project/config/database.yml b/justin_quiros/user_login_project/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/environment.rb b/justin_quiros/user_login_project/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/environments/development.rb b/justin_quiros/user_login_project/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/justin_quiros/user_login_project/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/justin_quiros/user_login_project/config/environments/production.rb b/justin_quiros/user_login_project/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/justin_quiros/user_login_project/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/justin_quiros/user_login_project/config/environments/test.rb b/justin_quiros/user_login_project/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/justin_quiros/user_login_project/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/justin_quiros/user_login_project/config/initializers/assets.rb b/justin_quiros/user_login_project/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/justin_quiros/user_login_project/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/justin_quiros/user_login_project/config/initializers/backtrace_silencers.rb b/justin_quiros/user_login_project/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/initializers/cookies_serializer.rb b/justin_quiros/user_login_project/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/justin_quiros/user_login_project/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 diff --git a/justin_quiros/user_login_project/config/initializers/filter_parameter_logging.rb b/justin_quiros/user_login_project/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/initializers/inflections.rb b/justin_quiros/user_login_project/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/initializers/mime_types.rb b/justin_quiros/user_login_project/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/initializers/session_store.rb b/justin_quiros/user_login_project/config/initializers/session_store.rb deleted file mode 100644 index d692eec..0000000 --- a/justin_quiros/user_login_project/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: '_user_login_project_session' diff --git a/justin_quiros/user_login_project/config/initializers/wrap_parameters.rb b/justin_quiros/user_login_project/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/locales/en.yml b/justin_quiros/user_login_project/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/config/routes.rb b/justin_quiros/user_login_project/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/justin_quiros/user_login_project/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/justin_quiros/user_login_project/config/secrets.yml b/justin_quiros/user_login_project/config/secrets.yml deleted file mode 100644 index ef8e0c8..0000000 --- a/justin_quiros/user_login_project/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: 9c7a7051066d10d5a8750a8f78fdb6a028dda47f7046cd1d4bdd675d6e6672263d5d6c0906f4805b6c6cadeafeb1b16e45ebebcb3e8813c1a800a92aec34c3b3 - -test: - secret_key_base: 52b2d8a3b1f662ed2df2d381b8649112cef63257008b5e02c2376300a8ba209bc0e7aa689afa3751713f54c48f49c18ae13b9875c40c572376bbb2dd4f7ae0ec - -# 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/justin_quiros/user_login_project/db/migrate/20171129184845_create_users.rb b/justin_quiros/user_login_project/db/migrate/20171129184845_create_users.rb deleted file mode 100644 index 648f540..0000000 --- a/justin_quiros/user_login_project/db/migrate/20171129184845_create_users.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email - t.integer :age - - t.timestamps null: false - end - end -end diff --git a/justin_quiros/user_login_project/db/schema.rb b/justin_quiros/user_login_project/db/schema.rb deleted file mode 100644 index d514bf8..0000000 --- a/justin_quiros/user_login_project/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171129184845) do - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email" - t.integer "age" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/justin_quiros/user_login_project/db/seeds.rb b/justin_quiros/user_login_project/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/justin_quiros/user_login_project/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/justin_quiros/user_login_project/lib/assets/.keep b/justin_quiros/user_login_project/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/lib/tasks/.keep b/justin_quiros/user_login_project/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/log/.keep b/justin_quiros/user_login_project/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/public/404.html b/justin_quiros/user_login_project/public/404.html deleted file mode 100644 index b612547..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/public/422.html b/justin_quiros/user_login_project/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/public/500.html b/justin_quiros/user_login_project/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/justin_quiros/user_login_project/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/justin_quiros/user_login_project/public/favicon.ico b/justin_quiros/user_login_project/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/public/robots.txt b/justin_quiros/user_login_project/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/justin_quiros/user_login_project/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/justin_quiros/user_login_project/test/controllers/.keep b/justin_quiros/user_login_project/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/test/fixtures/.keep b/justin_quiros/user_login_project/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/test/fixtures/users.yml b/justin_quiros/user_login_project/test/fixtures/users.yml deleted file mode 100644 index 2b033cb..0000000 --- a/justin_quiros/user_login_project/test/fixtures/users.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email: MyString - age: 1 - -two: - first_name: MyString - last_name: MyString - email: MyString - age: 1 diff --git a/justin_quiros/user_login_project/test/helpers/.keep b/justin_quiros/user_login_project/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/test/integration/.keep b/justin_quiros/user_login_project/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/test/mailers/.keep b/justin_quiros/user_login_project/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/test/models/.keep b/justin_quiros/user_login_project/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/test/models/user_test.rb b/justin_quiros/user_login_project/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/justin_quiros/user_login_project/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/justin_quiros/user_login_project/test/test_helper.rb b/justin_quiros/user_login_project/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/justin_quiros/user_login_project/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/justin_quiros/user_login_project/vendor/assets/javascripts/.keep b/justin_quiros/user_login_project/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/user_login_project/vendor/assets/stylesheets/.keep b/justin_quiros/user_login_project/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/justin_quiros/wizninsam/human.rb b/justin_quiros/wizninsam/human.rb deleted file mode 100644 index 800d537..0000000 --- a/justin_quiros/wizninsam/human.rb +++ /dev/null @@ -1,34 +0,0 @@ - -class Human - attr_accessor :strength, :intelligence, :stealth, :health - def initialize - @strength = 3 - @stealth = 3 - @intelligence = 3 - @health = 100 - end - def attack(object) - if object.class.ancestors.include?(Human) - object.health -= 10 - self - else - puts "You can not attack a non-human!" - end - end - def display_info - puts "Strength: #{@strength}" - puts "Stealth: #{@stealth}" - puts "Intelligence: #{@intelligence}" - puts "Health: #{@health}" - end -end - -require_relative "ninja" -require_relative "wizard" -require_relative "samurai" - -sam = Samurai.new -nin = Ninja.new -wiz = Wizard.new -joe = 0 - diff --git a/justin_quiros/wizninsam/ninja.rb b/justin_quiros/wizninsam/ninja.rb deleted file mode 100644 index 9778f33..0000000 --- a/justin_quiros/wizninsam/ninja.rb +++ /dev/null @@ -1,15 +0,0 @@ - -class Ninja < Human - def initialize - super - @stealth = 175 - end - def steal(object) - attack(object) - @health += 10 - end - def get_away - @health -= 15 - end -end - diff --git a/justin_quiros/wizninsam/samurai.rb b/justin_quiros/wizninsam/samurai.rb deleted file mode 100644 index 84222fe..0000000 --- a/justin_quiros/wizninsam/samurai.rb +++ /dev/null @@ -1,23 +0,0 @@ - -class Samurai < Human -@@no_of_sam = 0 - def initialize - super - @health = 200 - @@no_of_sam += 1 - end - def death_blow(object) - if object.class.ancestors.include?(Human) - object.health = 0 - self - else - puts "You can not attack a non-human!" - end - end - def meditate - @health = 200 - end - def how_many - puts "There are currently #{@@no_of_sam} samurais out there." - end -end diff --git a/justin_quiros/wizninsam/wizard.rb b/justin_quiros/wizninsam/wizard.rb deleted file mode 100644 index c236183..0000000 --- a/justin_quiros/wizninsam/wizard.rb +++ /dev/null @@ -1,15 +0,0 @@ - -class Wizard < Human - def initialize - super - @health = 50 - @intelligence = 25 - end - def heal - @health += 10 - end - def fireball(object) - object.health -=20 - end -end - diff --git a/richardN/.DS_Store b/richardN/.DS_Store deleted file mode 100644 index 10e0674..0000000 Binary files a/richardN/.DS_Store and /dev/null differ diff --git a/richardN/README.md b/richardN/README.md deleted file mode 100644 index 0ef0cf5..0000000 --- a/richardN/README.md +++ /dev/null @@ -1,74 +0,0 @@ -# Coding Dojo - Ruby on Rails October 2017 - -Welcome Rubyists - -> “Often people, especially computer engineers, focus on the machines. They think, "By doing this, the machine will run faster. By doing this, the machine will run more effectively. By doing this, the machine will something something something." They are focusing on machines. But in fact we need to focus on humans, on how humans care about doing programming or operating the application of the machines. We are the masters. They are the slaves.” -- Yukihiro Matsumoto - - -## Setup - 1. Fork this repo to your github account. - 2. Clone it locally onto your laptop. - 3. Create a folder with your name, ex: cody_williams - 4. Add *this* (https://github.com/CodingDojoDallas/ruby_dec_2017/) repo as a REMOTE to your locally cloned copy. -``` -git remote add upstream https://github.com/codingdojodallas/ruby_dec_2017 -``` - 5. Profit! -# Daily Commits - -Please commit daily. That way we can provide you with feedback :) or just a thumbs up if everything looks good. Here is a good resource that describes how daily commit process should go. - -https://www.dropbox.com/s/h3texmoqm801j8w/github_workflow_v4.pdf?dl=0 - -NOTE: If you don't get in at least one pull request daily, then *_ya ain't serious_*. - -## Videos - - -Self Join Many To Many - https://youtu.be/fhCNn1XTuy0
-Social Network, Self Join Many To Many https://youtu.be/_OsYvpndaX4 - -Relations are Hard - https://youtu.be/YW6X53ia2Z8
- -Deployment - https://youtu.be/V2Frb35zpBA
- -Sort by count of a relation - https://youtu.be/p5UOxHR2200
- -## Resources - -[Ruby v2.3.1 Documentation](http://ruby-doc.org/core-2.3.1/ "Ruby v2.3.1 Documentation")
- -[Rails v4.2.7 Documentation](http://guides.rubyonrails.org/v4.2/ "Rails v4.2.7 Documentation")
- -[Ruby Style Guide](https://github.com/bbatsov/ruby-style-guide "Ruby Style Guide")
- -[Active Record Validations](http://guides.rubyonrails.org/active_record_validations.html "Active Record Validations")
- -http://www.rubyinside.com/ - -https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers - -http://api.rubyonrails.org/classes/ActiveRecord/QueryMethods.html - -http://api.rubyonrails.org/classes/ActiveModel/Validations/HelperMethods.html - -## Articles - -[Puts vs. Print vs. P](https://gist.github.com/MilanGrubnic70/11092705 "Puts vs. Print vs. P")
- -[Understanding Ruby Blocks](http://mixandgo.com/blog/mastering-ruby-blocks-in-less-than-5-minutes "Understanding Ruby Blocks")
- -[Creating Multiple Associations with the Same Table](http://www.spacevatican.org/2008/5/6/creating-multiple-associations-with-the-same-table/ "Creating Multiple Associations with the Same Table")
- -[Understanding Polymorphic Associations](https://launchschool.com/blog/understanding-polymorphic-associations-in-rails "Understanding Polymorphic Associations")
- -[What's the Deal With Polymorphic Associations?](https://robots.thoughtbot.com/whats-the-deal-with-rails-polymorphic-associations "What's the Deal With Polymorphic Associations?")
- -[Creating Polymorphic Associations in Rails](http://culttt.com/2016/01/13/creating-polymorphic-relationships-in-ruby-on-rails/ "Creating Polymorphic Associations in Rails")
- -[Active Record Callbacks](http://guides.rubyonrails.org/active_record_callbacks.html#available-callbacks "Active Record Callbacks")
- -An important note: -*before_save* is called every time an object is saved. So for new and existing objects. (create and update action) -*before_create* only before creation. So only for new objects (create action, but not update) diff --git a/richardN/controllers/.DS_Store b/richardN/controllers/.DS_Store deleted file mode 100644 index 28bb6af..0000000 Binary files a/richardN/controllers/.DS_Store and /dev/null differ diff --git a/richardN/controllers/imc2/.gitignore b/richardN/controllers/imc2/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/controllers/imc2/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/controllers/imc2/Gemfile b/richardN/controllers/imc2/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/richardN/controllers/imc2/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/richardN/controllers/imc2/Gemfile.lock b/richardN/controllers/imc2/Gemfile.lock deleted file mode 100644 index be50182..0000000 --- a/richardN/controllers/imc2/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/controllers/imc2/README.rdoc b/richardN/controllers/imc2/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/controllers/imc2/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/controllers/imc2/Rakefile b/richardN/controllers/imc2/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/app/assets/images/.keep b/richardN/controllers/imc2/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/app/assets/javascripts/application.js b/richardN/controllers/imc2/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/controllers/imc2/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/controllers/imc2/app/assets/stylesheets/application.css b/richardN/controllers/imc2/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/controllers/imc2/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 any plugin's vendor/assets/stylesheets directory 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/richardN/controllers/imc2/app/controllers/application_controller.rb b/richardN/controllers/imc2/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/app/controllers/concerns/.keep b/richardN/controllers/imc2/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/app/controllers/users_controller.rb b/richardN/controllers/imc2/app/controllers/users_controller.rb deleted file mode 100644 index 66a4f00..0000000 --- a/richardN/controllers/imc2/app/controllers/users_controller.rb +++ /dev/null @@ -1,39 +0,0 @@ -class UsersController < ApplicationController - def index - render json: User.all - end - def new - render "new.html.erb" - end - def create - @user=User.create(user_params) - return redirect_to '/users' - end - def info - render json: User.find(params[:id]) - end - def edituser - @name = User.find(params[:id]).name - session[:id] = params[:id] - return render 'edit.html.erb' - end - def edit - @user = User.find(session[:id]).update(user_params) - return redirect_to '/users' - end - # def edit - # @user = User.find(params[:id]) - # end - - def total - render json: { total: User.count } - end - - - - - private - def user_params - params.require(:user).permit(:name) - end -end diff --git a/richardN/controllers/imc2/app/helpers/application_helper.rb b/richardN/controllers/imc2/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/controllers/imc2/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/controllers/imc2/app/mailers/.keep b/richardN/controllers/imc2/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/app/models/.keep b/richardN/controllers/imc2/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/app/models/concerns/.keep b/richardN/controllers/imc2/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/app/models/user.rb b/richardN/controllers/imc2/app/models/user.rb deleted file mode 100644 index 4a57cf0..0000000 --- a/richardN/controllers/imc2/app/models/user.rb +++ /dev/null @@ -1,2 +0,0 @@ -class User < ActiveRecord::Base -end diff --git a/richardN/controllers/imc2/app/views/layouts/application.html.erb b/richardN/controllers/imc2/app/views/layouts/application.html.erb deleted file mode 100644 index 3335f31..0000000 --- a/richardN/controllers/imc2/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Imc2 - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/controllers/imc2/app/views/users/edit.html.erb b/richardN/controllers/imc2/app/views/users/edit.html.erb deleted file mode 100644 index c771b82..0000000 --- a/richardN/controllers/imc2/app/views/users/edit.html.erb +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - Document - - -
- - - -
- - \ No newline at end of file diff --git a/richardN/controllers/imc2/app/views/users/new.html.erb b/richardN/controllers/imc2/app/views/users/new.html.erb deleted file mode 100644 index b3c5496..0000000 --- a/richardN/controllers/imc2/app/views/users/new.html.erb +++ /dev/null @@ -1,16 +0,0 @@ - - - - - - - Document - - -
- - - -
- - \ No newline at end of file diff --git a/richardN/controllers/imc2/bin/bundle b/richardN/controllers/imc2/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/bin/rails b/richardN/controllers/imc2/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/controllers/imc2/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/controllers/imc2/bin/rake b/richardN/controllers/imc2/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/controllers/imc2/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/controllers/imc2/bin/setup b/richardN/controllers/imc2/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/controllers/imc2/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/controllers/imc2/bin/spring b/richardN/controllers/imc2/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/controllers/imc2/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/controllers/imc2/config.ru b/richardN/controllers/imc2/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/application.rb b/richardN/controllers/imc2/config/application.rb deleted file mode 100644 index 5f268ce..0000000 --- a/richardN/controllers/imc2/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Imc2 - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/controllers/imc2/config/boot.rb b/richardN/controllers/imc2/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/controllers/imc2/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/controllers/imc2/config/database.yml b/richardN/controllers/imc2/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/environment.rb b/richardN/controllers/imc2/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/environments/development.rb b/richardN/controllers/imc2/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/controllers/imc2/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/controllers/imc2/config/environments/production.rb b/richardN/controllers/imc2/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/controllers/imc2/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/controllers/imc2/config/environments/test.rb b/richardN/controllers/imc2/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/controllers/imc2/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/controllers/imc2/config/initializers/assets.rb b/richardN/controllers/imc2/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/controllers/imc2/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/controllers/imc2/config/initializers/backtrace_silencers.rb b/richardN/controllers/imc2/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/initializers/cookies_serializer.rb b/richardN/controllers/imc2/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/controllers/imc2/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 diff --git a/richardN/controllers/imc2/config/initializers/filter_parameter_logging.rb b/richardN/controllers/imc2/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/initializers/inflections.rb b/richardN/controllers/imc2/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/initializers/mime_types.rb b/richardN/controllers/imc2/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/initializers/session_store.rb b/richardN/controllers/imc2/config/initializers/session_store.rb deleted file mode 100644 index f4cda61..0000000 --- a/richardN/controllers/imc2/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: '_imc2_session' diff --git a/richardN/controllers/imc2/config/initializers/wrap_parameters.rb b/richardN/controllers/imc2/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/locales/en.yml b/richardN/controllers/imc2/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/config/routes.rb b/richardN/controllers/imc2/config/routes.rb deleted file mode 100644 index d2f30cc..0000000 --- a/richardN/controllers/imc2/config/routes.rb +++ /dev/null @@ -1,67 +0,0 @@ -Rails.application.routes.draw do - get "users" => "users#index" - get "users/new" => 'users#new' - post "users" => "users#create" - get "users/new(/:id)" => 'users#info' - get "users(/:id)/edit" => 'users#edituser' - post "users/edit" => 'users#edit' - get "users/total" => "users#total" - # get "new" => "users#new" - # get "say/hello(/:name)" => "users#say" - # get "times" => "users#times" - # get "times/restart" => "hellos#restart" - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/controllers/imc2/config/secrets.yml b/richardN/controllers/imc2/config/secrets.yml deleted file mode 100644 index 64058be..0000000 --- a/richardN/controllers/imc2/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: ab24a00d2e5ce7ee8c2beaeda92681aab7131401cb85ecdff7b7e93266848fc7df7457524f6fd8e1aa41e337fae01dfce66c8f9ba37bd2b80616debb2d0ac737 - -test: - secret_key_base: c87194bbdd0aee458778ccc590ed1ccc96c7e6dcac50c363cd15309437881d55183511b6f19cedbc17fdd06c35909c207e2b71ab7ce31967255d4591e8a4cec9 - -# 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/richardN/controllers/imc2/db/migrate/20171202220035_create_users.rb b/richardN/controllers/imc2/db/migrate/20171202220035_create_users.rb deleted file mode 100644 index 5494756..0000000 --- a/richardN/controllers/imc2/db/migrate/20171202220035_create_users.rb +++ /dev/null @@ -1,9 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :name - - t.timestamps null: false - end - end -end diff --git a/richardN/controllers/imc2/db/schema.rb b/richardN/controllers/imc2/db/schema.rb deleted file mode 100644 index a9edc91..0000000 --- a/richardN/controllers/imc2/db/schema.rb +++ /dev/null @@ -1,22 +0,0 @@ -# encoding: UTF-8 -# 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: 20171202220035) do - - create_table "users", force: :cascade do |t| - t.string "name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/richardN/controllers/imc2/db/seeds.rb b/richardN/controllers/imc2/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/richardN/controllers/imc2/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/richardN/controllers/imc2/lib/assets/.keep b/richardN/controllers/imc2/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/lib/tasks/.keep b/richardN/controllers/imc2/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/log/.keep b/richardN/controllers/imc2/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/public/404.html b/richardN/controllers/imc2/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/public/422.html b/richardN/controllers/imc2/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/public/500.html b/richardN/controllers/imc2/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/controllers/imc2/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/richardN/controllers/imc2/public/favicon.ico b/richardN/controllers/imc2/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/public/robots.txt b/richardN/controllers/imc2/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/controllers/imc2/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/controllers/imc2/test/controllers/.keep b/richardN/controllers/imc2/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/test/controllers/users_controller_test.rb b/richardN/controllers/imc2/test/controllers/users_controller_test.rb deleted file mode 100644 index d23f182..0000000 --- a/richardN/controllers/imc2/test/controllers/users_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UsersControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/controllers/imc2/test/fixtures/.keep b/richardN/controllers/imc2/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/test/fixtures/users.yml b/richardN/controllers/imc2/test/fixtures/users.yml deleted file mode 100644 index 56066c6..0000000 --- a/richardN/controllers/imc2/test/fixtures/users.yml +++ /dev/null @@ -1,7 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - -two: - name: MyString diff --git a/richardN/controllers/imc2/test/helpers/.keep b/richardN/controllers/imc2/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/test/integration/.keep b/richardN/controllers/imc2/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/test/mailers/.keep b/richardN/controllers/imc2/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/test/models/.keep b/richardN/controllers/imc2/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/test/models/user_test.rb b/richardN/controllers/imc2/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/richardN/controllers/imc2/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/controllers/imc2/test/test_helper.rb b/richardN/controllers/imc2/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/controllers/imc2/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/controllers/imc2/vendor/assets/javascripts/.keep b/richardN/controllers/imc2/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/imc2/vendor/assets/stylesheets/.keep b/richardN/controllers/imc2/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/.DS_Store b/richardN/controllers/routesContollers/.DS_Store deleted file mode 100644 index c1529ae..0000000 Binary files a/richardN/controllers/routesContollers/.DS_Store and /dev/null differ diff --git a/richardN/controllers/routesContollers/.gitignore b/richardN/controllers/routesContollers/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/controllers/routesContollers/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/controllers/routesContollers/Gemfile b/richardN/controllers/routesContollers/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/richardN/controllers/routesContollers/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/richardN/controllers/routesContollers/Gemfile.lock b/richardN/controllers/routesContollers/Gemfile.lock deleted file mode 100644 index be50182..0000000 --- a/richardN/controllers/routesContollers/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/controllers/routesContollers/README.rdoc b/richardN/controllers/routesContollers/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/controllers/routesContollers/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/controllers/routesContollers/Rakefile b/richardN/controllers/routesContollers/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/app/assets/images/.keep b/richardN/controllers/routesContollers/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/app/assets/javascripts/application.js b/richardN/controllers/routesContollers/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/controllers/routesContollers/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/controllers/routesContollers/app/assets/stylesheets/application.css b/richardN/controllers/routesContollers/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/controllers/routesContollers/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 any plugin's vendor/assets/stylesheets directory 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/richardN/controllers/routesContollers/app/assets/stylesheets/hellos.scss b/richardN/controllers/routesContollers/app/assets/stylesheets/hellos.scss deleted file mode 100644 index fd2cdb1..0000000 --- a/richardN/controllers/routesContollers/app/assets/stylesheets/hellos.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the Hellos controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/richardN/controllers/routesContollers/app/controllers/application_controller.rb b/richardN/controllers/routesContollers/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/app/controllers/concerns/.keep b/richardN/controllers/routesContollers/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/app/controllers/hellos_controller.rb b/richardN/controllers/routesContollers/app/controllers/hellos_controller.rb deleted file mode 100644 index 36d79ae..0000000 --- a/richardN/controllers/routesContollers/app/controllers/hellos_controller.rb +++ /dev/null @@ -1,27 +0,0 @@ -class HellosController < ApplicationController - def index - render text: "What da frack am I to say?" - end - def hello - render text: "Hello Nurse!" - end - def say - unless params[:name] - render text: "Say my name" - else - if params[:name]=="michael" - redirect_to "/say/hello/joe" - else - render text: "say hello #{params[:name]}" - end - end - end - def times - session[:count] ||=0 - render text: "you visited this url #{session[:count] +=1} time(s)" - end - def restart - session.clear - render text:"destroy this session" - end -end \ No newline at end of file diff --git a/richardN/controllers/routesContollers/app/helpers/application_helper.rb b/richardN/controllers/routesContollers/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/controllers/routesContollers/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/controllers/routesContollers/app/helpers/hellos_helper.rb b/richardN/controllers/routesContollers/app/helpers/hellos_helper.rb deleted file mode 100644 index b91478f..0000000 --- a/richardN/controllers/routesContollers/app/helpers/hellos_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module HellosHelper -end diff --git a/richardN/controllers/routesContollers/app/mailers/.keep b/richardN/controllers/routesContollers/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/app/models/.keep b/richardN/controllers/routesContollers/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/app/models/concerns/.keep b/richardN/controllers/routesContollers/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/app/views/layouts/application.html.erb b/richardN/controllers/routesContollers/app/views/layouts/application.html.erb deleted file mode 100644 index d7d01ec..0000000 --- a/richardN/controllers/routesContollers/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - RoutesContollers - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/controllers/routesContollers/bin/bundle b/richardN/controllers/routesContollers/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/bin/rails b/richardN/controllers/routesContollers/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/controllers/routesContollers/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/controllers/routesContollers/bin/rake b/richardN/controllers/routesContollers/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/controllers/routesContollers/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/controllers/routesContollers/bin/setup b/richardN/controllers/routesContollers/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/controllers/routesContollers/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/controllers/routesContollers/bin/spring b/richardN/controllers/routesContollers/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/controllers/routesContollers/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/controllers/routesContollers/config.ru b/richardN/controllers/routesContollers/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/application.rb b/richardN/controllers/routesContollers/config/application.rb deleted file mode 100644 index def9f1c..0000000 --- a/richardN/controllers/routesContollers/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module RoutesContollers - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/controllers/routesContollers/config/boot.rb b/richardN/controllers/routesContollers/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/controllers/routesContollers/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/controllers/routesContollers/config/database.yml b/richardN/controllers/routesContollers/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/environment.rb b/richardN/controllers/routesContollers/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/environments/development.rb b/richardN/controllers/routesContollers/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/controllers/routesContollers/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/controllers/routesContollers/config/environments/production.rb b/richardN/controllers/routesContollers/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/controllers/routesContollers/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/controllers/routesContollers/config/environments/test.rb b/richardN/controllers/routesContollers/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/controllers/routesContollers/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/controllers/routesContollers/config/initializers/assets.rb b/richardN/controllers/routesContollers/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/controllers/routesContollers/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/controllers/routesContollers/config/initializers/backtrace_silencers.rb b/richardN/controllers/routesContollers/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/initializers/cookies_serializer.rb b/richardN/controllers/routesContollers/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/controllers/routesContollers/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 diff --git a/richardN/controllers/routesContollers/config/initializers/filter_parameter_logging.rb b/richardN/controllers/routesContollers/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/initializers/inflections.rb b/richardN/controllers/routesContollers/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/initializers/mime_types.rb b/richardN/controllers/routesContollers/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/initializers/session_store.rb b/richardN/controllers/routesContollers/config/initializers/session_store.rb deleted file mode 100644 index ef2b66e..0000000 --- a/richardN/controllers/routesContollers/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: '_routesContollers_session' diff --git a/richardN/controllers/routesContollers/config/initializers/wrap_parameters.rb b/richardN/controllers/routesContollers/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/locales/en.yml b/richardN/controllers/routesContollers/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/config/routes.rb b/richardN/controllers/routesContollers/config/routes.rb deleted file mode 100644 index 961649d..0000000 --- a/richardN/controllers/routesContollers/config/routes.rb +++ /dev/null @@ -1,61 +0,0 @@ -Rails.application.routes.draw do - root "hellos#index" - get "hello" => "hellos#hello" - get "say/hello(/:name)" => "hellos#say" - get "times" => "hellos#times" - get "times/restart" => "hellos#restart" - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/controllers/routesContollers/config/secrets.yml b/richardN/controllers/routesContollers/config/secrets.yml deleted file mode 100644 index c0d57bf..0000000 --- a/richardN/controllers/routesContollers/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: bd8a18a5829974853a2ab2dd42939896c45261d12ff730a3bbcf3b9c85792e6b1b4d96f9f1d03fb0009dbf023faac30130a6c5266654761fa930b8766962f7a3 - -test: - secret_key_base: 3d65f63a719ff586fd9d56bdf40f2d42da12de78fb9f4616babb96894ed8ee76b7362906b507df7b8b83e7a4c7d167fff64a427edefb8aae56f3944c6e49d8ea - -# 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/richardN/controllers/routesContollers/db/schema.rb b/richardN/controllers/routesContollers/db/schema.rb deleted file mode 100644 index 4dfbb16..0000000 --- a/richardN/controllers/routesContollers/db/schema.rb +++ /dev/null @@ -1,16 +0,0 @@ -# encoding: UTF-8 -# 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: 0) do - -end diff --git a/richardN/controllers/routesContollers/db/seeds.rb b/richardN/controllers/routesContollers/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/richardN/controllers/routesContollers/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/richardN/controllers/routesContollers/lib/assets/.keep b/richardN/controllers/routesContollers/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/lib/tasks/.keep b/richardN/controllers/routesContollers/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/log/.keep b/richardN/controllers/routesContollers/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/public/404.html b/richardN/controllers/routesContollers/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/public/422.html b/richardN/controllers/routesContollers/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/public/500.html b/richardN/controllers/routesContollers/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/controllers/routesContollers/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/richardN/controllers/routesContollers/public/favicon.ico b/richardN/controllers/routesContollers/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/public/robots.txt b/richardN/controllers/routesContollers/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/controllers/routesContollers/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/controllers/routesContollers/test/controllers/.keep b/richardN/controllers/routesContollers/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/test/controllers/hellos_controller_test.rb b/richardN/controllers/routesContollers/test/controllers/hellos_controller_test.rb deleted file mode 100644 index 79e128e..0000000 --- a/richardN/controllers/routesContollers/test/controllers/hellos_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class HellosControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/controllers/routesContollers/test/fixtures/.keep b/richardN/controllers/routesContollers/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/test/helpers/.keep b/richardN/controllers/routesContollers/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/test/integration/.keep b/richardN/controllers/routesContollers/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/test/mailers/.keep b/richardN/controllers/routesContollers/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/test/models/.keep b/richardN/controllers/routesContollers/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/test/test_helper.rb b/richardN/controllers/routesContollers/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/controllers/routesContollers/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/controllers/routesContollers/vendor/assets/javascripts/.keep b/richardN/controllers/routesContollers/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/routesContollers/vendor/assets/stylesheets/.keep b/richardN/controllers/routesContollers/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/.gitignore b/richardN/controllers/timeDisplay/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/controllers/timeDisplay/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/controllers/timeDisplay/Gemfile b/richardN/controllers/timeDisplay/Gemfile deleted file mode 100644 index 5e63a7c..0000000 --- a/richardN/controllers/timeDisplay/Gemfile +++ /dev/null @@ -1,50 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - -gem 'rails-footnotes', '~> 4.0' diff --git a/richardN/controllers/timeDisplay/Gemfile.lock b/richardN/controllers/timeDisplay/Gemfile.lock deleted file mode 100644 index e1d3e74..0000000 --- a/richardN/controllers/timeDisplay/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes (~> 4.0) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/controllers/timeDisplay/README.rdoc b/richardN/controllers/timeDisplay/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/controllers/timeDisplay/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/controllers/timeDisplay/Rakefile b/richardN/controllers/timeDisplay/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/app/assets/images/.keep b/richardN/controllers/timeDisplay/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/app/assets/javascripts/application.js b/richardN/controllers/timeDisplay/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/controllers/timeDisplay/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/controllers/timeDisplay/app/assets/stylesheets/application.css b/richardN/controllers/timeDisplay/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/controllers/timeDisplay/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 any plugin's vendor/assets/stylesheets directory 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/richardN/controllers/timeDisplay/app/assets/stylesheets/time_displays.scss b/richardN/controllers/timeDisplay/app/assets/stylesheets/time_displays.scss deleted file mode 100644 index 8521424..0000000 --- a/richardN/controllers/timeDisplay/app/assets/stylesheets/time_displays.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the TimeDisplays controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/richardN/controllers/timeDisplay/app/controllers/application_controller.rb b/richardN/controllers/timeDisplay/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/app/controllers/concerns/.keep b/richardN/controllers/timeDisplay/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/app/controllers/time_displays_controller.rb b/richardN/controllers/timeDisplay/app/controllers/time_displays_controller.rb deleted file mode 100644 index 37e6e2d..0000000 --- a/richardN/controllers/timeDisplay/app/controllers/time_displays_controller.rb +++ /dev/null @@ -1,7 +0,0 @@ -class TimeDisplaysController < ApplicationController - def main - @time = Time.now.strftime("%H:%M:%S") - @date = Time.now.strftime("%m:%d:%Y") - return render 'time.html.erb' - end -end diff --git a/richardN/controllers/timeDisplay/app/helpers/application_helper.rb b/richardN/controllers/timeDisplay/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/controllers/timeDisplay/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/controllers/timeDisplay/app/helpers/time_displays_helper.rb b/richardN/controllers/timeDisplay/app/helpers/time_displays_helper.rb deleted file mode 100644 index c3ad47d..0000000 --- a/richardN/controllers/timeDisplay/app/helpers/time_displays_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module TimeDisplaysHelper -end diff --git a/richardN/controllers/timeDisplay/app/mailers/.keep b/richardN/controllers/timeDisplay/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/app/models/.keep b/richardN/controllers/timeDisplay/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/app/models/concerns/.keep b/richardN/controllers/timeDisplay/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/app/views/layouts/application.html.erb b/richardN/controllers/timeDisplay/app/views/layouts/application.html.erb deleted file mode 100644 index 8b25576..0000000 --- a/richardN/controllers/timeDisplay/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - TimeDisplay - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/controllers/timeDisplay/app/views/time_displays/time.html.erb b/richardN/controllers/timeDisplay/app/views/time_displays/time.html.erb deleted file mode 100644 index 77d404b..0000000 --- a/richardN/controllers/timeDisplay/app/views/time_displays/time.html.erb +++ /dev/null @@ -1,12 +0,0 @@ - - - - - - time - - -

<%= @date %>

-

<%= @time %>

- - \ No newline at end of file diff --git a/richardN/controllers/timeDisplay/bin/bundle b/richardN/controllers/timeDisplay/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/bin/rails b/richardN/controllers/timeDisplay/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/controllers/timeDisplay/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/controllers/timeDisplay/bin/rake b/richardN/controllers/timeDisplay/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/controllers/timeDisplay/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/controllers/timeDisplay/bin/setup b/richardN/controllers/timeDisplay/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/controllers/timeDisplay/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/controllers/timeDisplay/bin/spring b/richardN/controllers/timeDisplay/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/controllers/timeDisplay/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/controllers/timeDisplay/config.ru b/richardN/controllers/timeDisplay/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/application.rb b/richardN/controllers/timeDisplay/config/application.rb deleted file mode 100644 index 94c66d8..0000000 --- a/richardN/controllers/timeDisplay/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module TimeDisplay - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/controllers/timeDisplay/config/boot.rb b/richardN/controllers/timeDisplay/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/controllers/timeDisplay/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/controllers/timeDisplay/config/database.yml b/richardN/controllers/timeDisplay/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/environment.rb b/richardN/controllers/timeDisplay/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/environments/development.rb b/richardN/controllers/timeDisplay/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/controllers/timeDisplay/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/controllers/timeDisplay/config/environments/production.rb b/richardN/controllers/timeDisplay/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/controllers/timeDisplay/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/controllers/timeDisplay/config/environments/test.rb b/richardN/controllers/timeDisplay/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/controllers/timeDisplay/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/controllers/timeDisplay/config/initializers/assets.rb b/richardN/controllers/timeDisplay/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/controllers/timeDisplay/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/controllers/timeDisplay/config/initializers/backtrace_silencers.rb b/richardN/controllers/timeDisplay/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/initializers/cookies_serializer.rb b/richardN/controllers/timeDisplay/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/controllers/timeDisplay/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 diff --git a/richardN/controllers/timeDisplay/config/initializers/filter_parameter_logging.rb b/richardN/controllers/timeDisplay/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/initializers/inflections.rb b/richardN/controllers/timeDisplay/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/initializers/mime_types.rb b/richardN/controllers/timeDisplay/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/initializers/rails_footnotes.rb b/richardN/controllers/timeDisplay/config/initializers/rails_footnotes.rb deleted file mode 100644 index 9a15363..0000000 --- a/richardN/controllers/timeDisplay/config/initializers/rails_footnotes.rb +++ /dev/null @@ -1,27 +0,0 @@ -defined?(Footnotes) && Footnotes.setup do |f| - # Whether or not to enable footnotes - f.enabled = Rails.env.development? - # You can also use a lambda / proc to conditionally toggle footnotes - # Example : - # f.enabled = -> { User.current.admin? } - # Beware of thread-safety though, Footnotes.enabled is NOT thread safe - # and should not be modified anywhere else. - - # Only toggle some notes : - # f.notes = [:session, :cookies, :params, :filters, :routes, :env, :queries, :log] - - # Change the prefix : - # f.prefix = 'mvim://open?url=file://%s&line=%d&column=%d' - - # Disable style : - # f.no_style = true - - # Lock notes to top right : - # f.lock_top_right = true - - # Change font size : - # f.font_size = '11px' - - # Allow to open multiple notes : - # f.multiple_notes = true -end diff --git a/richardN/controllers/timeDisplay/config/initializers/session_store.rb b/richardN/controllers/timeDisplay/config/initializers/session_store.rb deleted file mode 100644 index 51c9c49..0000000 --- a/richardN/controllers/timeDisplay/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: '_timeDisplay_session' diff --git a/richardN/controllers/timeDisplay/config/initializers/wrap_parameters.rb b/richardN/controllers/timeDisplay/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/locales/en.yml b/richardN/controllers/timeDisplay/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/config/routes.rb b/richardN/controllers/timeDisplay/config/routes.rb deleted file mode 100644 index 0ddd762..0000000 --- a/richardN/controllers/timeDisplay/config/routes.rb +++ /dev/null @@ -1,57 +0,0 @@ -Rails.application.routes.draw do - root 'time_displays#main' - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/controllers/timeDisplay/config/secrets.yml b/richardN/controllers/timeDisplay/config/secrets.yml deleted file mode 100644 index fba9f5d..0000000 --- a/richardN/controllers/timeDisplay/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: 819f296db12a892b38319d080e8e2b474cab51f6fe2ce2edbe9d3ac4ed5be2e8aa50d8e5f71bd25cf436f993256ac359b9591f38ac06695954ba10c539a17e6c - -test: - secret_key_base: bad10e142c8c2786dcacaf77b030c8c6c255fc9ccc08d89798ecf9e2c3e09cda27b2fadf1afee48a930cab5f9ff315ffb40f15e0ebca8889830bf04c22c6e1ce - -# 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/richardN/controllers/timeDisplay/db/seeds.rb b/richardN/controllers/timeDisplay/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/richardN/controllers/timeDisplay/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/richardN/controllers/timeDisplay/lib/assets/.keep b/richardN/controllers/timeDisplay/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/lib/tasks/.keep b/richardN/controllers/timeDisplay/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/log/.keep b/richardN/controllers/timeDisplay/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/public/404.html b/richardN/controllers/timeDisplay/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/public/422.html b/richardN/controllers/timeDisplay/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/public/500.html b/richardN/controllers/timeDisplay/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/controllers/timeDisplay/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/richardN/controllers/timeDisplay/public/favicon.ico b/richardN/controllers/timeDisplay/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/public/robots.txt b/richardN/controllers/timeDisplay/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/controllers/timeDisplay/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/controllers/timeDisplay/test/controllers/.keep b/richardN/controllers/timeDisplay/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/test/controllers/time_displays_controller_test.rb b/richardN/controllers/timeDisplay/test/controllers/time_displays_controller_test.rb deleted file mode 100644 index c6cc0da..0000000 --- a/richardN/controllers/timeDisplay/test/controllers/time_displays_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TimeDisplaysControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/controllers/timeDisplay/test/fixtures/.keep b/richardN/controllers/timeDisplay/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/test/helpers/.keep b/richardN/controllers/timeDisplay/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/test/integration/.keep b/richardN/controllers/timeDisplay/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/test/mailers/.keep b/richardN/controllers/timeDisplay/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/test/models/.keep b/richardN/controllers/timeDisplay/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/test/test_helper.rb b/richardN/controllers/timeDisplay/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/controllers/timeDisplay/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/controllers/timeDisplay/vendor/assets/javascripts/.keep b/richardN/controllers/timeDisplay/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/controllers/timeDisplay/vendor/assets/stylesheets/.keep b/richardN/controllers/timeDisplay/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/fundamentals/.DS_Store b/richardN/fundamentals/.DS_Store deleted file mode 100644 index c2ebcc8..0000000 Binary files a/richardN/fundamentals/.DS_Store and /dev/null differ diff --git a/richardN/fundamentals/arrays.rb b/richardN/fundamentals/arrays.rb deleted file mode 100644 index b6f4b11..0000000 --- a/richardN/fundamentals/arrays.rb +++ /dev/null @@ -1,23 +0,0 @@ -a = [1,3,5,7,9,2,4,6,8,0] -b = ["dog", "cat", "tea", "coffee", "dallas", "apple", "Houston"] - -puts a.at 3 -puts b.fetch 6 - -puts a.delete 2 -puts b.delete "dallas" - -puts a.reverse -puts b.reverse - -puts a.length -puts b.sort.to_s - -puts a.slice 6 #not sure... -puts b.shuffle - -puts a.join "-Test-" -puts b.insert(0,"Richard") - -puts a.values_at(2) -b = %w{cat dog bear}; puts a.values_at(1,2).join(' and ') #=> "dog and bear" \ No newline at end of file diff --git a/richardN/fundamentals/basic13.rb b/richardN/fundamentals/basic13.rb deleted file mode 100644 index 06201da..0000000 --- a/richardN/fundamentals/basic13.rb +++ /dev/null @@ -1,53 +0,0 @@ -#print 1-255 -(1...255).to_a - -#print odd between 1-255 -(1...255).select(&:odd) - -#print the sum of the numbers that have been printed so far -sum = 0 -(0...255).each{|i| puts "New number: #{i} Sum: #{sum+=i}"} - -# Iterating through an array -X = [1,3,5,7,-5,9,13] -X.each{|i| puts i} - -# Find Max -puts x.max - -# Get Average -p X.reduce(:+)/X.size - -# Array with Odd Numbers -y =*(1..255).step(2) - -# Greater Than Y -array = [1,3,5,7] -y = 3 -puts array.reject{|i| i> y}.count() - -# Square the values -x = [1, 5, 10, -2] -x.collect!{|i| i*i } -x.map!{|i| i*i} -p x - -# Eliminate Negative Numbers -x = [1, 5, 10, -2] -x.map!{|i| if i<0 then 0 else i end} -x = x.each_index{|i| x[i] = 0 if x[i]<0 } -p x - -# Max, Min, and Average -x = [1, 5, 10, -2] -mma = Hash["min" => x.min, "max" => x.max, "avg" => x.reduce(:+)/x.size] -p mma - -# Shifting the Values in the Array -x = [1, 5, 10, 7, -2] -p x.rotate! - -# Number to String -x = [-1,-3,2] -x.map!{|i| if i<0 then "dojo" else i end} -p x \ No newline at end of file diff --git a/richardN/fundamentals/guess.rb b/richardN/fundamentals/guess.rb deleted file mode 100644 index 28e4250..0000000 --- a/richardN/fundamentals/guess.rb +++ /dev/null @@ -1,13 +0,0 @@ -def guess_number guess - number = 25 - # your code here - puts "u got it" unless guess != number - puts "too high" unless guess > number - puts "too low" unless guess < number -end - -print guess_number guess=5 -print guess_number guess=10 -print guess_number guess=100 -print guess_number guess=26 -print guess_number guess=25 \ No newline at end of file diff --git a/richardN/fundamentals/hashes.rb b/richardN/fundamentals/hashes.rb deleted file mode 100644 index cacce73..0000000 --- a/richardN/fundamentals/hashes.rb +++ /dev/null @@ -1,19 +0,0 @@ -# .delete(key) deletes the key-value pair and returns the value from hsh whose key is equal to key. - -h = {first_name: "Coding", last_name: "Dojo"} -h.delete :last_name -puts h - -# .empty? => returns true if hash contains no key-value pairs -h = {} -h.empty? - -# .has_key?(key) returns true if given key is present -h = {first_name: "Coding", last_name: "Dojo"} -h.has_key? :first_name # => true -h.has_key? "first_name" # => false - -# .has_value?(value) returns true if given value is present for some key -h = {first_name: "Coding", last_name: "Dojo"} -h.has_value? "Coding" # => true -h.has_value? "Bootcamp" # => false \ No newline at end of file diff --git a/richardN/fundamentals/iterators.rb b/richardN/fundamentals/iterators.rb deleted file mode 100644 index 935f573..0000000 --- a/richardN/fundamentals/iterators.rb +++ /dev/null @@ -1,16 +0,0 @@ -# .any? { |obj| block } => true or false -["ant", "bear", "cat"].any? { |word| word.length >= 3 } # => true -# .each => calls block once for each element in ruby self, passing that element as a block parameter. -["ant", "bear", "cat"].each { |word| print word, "--" } # => ant--bear--cat-- -# .collect { |obj| block } => returns a new array with the results of running block once for every element in enum -(1..4).collect { |i| i*i } # => [1, 4, 9, 16] -(1..4).collect { "cat" } # => ["cat", "cat", "cat", "cat"] -# .detect/.find => returns the first for which block is not false. -(1..10).detect { |i| i %5 == 0 and i % 7 == 0 } # => nil -(1..100).detect { |i| i %5 == 0 and i % 7 == 0 } # => 35 -# .find_all { |obj| block } or .select { |obj| block } => returns an array containing all elements of enum for which block is not false -(1..10).find_all { |i| i % 3 == 0 } # => [3, 6, 9] -# .reject { |obj| block } => opposite of find_all -(1..10).reject { |i| i % 3 == 0 } # => [1, 2, 4, 5, 7, 8, 10] -# .upto(limit) => iterates block up to the int number -5.upto(10) { |i| print i, " " } # => 5 6 7 8 9 10 \ No newline at end of file diff --git a/richardN/fundamentals/my_enumerable.rb b/richardN/fundamentals/my_enumerable.rb deleted file mode 100644 index a3e6c47..0000000 --- a/richardN/fundamentals/my_enumerable.rb +++ /dev/null @@ -1,13 +0,0 @@ -module MyEnumerable - def my_each - # your code here! - for i in 0...self.length - yeild(self[i]) - end - end - class Array - include MyEnumerable - end - - [1,2,3,4].my_each { |i| puts i } # => 1 2 3 4 - [1,2,3,4].my_each { |i| puts i * 10 } # => 10 20 30 40 \ No newline at end of file diff --git a/richardN/fundamentals/names.rb b/richardN/fundamentals/names.rb deleted file mode 100644 index 00f3e57..0000000 --- a/richardN/fundamentals/names.rb +++ /dev/null @@ -1,22 +0,0 @@ -=begin -Create a ruby method that goes over each name in the names array and prints something like below. -You have 5 names in the 'names' array -The name is 'Michael Choi' -The name is 'John Doe' -The name is 'Jane Doe' -The name is 'James Smith' -The name is 'Jennifer Smith' -=end - -a = {first_name: "Michael", last_name: "Choi"} -b = {first_name: "John", last_name: "Doe"} -c = {first_name: "Jane", last_name: "Doe"} -d = {first_name: "James", last_name: "Smith"} -e = {first_name: "Jennifer", last_name: "Smith"} -names = [a, b, c, d, e] - -puts "you have #{names.length} names in the 'names' array" -names.each do |name| - puts "the name is #{name[:first_name]} #{name[:last_name]}" -end - diff --git a/richardN/fundamentals/puzzles.rb b/richardN/fundamentals/puzzles.rb deleted file mode 100644 index c3d7465..0000000 --- a/richardN/fundamentals/puzzles.rb +++ /dev/null @@ -1,55 +0,0 @@ -# Create an array with the following values: 3,5,1,2,7,9,8,13,25,32. -numbers_array = [3,5,1,2,7,9,8,13,25,32] - -# Return the sum of all numbers in the array. -puts numbers_array.reduce(:+) - -# Also have it return an array that only include numbers that are greater than 10. -puts numbers_array.reject { |number| number < 10 } - -# Create an array with the following values: John, KB, Oliver, Cory, Matthew, Christopher. -persons_array = ["John", "KB", "Oliver", "Cory", "Matthew", "Christopher"] - -# Shuffle the array and print the name of each person. -persons_array.shuffle.each { |person| puts person} - -# Have the program also return an array with names that are longer than 5 characters. -puts persons_array.select { |person| person.length > 5 } - -# Create an array that contains all 26 letters in the alphabet (this array must have 26 values). -letters_array = ("a".."z").to_a - -# Shuffle the array and display the last letter of the array. -puts letters_array.shuffle.last - -# Have it also display the first letter of the array. -puts letters_array.shuffle.first - -# If the first letter in the array is a vowel, have it display a message -shuffled = letters_array.shuffle -puts "#{shuffled.first} is a vowel" if ["a","e","i","o","u"].include? shuffled.first - -# Generate an array with 10 random numbers between 55-100. -random_array = [] -10.times { random_array << rand(55..100) } - -# have it be sorted (showing the smallest number in the beginning). Display all the numbers in the arrays. -puts random_array.sort - -# Next, display the minimum value in the array as well as the maximum value. -puts random_array.max -puts random_array.min - -# Create a random string that is 5 characters long (hint: (65+rand(26)).chr returns a random character; use a map function and a range to do this). -str = "" -5.times { str << rand(65..90).chr } -puts str - -# Generate an array with 10 random strings that are each 5 characters long -string_array = [] -10.times do - str = "" - 5.times { str << rand(65..90).chr } - string_array << str -end -puts string_array \ No newline at end of file diff --git a/richardN/fundamentals/range.rb b/richardN/fundamentals/range.rb deleted file mode 100644 index 2f6e625..0000000 --- a/richardN/fundamentals/range.rb +++ /dev/null @@ -1,12 +0,0 @@ -x = (-10..10) -alp = ("a".."r") - -puts x -puts alp - -puts x.include?(5) -puts x.include?(20) - -puts alp.last -puts x.max -puts x.min diff --git a/richardN/models/.DS_Store b/richardN/models/.DS_Store deleted file mode 100644 index a1e4500..0000000 Binary files a/richardN/models/.DS_Store and /dev/null differ diff --git a/richardN/models/Users/.DS_Store b/richardN/models/Users/.DS_Store deleted file mode 100644 index 7c22c55..0000000 Binary files a/richardN/models/Users/.DS_Store and /dev/null differ diff --git a/richardN/models/Users/.gitignore b/richardN/models/Users/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/models/Users/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/models/Users/Gemfile b/richardN/models/Users/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/richardN/models/Users/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/richardN/models/Users/Gemfile.lock b/richardN/models/Users/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/richardN/models/Users/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/models/Users/README.rdoc b/richardN/models/Users/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/models/Users/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/models/Users/Rakefile b/richardN/models/Users/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/models/Users/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/richardN/models/Users/app/.DS_Store b/richardN/models/Users/app/.DS_Store deleted file mode 100644 index 5249f6b..0000000 Binary files a/richardN/models/Users/app/.DS_Store and /dev/null differ diff --git a/richardN/models/Users/app/assets/images/.keep b/richardN/models/Users/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/app/assets/javascripts/application.js b/richardN/models/Users/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/models/Users/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/models/Users/app/assets/stylesheets/application.css b/richardN/models/Users/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/models/Users/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 any plugin's vendor/assets/stylesheets directory 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/richardN/models/Users/app/controllers/application_controller.rb b/richardN/models/Users/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/models/Users/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/richardN/models/Users/app/controllers/concerns/.keep b/richardN/models/Users/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/app/helpers/application_helper.rb b/richardN/models/Users/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/models/Users/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/models/Users/app/mailers/.keep b/richardN/models/Users/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/app/models/.DS_Store b/richardN/models/Users/app/models/.DS_Store deleted file mode 100644 index 8f9e58a..0000000 Binary files a/richardN/models/Users/app/models/.DS_Store and /dev/null differ diff --git a/richardN/models/Users/app/models/.keep b/richardN/models/Users/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/app/models/concerns/.keep b/richardN/models/Users/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/app/models/user.rb b/richardN/models/Users/app/models/user.rb deleted file mode 100644 index ec8953f..0000000 --- a/richardN/models/Users/app/models/user.rb +++ /dev/null @@ -1,6 +0,0 @@ -class User < ActiveRecord::Base - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :first_name, :last_name, presence:true, length:{minimum:2} - validates :email_addy, presence:true, uniqueness:{case_sensitive:false},format:{with:EMAIL_REGEX} - validates :age, presence:true, numericality:{greater_than_or_equal_to:10, less_than:150} -end diff --git a/richardN/models/Users/app/views/layouts/application.html.erb b/richardN/models/Users/app/views/layouts/application.html.erb deleted file mode 100644 index b592274..0000000 --- a/richardN/models/Users/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Users - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/models/Users/bin/bundle b/richardN/models/Users/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/models/Users/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/richardN/models/Users/bin/rails b/richardN/models/Users/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/models/Users/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/models/Users/bin/rake b/richardN/models/Users/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/models/Users/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/models/Users/bin/setup b/richardN/models/Users/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/models/Users/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/models/Users/bin/spring b/richardN/models/Users/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/models/Users/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/models/Users/config.ru b/richardN/models/Users/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/application.rb b/richardN/models/Users/config/application.rb deleted file mode 100644 index 367abd3..0000000 --- a/richardN/models/Users/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Users - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/models/Users/config/boot.rb b/richardN/models/Users/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/models/Users/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/models/Users/config/database.yml b/richardN/models/Users/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/environment.rb b/richardN/models/Users/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/environments/development.rb b/richardN/models/Users/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/models/Users/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/models/Users/config/environments/production.rb b/richardN/models/Users/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/models/Users/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/models/Users/config/environments/test.rb b/richardN/models/Users/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/models/Users/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/models/Users/config/initializers/assets.rb b/richardN/models/Users/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/models/Users/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/models/Users/config/initializers/backtrace_silencers.rb b/richardN/models/Users/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/initializers/cookies_serializer.rb b/richardN/models/Users/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/models/Users/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 diff --git a/richardN/models/Users/config/initializers/filter_parameter_logging.rb b/richardN/models/Users/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/initializers/inflections.rb b/richardN/models/Users/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/initializers/mime_types.rb b/richardN/models/Users/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/initializers/session_store.rb b/richardN/models/Users/config/initializers/session_store.rb deleted file mode 100644 index 5ce5a2c..0000000 --- a/richardN/models/Users/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: '_Users_session' diff --git a/richardN/models/Users/config/initializers/wrap_parameters.rb b/richardN/models/Users/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/locales/en.yml b/richardN/models/Users/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/models/Users/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/richardN/models/Users/config/routes.rb b/richardN/models/Users/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/richardN/models/Users/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/models/Users/config/secrets.yml b/richardN/models/Users/config/secrets.yml deleted file mode 100644 index 5223de2..0000000 --- a/richardN/models/Users/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: 2c02823cd9f4225cfea5bb640755bdfc957ce5dcf35472391f7346ed99f24607c8913d0c1be1a883b16584e0fa444ef781f210d6bba0697c78f0c85e6a709023 - -test: - secret_key_base: 599be68d2e7a8805936c4098641d4466ce91131f2d43a1025ae9278c147286b2cfa3ad65d0791fae5ace455063cb591b6d2d39be94b6f4f727c6a3ed617da438 - -# 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/richardN/models/Users/db/.DS_Store b/richardN/models/Users/db/.DS_Store deleted file mode 100644 index 4b17523..0000000 Binary files a/richardN/models/Users/db/.DS_Store and /dev/null differ diff --git a/richardN/models/Users/db/migrate/20171130021031_create_users.rb b/richardN/models/Users/db/migrate/20171130021031_create_users.rb deleted file mode 100644 index c640cf9..0000000 --- a/richardN/models/Users/db/migrate/20171130021031_create_users.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.text :first_name - t.text :last_name - t.text :email_addy - t.integer :age - - t.timestamps null: false - end - end -end diff --git a/richardN/models/Users/db/schema.rb b/richardN/models/Users/db/schema.rb deleted file mode 100644 index a2b15ea..0000000 --- a/richardN/models/Users/db/schema.rb +++ /dev/null @@ -1,25 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130021031) do - - create_table "users", force: :cascade do |t| - t.text "first_name" - t.text "last_name" - t.text "email_addy" - t.integer "age" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/richardN/models/Users/db/seeds.rb b/richardN/models/Users/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/richardN/models/Users/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/richardN/models/Users/lib/assets/.keep b/richardN/models/Users/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/lib/tasks/.keep b/richardN/models/Users/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/log/.keep b/richardN/models/Users/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/public/404.html b/richardN/models/Users/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/models/Users/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/richardN/models/Users/public/422.html b/richardN/models/Users/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/models/Users/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/richardN/models/Users/public/500.html b/richardN/models/Users/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/models/Users/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/richardN/models/Users/public/favicon.ico b/richardN/models/Users/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/public/robots.txt b/richardN/models/Users/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/models/Users/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/models/Users/test/controllers/.keep b/richardN/models/Users/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/test/fixtures/.keep b/richardN/models/Users/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/test/fixtures/users.yml b/richardN/models/Users/test/fixtures/users.yml deleted file mode 100644 index 3a4f25b..0000000 --- a/richardN/models/Users/test/fixtures/users.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyText - last_name: MyText - email_addy: MyText - age: 1 - -two: - first_name: MyText - last_name: MyText - email_addy: MyText - age: 1 diff --git a/richardN/models/Users/test/helpers/.keep b/richardN/models/Users/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/test/integration/.keep b/richardN/models/Users/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/test/mailers/.keep b/richardN/models/Users/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/test/models/.keep b/richardN/models/Users/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/test/models/user_test.rb b/richardN/models/Users/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/richardN/models/Users/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/Users/test/test_helper.rb b/richardN/models/Users/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/models/Users/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/models/Users/vendor/assets/javascripts/.keep b/richardN/models/Users/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/Users/vendor/assets/stylesheets/.keep b/richardN/models/Users/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/.gitignore b/richardN/models/blogPostMessage/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/models/blogPostMessage/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/models/blogPostMessage/Gemfile b/richardN/models/blogPostMessage/Gemfile deleted file mode 100644 index 6f0b52d..0000000 --- a/richardN/models/blogPostMessage/Gemfile +++ /dev/null @@ -1,50 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' - -gem 'rails-footnotes' diff --git a/richardN/models/blogPostMessage/Gemfile.lock b/richardN/models/blogPostMessage/Gemfile.lock deleted file mode 100644 index da3421f..0000000 --- a/richardN/models/blogPostMessage/Gemfile.lock +++ /dev/null @@ -1,175 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-footnotes (4.1.8) - rails (>= 3.2) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.1) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - rails-footnotes - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/models/blogPostMessage/README.rdoc b/richardN/models/blogPostMessage/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/models/blogPostMessage/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/models/blogPostMessage/Rakefile b/richardN/models/blogPostMessage/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/app/assets/images/.keep b/richardN/models/blogPostMessage/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/app/assets/javascripts/application.js b/richardN/models/blogPostMessage/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/models/blogPostMessage/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/models/blogPostMessage/app/assets/stylesheets/application.css b/richardN/models/blogPostMessage/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/models/blogPostMessage/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 any plugin's vendor/assets/stylesheets directory 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/richardN/models/blogPostMessage/app/controllers/application_controller.rb b/richardN/models/blogPostMessage/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/app/controllers/concerns/.keep b/richardN/models/blogPostMessage/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/app/helpers/application_helper.rb b/richardN/models/blogPostMessage/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/models/blogPostMessage/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/models/blogPostMessage/app/mailers/.keep b/richardN/models/blogPostMessage/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/app/models/.keep b/richardN/models/blogPostMessage/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/app/models/blog.rb b/richardN/models/blogPostMessage/app/models/blog.rb deleted file mode 100644 index a6648f3..0000000 --- a/richardN/models/blogPostMessage/app/models/blog.rb +++ /dev/null @@ -1,7 +0,0 @@ -class Blog < ActiveRecord::Base - has_many :owners - has_many :posts - has_many :users, through: :owners - has_many :user_posts, through: :posts, source: :user - validates :name, :description, presence: true -end diff --git a/richardN/models/blogPostMessage/app/models/concerns/.keep b/richardN/models/blogPostMessage/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/app/models/message.rb b/richardN/models/blogPostMessage/app/models/message.rb deleted file mode 100644 index 25a8dc9..0000000 --- a/richardN/models/blogPostMessage/app/models/message.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Message < ActiveRecord::Base - belongs_to :user - belongs_to :post - validates :author, :message, presence: true -end diff --git a/richardN/models/blogPostMessage/app/models/owner.rb b/richardN/models/blogPostMessage/app/models/owner.rb deleted file mode 100644 index cf59588..0000000 --- a/richardN/models/blogPostMessage/app/models/owner.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Owner < ActiveRecord::Base - belongs_to :blog - belongs_to :user -end diff --git a/richardN/models/blogPostMessage/app/models/post.rb b/richardN/models/blogPostMessage/app/models/post.rb deleted file mode 100644 index ab213bb..0000000 --- a/richardN/models/blogPostMessage/app/models/post.rb +++ /dev/null @@ -1,6 +0,0 @@ -class Post < ActiveRecord::Base - belongs_to :user - belongs_to :blog - has_many :messages - validates :content, :title, presence: true -end diff --git a/richardN/models/blogPostMessage/app/models/user.rb b/richardN/models/blogPostMessage/app/models/user.rb deleted file mode 100644 index 7c3d851..0000000 --- a/richardN/models/blogPostMessage/app/models/user.rb +++ /dev/null @@ -1,10 +0,0 @@ -class User < ActiveRecord::Base - has_many :owners - has_many :messages - has_many :posts - has_many :blogs, through: :owners - has_many :blog_posts, through: :posts, source: :blog - EMAIL_REGEX = /\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]+)\z/i - validates :email, uniqueness: {case_sensitive: false}, format: {with: EMAIL_REGEX} - validates :first_name, :last_name, :email, presence: true -end diff --git a/richardN/models/blogPostMessage/app/views/layouts/application.html.erb b/richardN/models/blogPostMessage/app/views/layouts/application.html.erb deleted file mode 100644 index 131c65a..0000000 --- a/richardN/models/blogPostMessage/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - BlogPostMessage - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/models/blogPostMessage/bin/bundle b/richardN/models/blogPostMessage/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/bin/rails b/richardN/models/blogPostMessage/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/models/blogPostMessage/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/models/blogPostMessage/bin/rake b/richardN/models/blogPostMessage/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/models/blogPostMessage/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/models/blogPostMessage/bin/setup b/richardN/models/blogPostMessage/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/models/blogPostMessage/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/models/blogPostMessage/bin/spring b/richardN/models/blogPostMessage/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/models/blogPostMessage/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/models/blogPostMessage/config.ru b/richardN/models/blogPostMessage/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/application.rb b/richardN/models/blogPostMessage/config/application.rb deleted file mode 100644 index 3df57df..0000000 --- a/richardN/models/blogPostMessage/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module BlogPostMessage - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/models/blogPostMessage/config/boot.rb b/richardN/models/blogPostMessage/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/models/blogPostMessage/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/models/blogPostMessage/config/database.yml b/richardN/models/blogPostMessage/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/environment.rb b/richardN/models/blogPostMessage/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/environments/development.rb b/richardN/models/blogPostMessage/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/models/blogPostMessage/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/models/blogPostMessage/config/environments/production.rb b/richardN/models/blogPostMessage/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/models/blogPostMessage/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/models/blogPostMessage/config/environments/test.rb b/richardN/models/blogPostMessage/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/models/blogPostMessage/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/models/blogPostMessage/config/initializers/assets.rb b/richardN/models/blogPostMessage/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/models/blogPostMessage/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/models/blogPostMessage/config/initializers/backtrace_silencers.rb b/richardN/models/blogPostMessage/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/initializers/cookies_serializer.rb b/richardN/models/blogPostMessage/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/models/blogPostMessage/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 diff --git a/richardN/models/blogPostMessage/config/initializers/filter_parameter_logging.rb b/richardN/models/blogPostMessage/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/initializers/inflections.rb b/richardN/models/blogPostMessage/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/initializers/mime_types.rb b/richardN/models/blogPostMessage/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/initializers/session_store.rb b/richardN/models/blogPostMessage/config/initializers/session_store.rb deleted file mode 100644 index 7380620..0000000 --- a/richardN/models/blogPostMessage/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: '_blogPostMessage_session' diff --git a/richardN/models/blogPostMessage/config/initializers/wrap_parameters.rb b/richardN/models/blogPostMessage/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/locales/en.yml b/richardN/models/blogPostMessage/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/config/routes.rb b/richardN/models/blogPostMessage/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/richardN/models/blogPostMessage/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/models/blogPostMessage/config/secrets.yml b/richardN/models/blogPostMessage/config/secrets.yml deleted file mode 100644 index 56b3a18..0000000 --- a/richardN/models/blogPostMessage/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: fba9d64b2fe628ea3f8774453f3a21adf5e72d027080fb0aa22b01a33fb90bb06acf5591b84f31c165087cfa7b8144c9a3812441afe3efc6c18e360075def8fa - -test: - secret_key_base: dfbf7f4719657f4a29bca7c408f10f730b0306ac7070308635fb11a9f212bb70af9c11d6ed80c7a19a649cce71a57790f1119ee6a3729eba8962c9adc36149ef - -# 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/richardN/models/blogPostMessage/db/migrate/20171204020601_create_users.rb b/richardN/models/blogPostMessage/db/migrate/20171204020601_create_users.rb deleted file mode 100644 index cc285fe..0000000 --- a/richardN/models/blogPostMessage/db/migrate/20171204020601_create_users.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateUsers < ActiveRecord::Migration - def change - create_table :users do |t| - t.string :first_name - t.string :last_name - t.string :email - - t.timestamps null: false - end - end -end diff --git a/richardN/models/blogPostMessage/db/migrate/20171204020634_create_blogs.rb b/richardN/models/blogPostMessage/db/migrate/20171204020634_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/richardN/models/blogPostMessage/db/migrate/20171204020634_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/richardN/models/blogPostMessage/db/migrate/20171204020711_create_owners.rb b/richardN/models/blogPostMessage/db/migrate/20171204020711_create_owners.rb deleted file mode 100644 index 2737c7e..0000000 --- a/richardN/models/blogPostMessage/db/migrate/20171204020711_create_owners.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateOwners < ActiveRecord::Migration - def change - create_table :owners do |t| - t.references :user - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/richardN/models/blogPostMessage/db/migrate/20171204020756_create_posts.rb b/richardN/models/blogPostMessage/db/migrate/20171204020756_create_posts.rb deleted file mode 100644 index c1075fd..0000000 --- a/richardN/models/blogPostMessage/db/migrate/20171204020756_create_posts.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.string :title - t.text :content - t.references :user, index: true, foreign_key: true - t.references :blog, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/richardN/models/blogPostMessage/db/migrate/20171204020846_create_messages.rb b/richardN/models/blogPostMessage/db/migrate/20171204020846_create_messages.rb deleted file mode 100644 index 2151288..0000000 --- a/richardN/models/blogPostMessage/db/migrate/20171204020846_create_messages.rb +++ /dev/null @@ -1,12 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.string :author - t.text :message - t.references :user, index: true, foreign_key: true - t.references :post, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/richardN/models/blogPostMessage/db/schema.rb b/richardN/models/blogPostMessage/db/schema.rb deleted file mode 100644 index 5d951c3..0000000 --- a/richardN/models/blogPostMessage/db/schema.rb +++ /dev/null @@ -1,64 +0,0 @@ -# encoding: UTF-8 -# 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: 20171204020846) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "messages", force: :cascade do |t| - t.string "author" - t.text "message" - t.integer "user_id" - t.integer "post_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - add_index "messages", ["user_id"], name: "index_messages_on_user_id" - - create_table "owners", force: :cascade do |t| - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "owners", ["blog_id"], name: "index_owners_on_blog_id" - - create_table "posts", force: :cascade do |t| - t.string "title" - t.text "content" - t.integer "user_id" - t.integer "blog_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - add_index "posts", ["user_id"], name: "index_posts_on_user_id" - - create_table "users", force: :cascade do |t| - t.string "first_name" - t.string "last_name" - t.string "email" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/richardN/models/blogPostMessage/db/seeds.rb b/richardN/models/blogPostMessage/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/richardN/models/blogPostMessage/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/richardN/models/blogPostMessage/lib/assets/.keep b/richardN/models/blogPostMessage/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/lib/tasks/.keep b/richardN/models/blogPostMessage/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/log/.keep b/richardN/models/blogPostMessage/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/public/404.html b/richardN/models/blogPostMessage/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/public/422.html b/richardN/models/blogPostMessage/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/public/500.html b/richardN/models/blogPostMessage/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/models/blogPostMessage/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/richardN/models/blogPostMessage/public/favicon.ico b/richardN/models/blogPostMessage/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/public/robots.txt b/richardN/models/blogPostMessage/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/models/blogPostMessage/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/models/blogPostMessage/test/controllers/.keep b/richardN/models/blogPostMessage/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/test/fixtures/.keep b/richardN/models/blogPostMessage/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/test/fixtures/blogs.yml b/richardN/models/blogPostMessage/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/richardN/models/blogPostMessage/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/richardN/models/blogPostMessage/test/fixtures/messages.yml b/richardN/models/blogPostMessage/test/fixtures/messages.yml deleted file mode 100644 index f17dfa4..0000000 --- a/richardN/models/blogPostMessage/test/fixtures/messages.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - author: MyString - message: MyText - user_id: - post_id: - -two: - author: MyString - message: MyText - user_id: - post_id: diff --git a/richardN/models/blogPostMessage/test/fixtures/owners.yml b/richardN/models/blogPostMessage/test/fixtures/owners.yml deleted file mode 100644 index 92282db..0000000 --- a/richardN/models/blogPostMessage/test/fixtures/owners.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - user: - blog_id: - -two: - user: - blog_id: diff --git a/richardN/models/blogPostMessage/test/fixtures/posts.yml b/richardN/models/blogPostMessage/test/fixtures/posts.yml deleted file mode 100644 index de7c3d7..0000000 --- a/richardN/models/blogPostMessage/test/fixtures/posts.yml +++ /dev/null @@ -1,13 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - title: MyString - content: MyText - user_id: - blog_id: - -two: - title: MyString - content: MyText - user_id: - blog_id: diff --git a/richardN/models/blogPostMessage/test/fixtures/users.yml b/richardN/models/blogPostMessage/test/fixtures/users.yml deleted file mode 100644 index ef04625..0000000 --- a/richardN/models/blogPostMessage/test/fixtures/users.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - first_name: MyString - last_name: MyString - email: MyString - -two: - first_name: MyString - last_name: MyString - email: MyString diff --git a/richardN/models/blogPostMessage/test/helpers/.keep b/richardN/models/blogPostMessage/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/test/integration/.keep b/richardN/models/blogPostMessage/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/test/mailers/.keep b/richardN/models/blogPostMessage/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/test/models/.keep b/richardN/models/blogPostMessage/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/test/models/blog_test.rb b/richardN/models/blogPostMessage/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/richardN/models/blogPostMessage/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/blogPostMessage/test/models/message_test.rb b/richardN/models/blogPostMessage/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/richardN/models/blogPostMessage/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/blogPostMessage/test/models/owner_test.rb b/richardN/models/blogPostMessage/test/models/owner_test.rb deleted file mode 100644 index d857cee..0000000 --- a/richardN/models/blogPostMessage/test/models/owner_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class OwnerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/blogPostMessage/test/models/post_test.rb b/richardN/models/blogPostMessage/test/models/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/richardN/models/blogPostMessage/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/blogPostMessage/test/models/user_test.rb b/richardN/models/blogPostMessage/test/models/user_test.rb deleted file mode 100644 index 82f61e0..0000000 --- a/richardN/models/blogPostMessage/test/models/user_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class UserTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/blogPostMessage/test/test_helper.rb b/richardN/models/blogPostMessage/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/models/blogPostMessage/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/models/blogPostMessage/vendor/assets/javascripts/.keep b/richardN/models/blogPostMessage/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/blogPostMessage/vendor/assets/stylesheets/.keep b/richardN/models/blogPostMessage/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/.gitignore b/richardN/models/bpm/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/models/bpm/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/models/bpm/Gemfile b/richardN/models/bpm/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/richardN/models/bpm/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/richardN/models/bpm/Gemfile.lock b/richardN/models/bpm/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/richardN/models/bpm/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/models/bpm/README.rdoc b/richardN/models/bpm/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/models/bpm/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/models/bpm/Rakefile b/richardN/models/bpm/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/app/assets/images/.keep b/richardN/models/bpm/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/app/assets/javascripts/application.js b/richardN/models/bpm/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/models/bpm/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/models/bpm/app/assets/stylesheets/application.css b/richardN/models/bpm/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/models/bpm/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 any plugin's vendor/assets/stylesheets directory 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/richardN/models/bpm/app/controllers/application_controller.rb b/richardN/models/bpm/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/app/controllers/concerns/.keep b/richardN/models/bpm/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/app/helpers/application_helper.rb b/richardN/models/bpm/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/models/bpm/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/models/bpm/app/mailers/.keep b/richardN/models/bpm/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/app/models/.keep b/richardN/models/bpm/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/app/models/blog.rb b/richardN/models/bpm/app/models/blog.rb deleted file mode 100644 index e417db8..0000000 --- a/richardN/models/bpm/app/models/blog.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Blog < ActiveRecord::Base - has_many :posts - validates :name, :desciption, presence: true -end diff --git a/richardN/models/bpm/app/models/concerns/.keep b/richardN/models/bpm/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/app/models/message.rb b/richardN/models/bpm/app/models/message.rb deleted file mode 100644 index 36de1f5..0000000 --- a/richardN/models/bpm/app/models/message.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Message < ActiveRecord::Base - belongs_to :post - validates :author, :messages, presence: true -end diff --git a/richardN/models/bpm/app/models/post.rb b/richardN/models/bpm/app/models/post.rb deleted file mode 100644 index 9df8078..0000000 --- a/richardN/models/bpm/app/models/post.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Post < ActiveRecord::Base - belongs_to :blog - has_many :messages - validates :post, :content, presence: true, length:{in: 7...255} -end diff --git a/richardN/models/bpm/app/views/layouts/application.html.erb b/richardN/models/bpm/app/views/layouts/application.html.erb deleted file mode 100644 index 534513e..0000000 --- a/richardN/models/bpm/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Bpm - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/models/bpm/bin/bundle b/richardN/models/bpm/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/bin/rails b/richardN/models/bpm/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/models/bpm/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/models/bpm/bin/rake b/richardN/models/bpm/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/models/bpm/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/models/bpm/bin/setup b/richardN/models/bpm/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/models/bpm/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/models/bpm/bin/spring b/richardN/models/bpm/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/models/bpm/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/models/bpm/config.ru b/richardN/models/bpm/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/application.rb b/richardN/models/bpm/config/application.rb deleted file mode 100644 index e10519e..0000000 --- a/richardN/models/bpm/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Bpm - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/models/bpm/config/boot.rb b/richardN/models/bpm/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/models/bpm/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/models/bpm/config/database.yml b/richardN/models/bpm/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/environment.rb b/richardN/models/bpm/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/environments/development.rb b/richardN/models/bpm/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/models/bpm/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/models/bpm/config/environments/production.rb b/richardN/models/bpm/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/models/bpm/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/models/bpm/config/environments/test.rb b/richardN/models/bpm/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/models/bpm/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/models/bpm/config/initializers/assets.rb b/richardN/models/bpm/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/models/bpm/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/models/bpm/config/initializers/backtrace_silencers.rb b/richardN/models/bpm/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/initializers/cookies_serializer.rb b/richardN/models/bpm/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/models/bpm/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 diff --git a/richardN/models/bpm/config/initializers/filter_parameter_logging.rb b/richardN/models/bpm/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/initializers/inflections.rb b/richardN/models/bpm/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/initializers/mime_types.rb b/richardN/models/bpm/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/initializers/session_store.rb b/richardN/models/bpm/config/initializers/session_store.rb deleted file mode 100644 index e1f9e8c..0000000 --- a/richardN/models/bpm/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: '_bpm_session' diff --git a/richardN/models/bpm/config/initializers/wrap_parameters.rb b/richardN/models/bpm/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/locales/en.yml b/richardN/models/bpm/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/config/routes.rb b/richardN/models/bpm/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/richardN/models/bpm/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/models/bpm/config/secrets.yml b/richardN/models/bpm/config/secrets.yml deleted file mode 100644 index c2d99a7..0000000 --- a/richardN/models/bpm/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: c2721019c80cda46f5bfc87aa29a395800af3671f58fac93955827513ae9d13db57d7d7c885acc40cfc8a3b131141b4bf15c6f2efdecdf1a328c54fe7aaa9549 - -test: - secret_key_base: 30d65acbcccd3030b87438e2f15384532629ba7aa594d5fd1960d395d9dc5fa6e6c0f4454693cd2ca81e6b86ec3dc5860e965b9b5136e346e4b113df549af2b5 - -# 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/richardN/models/bpm/db/migrate/20171201021033_create_blogs.rb b/richardN/models/bpm/db/migrate/20171201021033_create_blogs.rb deleted file mode 100644 index 87471d4..0000000 --- a/richardN/models/bpm/db/migrate/20171201021033_create_blogs.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreateBlogs < ActiveRecord::Migration - def change - create_table :blogs do |t| - t.string :name - t.text :description - - t.timestamps null: false - end - end -end diff --git a/richardN/models/bpm/db/migrate/20171201023337_create_posts.rb b/richardN/models/bpm/db/migrate/20171201023337_create_posts.rb deleted file mode 100644 index 92bb5f6..0000000 --- a/richardN/models/bpm/db/migrate/20171201023337_create_posts.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreatePosts < ActiveRecord::Migration - def change - create_table :posts do |t| - t.references :blog, index: true, foreign_key: true - t.string :title - t.text :content - - t.timestamps null: false - end - end -end diff --git a/richardN/models/bpm/db/migrate/20171201023521_create_messages.rb b/richardN/models/bpm/db/migrate/20171201023521_create_messages.rb deleted file mode 100644 index c7f8694..0000000 --- a/richardN/models/bpm/db/migrate/20171201023521_create_messages.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateMessages < ActiveRecord::Migration - def change - create_table :messages do |t| - t.references :post, index: true, foreign_key: true - t.string :author - t.text :messages - - t.timestamps null: false - end - end -end diff --git a/richardN/models/bpm/db/schema.rb b/richardN/models/bpm/db/schema.rb deleted file mode 100644 index b14c6d2..0000000 --- a/richardN/models/bpm/db/schema.rb +++ /dev/null @@ -1,43 +0,0 @@ -# encoding: UTF-8 -# 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: 20171201023521) do - - create_table "blogs", force: :cascade do |t| - t.string "name" - t.text "description" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "messages", force: :cascade do |t| - t.integer "post_id" - t.string "author" - t.text "messages" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "messages", ["post_id"], name: "index_messages_on_post_id" - - create_table "posts", force: :cascade do |t| - t.integer "blog_id" - t.string "title" - t.text "content" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "posts", ["blog_id"], name: "index_posts_on_blog_id" - -end diff --git a/richardN/models/bpm/db/seeds.rb b/richardN/models/bpm/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/richardN/models/bpm/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/richardN/models/bpm/lib/assets/.keep b/richardN/models/bpm/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/lib/tasks/.keep b/richardN/models/bpm/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/log/.keep b/richardN/models/bpm/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/public/404.html b/richardN/models/bpm/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/public/422.html b/richardN/models/bpm/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/public/500.html b/richardN/models/bpm/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/models/bpm/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/richardN/models/bpm/public/favicon.ico b/richardN/models/bpm/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/public/robots.txt b/richardN/models/bpm/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/models/bpm/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/models/bpm/test/controllers/.keep b/richardN/models/bpm/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/test/fixtures/.keep b/richardN/models/bpm/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/test/fixtures/blogs.yml b/richardN/models/bpm/test/fixtures/blogs.yml deleted file mode 100644 index 2ff75a8..0000000 --- a/richardN/models/bpm/test/fixtures/blogs.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - description: MyText - -two: - name: MyString - description: MyText diff --git a/richardN/models/bpm/test/fixtures/messages.yml b/richardN/models/bpm/test/fixtures/messages.yml deleted file mode 100644 index ebf7326..0000000 --- a/richardN/models/bpm/test/fixtures/messages.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - post_id: - author: MyString - messages: MyText - -two: - post_id: - author: MyString - messages: MyText diff --git a/richardN/models/bpm/test/fixtures/posts.yml b/richardN/models/bpm/test/fixtures/posts.yml deleted file mode 100644 index e2dad75..0000000 --- a/richardN/models/bpm/test/fixtures/posts.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - blog_id: - title: MyString - content: MyText - -two: - blog_id: - title: MyString - content: MyText diff --git a/richardN/models/bpm/test/helpers/.keep b/richardN/models/bpm/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/test/integration/.keep b/richardN/models/bpm/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/test/mailers/.keep b/richardN/models/bpm/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/test/models/.keep b/richardN/models/bpm/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/test/models/blog_test.rb b/richardN/models/bpm/test/models/blog_test.rb deleted file mode 100644 index 5038377..0000000 --- a/richardN/models/bpm/test/models/blog_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class BlogTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/bpm/test/models/message_test.rb b/richardN/models/bpm/test/models/message_test.rb deleted file mode 100644 index 11e5db0..0000000 --- a/richardN/models/bpm/test/models/message_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class MessageTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/bpm/test/models/post_test.rb b/richardN/models/bpm/test/models/post_test.rb deleted file mode 100644 index 6d9d463..0000000 --- a/richardN/models/bpm/test/models/post_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PostTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/bpm/test/test_helper.rb b/richardN/models/bpm/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/models/bpm/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/models/bpm/vendor/assets/javascripts/.keep b/richardN/models/bpm/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/bpm/vendor/assets/stylesheets/.keep b/richardN/models/bpm/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/.gitignore b/richardN/models/dojoNinjas/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/models/dojoNinjas/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/models/dojoNinjas/Gemfile b/richardN/models/dojoNinjas/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/richardN/models/dojoNinjas/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/richardN/models/dojoNinjas/Gemfile.lock b/richardN/models/dojoNinjas/Gemfile.lock deleted file mode 100644 index 73114af..0000000 --- a/richardN/models/dojoNinjas/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (3.2.0) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/models/dojoNinjas/README.rdoc b/richardN/models/dojoNinjas/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/models/dojoNinjas/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/models/dojoNinjas/Rakefile b/richardN/models/dojoNinjas/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/app/assets/images/.keep b/richardN/models/dojoNinjas/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/app/assets/javascripts/application.js b/richardN/models/dojoNinjas/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/models/dojoNinjas/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/models/dojoNinjas/app/assets/stylesheets/application.css b/richardN/models/dojoNinjas/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/models/dojoNinjas/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 any plugin's vendor/assets/stylesheets directory 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/richardN/models/dojoNinjas/app/controllers/application_controller.rb b/richardN/models/dojoNinjas/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/app/controllers/concerns/.keep b/richardN/models/dojoNinjas/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/app/helpers/application_helper.rb b/richardN/models/dojoNinjas/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/models/dojoNinjas/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/models/dojoNinjas/app/mailers/.keep b/richardN/models/dojoNinjas/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/app/models/.keep b/richardN/models/dojoNinjas/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/app/models/concerns/.keep b/richardN/models/dojoNinjas/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/app/models/dojo.rb b/richardN/models/dojoNinjas/app/models/dojo.rb deleted file mode 100644 index e1a7097..0000000 --- a/richardN/models/dojoNinjas/app/models/dojo.rb +++ /dev/null @@ -1,5 +0,0 @@ -class Dojo < ActiveRecord::Base - has_many :ninjas, dependent: :destroy - validates :name, :city, :state, presence: true - validates :state, length: {is: 2} -end diff --git a/richardN/models/dojoNinjas/app/models/ninja.rb b/richardN/models/dojoNinjas/app/models/ninja.rb deleted file mode 100644 index 93518b7..0000000 --- a/richardN/models/dojoNinjas/app/models/ninja.rb +++ /dev/null @@ -1,4 +0,0 @@ -class Ninja < ActiveRecord::Base - belongs_to :dojo - validates :first_name, :last_name, presence: true, length: { in: 2..20 } -end diff --git a/richardN/models/dojoNinjas/app/views/layouts/application.html.erb b/richardN/models/dojoNinjas/app/views/layouts/application.html.erb deleted file mode 100644 index 40d7e51..0000000 --- a/richardN/models/dojoNinjas/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - DojoNinjas - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/models/dojoNinjas/bin/bundle b/richardN/models/dojoNinjas/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/bin/rails b/richardN/models/dojoNinjas/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/models/dojoNinjas/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/models/dojoNinjas/bin/rake b/richardN/models/dojoNinjas/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/models/dojoNinjas/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/models/dojoNinjas/bin/setup b/richardN/models/dojoNinjas/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/models/dojoNinjas/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/models/dojoNinjas/bin/spring b/richardN/models/dojoNinjas/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/models/dojoNinjas/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/models/dojoNinjas/config.ru b/richardN/models/dojoNinjas/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/application.rb b/richardN/models/dojoNinjas/config/application.rb deleted file mode 100644 index 156a9d5..0000000 --- a/richardN/models/dojoNinjas/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module DojoNinjas - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/models/dojoNinjas/config/boot.rb b/richardN/models/dojoNinjas/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/models/dojoNinjas/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/models/dojoNinjas/config/database.yml b/richardN/models/dojoNinjas/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/environment.rb b/richardN/models/dojoNinjas/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/environments/development.rb b/richardN/models/dojoNinjas/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/models/dojoNinjas/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/models/dojoNinjas/config/environments/production.rb b/richardN/models/dojoNinjas/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/models/dojoNinjas/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/models/dojoNinjas/config/environments/test.rb b/richardN/models/dojoNinjas/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/models/dojoNinjas/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/models/dojoNinjas/config/initializers/assets.rb b/richardN/models/dojoNinjas/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/models/dojoNinjas/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/models/dojoNinjas/config/initializers/backtrace_silencers.rb b/richardN/models/dojoNinjas/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/initializers/cookies_serializer.rb b/richardN/models/dojoNinjas/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/models/dojoNinjas/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 diff --git a/richardN/models/dojoNinjas/config/initializers/filter_parameter_logging.rb b/richardN/models/dojoNinjas/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/initializers/inflections.rb b/richardN/models/dojoNinjas/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/initializers/mime_types.rb b/richardN/models/dojoNinjas/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/initializers/session_store.rb b/richardN/models/dojoNinjas/config/initializers/session_store.rb deleted file mode 100644 index 66d07d9..0000000 --- a/richardN/models/dojoNinjas/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: '_dojoNinjas_session' diff --git a/richardN/models/dojoNinjas/config/initializers/wrap_parameters.rb b/richardN/models/dojoNinjas/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/locales/en.yml b/richardN/models/dojoNinjas/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/config/routes.rb b/richardN/models/dojoNinjas/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/richardN/models/dojoNinjas/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/models/dojoNinjas/config/secrets.yml b/richardN/models/dojoNinjas/config/secrets.yml deleted file mode 100644 index bf029b0..0000000 --- a/richardN/models/dojoNinjas/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: 4f6278fe1348938d1e8a8ec4e6e0f44e3eb2c13de7506de528a02af6d8be23fe215b5e7c88fc133ae0bf526e06dac80b84d2ad26bc76fd7ff2278230148ac3e6 - -test: - secret_key_base: 895e4a5690629ee8babfac5641a7e0dd9d7b3d770a02a9c2052c6774626698bb1a23372489f4e8771ab363c991eda997fbbc2dfcae2725d980271f1e2c167223 - -# 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/richardN/models/dojoNinjas/db/migrate/20171130165400_create_dojos.rb b/richardN/models/dojoNinjas/db/migrate/20171130165400_create_dojos.rb deleted file mode 100644 index ece0705..0000000 --- a/richardN/models/dojoNinjas/db/migrate/20171130165400_create_dojos.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateDojos < ActiveRecord::Migration - def change - create_table :dojos do |t| - t.string :name - t.string :city - t.string :state - - t.timestamps null: false - end - end -end diff --git a/richardN/models/dojoNinjas/db/migrate/20171130170259_create_ninjas.rb b/richardN/models/dojoNinjas/db/migrate/20171130170259_create_ninjas.rb deleted file mode 100644 index baf0162..0000000 --- a/richardN/models/dojoNinjas/db/migrate/20171130170259_create_ninjas.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateNinjas < ActiveRecord::Migration - def change - create_table :ninjas do |t| - t.references :dojo, index: true, foreign_key: true - t.string :first_name - t.string :last_name - - t.timestamps null: false - end - end -end diff --git a/richardN/models/dojoNinjas/db/schema.rb b/richardN/models/dojoNinjas/db/schema.rb deleted file mode 100644 index e55c0cb..0000000 --- a/richardN/models/dojoNinjas/db/schema.rb +++ /dev/null @@ -1,34 +0,0 @@ -# encoding: UTF-8 -# 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: 20171130170259) do - - create_table "dojos", force: :cascade do |t| - t.string "name" - t.string "city" - t.string "state" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - create_table "ninjas", force: :cascade do |t| - t.integer "dojo_id" - t.string "first_name" - t.string "last_name" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "ninjas", ["dojo_id"], name: "index_ninjas_on_dojo_id" - -end diff --git a/richardN/models/dojoNinjas/db/seeds.rb b/richardN/models/dojoNinjas/db/seeds.rb deleted file mode 100644 index 4edb1e8..0000000 --- a/richardN/models/dojoNinjas/db/seeds.rb +++ /dev/null @@ -1,7 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) diff --git a/richardN/models/dojoNinjas/lib/assets/.keep b/richardN/models/dojoNinjas/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/lib/tasks/.keep b/richardN/models/dojoNinjas/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/log/.keep b/richardN/models/dojoNinjas/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/public/404.html b/richardN/models/dojoNinjas/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/public/422.html b/richardN/models/dojoNinjas/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/public/500.html b/richardN/models/dojoNinjas/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/models/dojoNinjas/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/richardN/models/dojoNinjas/public/favicon.ico b/richardN/models/dojoNinjas/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/public/robots.txt b/richardN/models/dojoNinjas/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/models/dojoNinjas/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/models/dojoNinjas/test/controllers/.keep b/richardN/models/dojoNinjas/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/test/fixtures/.keep b/richardN/models/dojoNinjas/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/test/fixtures/dojos.yml b/richardN/models/dojoNinjas/test/fixtures/dojos.yml deleted file mode 100644 index 07bb5b1..0000000 --- a/richardN/models/dojoNinjas/test/fixtures/dojos.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - city: MyString - state: MyString - -two: - name: MyString - city: MyString - state: MyString diff --git a/richardN/models/dojoNinjas/test/fixtures/ninjas.yml b/richardN/models/dojoNinjas/test/fixtures/ninjas.yml deleted file mode 100644 index f7bc7ce..0000000 --- a/richardN/models/dojoNinjas/test/fixtures/ninjas.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - dojo_id: - first_name: MyString - last_name: MyString - -two: - dojo_id: - first_name: MyString - last_name: MyString diff --git a/richardN/models/dojoNinjas/test/helpers/.keep b/richardN/models/dojoNinjas/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/test/integration/.keep b/richardN/models/dojoNinjas/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/test/mailers/.keep b/richardN/models/dojoNinjas/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/test/models/.keep b/richardN/models/dojoNinjas/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/test/models/dojo_test.rb b/richardN/models/dojoNinjas/test/models/dojo_test.rb deleted file mode 100644 index a078f30..0000000 --- a/richardN/models/dojoNinjas/test/models/dojo_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class DojoTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/dojoNinjas/test/models/ninja_test.rb b/richardN/models/dojoNinjas/test/models/ninja_test.rb deleted file mode 100644 index d21c152..0000000 --- a/richardN/models/dojoNinjas/test/models/ninja_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class NinjaTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/dojoNinjas/test/test_helper.rb b/richardN/models/dojoNinjas/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/models/dojoNinjas/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/models/dojoNinjas/vendor/assets/javascripts/.keep b/richardN/models/dojoNinjas/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/dojoNinjas/vendor/assets/stylesheets/.keep b/richardN/models/dojoNinjas/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/.gitignore b/richardN/models/optimize/.gitignore deleted file mode 100644 index 050c9d9..0000000 --- a/richardN/models/optimize/.gitignore +++ /dev/null @@ -1,17 +0,0 @@ -# See https://help.github.com/articles/ignoring-files for more about ignoring files. -# -# If you find yourself ignoring temporary files generated by your text editor -# or operating system, you probably want to add a global ignore instead: -# git config --global core.excludesfile '~/.gitignore_global' - -# Ignore bundler config. -/.bundle - -# Ignore the default SQLite database. -/db/*.sqlite3 -/db/*.sqlite3-journal - -# Ignore all logfiles and tempfiles. -/log/* -!/log/.keep -/tmp diff --git a/richardN/models/optimize/Gemfile b/richardN/models/optimize/Gemfile deleted file mode 100644 index ac64fba..0000000 --- a/richardN/models/optimize/Gemfile +++ /dev/null @@ -1,48 +0,0 @@ -source 'https://rubygems.org' - - -# Bundle edge Rails instead: gem 'rails', github: 'rails/rails' -gem 'rails', '4.2.7' -# Use sqlite3 as the database for Active Record -gem 'sqlite3' -# Use SCSS for stylesheets -gem 'sass-rails', '~> 5.0' -# Use Uglifier as compressor for JavaScript assets -gem 'uglifier', '>= 1.3.0' -# Use CoffeeScript for .coffee assets and views -gem 'coffee-rails', '~> 4.1.0' -# See https://github.com/rails/execjs#readme for more supported runtimes -# gem 'therubyracer', platforms: :ruby - -# Use jquery as the JavaScript library -gem 'jquery-rails' -# Turbolinks makes following links in your web application faster. Read more: https://github.com/rails/turbolinks -gem 'turbolinks' -# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder -gem 'jbuilder', '~> 2.0' -# bundle exec rake doc:rails generates the API under doc/api. -gem 'sdoc', '~> 0.4.0', group: :doc - -# Use ActiveModel has_secure_password -# gem 'bcrypt', '~> 3.1.7' - -# Use Unicorn as the app server -# gem 'unicorn' - -# Use Capistrano for deployment -# gem 'capistrano-rails', group: :development - -group :development, :test do - # Call 'byebug' anywhere in the code to stop execution and get a debugger console - gem 'byebug' -end - -group :development do - # Access an IRB console on exception pages or by using <%= console %> in views - gem 'web-console', '~> 2.0' - - # Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring - gem 'spring' -end - -gem 'hirb' \ No newline at end of file diff --git a/richardN/models/optimize/Gemfile.lock b/richardN/models/optimize/Gemfile.lock deleted file mode 100644 index 69988e1..0000000 --- a/richardN/models/optimize/Gemfile.lock +++ /dev/null @@ -1,172 +0,0 @@ -GEM - remote: https://rubygems.org/ - specs: - actionmailer (4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.5) - actionpack (4.2.7) - actionview (= 4.2.7) - activesupport (= 4.2.7) - rack (~> 1.6) - rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - actionview (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.5) - rails-html-sanitizer (~> 1.0, >= 1.0.2) - activejob (4.2.7) - activesupport (= 4.2.7) - globalid (>= 0.3.0) - activemodel (4.2.7) - activesupport (= 4.2.7) - builder (~> 3.1) - activerecord (4.2.7) - activemodel (= 4.2.7) - activesupport (= 4.2.7) - arel (~> 6.0) - activesupport (4.2.7) - i18n (~> 0.7) - json (~> 1.7, >= 1.7.7) - minitest (~> 5.1) - thread_safe (~> 0.3, >= 0.3.4) - tzinfo (~> 1.1) - arel (6.0.4) - binding_of_caller (0.7.3) - debug_inspector (>= 0.0.1) - builder (3.2.3) - byebug (9.1.0) - coffee-rails (4.1.1) - coffee-script (>= 2.2.0) - railties (>= 4.0.0, < 5.1.x) - coffee-script (2.4.1) - coffee-script-source - execjs - coffee-script-source (1.12.2) - concurrent-ruby (1.0.5) - crass (1.0.3) - debug_inspector (0.0.3) - erubis (2.7.0) - execjs (2.7.0) - ffi (1.9.18) - globalid (0.4.1) - activesupport (>= 4.2.0) - hirb (0.7.3) - i18n (0.9.1) - concurrent-ruby (~> 1.0) - jbuilder (2.7.0) - activesupport (>= 4.2.0) - multi_json (>= 1.2) - jquery-rails (4.3.1) - rails-dom-testing (>= 1, < 3) - railties (>= 4.2.0) - thor (>= 0.14, < 2.0) - json (1.8.6) - loofah (2.1.1) - crass (~> 1.0.2) - nokogiri (>= 1.5.9) - mail (2.7.0) - mini_mime (>= 0.1.1) - mini_mime (1.0.0) - mini_portile2 (2.3.0) - minitest (5.10.3) - multi_json (1.12.2) - nokogiri (1.8.1) - mini_portile2 (~> 2.3.0) - rack (1.6.8) - rack-test (0.6.3) - rack (>= 1.0) - rails (4.2.7) - actionmailer (= 4.2.7) - actionpack (= 4.2.7) - actionview (= 4.2.7) - activejob (= 4.2.7) - activemodel (= 4.2.7) - activerecord (= 4.2.7) - activesupport (= 4.2.7) - bundler (>= 1.3.0, < 2.0) - railties (= 4.2.7) - sprockets-rails - rails-deprecated_sanitizer (1.0.3) - activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.8) - activesupport (>= 4.2.0.beta, < 5.0) - nokogiri (~> 1.6) - rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.3) - loofah (~> 2.0) - railties (4.2.7) - actionpack (= 4.2.7) - activesupport (= 4.2.7) - rake (>= 0.8.7) - thor (>= 0.18.1, < 2.0) - rake (12.3.0) - rb-fsevent (0.10.2) - rb-inotify (0.9.10) - ffi (>= 0.5.0, < 2) - rdoc (4.3.0) - sass (3.5.3) - sass-listen (~> 4.0.0) - sass-listen (4.0.0) - rb-fsevent (~> 0.9, >= 0.9.4) - rb-inotify (~> 0.9, >= 0.9.7) - sass-rails (5.0.7) - railties (>= 4.0.0, < 6) - sass (~> 3.1) - sprockets (>= 2.8, < 4.0) - sprockets-rails (>= 2.0, < 4.0) - tilt (>= 1.1, < 3) - sdoc (0.4.2) - json (~> 1.7, >= 1.7.7) - rdoc (~> 4.0) - spring (2.0.2) - activesupport (>= 4.2) - sprockets (3.7.1) - concurrent-ruby (~> 1.0) - rack (> 1, < 3) - sprockets-rails (3.2.1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (>= 3.0.0) - sqlite3 (1.3.13) - thor (0.20.0) - thread_safe (0.3.6) - tilt (2.0.8) - turbolinks (5.0.1) - turbolinks-source (~> 5) - turbolinks-source (5.0.3) - tzinfo (1.2.4) - thread_safe (~> 0.1) - uglifier (4.0.1) - execjs (>= 0.3.0, < 3) - web-console (2.3.0) - activemodel (>= 4.0) - binding_of_caller (>= 0.7.2) - railties (>= 4.0) - sprockets-rails (>= 2.0, < 4.0) - -PLATFORMS - ruby - -DEPENDENCIES - byebug - coffee-rails (~> 4.1.0) - hirb - jbuilder (~> 2.0) - jquery-rails - rails (= 4.2.7) - sass-rails (~> 5.0) - sdoc (~> 0.4.0) - spring - sqlite3 - turbolinks - uglifier (>= 1.3.0) - web-console (~> 2.0) - -BUNDLED WITH - 1.16.0 diff --git a/richardN/models/optimize/README.rdoc b/richardN/models/optimize/README.rdoc deleted file mode 100644 index dd4e97e..0000000 --- a/richardN/models/optimize/README.rdoc +++ /dev/null @@ -1,28 +0,0 @@ -== README - -This README would normally document whatever steps are necessary to get the -application up and running. - -Things you may want to cover: - -* Ruby version - -* System dependencies - -* Configuration - -* Database creation - -* Database initialization - -* How to run the test suite - -* Services (job queues, cache servers, search engines, etc.) - -* Deployment instructions - -* ... - - -Please feel free to use a different markup language if you do not plan to run -rake doc:app. diff --git a/richardN/models/optimize/Rakefile b/richardN/models/optimize/Rakefile deleted file mode 100644 index ba6b733..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/app/assets/images/.keep b/richardN/models/optimize/app/assets/images/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/app/assets/javascripts/application.js b/richardN/models/optimize/app/assets/javascripts/application.js deleted file mode 100644 index e07c5a8..0000000 --- a/richardN/models/optimize/app/assets/javascripts/application.js +++ /dev/null @@ -1,16 +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 any plugin's vendor/assets/javascripts directory 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/rails/sprockets#sprockets-directives) for details -// about supported directives. -// -//= require jquery -//= require jquery_ujs -//= require turbolinks -//= require_tree . diff --git a/richardN/models/optimize/app/assets/stylesheets/application.css b/richardN/models/optimize/app/assets/stylesheets/application.css deleted file mode 100644 index f9cd5b3..0000000 --- a/richardN/models/optimize/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 any plugin's vendor/assets/stylesheets directory 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/richardN/models/optimize/app/controllers/application_controller.rb b/richardN/models/optimize/app/controllers/application_controller.rb deleted file mode 100644 index d83690e..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/app/controllers/concerns/.keep b/richardN/models/optimize/app/controllers/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/app/helpers/application_helper.rb b/richardN/models/optimize/app/helpers/application_helper.rb deleted file mode 100644 index de6be79..0000000 --- a/richardN/models/optimize/app/helpers/application_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module ApplicationHelper -end diff --git a/richardN/models/optimize/app/mailers/.keep b/richardN/models/optimize/app/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/app/models/.keep b/richardN/models/optimize/app/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/app/models/concerns/.keep b/richardN/models/optimize/app/models/concerns/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/app/models/player.rb b/richardN/models/optimize/app/models/player.rb deleted file mode 100644 index b30fdc9..0000000 --- a/richardN/models/optimize/app/models/player.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Player < ActiveRecord::Base - belongs_to :team -end diff --git a/richardN/models/optimize/app/models/team.rb b/richardN/models/optimize/app/models/team.rb deleted file mode 100644 index 25bddeb..0000000 --- a/richardN/models/optimize/app/models/team.rb +++ /dev/null @@ -1,3 +0,0 @@ -class Team < ActiveRecord::Base - has_many :players -end diff --git a/richardN/models/optimize/app/views/layouts/application.html.erb b/richardN/models/optimize/app/views/layouts/application.html.erb deleted file mode 100644 index 7fc9d5f..0000000 --- a/richardN/models/optimize/app/views/layouts/application.html.erb +++ /dev/null @@ -1,14 +0,0 @@ - - - - Optimize - <%= stylesheet_link_tag 'application', media: 'all', 'data-turbolinks-track' => true %> - <%= javascript_include_tag 'application', 'data-turbolinks-track' => true %> - <%= csrf_meta_tags %> - - - -<%= yield %> - - - diff --git a/richardN/models/optimize/bin/bundle b/richardN/models/optimize/bin/bundle deleted file mode 100755 index 66e9889..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/bin/rails b/richardN/models/optimize/bin/rails deleted file mode 100755 index 0138d79..0000000 --- a/richardN/models/optimize/bin/rails +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -APP_PATH = File.expand_path('../../config/application', __FILE__) -require_relative '../config/boot' -require 'rails/commands' diff --git a/richardN/models/optimize/bin/rake b/richardN/models/optimize/bin/rake deleted file mode 100755 index d87d5f5..0000000 --- a/richardN/models/optimize/bin/rake +++ /dev/null @@ -1,9 +0,0 @@ -#!/usr/bin/env ruby -begin - load File.expand_path('../spring', __FILE__) -rescue LoadError => e - raise unless e.message.include?('spring') -end -require_relative '../config/boot' -require 'rake' -Rake.application.run diff --git a/richardN/models/optimize/bin/setup b/richardN/models/optimize/bin/setup deleted file mode 100755 index acdb2c1..0000000 --- a/richardN/models/optimize/bin/setup +++ /dev/null @@ -1,29 +0,0 @@ -#!/usr/bin/env ruby -require 'pathname' - -# path to your application root. -APP_ROOT = Pathname.new File.expand_path('../../', __FILE__) - -Dir.chdir APP_ROOT do - # This script is a starting point to setup your application. - # Add necessary setup steps to this file: - - puts "== Installing dependencies ==" - system "gem install bundler --conservative" - system "bundle check || bundle install" - - # puts "\n== Copying sample files ==" - # unless File.exist?("config/database.yml") - # system "cp config/database.yml.sample config/database.yml" - # end - - puts "\n== Preparing database ==" - system "bin/rake db:setup" - - puts "\n== Removing old logs and tempfiles ==" - system "rm -f log/*" - system "rm -rf tmp/cache" - - puts "\n== Restarting application server ==" - system "touch tmp/restart.txt" -end diff --git a/richardN/models/optimize/bin/spring b/richardN/models/optimize/bin/spring deleted file mode 100755 index fb2ec2e..0000000 --- a/richardN/models/optimize/bin/spring +++ /dev/null @@ -1,17 +0,0 @@ -#!/usr/bin/env ruby - -# This file loads spring without using Bundler, in order to be fast. -# It gets overwritten when you run the `spring binstub` command. - -unless defined?(Spring) - require 'rubygems' - require 'bundler' - - lockfile = Bundler::LockfileParser.new(Bundler.default_lockfile.read) - spring = lockfile.specs.detect { |spec| spec.name == "spring" } - if spring - Gem.use_paths Gem.dir, Bundler.bundle_path.to_s, *Gem.path - gem 'spring', spring.version - require 'spring/binstub' - end -end diff --git a/richardN/models/optimize/config.ru b/richardN/models/optimize/config.ru deleted file mode 100644 index bd83b25..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/application.rb b/richardN/models/optimize/config/application.rb deleted file mode 100644 index 82f8fb1..0000000 --- a/richardN/models/optimize/config/application.rb +++ /dev/null @@ -1,26 +0,0 @@ -require File.expand_path('../boot', __FILE__) - -require 'rails/all' - -# Require the gems listed in Gemfile, including any gems -# you've limited to :test, :development, or :production. -Bundler.require(*Rails.groups) - -module Optimize - 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 - - # Do not swallow errors in after_commit/after_rollback callbacks. - config.active_record.raise_in_transactional_callbacks = true - end -end diff --git a/richardN/models/optimize/config/boot.rb b/richardN/models/optimize/config/boot.rb deleted file mode 100644 index 6b750f0..0000000 --- a/richardN/models/optimize/config/boot.rb +++ /dev/null @@ -1,3 +0,0 @@ -ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__) - -require 'bundler/setup' # Set up gems listed in the Gemfile. diff --git a/richardN/models/optimize/config/database.yml b/richardN/models/optimize/config/database.yml deleted file mode 100644 index 1c1a37c..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/environment.rb b/richardN/models/optimize/config/environment.rb deleted file mode 100644 index ee8d90d..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/environments/development.rb b/richardN/models/optimize/config/environments/development.rb deleted file mode 100644 index b55e214..0000000 --- a/richardN/models/optimize/config/environments/development.rb +++ /dev/null @@ -1,41 +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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = 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/richardN/models/optimize/config/environments/production.rb b/richardN/models/optimize/config/environments/production.rb deleted file mode 100644 index 5c1b32e..0000000 --- a/richardN/models/optimize/config/environments/production.rb +++ /dev/null @@ -1,79 +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 serving static files from the `/public` folder by default since - # Apache or NGINX already handles this. - config.serve_static_files = ENV['RAILS_SERVE_STATIC_FILES'].present? - - # 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 - - # Asset digests allow you to set far-future HTTP expiration dates on all assets, - # yet still be able to expire them through the digest params. - config.assets.digest = true - - # `config.assets.precompile` and `config.assets.version` have moved to config/initializers/assets.rb - - # 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 - - # Use the lowest log level to ensure availability of diagnostic information - # when problems arise. - config.log_level = :debug - - # 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' - - # 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 - - # 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/richardN/models/optimize/config/environments/test.rb b/richardN/models/optimize/config/environments/test.rb deleted file mode 100644 index 1c19f08..0000000 --- a/richardN/models/optimize/config/environments/test.rb +++ /dev/null @@ -1,42 +0,0 @@ -Rails.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 file server for tests with Cache-Control for performance. - config.serve_static_files = 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 - - # Randomize the order test cases are executed. - config.active_support.test_order = :random - - # 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/richardN/models/optimize/config/initializers/assets.rb b/richardN/models/optimize/config/initializers/assets.rb deleted file mode 100644 index 01ef3e6..0000000 --- a/richardN/models/optimize/config/initializers/assets.rb +++ /dev/null @@ -1,11 +0,0 @@ -# Be sure to restart your server when you modify this file. - -# Version of your assets, change this if you want to expire all your assets. -Rails.application.config.assets.version = '1.0' - -# Add additional assets to the asset load path -# Rails.application.config.assets.paths << Emoji.images_path - -# Precompile additional assets. -# application.js, application.css, and all non-JS/CSS in app/assets folder are already added. -# Rails.application.config.assets.precompile += %w( search.js ) diff --git a/richardN/models/optimize/config/initializers/backtrace_silencers.rb b/richardN/models/optimize/config/initializers/backtrace_silencers.rb deleted file mode 100644 index 59385cd..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/initializers/cookies_serializer.rb b/richardN/models/optimize/config/initializers/cookies_serializer.rb deleted file mode 100644 index 7f70458..0000000 --- a/richardN/models/optimize/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 diff --git a/richardN/models/optimize/config/initializers/filter_parameter_logging.rb b/richardN/models/optimize/config/initializers/filter_parameter_logging.rb deleted file mode 100644 index 4a994e1..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/initializers/inflections.rb b/richardN/models/optimize/config/initializers/inflections.rb deleted file mode 100644 index ac033bf..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/initializers/mime_types.rb b/richardN/models/optimize/config/initializers/mime_types.rb deleted file mode 100644 index dc18996..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/initializers/session_store.rb b/richardN/models/optimize/config/initializers/session_store.rb deleted file mode 100644 index 7e5d399..0000000 --- a/richardN/models/optimize/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: '_optimize_session' diff --git a/richardN/models/optimize/config/initializers/wrap_parameters.rb b/richardN/models/optimize/config/initializers/wrap_parameters.rb deleted file mode 100644 index 33725e9..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/locales/en.yml b/richardN/models/optimize/config/locales/en.yml deleted file mode 100644 index 0653957..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/config/routes.rb b/richardN/models/optimize/config/routes.rb deleted file mode 100644 index 3f66539..0000000 --- a/richardN/models/optimize/config/routes.rb +++ /dev/null @@ -1,56 +0,0 @@ -Rails.application.routes.draw do - # The priority is based upon order of creation: first created -> highest priority. - # See how all your routes lay out with "rake routes". - - # You can have the root of your site routed with "root" - # root 'welcome#index' - - # Example of regular route: - # get 'products/:id' => 'catalog#view' - - # Example of named route that can be invoked with purchase_url(id: product.id) - # get 'products/:id/purchase' => 'catalog#purchase', as: :purchase - - # Example resource route (maps HTTP verbs to controller actions automatically): - # resources :products - - # Example resource route with options: - # resources :products do - # member do - # get 'short' - # post 'toggle' - # end - # - # collection do - # get 'sold' - # end - # end - - # Example resource route with sub-resources: - # resources :products do - # resources :comments, :sales - # resource :seller - # end - - # Example resource route with more complex sub-resources: - # resources :products do - # resources :comments - # resources :sales do - # get 'recent', on: :collection - # end - # end - - # Example resource route with concerns: - # concern :toggleable do - # post 'toggle' - # end - # resources :posts, concerns: :toggleable - # resources :photos, concerns: :toggleable - - # Example resource route within a namespace: - # namespace :admin do - # # Directs /admin/products/* to Admin::ProductsController - # # (app/controllers/admin/products_controller.rb) - # resources :products - # end -end diff --git a/richardN/models/optimize/config/secrets.yml b/richardN/models/optimize/config/secrets.yml deleted file mode 100644 index fa6fdae..0000000 --- a/richardN/models/optimize/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: d95878f2cd7c8877118f44cf154d79b28925b6f084ca02bd90c64d84b08e47f01a947144f24c2fa97e5066bbad9a4c26337f7f72f4a60c613d7b414399732dac - -test: - secret_key_base: a0dd9ffe293a72c2c42c7eb98153711e13fb83b0f5fcf8ea2d2048a4aacfaae8e5db067cc976a3f57699b6cd943544b6350e6250e7a812d4b3384b979997b316 - -# 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/richardN/models/optimize/db/migrate/20171203220121_create_teams.rb b/richardN/models/optimize/db/migrate/20171203220121_create_teams.rb deleted file mode 100644 index 5f7137c..0000000 --- a/richardN/models/optimize/db/migrate/20171203220121_create_teams.rb +++ /dev/null @@ -1,11 +0,0 @@ -class CreateTeams < ActiveRecord::Migration - def change - create_table :teams do |t| - t.string :name - t.string :mascot - t.string :stadium - - t.timestamps null: false - end - end -end diff --git a/richardN/models/optimize/db/migrate/20171203220131_create_players.rb b/richardN/models/optimize/db/migrate/20171203220131_create_players.rb deleted file mode 100644 index 9949aad..0000000 --- a/richardN/models/optimize/db/migrate/20171203220131_create_players.rb +++ /dev/null @@ -1,10 +0,0 @@ -class CreatePlayers < ActiveRecord::Migration - def change - create_table :players do |t| - t.string :name - t.references :team, index: true, foreign_key: true - - t.timestamps null: false - end - end -end diff --git a/richardN/models/optimize/db/schema.rb b/richardN/models/optimize/db/schema.rb deleted file mode 100644 index 5afea1c..0000000 --- a/richardN/models/optimize/db/schema.rb +++ /dev/null @@ -1,33 +0,0 @@ -# encoding: UTF-8 -# 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: 20171203220131) do - - create_table "players", force: :cascade do |t| - t.string "name" - t.integer "team_id" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - - add_index "players", ["team_id"], name: "index_players_on_team_id" - - create_table "teams", force: :cascade do |t| - t.string "name" - t.string "mascot" - t.string "stadium" - t.datetime "created_at", null: false - t.datetime "updated_at", null: false - end - -end diff --git a/richardN/models/optimize/db/seeds.rb b/richardN/models/optimize/db/seeds.rb deleted file mode 100644 index 98e69f2..0000000 --- a/richardN/models/optimize/db/seeds.rb +++ /dev/null @@ -1,112 +0,0 @@ -# This file should contain all the record creation needed to seed the database with its default values. -# The data can then be loaded with the rake db:seed (or created alongside the db with db:setup). -# -# Examples: -# -# cities = City.create([{ name: 'Chicago' }, { name: 'Copenhagen' }]) -# Mayor.create(name: 'Emanuel', city: cities.first) - -# we require 'open-uri' to request the html files -require 'open-uri' -teams = [ - ["Atlanta Hawks", "Skyhawk", "Philips Arena"], - ["Boston Celtics", "Lucky the Leprechaun", "TD Garden"], - ["Brooklyn Nets", "BrooklyKnight", "Barclays Center"], - ["Charlotte Hornets", "Hugo the Hornet", "Spectrum Center"], - ["Chicago Bulls", "Benny the Bull", "United Center"], - ["Cleveland Cavaliers", "Moondog", "Quicken Loans Arena"], - ["Dallas Mavericks", "Champ", "American Airlines Center"], - ["Denver Nuggets", "Rocky the Mountain Lion", "Pepsi Center"], - ["Detroit Pistons", "Hooper", "The Palace of Auburn Hills"], - ["Golden State Warriors", "Thunder", "Oracle Arena"], - ["Houston Rockets", "Clutch", "Toyota Center"], - ["Indiana Pacers", "Boomer the Panther", "Bankers Life Fieldhouse"], - ["Los Angeles Clippers", "Chuck", "Staples Center"], - ["Los Angeles Lakers", "Jack Nicholson", "Staples Center"], - ["Memphis Grizzlies", "Griz", "FedExForum"], - ["Miami Heat", "Burnie", "American Airlines Arena"], - ["Milwaukee Bucks", "Bango", "BMO Harris Bradley Center"], - ["Minnesota Timberwolves", "Crunch the Wolf", "Target Center"], - ["New Orleans Pelicans", "Pierre the Pelican", "Smoothie King Center"], - ["New York Knicks", "Spike Lee", "Madison Square Garden"], - ["Oklahoma City Thunder", "Rumble the Bison", "Chesapeake Energy Arena"], - ["Orlando Magic", "Stuff the Magic Dragon", "Amway Center"], - ["Philadelphia 76ers", "Franklin the Dog", "Wells Fargo Center Philadelphia"], - ["Phoenix Suns", "The Suns Gorilla", "Talking Stick Resort Arena"], - ["Portland Trail Blazers", "Blaze the Trail Cat", "Moda Center"], - ["Sacramento Kings", "Slamson the Lion", "Golden 1 Center"], - ["San Antonio Spurs", "The Coyote", "AT&T Center"], - ["Toronto Raptors", "Raptor", "Air Canada Centre"], - ["Utah Jazz", "Jazz Bear", "Vivint Smart Home Arena"], - ["Washington Wizards", "G. Wiz", "Verizon Center"] -] -# Here, we are using the Nokogiri gem (already comes with Rails), to scrape the ESPN website for the list of players. -# For more information on Nokogiri, you can go to their documentation or visit http://www.nokogiri.org/ -atlanta_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/atl/atlanta-hawks")).css("td.sortcell") -boston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bos/boston-celtics")).css("td.sortcell") -brooklyn_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/bkn/brooklyn-nets")).css("td.sortcell") -charlotte_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cha/charlotte-hornets")).css("td.sortcell") -chicago_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/chi/chicago-bulls")).css("td.sortcell") -cleveland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/cle/cleveland-cavaliers")).css("td.sortcell") -dallas_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/dal/dallas-mavericks")).css("td.sortcell") -denver_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/den/denver-nuggets")).css("td.sortcell") -detroit_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/det/detroit-pistons")).css("td.sortcell") -warriors_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/gs/golden-state-warriors")).css("td.sortcell") -houston_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/hou/houston-rockets")).css("td.sortcell") -indiana_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ind/indiana-pacers")).css("td.sortcell") -clippers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lac/la-clippers")).css("td.sortcell") -lakers_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/lal/los-angeles-lakers")).css("td.sortcell") -memphis_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mem/memphis-grizzlies")).css("td.sortcell") -miami_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mia/miami-heat")).css("td.sortcell") -milwaukee_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/mil/milwaukee-bucks")).css("td.sortcell") -minnesota_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/min/minnesota-timberwolves")).css("td.sortcell") -nola_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/no/new-orleans-pelicans")).css("td.sortcell") -knicks_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/ny/new-york-knicks")).css("td.sortcell") -okc_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/okc/oklahoma-city-thunder")).css("td.sortcell") -orlando_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/orl/orlando-magic")).css("td.sortcell") -phili_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phi/philadelphia-76ers")).css("td.sortcell") -phoenix_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/phx/phoenix-suns")).css("td.sortcell") -portland_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/por/portland-trail-blazers")).css("td.sortcell") -sacramento_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sac/sacramento-kings")).css("td.sortcell") -spurs_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/sa/san-antonio-spurs")).css("td.sortcell") -toronto_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/tor/toronto-raptors")).css("td.sortcell") -utah_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/utah/utah-jazz")).css("td.sortcell") -washington_players = Nokogiri::HTML(open("http://www.espn.com/nba/team/roster/_/name/wsh/washington-wizards")).css("td.sortcell") -players = [ - atlanta_players, - boston_players, - brooklyn_players, - charlotte_players, - chicago_players, - cleveland_players, - dallas_players, - denver_players, - detroit_players, - warriors_players, - houston_players, - indiana_players, - clippers_players, - lakers_players, - memphis_players, - miami_players, - milwaukee_players, - minnesota_players, - nola_players, - knicks_players, - okc_players, - orlando_players, - phili_players, - phoenix_players, - portland_players, - sacramento_players, - spurs_players, - toronto_players, - utah_players, - washington_players -] -players.each_with_index do |roster, index| - Team.create(name: teams[index][0], mascot: teams[index][1], stadium: teams[index][2]) - roster.each do |player| - Team.last.players.create(name: player.text) - end -end diff --git a/richardN/models/optimize/ff b/richardN/models/optimize/ff deleted file mode 100644 index fc1fe8b..0000000 --- a/richardN/models/optimize/ff +++ /dev/null @@ -1,37 +0,0 @@ -+----+------------------------+------------------------+------------------------+------------------------+-------------------------+ -| id | name | mascot | stadium | created_at | updated_at | -+----+------------------------+------------------------+------------------------+------------------------+-------------------------+ -| 1 | Atlanta Hawks | Skyhawk | Philips Arena | 2017-12-03 22:05:37... | 2017-12-03 22:05:37 UTC | -| 2 | Atlanta Hawks | Skyhawk | Philips Arena | 2017-12-03 22:07:43... | 2017-12-03 22:07:43 UTC | -| 3 | Atlanta Hawks | Skyhawk | Philips Arena | 2017-12-03 22:11:46... | 2017-12-03 22:11:46 UTC | -| 4 | Boston Celtics | Lucky the Leprechaun | TD Garden | 2017-12-03 22:11:47... | 2017-12-03 22:11:47 UTC | -| 5 | Brooklyn Nets | BrooklyKnight | Barclays Center | 2017-12-03 22:11:47... | 2017-12-03 22:11:47 UTC | -| 6 | Charlotte Hornets | Hugo the Hornet | Spectrum Center | 2017-12-03 22:11:47... | 2017-12-03 22:11:47 UTC | -| 7 | Chicago Bulls | Benny the Bull | United Center | 2017-12-03 22:11:47... | 2017-12-03 22:11:47 UTC | -| 8 | Cleveland Cavaliers | Moondog | Quicken Loans Arena | 2017-12-03 22:11:48... | 2017-12-03 22:11:48 UTC | -| 9 | Dallas Mavericks | Champ | American Airlines C... | 2017-12-03 22:11:48... | 2017-12-03 22:11:48 UTC | -| 10 | Denver Nuggets | Rocky the Mountain ... | Pepsi Center | 2017-12-03 22:11:48... | 2017-12-03 22:11:48 UTC | -| 11 | Detroit Pistons | Hooper | The Palace of Aubur... | 2017-12-03 22:11:48... | 2017-12-03 22:11:48 UTC | -| 12 | Golden State Warriors | Thunder | Oracle Arena | 2017-12-03 22:11:49... | 2017-12-03 22:11:49 UTC | -| 13 | Houston Rockets | Clutch | Toyota Center | 2017-12-03 22:11:49... | 2017-12-03 22:11:49 UTC | -| 14 | Indiana Pacers | Boomer the Panther | Bankers Life Fieldh... | 2017-12-03 22:11:49... | 2017-12-03 22:11:49 UTC | -| 15 | Los Angeles Clippers | Chuck | Staples Center | 2017-12-03 22:11:49... | 2017-12-03 22:11:49 UTC | -| 16 | Los Angeles Lakers | Jack Nicholson | Staples Center | 2017-12-03 22:11:50... | 2017-12-03 22:11:50 UTC | -| 17 | Memphis Grizzlies | Griz | FedExForum | 2017-12-03 22:11:50... | 2017-12-03 22:11:50 UTC | -| 18 | Miami Heat | Burnie | American Airlines A... | 2017-12-03 22:11:50... | 2017-12-03 22:11:50 UTC | -| 19 | Milwaukee Bucks | Bango | BMO Harris Bradley ... | 2017-12-03 22:11:50... | 2017-12-03 22:11:50 UTC | -| 20 | Minnesota Timberwolves | Crunch the Wolf | Target Center | 2017-12-03 22:11:51... | 2017-12-03 22:11:51 UTC | -| 21 | New Orleans Pelicans | Pierre the Pelican | Smoothie King Center | 2017-12-03 22:11:51... | 2017-12-03 22:11:51 UTC | -| 22 | New York Knicks | Spike Lee | Madison Square Garden | 2017-12-03 22:11:51... | 2017-12-03 22:11:51 UTC | -| 23 | Oklahoma City Thunder | Rumble the Bison | Chesapeake Energy A... | 2017-12-03 22:11:51... | 2017-12-03 22:11:51 UTC | -| 24 | Orlando Magic | Stuff the Magic Dragon | Amway Center | 2017-12-03 22:11:52... | 2017-12-03 22:11:52 UTC | -| 25 | Philadelphia 76ers | Franklin the Dog | Wells Fargo Center ... | 2017-12-03 22:11:52... | 2017-12-03 22:11:52 UTC | -| 26 | Phoenix Suns | The Suns Gorilla | Talking Stick Resor... | 2017-12-03 22:11:52... | 2017-12-03 22:11:52 UTC | -| 27 | Portland Trail Blazers | Blaze the Trail Cat | Moda Center | 2017-12-03 22:11:53... | 2017-12-03 22:11:53 UTC | -| 28 | Sacramento Kings | Slamson the Lion | Golden 1 Center | 2017-12-03 22:11:53... | 2017-12-03 22:11:53 UTC | -| 29 | San Antonio Spurs | The Coyote | AT&T Center | 2017-12-03 22:11:53... | 2017-12-03 22:11:53 UTC | -| 30 | Toronto Raptors | Raptor | Air Canada Centre | 2017-12-03 22:11:53... | 2017-12-03 22:11:53 UTC | -| 31 | Utah Jazz | Jazz Bear | Vivint Smart Home A... | 2017-12-03 22:11:54... | 2017-12-03 22:11:54 UTC | -| 32 | Washington Wizards | G. Wiz | Verizon Center | 2017-12-03 22:11:54... | 2017-12-03 22:11:54 UTC | -+----+------------------------+------------------------+------------------------+------------------------+-------------------------+ -32 rows in set diff --git a/richardN/models/optimize/lib/assets/.keep b/richardN/models/optimize/lib/assets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/lib/tasks/.keep b/richardN/models/optimize/lib/tasks/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/log/.keep b/richardN/models/optimize/log/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/public/404.html b/richardN/models/optimize/public/404.html deleted file mode 100644 index b612547..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/public/422.html b/richardN/models/optimize/public/422.html deleted file mode 100644 index a21f82b..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/public/500.html b/richardN/models/optimize/public/500.html deleted file mode 100644 index 061abc5..0000000 --- a/richardN/models/optimize/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/richardN/models/optimize/public/favicon.ico b/richardN/models/optimize/public/favicon.ico deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/public/robots.txt b/richardN/models/optimize/public/robots.txt deleted file mode 100644 index 3c9c7c0..0000000 --- a/richardN/models/optimize/public/robots.txt +++ /dev/null @@ -1,5 +0,0 @@ -# See http://www.robotstxt.org/robotstxt.html for documentation on how to use the robots.txt file -# -# To ban all spiders from the entire site uncomment the next two lines: -# User-agent: * -# Disallow: / diff --git a/richardN/models/optimize/test/controllers/.keep b/richardN/models/optimize/test/controllers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/test/fixtures/.keep b/richardN/models/optimize/test/fixtures/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/test/fixtures/players.yml b/richardN/models/optimize/test/fixtures/players.yml deleted file mode 100644 index 56a4719..0000000 --- a/richardN/models/optimize/test/fixtures/players.yml +++ /dev/null @@ -1,9 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - team_id: - -two: - name: MyString - team_id: diff --git a/richardN/models/optimize/test/fixtures/teams.yml b/richardN/models/optimize/test/fixtures/teams.yml deleted file mode 100644 index d9c869d..0000000 --- a/richardN/models/optimize/test/fixtures/teams.yml +++ /dev/null @@ -1,11 +0,0 @@ -# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html - -one: - name: MyString - mascot: MyString - stadium: MyString - -two: - name: MyString - mascot: MyString - stadium: MyString diff --git a/richardN/models/optimize/test/helpers/.keep b/richardN/models/optimize/test/helpers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/test/integration/.keep b/richardN/models/optimize/test/integration/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/test/mailers/.keep b/richardN/models/optimize/test/mailers/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/test/models/.keep b/richardN/models/optimize/test/models/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/test/models/player_test.rb b/richardN/models/optimize/test/models/player_test.rb deleted file mode 100644 index 3cf71d7..0000000 --- a/richardN/models/optimize/test/models/player_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class PlayerTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/optimize/test/models/team_test.rb b/richardN/models/optimize/test/models/team_test.rb deleted file mode 100644 index 8b101cb..0000000 --- a/richardN/models/optimize/test/models/team_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class TeamTest < ActiveSupport::TestCase - # test "the truth" do - # assert true - # end -end diff --git a/richardN/models/optimize/test/test_helper.rb b/richardN/models/optimize/test/test_helper.rb deleted file mode 100644 index 92e39b2..0000000 --- a/richardN/models/optimize/test/test_helper.rb +++ /dev/null @@ -1,10 +0,0 @@ -ENV['RAILS_ENV'] ||= 'test' -require File.expand_path('../../config/environment', __FILE__) -require 'rails/test_help' - -class ActiveSupport::TestCase - # Setup all fixtures in test/fixtures/*.yml for all tests in alphabetical order. - fixtures :all - - # Add more helper methods to be used by all tests here... -end diff --git a/richardN/models/optimize/vendor/assets/javascripts/.keep b/richardN/models/optimize/vendor/assets/javascripts/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/models/optimize/vendor/assets/stylesheets/.keep b/richardN/models/optimize/vendor/assets/stylesheets/.keep deleted file mode 100644 index e69de29..0000000 diff --git a/richardN/oop/.DS_Store b/richardN/oop/.DS_Store deleted file mode 100644 index 3721454..0000000 Binary files a/richardN/oop/.DS_Store and /dev/null differ diff --git a/richardN/oop/bank.rb b/richardN/oop/bank.rb deleted file mode 100644 index b818434..0000000 --- a/richardN/oop/bank.rb +++ /dev/null @@ -1,55 +0,0 @@ -class BankAccount - attr_reader :account_number, :checking, :saving - - @@bank_accounts = 0 - - def initialize - @account_number = create_account - @checking = 0 - @saving = 0 - @@bank_accounts += 1 - # not accessible since we do not have a reader for it - @interest_rate = 0.01 - end - - def deposit(account, amount) - if account.downcase == "checking" - @checking += amount - else - @saving += amount - end - end - - def withdrawal(account, amount) - if account.downcase == "checking" - if @checking - amount < 0 - raise "Insufficient Funds, you have #{@checking} in this account" - else - @checking -= amount - end - else - if @saving - amount < 0 - raise "Insufficient Funds, you have #{@saving} in this account" - else - @saving -= amount - end - end - end - - def total - "Checking Balance: #{@checking}\nSaving Balance: #{@saving}\nTotal Balance: #{@checking + @saving}" - end - - def account_information - "Account Number: #{@account_number}\nInterest Rate: #{@interest_rate}\n#{self.total}" - end - - def self.number_of_accounts - @@bank_accounts - end - - private - def create_account - Array.new(10).map { rand(1..9) }.join - end - end \ No newline at end of file diff --git a/richardN/oop/dogAssign/.DS_Store b/richardN/oop/dogAssign/.DS_Store deleted file mode 100644 index 980fe35..0000000 Binary files a/richardN/oop/dogAssign/.DS_Store and /dev/null differ diff --git a/richardN/oop/dogAssign/dog.rb b/richardN/oop/dogAssign/dog.rb deleted file mode 100644 index 5e409b6..0000000 --- a/richardN/oop/dogAssign/dog.rb +++ /dev/null @@ -1,23 +0,0 @@ -require_relative 'mammal' - -class Dog < Mammal - def pet(num) - @health += 5*num - self - end - - def walk(num) - @health -= 1*num - self - end - - def run(num) - @health -= 10*num - self - end -end - -lassie = Dog.new - -puts lassie -lassie.walk(3).run(2).pet(1).display_health \ No newline at end of file diff --git a/richardN/oop/dogAssign/lion.rb b/richardN/oop/dogAssign/lion.rb deleted file mode 100644 index 85c5417..0000000 --- a/richardN/oop/dogAssign/lion.rb +++ /dev/null @@ -1,29 +0,0 @@ -require_relative 'mammal' - -class Lion < Mammal - - def initialize - super - @health = 170 - end - - def fly(num) - @health -= 10*num - self - end - - def attack_town(num) - @health -= 50*num - self - end - - def eat_humans(num) - @health -= 20*num - self - end -end - -leo = Lion.new -p leo - -p leo.attack_town(3).eat_humans(2).fly(2).display_health diff --git a/richardN/oop/dogAssign/mammal.rb b/richardN/oop/dogAssign/mammal.rb deleted file mode 100644 index 9fbe17f..0000000 --- a/richardN/oop/dogAssign/mammal.rb +++ /dev/null @@ -1,15 +0,0 @@ - -class Mammal - attr_accessor :health - - def initialize - @health = 150 - end - - def display_health - p @health - end -end - -m = Mammal.new -p m \ No newline at end of file diff --git a/richardN/oop/humWizNinSam/human.rb b/richardN/oop/humWizNinSam/human.rb deleted file mode 100644 index 01d289a..0000000 --- a/richardN/oop/humWizNinSam/human.rb +++ /dev/null @@ -1,20 +0,0 @@ -class Human - attr_accessor :strength, :intelligence, :health, :stealth - def initialize - @strength = 3 - @intelligence = 3 - @stealth = 3 - @health = 100 - end - def attack(obj) - # check if the attacked object's class is Human or inherits from the Human class - if obj.class.ancestors.include?(Human) - obj.health -= 10 - # remember that we don't need to write "return" in ruby - # stating true below will automatically return the boolean true - true - else - false - end - end - end \ No newline at end of file diff --git a/richardN/oop/humWizNinSam/wixNinSam.rb b/richardN/oop/humWizNinSam/wixNinSam.rb deleted file mode 100644 index 30c1281..0000000 --- a/richardN/oop/humWizNinSam/wixNinSam.rb +++ /dev/null @@ -1,67 +0,0 @@ -require_relative("human") -class Wizard < Human - def initialize - super - @health = 50 - @intelligence = 25 - end - - def heal - @health += 10 - end - - def fire_ball(obj) - if obj.class.ancestors.include?(Human) - obj.health -= 20 - true - else - false - end - end -end - -class Ninja < Human - def initialize - super - @health = 175 - end - - def steal(obj) - if obj.class.ancestors.include?(Human) - @health += 10 - true - else - false - end - end - - def get_away - @health -= 15 - end -end - -class Samurai < Human - @@num = 0 - def initialize - super - @health = 200 - @@num += 1 - end - - def death_below(obj) - if obj.class.ancestors.include?(Human) - obj.health = 0 - true - else - false - end - end - - def meditate - @health = 200 - end - - def how_many - p @num - end -end \ No newline at end of file diff --git a/richardN/oop/mathDojo.rb b/richardN/oop/mathDojo.rb deleted file mode 100644 index c50c568..0000000 --- a/richardN/oop/mathDojo.rb +++ /dev/null @@ -1,22 +0,0 @@ -class MathDojo - # your code here - attr_reader :result - - def initialize - @result=0 - self - end - def add *values - @result += values.flatten.inject(:+) - self - end - def subtract *values - @result -= values.flatten.inject(:+) - self - end - def display - p @result - end - end - challenge1 = MathDojo.new.add(2).add(2, 5).subtract(3, 2).display # => 4 - challenge2 = MathDojo.new.add(1).add([3, 5, 7, 8], [2, 4.3, 1.25]).subtract([2,3], [1.1, 2.3]).display # => 23.15 \ No newline at end of file diff --git a/richardN/oop/project.rb b/richardN/oop/project.rb deleted file mode 100644 index e652e02..0000000 --- a/richardN/oop/project.rb +++ /dev/null @@ -1,16 +0,0 @@ -class Project - attr_reader :name, :description - - def initialize(name, description) - @name = name - @description = description - end - - def elevator_pitch - "#{@name}, #{@description}" - end - end - - project1 = Project.new("Project 1", "Description 1") - puts project1.name - puts project1.elevator_pitch \ No newline at end of file