Skip to content

Commit f27bcd4

Browse files
authored
Merge branch 'development' into statistics_filename_change
2 parents 3e8815e + 57f1649 commit f27bcd4

27 files changed

Lines changed: 263 additions & 123 deletions

.env.mysql2

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# DMPRoadmap dotenv file
2+
3+
# Rails log level
4+
RAILS_LOG_LEVEL=debug
5+
# Whether or not Rails should log to STDOUT. If false it will log to `./logs/[env].log`
6+
RAILS_LOG_TO_STDOUT=true
7+
# Whether or not Rails will be serving your static assets
8+
RAILS_SERVE_STATIC_FILES=false
9+
# Maximum number of Puma threads
10+
RAILS_MAX_THREADS=5
11+
# Maximum number of Puma workers
12+
WEB_CONCURRENCY=2
13+
# The port puma will use to host the Rails app
14+
PORT=3000
15+
16+
# Rails 6.1+ has a white-list of valid domains. You must set this for your production env!
17+
DMPROADMAP_HOST=localhost
18+
19+
# The location of the wkhtmltopdf app. Once bundler has installed it, you can find it with
20+
# `which wkhtmltopdf` on linux/osx systems.
21+
WICKED_PDF_PATH=/usr/local/bin/wkhtmltopdf
22+
23+
# Database settings.
24+
DB_ADAPTER=mysql2
25+
DB_HOST=localhost
26+
DB_PORT=3306
27+
DB_POOL_SIZE=16
28+
DB_NAME=roadmap
29+
30+
# Whether or not the Dragonfly gem should use AWS S3 to store logos. If 'false' the logos will
31+
# be stored on the local disk. If true, you must provide the `AWS_` prefixed values.
32+
DRAGONFLY_AWS=false
33+
AWS_REGION=
34+
AWS_BUCKET_NAME=
35+
36+
# If you have a Rollbar account and want to redcord errors there, add your token here
37+
ROLLBAR_ACCESS_TOKEN=
38+
ROLLBAR_ENV=
39+
40+
# Translation IO variables. The Domain can be either `app` or `client` and is typically defined
41+
# when running `bin/rails translations:sync DOMAIN=app`. `client` will use any of your
42+
# customized content in ./app/views/branded and `app` is for the core roadmap translations.
43+
# Include your Translation.io API key for the appropriate domains:
44+
# app => TRANSLATION_API_ROADMAP
45+
# client => TRANSLATION_API_CLIENT
46+
# DOMAIN=app
47+
# TRANSLATION_API_ROADMAP=
48+
# TRANSLATION_API_CLIENT=

.env.postgresql

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
# DMPRoadmap dotenv file
2+
3+
# Rails log level
4+
RAILS_LOG_LEVEL=debug
5+
# Whether or not Rails should log to STDOUT. If false it will log to `./logs/[env].log`
6+
RAILS_LOG_TO_STDOUT=true
7+
# Whether or not Rails will be serving your static assets
8+
RAILS_SERVE_STATIC_FILES=false
9+
# Maximum number of Puma threads
10+
RAILS_MAX_THREADS=5
11+
# Maximum number of Puma workers
12+
WEB_CONCURRENCY=2
13+
# The port puma will use to host the Rails app
14+
PORT=3000
15+
16+
# Rails 6.1+ has a white-list of valid domains. You must set this for your production env!
17+
DMPROADMAP_HOST=localhost
18+
19+
# The location of the wkhtmltopdf app. Once bundler has installed it, you can find it with
20+
# `which wkhtmltopdf` on linux/osx systems.
21+
WICKED_PDF_PATH=/usr/local/bin/wkhtmltopdf
22+
23+
# Database settings.
24+
DB_ADAPTER=postgresql
25+
DB_HOST=localhost
26+
DB_PORT=5432
27+
DB_POOL_SIZE=16
28+
DB_NAME=roadmap
29+
30+
# Whether or not the Dragonfly gem should use AWS S3 to store logos. If 'false' the logos will
31+
# be stored on the local disk. If true, you must provide the `AWS_` prefixed values.
32+
DRAGONFLY_AWS=false
33+
AWS_REGION=
34+
AWS_BUCKET_NAME=
35+
36+
# If you have a Rollbar account and want to redcord errors there, add your token here
37+
ROLLBAR_ACCESS_TOKEN=
38+
ROLLBAR_ENV=
39+
40+
# Translation IO variables. The Domain can be either `app` or `client` and is typically defined
41+
# when running `bin/rails translations:sync DOMAIN=app`. `client` will use any of your
42+
# customized content in ./app/views/branded and `app` is for the core roadmap translations.
43+
# Include your Translation.io API key for the appropriate domains:
44+
# app => TRANSLATION_API_ROADMAP
45+
# client => TRANSLATION_API_CLIENT
46+
DOMAIN=app
47+
TRANSLATION_API_ROADMAP=
48+
TRANSLATION_API_CLIENT=

.github/workflows/brakeman.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ on:
88
jobs:
99
brakeman:
1010

11-
runs-on: ubuntu-latest
11+
runs-on: ubuntu-20.04
1212

1313
steps:
1414
- uses: actions/checkout@v2

.github/workflows/eslint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ on: [push, pull_request]
55
jobs:
66
eslint:
77

8-
runs-on: ubuntu-latest
8+
runs-on: ubuntu-20.04
99

1010
steps:
1111
# Checkout the repo

.github/workflows/mysql.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [pull_request]
44

55
jobs:
66
mysql:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-20.04
88

99
# Define environment variables for MySQL and Rails
1010
env:
@@ -28,15 +28,16 @@ jobs:
2828
cache: 'yarn'
2929

3030
# Copy all of the example configs over
31-
- name: 'Setup Default Configuration'
31+
- name: 'Setup the application'
3232
run: |
3333
cp config/database.yml.sample config/database.yml
3434
cp config/initializers/contact_us.rb.example config/initializers/contact_us.rb
3535
cp config/initializers/wicked_pdf.rb.example config/initializers/wicked_pdf.rb
36+
cp .env.mysql2 .env
3637
3738
# Stub out the Rails credentials file so that we can start the Rails app
3839
- name: 'Setup Credentials'
39-
run: EDITOR='echo "$(cat config/credentials.yml.example)" >' bundle exec rails credentials:edit
40+
run: EDITOR='echo "$(cat config/credentials.yml.mysql2)" >' bundle exec rails credentials:edit
4041

4142
# Set the path to the wkhtmltopdf executable
4243
- name: 'Determine wkhtmltopdf location'

.github/workflows/postgres.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [pull_request]
44

55
jobs:
66
postgresql:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-20.04
88

99
services:
1010
# Postgres installation
@@ -55,12 +55,13 @@ jobs:
5555
cp config/database.yml.sample config/database.yml
5656
cp config/initializers/contact_us.rb.example config/initializers/contact_us.rb
5757
cp config/initializers/wicked_pdf.rb.example config/initializers/wicked_pdf.rb
58+
cp .env.postgresql .env
5859
5960
# Stub out the Rails credentials file so that we can start the Rails app
6061
- name: 'Setup Credentials'
6162
run: |
6263
# generate a default credential file and key
63-
EDITOR='echo "$(cat config/credentials.yml.example)" >' bundle exec rails credentials:edit
64+
EDITOR='echo "$(cat config/credentials.yml.postgresql)" >' bundle exec rails credentials:edit
6465
6566
# Set the path to the wkhtmltopdf executable
6667
- name: 'Determine wkhtmltopdf location'

.github/workflows/rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ on: [push, pull_request]
44

55
jobs:
66
rubocop:
7-
runs-on: ubuntu-latest
7+
runs-on: ubuntu-20.04
88

99
steps:
1010
# Checkout the repo

Gemfile.lock

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -268,6 +268,8 @@ GEM
268268
mysql2 (0.5.4)
269269
nenv (0.3.0)
270270
nio4r (2.5.8)
271+
nokogiri (1.13.9-arm64-darwin)
272+
racc (~> 1.4)
271273
nokogiri (1.13.9-x86_64-linux)
272274
racc (~> 1.4)
273275
notiffany (0.1.3)
@@ -498,6 +500,7 @@ GEM
498500
zeitwerk (2.6.1)
499501

500502
PLATFORMS
503+
arm64-darwin-21
501504
x86_64-linux
502505

503506
DEPENDENCIES
@@ -580,4 +583,4 @@ RUBY VERSION
580583
ruby 2.7.6p219
581584

582585
BUNDLED WITH
583-
2.3.15
586+
2.3.24

app/views/contributors/_form.html.erb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,8 @@ roles_tooltip = _("Select each role that applies to the contributor.")
8080
<%= form.check_box hash.keys.first.to_sym,
8181
value: hash.values.first,
8282
data: { toggle: "tooltip" },
83-
title: ContributorPresenter.role_tooltip(symbol: hash.keys.first) %>
83+
title: ContributorPresenter.role_tooltip(symbol: hash.keys.first),
84+
aria: { label: ContributorPresenter.role_symbol_to_string(symbol: hash.keys.first) } %>
8485
<%= ContributorPresenter.role_symbol_to_string(symbol: hash.keys.first) %>
8586
</div>
8687
</div>

app/views/layouts/application.html.erb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,6 @@
101101
<div class="spinner-border hidden" role="status">
102102
<%spinner_msg = _("Loading...") %>
103103
<%= image_tag("spinner.gif", alt: spinner_msg) %>
104-
<span class="sr-only"><%= spinner_msg %></span>
105104
</div>
106105

107106
</main>

0 commit comments

Comments
 (0)