Skip to content

Commit 55b3c1f

Browse files
committed
Cedar v0.1 released to GitHub
0 parents  commit 55b3c1f

176 files changed

Lines changed: 17676 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.github/ISSUE_TEMPLATE.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
### Expected Behavior
2+
3+
4+
### Actual Behavior
5+
6+
7+
### Steps to reproduce the actual behavior

.gitignore

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# See https://help.github.com/articles/ignoring-files for more about ignoring files.
2+
#
3+
# If you find yourself ignoring temporary files generated by your text editor
4+
# or operating system, you probably want to add a global ignore instead:
5+
# git config --global core.excludesfile '~/.gitignore_global'
6+
7+
# Ignore bundler config.
8+
/.bundle
9+
10+
# Ignore the default SQLite database.
11+
/db/*.sqlite3
12+
/db/*.sqlite3-journal
13+
14+
# Ignore all logfiles and tempfiles.
15+
/log/*.log
16+
/tmp
17+
18+
# test executions
19+
public/data/*
20+
!public/data/.keep
21+
22+
# System Files
23+
.DS_Store
24+
*.DS_Store
25+
Thumbs.db
26+
27+
# Dev/test files
28+
.byebug_history
29+
30+
# Production Environment Secrets
31+
.env-prod

.overcommit.yml

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
# Use this file to configure the Overcommit hooks you wish to use. This will
2+
# extend the default configuration defined in:
3+
# https://github.com/brigade/overcommit/blob/master/config/default.yml
4+
#
5+
# At the topmost level of this YAML file is a key representing type of hook
6+
# being run (e.g. pre-commit, commit-msg, etc.). Within each type you can
7+
# customize each hook, such as whether to only run it on certain files (via
8+
# `include`), whether to only display output if it fails (via `quiet`), etc.
9+
#
10+
# For a complete list of hooks, see:
11+
# https://github.com/brigade/overcommit/tree/master/lib/overcommit/hook
12+
#
13+
# For a complete list of options that you can use to customize hooks, see:
14+
# https://github.com/brigade/overcommit#configuration
15+
#
16+
# Uncomment the following lines to make the configuration take effect.
17+
18+
PreCommit:
19+
RuboCop:
20+
enabled: true
21+
TravisLint:
22+
enabled: true
23+
EsLint:
24+
enabled: false
25+
ScssLint:
26+
enabled: true
27+
exclude: ['vendor/assets/stylesheets/**/*']
28+
HardTabs:
29+
enabled: true
30+
exclude: ['vendor/assets/stylesheets/**/*', 'vendor/assets/javascripts/**/*']
31+
AuthorName:
32+
enabled: false
33+
CommitMsg:
34+
RussianNovel:
35+
enabled: true
36+
HardTabs:
37+
enabled: true
38+
TextWidth:
39+
enabled: false
40+
CapitalizedSubject:
41+
enabled: false

.rubocop.yml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
inherit_from: .rubocop_todo.yml
2+
AllCops:
3+
Exclude:
4+
- 'bin/**/*'
5+
- 'lib/tasks/cucumber.rake'
6+
- 'db/seeds.rb'
7+
Rails:
8+
Enabled: true
9+
Rails/HasAndBelongsToMany:
10+
Enabled: false
11+
Metrics/LineLength:
12+
Max: 150
13+
Metrics/MethodLength:
14+
CountComments: false # count full line comments?
15+
Max: 20
16+
Metrics/ClassLength:
17+
Max: 150
18+
Exclude:
19+
- 'test/**/*'
20+
Metrics/AbcSize:
21+
# The ABC size is a calculated magnitude, so this number can be a Fixnum or
22+
# a Float.
23+
Max: 32
24+
Exclude:
25+
- 'test/**/*'
26+
# Avoid complex methods.
27+
Metrics/CyclomaticComplexity:
28+
Max: 10
29+
Style/GuardClause:
30+
MinBodyLength: 100
31+
Style/HashSyntax:
32+
UseHashRocketsWithSymbolValues: false

.rubocop_todo.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# Don't fail because of Rails defaults
2+
3+
# Offense count: 5
4+
# Configuration parameters: EnforcedStyle, SupportedStyles.
5+
Style/ClassAndModuleChildren:
6+
Exclude:
7+
- 'test/test_helper.rb'
8+
- 'app/controllers/test_executions/steps_controller.rb'
9+
- 'app/helpers/test_executions/steps_helper.rb'
10+
- 'test/controllers/test_executions/steps_controller_test.rb'
11+
- 'test/helpers/test_executions/steps_helper_test.rb'
12+
13+
# Offense count: 1
14+
# Configuration parameters: Exclude.
15+
Metrics/LineLength:
16+
Exclude:
17+
- 'config/initializers/devise.rb'
18+
19+
# Offense count: 3
20+
# Configuration parameters: Exclude.
21+
Style/Documentation:
22+
Enabled: false
23+
# Exclude:
24+
# - 'app/controllers/application_controller.rb'
25+
# - 'app/helpers/application_helper.rb'
26+
# - 'config/application.rb'
27+
# - 'test/test_helper.rb'
28+
29+
Rails/FindEach:
30+
Enabled: false
31+
32+
# Offense count: 1
33+
Metrics/ParameterLists:
34+
Exclude:
35+
- 'lib/cypress/patient_zipper.rb'

.travis/mongoid.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Mongoid Configuration for Travis CI
2+
# ===================================
3+
#
4+
development:
5+
clients:
6+
default:
7+
database: cedar_development
8+
hosts:
9+
- localhost:27017
10+
test:
11+
clients:
12+
default:
13+
database: cedar_test
14+
hosts:
15+
- <%= ENV['TEST_DB_HOST'] || 'localhost' %>:27017
16+
17+
production:
18+
clients:
19+
default:
20+
database: cedar_production
21+
hosts:
22+
- localhost:27017

Dockerfile

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
FROM rails:4.2.5
2+
3+
ENV RAILS_ENV production
4+
ENV RAILS_SERVE_STATIC_FILES 1
5+
6+
WORKDIR /rails/cedar
7+
8+
ADD Gemfile ./Gemfile
9+
ADD Gemfile.lock ./Gemfile.lock
10+
11+
RUN bundle install --without development test
12+
13+
ADD . ./
14+
15+
RUN chmod 755 ./rails-entrypoint.sh
16+
17+
EXPOSE 3000

Gemfile

Lines changed: 87 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,87 @@
1+
source 'https://rubygems.org'
2+
3+
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
4+
gem 'rails', '~> 4.2.5.1'
5+
# Use SCSS for stylesheets
6+
gem 'sass-rails', '~> 4.0.3'
7+
# Use Uglifier as compressor for JavaScript assets
8+
gem 'uglifier', '>= 1.3.0'
9+
# Use CoffeeScript for .js.coffee assets and views
10+
gem 'coffee-rails', '~> 4.0.0'
11+
# See https://github.com/rails/execjs#readme for more supported runtimes
12+
# gem 'therubyracer', platforms: :ruby
13+
14+
# Use jquery as the JavaScript library
15+
gem 'jquery-rails'
16+
# Turbolinks makes following links in your web application faster.
17+
# Read more: https://github.com/rails/turbolinks
18+
gem 'turbolinks'
19+
# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
20+
gem 'jbuilder', '~> 2.0'
21+
# bundle exec rake doc:rails generates the API under doc/api.
22+
gem 'sdoc', '~> 0.4.0', group: :doc
23+
24+
# Spring speeds up development by keeping your application running
25+
# in the background. Read more: https://github.com/rails/spring
26+
gem 'spring', group: :development
27+
28+
# Use ActiveModel has_secure_password
29+
# gem 'bcrypt', '~> 3.1.7'
30+
31+
# Use unicorn as the app server
32+
# gem 'unicorn'
33+
34+
# Use Capistrano for deployment
35+
# gem 'capistrano-rails', group: :development
36+
37+
# Use debugger
38+
# gem 'debugger', group: [:development, :test]
39+
40+
# Cedar Additions
41+
# Mongo for our database
42+
gem 'mongoid', '~> 5.0.0'
43+
# Devise for user configuration
44+
gem 'devise'
45+
# Protected attributes to prevent mass assignment of things like admin settings
46+
# gem 'protected_attributes'
47+
# Wicked for creating the wizard
48+
gem 'wicked'
49+
# State Machine for tracking test statuses
50+
gem 'aasm'
51+
# We want non-digest versions of our assets for any font
52+
gem 'non-stupid-digest-assets'
53+
# Add some bootstrap
54+
gem 'bootstrap-sass'
55+
# For the progress indicator
56+
gem 'bootstrap-slider-rails'
57+
# Randomized names and companies for the QRDA files
58+
gem 'faker'
59+
# health-data-standards to create QRDA documents
60+
gem 'health-data-standards', git: 'https://github.com/projectcypress/health-data-standards.git', branch: 'bump_mongoid'
61+
# Quality Measure Engine to create CQMs
62+
gem 'quality-measure-engine', git: 'https://github.com/projectcypress/quality-measure-engine.git', branch: 'bump_mongoid'
63+
# For zipping QRDA documents once they are created
64+
gem 'rubyzip'
65+
# Prettier replacements for javascript alerts
66+
gem 'sweet-alert-confirm'
67+
68+
group :development, :test do
69+
# Rubocop for syntax checking and code cleanliness
70+
gem 'rubocop'
71+
# Call 'byebug' anywhere in the code to stop execution and get a debug console
72+
gem 'byebug'
73+
# Capybara and selenium for automated testing
74+
gem 'capybara'
75+
gem 'capybara-accessible'
76+
gem 'axe-matchers'
77+
gem 'selenium-webdriver', '2.48.0'
78+
# Brakeman and bundle-audit for automated testing of security vulnerabilities
79+
gem 'brakeman', require: false
80+
gem 'bundler-audit'
81+
# Travis for continuous integration builds
82+
gem 'travis'
83+
end
84+
85+
group :production do
86+
gem 'unicorn-rails'
87+
end

0 commit comments

Comments
 (0)