Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
bfa7c97
Updated application to Rails 6.0
Dantemss Jan 26, 2021
9be09d0
Fix Rails 6.0 specs and warnings
Dantemss Jan 27, 2021
0585439
Rails 6.1 upgrade
Dantemss Jan 30, 2021
a782d34
Enabled Rails 6.1 framework defaults
Dantemss Feb 1, 2021
227b08e
Removed AWS SES gem
Dantemss Jan 21, 2021
3300af0
Updated scout_apm
Dantemss Jan 21, 2021
b363be6
Merge pull request #303 from openstax/new_deployment_fixes
Dantemss Feb 1, 2021
c223d3b
Updated gems for Rails 6 and removed stray puts
Dantemss Feb 1, 2021
d482e82
Removed extra gem
Dantemss Feb 1, 2021
89d3ae3
Set the cache store back to Redis in production
Dantemss Feb 1, 2021
28ded8a
Added ActiveStorage
Dantemss Feb 1, 2021
8ddbe5c
Proxy ActiveStorage files by default
Dantemss Feb 1, 2021
f07d09e
Use the force flag when resetting the branch after creating the data …
Dantemss Feb 1, 2021
2b2a8db
Don't attempt to use S3 while precompiling assets
Dantemss Feb 1, 2021
968db39
Allow writes to the images collection
Dantemss Feb 1, 2021
adb7d3d
add constraint to filter out active storage
nathanstitt Feb 2, 2021
e424036
Added a migration to convert type tags to assignment-type tags
Dantemss Feb 2, 2021
aa44021
Also preload publication objects
Dantemss Feb 2, 2021
9cddc41
Don't blow up when type:practice does not exist
Dantemss Feb 2, 2021
ea809ec
Merge pull request #305 from openstax/assignment_tags
Dantemss Feb 2, 2021
6094a38
Updated openstax_utilities to fix the status page in Rails 6
Dantemss Feb 2, 2021
bfe90b3
Merge pull request #302 from openstax/active_storage
Dantemss Feb 2, 2021
c27a6d0
Added a migration to copy attachments to ActiveStorage
Dantemss Feb 3, 2021
f0a2401
get and set images using attach methods
nathanstitt Feb 3, 2021
f813015
Use http url for assets access and migrate those exercises outside of…
Dantemss Feb 3, 2021
b3faf53
add attachments_url setting, use it for blob url
nathanstitt Feb 3, 2021
9871112
Made the new migrations resumable
Dantemss Feb 3, 2021
879e9cc
Merge pull request #306 from openstax/images
nathanstitt Feb 3, 2021
71dff00
Don't use a transaction when attaching images to ActiveStorage (error…
Dantemss Feb 3, 2021
3308a20
Reuse blobs in migration and for new versions of Exercises
Dantemss Feb 3, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/migrations.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ jobs:
bundle install --jobs 4 --retry 3
bundle exec rake db:create db:schema:load db:seed --trace
bundle exec rails runner '10.times { FactoryBot.create :exercise }'
git checkout -
git checkout --force -

# Retrieve gem cache for PR merge commit
- uses: actions/cache@v2
Expand Down
30 changes: 16 additions & 14 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -50,30 +50,32 @@ bower.json
# Ignore Byebug command history file.
.byebug_history

# Ignore node_modules
node_modules/

# Ignore precompiled javascript packs
# Ignore public precompiled assets, packs, uploaded files, exports and test files
/public/assets
/public/uploads
/public/exports
/public/packs
/public/packs-test
/public/assets

# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity
/public/test

# Ignore uploaded files in development
/storage/*
!/storage/.keep
/public/uploads

# Ignore attached files in development
/public/attachments
# Ignore node_modules
node_modules/

# Ignore yarn files
/yarn-error.log
yarn-debug.log*
.yarn-integrity

# Ignore Cucumber and RSpec failure information
cucumber_rerun.txt
rspec.failures
.rspec_last_failures

# Ignore brakeman reports
brakeman.html

# Ignore webdrivers lock file
.webdrivers_update
Expand Down
32 changes: 13 additions & 19 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ git_source(:github) do |repo_name|
end

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '~> 5.2.3'
gem 'rails'

# Bootstrap
gem 'bootstrap-sass'
Expand All @@ -23,9 +23,6 @@ gem 'compass-rails'
# Use Uglifier as compressor for JavaScript assets
gem 'uglifier', '>= 1.3.0'

# Use CoffeeScript for .coffee assets and views
gem 'coffee-rails', '~> 4.2.2'

gem 'mini_racer'

# Use jquery as the JavaScript library
Expand All @@ -52,6 +49,12 @@ gem 'rinku'
# Sanitizes user content
gem 'sanitize'

# ActiveStorage variants
gem 'image_processing'

# ActiveStorage S3 support
gem 'aws-sdk-s3'

# Utilities for OpenStax websites
gem 'openstax_utilities'

Expand Down Expand Up @@ -79,23 +82,17 @@ gem 'fine_print'
# Keyword search
gem 'keyword_search'

# File uploads
# File uploads (old)
gem 'remotipart'
gem 'carrierwave'
gem 'mimemagic'

# Image editing
gem 'mini_magick'

# Read Excel xlsx spreadsheet files
gem 'roo'

# Embedded JavaScript templates
gem 'ejs'

# Embedded CoffeeScript templates
gem 'eco'

# Object cloning
gem 'deep_cloneable'

Expand All @@ -106,7 +103,7 @@ gem 'sortability'
gem 'acts_as_votable'

# Real time application monitoring
gem 'scout_apm', '~> 3.0.pre28'
gem 'scout_apm'

# PostgreSQL database
gem 'pg'
Expand Down Expand Up @@ -141,7 +138,7 @@ gem 'oj'
gem 'oj_mimic_json'

# Key-value store for caching
gem 'redis-rails'
gem 'redis'

# Respond to ELB healthchecks in /ping and /ping/
gem 'openstax_healthcheck'
Expand Down Expand Up @@ -184,6 +181,9 @@ group :development, :test do
end

group :development do
# Listen for file changes in development
gem 'listen'

# Automated security checks
gem 'brakeman'

Expand All @@ -200,9 +200,6 @@ group :development do
gem 'rails-erd'
gem 'railroady'

# CoffeeScript source maps
gem 'coffee-rails-source-maps'

# Access an IRB console on exception pages or by using <%= console %> in views
gem 'web-console'
end
Expand All @@ -226,9 +223,6 @@ group :production do
gem 'aws-sdk-ssm', require: false
gem 'aws-sdk-secretsmanager', require: false

# AWS SES
gem 'aws-ses', '~> 0.6.0', require: 'aws/ses'

# Fog AWS
gem 'fog-aws'

Expand Down
Loading