Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

prototype aws lambda function for running alerts #3413

Draft
wants to merge 5 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
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
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -95,3 +95,7 @@ public/sitemap.xml
public/sitemap.xml.gz

data-pipeline/.env*

serverless/.serverless
serverless/node_modules
serverless/.env*
104 changes: 56 additions & 48 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,113 +4,120 @@ source 'https://rubygems.org'

gem 'rails', '~> 6.1'

gem 's3_cache_store', github: 'tbhi/s3_cache_store', branch: 'fix-wrong-number-of-arguments'



# Rails/Core
gem 'bootsnap'
gem 'image_processing', '~> 1.12'
gem 'jbuilder', '~> 2.5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
gem 'puma' # Use Puma as the app server
gem 'rack'
gem 'rack-attack'
gem 'rack-canonical-host' # Redirect www to root
# gem 'image_processing', '~> 1.12'
# gem 'jbuilder', '~> 2.5' # Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'puma' # Use Puma as the app server
# gem 'rack'
# gem 'rack-attack'
# gem 'rack-canonical-host' # Redirect www to root
gem 'rexml' # ruby 3 related - seems like should be a dependency of bootsnap
gem 'sprockets'
# gem 'sprockets'
gem 'stateful_enum' # extends ActiveRecord::Enum with state
gem 'webpacker'
gem 'wisper' # publish subscribe for ruby objects
# gem 'webpacker'
# gem 'wisper' # publish subscribe for ruby objects

# Database/Data
gem 'after_party' # load data after deploy
# gem 'after_party' # load data after deploy
gem 'auto_strip_attributes', '~> 2.5'
gem 'closed_struct'
gem 'pg'

# Dashboard analytics
gem 'energy-sparks_analytics', github: 'Energy-Sparks/energy-sparks_analytics', tag: '5.0.9'
# gem 'energy-sparks_analytics', github: 'Energy-Sparks/energy-sparks_analytics', branch: '4001-baseload-page-error-with-lagging-data'
# gem 'energy-sparks_analytics', github: 'Energy-Sparks/energy-sparks_analytics', tag: '5.0.9'
gem 'energy-sparks_analytics', github: 'Energy-Sparks/energy-sparks_analytics', branch: '20230109-ruby32'
# gem 'energy-sparks_analytics', path: '../energy-sparks_analytics'

# Using master due to it having a patch which doesn't override Enumerable#sum if it's already defined
# Last proper release does that, causing all kinds of weird behaviour (+ not defined etc)
gem 'statsample', github: 'Energy-Sparks/statsample', branch: 'update-gems-and-awesome-print'
gem 'statsample', github: 'Energy-Sparks/statsample', branch: 'ruby32'

# Assets
gem 'bootstrap4-datetime-picker-rails' # For tempus dominus date picker
gem 'font-awesome-sass'
gem 'jquery-rails' # Use jquery as the JavaScript library
gem 'momentjs-rails'
gem 'sass-rails' # Use SCSS for stylesheets
gem 'uglifier' # Use Uglifier as compressor for JavaScript assets
# group :web do
# gem 'bootstrap', '~> 4' # Use bootstrap for responsive layout
# gem 'bootstrap4-datetime-picker-rails' # For tempus dominus date picker
# gem 'font-awesome-sass'
# gem 'jquery-rails' # Use jquery as the JavaScript library
# gem 'momentjs-rails'
# gem 'sass-rails' # Use SCSS for stylesheets
# gem 'uglifier' # Use Uglifier as compressor for JavaScript assets

# # Assets for Emails
# gem 'bootstrap-email'
# end

# Pagination
gem 'pagy'
# gem 'pagy'

# Geocoding
gem 'geocoder'
gem 'rgeo-geojson'
# gem 'rgeo-geojson'

# APIs / remote services
gem 'aws-sdk-s3'
gem 'eventbrite_sdk' # Eventbrite for training page
gem 'faraday'
gem 'faraday-follow_redirects'
gem 'MailchimpMarketing'
gem 'mailgun_rails' # Email service
gem 'twilio-ruby' # For SMS notifications

# Assets for Emails
gem 'bootstrap-email'
gem 'aws-sdk-sqs'
# gem 'eventbrite_sdk' # Eventbrite for training page
# gem 'faraday'
# gem 'faraday-follow_redirects'
# gem 'MailchimpMarketing'
# gem 'mailgun_rails' # Email service
# gem 'twilio-ruby' # For SMS notifications

# Frontend
gem 'bootstrap', '~> 4' # Use bootstrap for responsive layout
gem 'cocoon' # nested forms
gem 'simple_form'
gem 'view_component'
# gem 'cocoon' # nested forms
# gem 'simple_form'
# gem 'view_component'

# JS Templating
gem 'handlebars_assets'
# gem 'handlebars_assets'
# Template variables
gem 'mustache', '~> 1.0'

# User input
gem 'trix-rails', require: 'trix'
# gem 'trix-rails', require: 'trix'

# Auth & Users
gem 'cancancan', '~> 3' # Use cancancan for authorization
gem 'devise' # Use devise for authentication
# gem 'cancancan', '~> 3' # Use cancancan for authorization
# gem 'devise' # Use devise for authentication

# Utils
gem 'groupdate' # Use groupdate to group usage stats
gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] # for Windows
# gem 'groupdate' # Use groupdate to group usage stats
# gem 'tzinfo-data', platforms: %i[mingw mswin x64_mingw jruby] # for Windows

# Bundle update installs 0.7.0 for some weird reason!
gem 'dotenv-rails' # Shim to load environment variables from .env into ENV in development.
# gem 'dotenv-rails' # Shim to load environment variables from .env into ENV in development.
gem 'friendly_id'

# Sitemap
gem 'sitemap_generator'
# gem 'sitemap_generator'

# Reduce log noise in dev and test
gem 'lograge'
# gem 'lograge'

# Exception handling
gem 'oj'
gem 'rollbar'

# Internationalisation
gem 'i18n-tasks', '~> 1.0.10'
# gem 'i18n-tasks', '~> 1.0.10'
gem 'mobility', '~> 1.2.9'
gem 'mobility-actiontext', '~> 1.1.1'

# Background jobs
gem 'good_job'
# gem 'good_job'

# Spreadsheet parsing
# Switch to custom branch that incorporates some necessary bug fixes
gem 'roo', git: 'https://github.com/Energy-Sparks/roo.git', branch: 'bug-fix-branch'
gem 'roo-xls'
# gem 'roo', git: 'https://github.com/Energy-Sparks/roo.git', branch: 'bug-fix-branch'
# gem 'roo-xls'

# Used to handle mail processing for the admin mailer
gem 'premailer-rails'
# gem 'premailer-rails'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
Expand Down Expand Up @@ -156,6 +163,7 @@ group :development do
# gem 'rack-mini-profiler'
# gem 'memory_profiler'
# gem 'i18n-debug'
gem 'ruby-lsp'
end

group :test do
Expand Down
Loading
Loading