Skip to content

Commit f488d11

Browse files
authored
Merge pull request #2697 from avalonmediasystem/staging
Release 6.3
2 parents 95b4b9f + 78915dc commit f488d11

File tree

508 files changed

+13683
-3573
lines changed

Some content is hidden

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

508 files changed

+13683
-3573
lines changed

.codeclimate.yml

Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
prepare:
3+
fetch:
4+
- url: "https://raw.githubusercontent.com/samvera-labs/bixby/master/bixby_default.yml"
5+
path: "bixby_default.yml"
6+
- url: "https://raw.githubusercontent.com/samvera-labs/bixby/master/bixby_rails_enabled.yml"
7+
path: "bixby_rails_enabled.yml"
8+
- url: "https://raw.githubusercontent.com/samvera-labs/bixby/master/bixby_rspec_enabled.yml"
9+
path: "bixby_rspec_enabled.yml"
10+
engines:
11+
brakeman:
12+
enabled: true
13+
duplication:
14+
enabled: false
15+
eslint:
16+
enabled: true
17+
config:
18+
extensions:
19+
- .es6
20+
ignore_warnings: true
21+
fixme:
22+
enabled: false
23+
rubocop:
24+
enabled: true
25+
channel: rubocop-0-50
26+
config:
27+
file: .rubocop.cc.yml
28+
checks:
29+
Rubocop/Metrics/AbcSize:
30+
enabled: false
31+
Rubocop/Metrics/BlockLength:
32+
enabled: false
33+
Rubocop/Style/StringLiterals:
34+
enabled: false
35+
coffeelint:
36+
enabled: true
37+
ratings:
38+
paths:
39+
- Gemfile.lock
40+
- "**.erb"
41+
- "**.rb"
42+
- "**.js"
43+
- "**.es6"
44+
- "**.coffee"
45+
- "**.rake"
46+
- "**.scss"
47+
exclude_paths:
48+
- config/
49+
- db/
50+
- spec/
51+
- vendor/
52+
- app/migration/

.ebextensions/01_packages.config

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
packages:
2+
yum:
3+
git: []
4+
commands:
5+
install_ffmpeg:
6+
command: |
7+
mkdir -p /tmp/ffmpeg
8+
cd /tmp/ffmpeg
9+
curl https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-64bit-static.tar.xz | tar xJ
10+
cp `find . -type f -executable` /usr/local/bin/
11+
install_mediainfo:
12+
command: yum -y --enablerepo=epel install mediainfo libyaz-devel tcp_wrappers-devel

.ebextensions/02_install.config

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
# From https://gist.github.com/t2/c629e1018a0f6815d871
2+
commands:
3+
create_post_dir:
4+
command: "mkdir /opt/elasticbeanstalk/hooks/appdeploy/post"
5+
ignoreErrors: true
6+
files:
7+
"/opt/elasticbeanstalk/hooks/appdeploy/post/999_install_application_dependencies":
8+
mode: "000755"
9+
content: |
10+
#!/bin/bash
11+
12+
EB_SCRIPT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k script_dir)
13+
EB_CONFIG_APP_CURRENT=$(/opt/elasticbeanstalk/bin/get-config container -k app_deploy_dir)
14+
EB_SUPPORT_DIR=$(/opt/elasticbeanstalk/bin/get-config container -k support_dir)
15+
16+
. $EB_SUPPORT_DIR/envvars
17+
. $EB_SCRIPT_DIR/use-app-ruby.sh
18+
19+
cd $EB_CONFIG_APP_CURRENT
20+
21+
. $EB_SUPPORT_DIR/envvars.d/sysenv
22+
23+
sleep 10
24+
25+
bundle exec rake zookeeper:upload zookeeper:create
Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
option_settings:
2+
- option_name: BUNDLE_WITH
3+
value: aws:postgres:zoom:ezid
4+
- option_name: BUNDLE_WITHOUT
5+
value: development:test
6+
- option_name: DISABLE_REDIS_CLUSTER
7+
value: 'true'
8+
- option_name: RAILS_GROUPS
9+
value: 'aws'
10+
- option_name: RAILS_SERVE_STATIC_FILES
11+
value: 'true'
12+
- option_name: SETTINGS__ACTIVE_JOB__QUEUE_ADAPTER
13+
value: better_active_elastic_job
14+
- option_name: SETTINGS__FFMPEG__PATH
15+
value: "/usr/local/bin/ffmpeg"
16+
- option_name: SETTINGS__GROUPS__SYSTEM_GROUPS
17+
value: administrator,group_manager,manager
18+
- option_name: SETTINGS__ENCODING__ENGINE_ADAPTER
19+
value: elastic_transcoder
20+
- option_name: SETTINGS__MEDIAINFO__PATH
21+
value: "/usr/bin/mediainfo"
22+
- option_name: SETTINGS__NAME
23+
value: avalon
24+
- option_name: SETTINGS__STREAMING__SERVER
25+
value: aws
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
commands:
2+
set_worker_timeout:
3+
command: 'sed -i "/match the name of upstream directive which is defined above/a\ proxy_read_timeout 60m;" /etc/nginx/conf.d/webapp_healthd.conf && service nginx restart'
4+
test: 'source $(/opt/elasticbeanstalk/bin/get-config container -k support_dir)/envvars && [ -n "$SETTINGS__WORKER" ]'

.eslintignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
**/*{.,-}min.js
2+
**/*.js.coffee
3+
modernizr.js

.eslintrc

Lines changed: 213 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,213 @@
1+
parserOptions:
2+
sourceType: module
3+
ecmaFeatures:
4+
jsx: true
5+
6+
env:
7+
amd: true
8+
browser: true
9+
es6: true
10+
jquery: true
11+
node: true
12+
13+
# http://eslint.org/docs/rules/
14+
rules:
15+
# Possible Errors
16+
comma-dangle: [2, never]
17+
no-cond-assign: 2
18+
no-console: 0
19+
no-constant-condition: 2
20+
no-control-regex: 2
21+
no-debugger: 2
22+
no-dupe-args: 2
23+
no-dupe-keys: 2
24+
no-duplicate-case: 2
25+
no-empty: 2
26+
no-empty-character-class: 2
27+
no-ex-assign: 2
28+
no-extra-boolean-cast: 2
29+
no-extra-parens: 0
30+
no-extra-semi: 2
31+
no-func-assign: 2
32+
no-inner-declarations: [2, functions]
33+
no-invalid-regexp: 2
34+
no-irregular-whitespace: 2
35+
no-negated-in-lhs: 2
36+
no-obj-calls: 2
37+
no-regex-spaces: 2
38+
no-sparse-arrays: 2
39+
no-unexpected-multiline: 2
40+
no-unreachable: 2
41+
use-isnan: 2
42+
valid-jsdoc: 0
43+
valid-typeof: 2
44+
45+
# Best Practices
46+
accessor-pairs: 2
47+
block-scoped-var: 0
48+
complexity: [2, 6]
49+
consistent-return: 0
50+
curly: 0
51+
default-case: 0
52+
dot-location: 0
53+
dot-notation: 0
54+
eqeqeq: 2
55+
guard-for-in: 2
56+
no-alert: 2
57+
no-caller: 2
58+
no-case-declarations: 2
59+
no-div-regex: 2
60+
no-else-return: 0
61+
no-labels: 2
62+
no-empty-pattern: 2
63+
no-eq-null: 2
64+
no-eval: 2
65+
no-extend-native: 1
66+
no-extra-bind: 2
67+
no-fallthrough: 2
68+
no-floating-decimal: 0
69+
no-implicit-coercion: 0
70+
no-implied-eval: 2
71+
no-invalid-this: 0
72+
no-iterator: 2
73+
no-lone-blocks: 2
74+
no-loop-func: 2
75+
no-magic-number: 0
76+
no-multi-spaces: 0
77+
no-multi-str: 0
78+
no-native-reassign: 2
79+
no-new-func: 2
80+
no-new-wrappers: 2
81+
no-new: 1
82+
no-octal-escape: 2
83+
no-octal: 2
84+
no-proto: 2
85+
no-redeclare: 2
86+
no-return-assign: 2
87+
no-script-url: 2
88+
no-self-compare: 2
89+
no-sequences: 0
90+
no-throw-literal: 0
91+
no-unused-expressions: 2
92+
no-useless-call: 2
93+
no-useless-concat: 2
94+
no-void: 2
95+
no-warning-comments: 0
96+
no-with: 2
97+
radix: 2
98+
vars-on-top: 0
99+
wrap-iife: 2
100+
yoda: 0
101+
102+
# Strict
103+
strict: 0
104+
105+
# Variables
106+
init-declarations: 0
107+
no-catch-shadow: 2
108+
no-delete-var: 2
109+
no-label-var: 2
110+
no-shadow-restricted-names: 2
111+
no-shadow: 0
112+
no-undef-init: 2
113+
no-undef: 0
114+
no-undefined: 0
115+
no-unused-vars: 0
116+
no-use-before-define: 0
117+
118+
# Node.js and CommonJS
119+
callback-return: 2
120+
global-require: 2
121+
handle-callback-err: 2
122+
no-mixed-requires: 0
123+
no-new-require: 0
124+
no-path-concat: 2
125+
no-process-exit: 2
126+
no-restricted-modules: 0
127+
no-sync: 0
128+
129+
# Stylistic Issues
130+
array-bracket-spacing: 0
131+
block-spacing: 0
132+
brace-style: 0
133+
camelcase: 0
134+
comma-spacing: 0
135+
comma-style: 0
136+
computed-property-spacing: 0
137+
consistent-this: 0
138+
eol-last: 0
139+
func-names: 0
140+
func-style: 0
141+
id-length: 0
142+
id-match: 0
143+
indent: 0
144+
jsx-quotes: 0
145+
key-spacing: 0
146+
linebreak-style: 0
147+
lines-around-comment: 0
148+
max-depth: 0
149+
max-len: 0
150+
max-nested-callbacks: 0
151+
max-params: 0
152+
max-statements: [2, 30]
153+
new-cap: 0
154+
new-parens: 0
155+
newline-after-var: 0
156+
no-array-constructor: 0
157+
no-bitwise: 0
158+
no-continue: 0
159+
no-inline-comments: 0
160+
no-lonely-if: 0
161+
no-mixed-spaces-and-tabs: 0
162+
no-multiple-empty-lines: 0
163+
no-negated-condition: 0
164+
no-nested-ternary: 0
165+
no-new-object: 0
166+
no-plusplus: 0
167+
no-restricted-syntax: 0
168+
no-spaced-func: 0
169+
no-ternary: 0
170+
no-trailing-spaces: 0
171+
no-underscore-dangle: 0
172+
no-unneeded-ternary: 0
173+
object-curly-spacing: 0
174+
one-var: 0
175+
operator-assignment: 0
176+
operator-linebreak: 0
177+
padded-blocks: 0
178+
quote-props: 0
179+
quotes: 0
180+
require-jsdoc: 0
181+
semi-spacing: 0
182+
semi: 0
183+
sort-vars: 0
184+
space-after-keywords: 0
185+
space-before-blocks: 0
186+
space-before-function-paren: 0
187+
space-before-keywords: 0
188+
space-in-parens: 0
189+
space-infix-ops: 0
190+
space-return-throw-case: 0
191+
space-unary-ops: 0
192+
spaced-comment: 0
193+
wrap-regex: 0
194+
195+
# ECMAScript 6
196+
arrow-body-style: 0
197+
arrow-parens: 0
198+
arrow-spacing: 0
199+
constructor-super: 0
200+
generator-star-spacing: 0
201+
no-arrow-condition: 0
202+
no-class-assign: 0
203+
no-const-assign: 0
204+
no-dupe-class-members: 0
205+
no-this-before-super: 0
206+
no-var: 0
207+
object-shorthand: 0
208+
prefer-arrow-callback: 0
209+
prefer-const: 0
210+
prefer-reflect: 0
211+
prefer-spread: 0
212+
prefer-template: 0
213+
require-yield: 0

.gitignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ config/matterhorn.yml
2626
config/role_map_development.yml
2727
config/initializers/rubyhorn.rb
2828
config/secrets.yml
29-
config/lti.yml
29+
#config/lti.yml
3030

3131
public/media_objects
3232
public/streams
@@ -40,3 +40,7 @@ masterfiles/*
4040
Gemfile.local
4141
config/fedora3.yml
4242
migration_report
43+
44+
config/settings.local.yml
45+
config/settings/*.local.yml
46+
config/environments/*.local.yml

.prettierrc

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
bracketSpacing: true
2+
printWidth: 80
3+
semi: true
4+
singleQuote: true
5+
tabWidth: 2

0 commit comments

Comments
 (0)