Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
209 commits
Select commit Hold shift + click to select a range
4652a1f
Update the develop version. (#590)
drgrice1 Jul 14, 2021
8addfac
fix type replace assemble_matrix with assemble_tableau (#592)
mgage Jul 20, 2021
1e910a7
Fixed a \1 by replacing by in a regex expression, qualified length()…
mgage Jul 23, 2021
d9cc7e5
tan() is not a native perl function so there is no need to override it
mgage Jul 23, 2021
1b69d7a
move wwsafe
pstaabp Jul 27, 2021
6bbdbe7
Remove CourseEnvironment and added defaults file.
pstaabp Jul 27, 2021
ddad643
removed CourseEnvironment and added defaults file
pstaabp Jul 27, 2021
b997eb7
Add some comment/documentation and other cleanup.
pstaabp Jul 27, 2021
be3219d
Resolve problem with space after function to a power. (#598)
dpvc Aug 10, 2021
af59cae
Merge pull request #600 from drgrice1/hotfix-parser
drgrice1 Aug 11, 2021
cbf4329
initial commit
pschan-gh Aug 31, 2021
7acd81d
Added prefilter to answer checker to deal with $showPartialCorrectAns…
pschan-gh Sep 2, 2021
3437f7a
Formatting and white-space cleanup.
pschan-gh Sep 3, 2021
c24bf37
remove trailing whitespace
pschan-gh Sep 3, 2021
64a87bd
forces normalStrings context in answer checker
pschan-gh Sep 3, 2021
c9e1ab4
compare answers as strings instead of lists for edit distance scoring
pschan-gh Sep 3, 2021
95ce3ec
Set defer option for jquery.nestable.js
pschan-gh Sep 4, 2021
e6aec07
POD cleanup
pschan-gh Sep 4, 2021
33a154e
Rename TikZImage as LaTeXImage
Alex-Jordan Sep 15, 2021
7a3c3a1
Make LaTeXImage.pl not be tikz-centric
Alex-Jordan Sep 15, 2021
521bf12
PGlateximage.pl for general LaTeX imagery
Alex-Jordan Sep 16, 2021
c4fc334
Test problems for PGlateximage.pl
Alex-Jordan Sep 16, 2021
ee1f194
fix accidental edits
Alex-Jordan Sep 16, 2021
cd07355
change commentary around tikzOptions
Alex-Jordan Sep 16, 2021
1cafae4
LaTeXImage.pm: load tikz package when tikzpicture environment implies
Alex-Jordan Sep 16, 2021
167aa66
more clear code to check if tikz used
Alex-Jordan Sep 16, 2021
c81f1a5
add point tool to GraphTool
Alex-Jordan Oct 21, 2021
1ba5dac
Update macros/parserGraphTool.pl
Alex-Jordan Oct 22, 2021
63a0e02
Update macros/parserGraphTool.pl
Alex-Jordan Oct 22, 2021
5b4e59a
development cleanup
Alex-Jordan Oct 23, 2021
0339c0f
fix: spelling error
thetravisweber Oct 24, 2021
956bf63
Add an option to the graph tool to not show the coordinate hints in the
drgrice1 Oct 24, 2021
35a09db
Merge pull request #3 from drgrice1/pointTool-optionalCoords
Alex-Jordan Oct 24, 2021
e1b6ca4
Merge pull request #611 from thetravisweber/develop
pstaabp Nov 4, 2021
18951f7
Don't allow entryType change to modify original Value::Type entries
dpvc Nov 11, 2021
3bf990f
Attempt to fix MathQuill issues with mixed numbers, units, and scient…
drgrice1 Nov 9, 2021
80812b7
Add a special parsing case for units when MathQuill is enabled for an
drgrice1 Nov 13, 2021
bce91f0
Set the defaults in pg_defaults.yml.dist to be the same as they are in
drgrice1 Nov 16, 2021
673f3dd
Merge pull request #8 from drgrice1/relocate_wwsafe_fixes
pstaabp Nov 24, 2021
a35d2b9
pre-cache WWSafe for use with standaloneRenderer
drdrew42 Apr 13, 2021
a8796d3
Modifications to the translator used by the standalone renderer.
drgrice1 Sep 3, 2021
ff893d2
fix calls to Parser::Value::TeX & too many (cooks)
drdrew42 Oct 15, 2021
88c183e
forgot to include explicit parens
drdrew42 Oct 15, 2021
87531fb
don't declare outermost parens
drdrew42 Oct 16, 2021
e091ac2
Update macros/contextFraction.pl
drdrew42 Oct 20, 2021
876b013
Merge pull request #616 from drgrice1/bugfix/too-many-fraction-parens
drgrice1 Dec 2, 2021
bdef90a
drop custom typeMatch & let SUPER do it instead
drdrew42 Oct 15, 2021
3282d85
restore typeMatch and block string assignment
drdrew42 Nov 4, 2021
ce9388e
Merge pull request #617 from drgrice1/bugfix/607-parser-assignment
drgrice1 Dec 2, 2021
dd08781
Merge pull request #615 from drgrice1/renderer-modifications
drdrew42 Dec 2, 2021
cb8e95e
Merge pull request #597 from pstaabp/pstaabp/relocate_wwsafe
drgrice1 Dec 9, 2021
b35a555
Fix problem with matrix typechecking in answer preview; also fix CSS …
dpvc Dec 14, 2021
1a5eea7
Allow preview to show matrices with type errors
dpvc Dec 16, 2021
bb87a15
Allow paragaph breaks within comments and code blocks
dpvc Dec 26, 2021
4edd2ed
Merge pull request #621 from dpvc/PGML-comments
drgrice1 Dec 29, 2021
0ec597d
Update the scaffold html markup for bootstrap 5.
drgrice1 Dec 22, 2021
e0987b7
Removed comment lines from Perl POD sections.
pschan-gh Dec 30, 2021
886ab21
Merge pull request #3 from openwebwork/develop
pschan-gh Jan 1, 2022
f5cb709
Add the files from webwork2 htdocs that are used by pg problems to a new
drgrice1 Jan 1, 2022
24244c7
Fix an issue when a MultiAnswer is used inside a scaffold that causes a
drgrice1 Jan 3, 2022
5b571b1
Make sure manually changed matrix parentheses are transfered to stude…
dpvc Jan 4, 2022
846fac7
Merge pull request #628 from dpvc/issue627
pstaabp Jan 4, 2022
6d47aee
Merge pull request #625 from drgrice1/fix-multians-in-scaffold
pstaabp Jan 4, 2022
28fb6cf
Merge pull request #602 from pschan-gh/DragNDrop-devel
pstaabp Jan 4, 2022
8b33a3b
Merge pull request #610 from Alex-Jordan/pointTool
pstaabp Jan 4, 2022
583ceb5
Revert "add point tool to GraphTool"
pstaabp Jan 4, 2022
f46dbd1
Merge pull request #629 from openwebwork/revert-610-pointTool
drgrice1 Jan 4, 2022
25f48ce
Merge remote-tracking branch 'origin/develop' into move-pg-resources-…
drgrice1 Jan 5, 2022
74698f8
Add the drag and drop javascript and style files.
drgrice1 Jan 5, 2022
0848f89
Merge remote-tracking branch 'origin/develop' into bootstrap-update
drgrice1 Jan 5, 2022
3a462f9
Add the updated mqeditor files from openwebwork/webwork2#1523.
drgrice1 Jan 6, 2022
63296a2
Fix warnings about the use of an uninitialized string caused by
drgrice1 Jan 12, 2022
2e20800
Merge pull request #631 from drgrice1/fix-pg-envir-warnings
pstaabp Jan 12, 2022
54e89d8
Merge remote-tracking branch 'origin/develop' into bootstrap-update
drgrice1 Jan 12, 2022
59ad65c
Make sure MultiAnswer uses the correct context (#632)
dpvc Jan 14, 2022
a84b986
Rename the knowl files to be consistent with all of the other branches
drgrice1 Jan 15, 2022
f344913
Changes for the GraphTool macro for webwork 3.
drgrice1 Dec 22, 2021
2f2ad60
Remove noParens marker from operand (if any) when reducing double neg…
dpvc Jan 18, 2022
14306ca
Merge pull request #623 from drgrice1/bootstrap-update
pstaabp Jan 18, 2022
0d49f48
Merge remote-tracking branch 'origin/develop' into move-pg-resources-…
drgrice1 Jan 18, 2022
e81a4e3
Add the updated javascript that was merged into webwork2 with the merge
drgrice1 Jan 18, 2022
27b4c97
Add htdocs/js/apps/Problem/problem.scss from webwork2.
drgrice1 Jan 19, 2022
4486218
Fix an issue introduced by #609 in which equations parsed in PGML via
drgrice1 Dec 28, 2021
2bda07f
Merge pull request #636 from drgrice1/fix-parser-assignment-parsing
drgrice1 Jan 19, 2022
33a9347
Merge remote-tracking branch 'origin/develop' into mathquill-parsing
drgrice1 Jan 19, 2022
0ff5faf
Add Base64.js to the pg htdocs.
drgrice1 Jan 19, 2022
6c1b8d6
Merge pull request #624 from drgrice1/move-pg-resources-to-pg
pstaabp Jan 19, 2022
16065e3
Ignore the htdocs/node_modules directory.
drgrice1 Jan 19, 2022
dd19150
Merge pull request #637 from drgrice1/ignore-node-modules
pstaabp Jan 19, 2022
e070495
Rewrite knowls to use a bootstrap collapse.
drgrice1 May 11, 2021
678d8c4
Merge remote-tracking branch 'origin/develop' into mathquill-parsing
drgrice1 Jan 20, 2022
ac7b778
Remove mathquill from the repository and install it via npm.
drgrice1 Jan 20, 2022
5940001
Add a prefix to the css classes used by the javascript and css used for
drgrice1 Jan 14, 2022
b7c6775
Change the way that coloring of inputs is done for correct and incorrect
drgrice1 Jan 20, 2022
c2c1ec8
Set $ans->{typeError} for matrices based on whether any typeError was…
taniwallach Jan 20, 2022
41a93ba
Make the student answer not javascript if the display mode is TeX for
drgrice1 Jan 16, 2022
2c06c0a
Remove flash, java, and canvas applet support. The AppletObjects.pl
drgrice1 Sep 5, 2021
268a7c5
Fixed Gauss unit numerical factor
nick-chura Jan 26, 2022
25cd151
Run perltidy on these files.
drgrice1 Jan 27, 2022
9304a6c
Merge pull request #643 from nick-chura/fix.gauss-unit
pstaabp Jan 27, 2022
91a64cb
Merge pull request #641 from drgrice1/graph-tool-student-preview-not-…
pstaabp Jan 27, 2022
d4f0681
Add stub methods for FlashApplets, JavaApplets, and CanvasApplets that
drgrice1 Jan 27, 2022
47de6d1
Make the appletLink method emit a warning if called, and output a
drgrice1 Jan 28, 2022
6559f2d
Add unit tests (#618)
pstaabp Jan 28, 2022
5afe49c
Merge pull request #614 from drgrice1/mathquill-parsing
pstaabp Jan 28, 2022
3f2eed0
Merge remote-tracking branch 'origin/develop' into knowl-rewrite
drgrice1 Jan 28, 2022
65641c4
Merge pull request #639 from drgrice1/drag-and-drop-improvements
pstaabp Jan 28, 2022
705c6d5
Merge pull request #638 from drgrice1/knowl-rewrite
pstaabp Jan 28, 2022
b929fcf
Merge remote-tracking branch 'origin/develop' into color-input-rework
drgrice1 Jan 28, 2022
575dee7
Merge remote-tracking branch 'origin/develop' into applet-rewrite
drgrice1 Jan 28, 2022
1ef08c8
Fix another regression caused by #609.
drgrice1 Jan 29, 2022
248a40d
Merge pull request #613 from dpvc/fix-inequalities
pstaabp Feb 5, 2022
b11e164
Update macros/parserMultiAnswer.pl
drdrew42 Feb 5, 2022
d27ef58
Merge remote-tracking branch 'origin/develop' into applet-rewrite
drgrice1 Feb 5, 2022
27c9df2
Merge pull request #635 from dpvc/issue634
pstaabp Feb 5, 2022
bc02835
Merge pull request #633 from dpvc/fix-multianswer
pstaabp Feb 5, 2022
fe1578a
Merge pull request #642 from drgrice1/applet-rewrite
pstaabp Feb 5, 2022
b26238e
Make it so that for radio buttons only the checked radio button in a
drgrice1 Feb 5, 2022
74df42c
Merge pull request #640 from drgrice1/color-input-rework
pstaabp Feb 6, 2022
c53ac72
Merge pull request #646 from drgrice1/bug/another-609-regression-develop
pstaabp Feb 6, 2022
bdbc79f
include all css/js in PG object
drdrew42 Sep 12, 2021
97ada04
trust that requestor is already handling mathjax
drdrew42 Sep 12, 2021
3b193ba
Adjust the css and js requested by pg to only add our styles and
drgrice1 Jan 17, 2022
0e9ea61
Make pg request the javascript and css for MathView and Wiris if those
drgrice1 Jan 26, 2022
baa5920
add point tool to GraphTool
Alex-Jordan Oct 21, 2021
2502dcd
Update macros/parserGraphTool.pl
Alex-Jordan Oct 22, 2021
d5bebd7
Update macros/parserGraphTool.pl
Alex-Jordan Oct 22, 2021
296a8ee
development cleanup
Alex-Jordan Oct 23, 2021
45aa9c4
Add an option to the graph tool to not show the coordinate hints in the
drgrice1 Oct 24, 2021
e570b67
Add the javascript, css, and svg image for the point tool from
drgrice1 Jan 21, 2022
c1a0dbd
Merge pull request #652 from drgrice1/pg-request-files
pstaabp Feb 10, 2022
87c4738
Move the GraphTool point object and tool into a separate javascript
drgrice1 Jan 2, 2022
9eceb2c
Merge pull request #606 from Alex-Jordan/lateximage
drgrice1 Feb 12, 2022
d54f832
Merge pull request #8 from drgrice1/pointToolExternalJS
Alex-Jordan Feb 17, 2022
140d11a
Merge pull request #653 from Alex-Jordan/pointTool
drgrice1 Feb 18, 2022
e6bd882
Add an asset build system for javascript and css files.
drgrice1 Feb 16, 2022
a5de708
Make the generate-assets.js script more versatile by adding the
drgrice1 Feb 17, 2022
1c1025b
Downgrade yargs to version 16.2.0. This version works with version 10
drgrice1 Feb 18, 2022
6fb6ea1
Merge remote-tracking branch 'origin/patch-matrix' into patch-matrix
dpvc Feb 19, 2022
5f59a7b
Simplify typeError handkling.
dpvc Feb 19, 2022
047fe18
Make sure negative numbers are handled as a negated number in Value i…
dpvc Feb 28, 2022
8c204fd
Upgrade jsxgraph to the newest version.
drgrice1 Mar 2, 2022
cf68cdb
Add some error handling, and color to the output.
drgrice1 Mar 3, 2022
d29e95a
In addition to the command line option to enable the usage of third
drgrice1 Mar 3, 2022
c217d10
Merge pull request #620 from dpvc/patch-matrix
pstaabp Mar 11, 2022
a060f02
Merge pull request #657 from drgrice1/js-css-build-system
pstaabp Mar 11, 2022
3b13332
Remove all jquery usage from the MathQuill editor (htdocs/js/apps/Mat…
drgrice1 Feb 18, 2022
1fa4116
Merge pull request #659 from dpvc/issue658
pstaabp Mar 12, 2022
8d799b5
Add right-to-left support. See the corresponding webwork2 pull request
drgrice1 Mar 16, 2022
afdc220
This adds an empty group after the `\smallskip` in solutions and hints
drgrice1 Mar 19, 2022
0e04762
Don't stringify as ijk if dimension is too large
dpvc Mar 20, 2022
072908b
Merge pull request #666 from dpvc/fix-ijk
drdrew42 Mar 25, 2022
e3353a6
Merge pull request #665 from drgrice1/bugfix/hardcopy-hint-fix
drdrew42 Mar 25, 2022
f734e30
Merge pull request #663 from drgrice1/rtl-support
pstaabp Mar 25, 2022
fd15a42
Merge pull request #662 from drgrice1/mqeditor-no-jquery
pstaabp Mar 25, 2022
8eaf20e
Merge pull request #596 from mgage/bugfix_develop
pstaabp Mar 25, 2022
cdffbfb
Fix an infinite recursion caused by #659 for the Parser::Legacy::Limi…
drgrice1 Mar 29, 2022
448cdb2
Simplify the isNeg method as suggested by @dpvc.
drgrice1 Mar 29, 2022
1005947
Merge pull request #667 from drgrice1/fix-legacy-limited-numeric
pstaabp Mar 31, 2022
043de7e
Clean up the html help files and fix html validation and accessibilit…
drgrice1 Apr 9, 2022
5d71bf3
Add a minor tweak to the knowl javascript. When a knowl is added inside
drgrice1 Apr 10, 2022
2bcac55
Move cssnano from dependencies to devDependencies in the htdocs/packa…
drgrice1 Apr 12, 2022
88dce40
Merge pull request #669 from drgrice1/node-dev-dependency-fix
pstaabp Apr 14, 2022
12d96dd
Center the main heading of the syntex help files to be consistent with
drgrice1 Apr 14, 2022
2c85a61
Merge pull request #668 from drgrice1/help-file-cleanup
pstaabp Apr 15, 2022
3851503
Update the copyright in files and version bump.
drgrice1 Apr 19, 2022
1d43783
Fix possibly undefined input in mqeditor.js.
drgrice1 Apr 19, 2022
aa18d64
Merge pull request #673 from drgrice1/mqeditor-tweak
pstaabp Apr 21, 2022
46d1135
Rewrite the graphtool javascript using modern javascript and remove the
drgrice1 Mar 3, 2022
2edc9be
Add keyboard controls for the GraphTool. This makes the tool more
drgrice1 Mar 4, 2022
666b909
Add a three point quadratic tool and a four point cubic tool and their
drgrice1 Mar 8, 2022
6ac83d1
Stop using the keydown and pointerdown events that come through
drgrice1 Mar 11, 2022
0455f82
html encode the aria description just in case it has single quotes in
drgrice1 Mar 13, 2022
8d0181d
Fix the check for a zero width container when the graphtool is initially
drgrice1 Apr 1, 2022
7d3bad2
Merge pull request #661 from drgrice1/graphtool-keyboard-controls
drdrew42 Apr 22, 2022
c529668
Merge pull request #672 from drgrice1/update-copyright
drgrice1 Apr 22, 2022
e492e60
Merge remote-tracking branch 'origin/main' into PG-2.17
drgrice1 Apr 22, 2022
18d4db0
Fix tab order for the three point quadratic and four point cubic tools.
drgrice1 Apr 22, 2022
8841ba1
Merge pull request #674 from drgrice1/bugfix/graphtool-focus-order
pstaabp May 13, 2022
4ae6f0e
Fix pointer focus for the center of a circle.
drgrice1 May 19, 2022
9b6d1e8
Merge pull request #676 from drgrice1/graphtool-circle-center-focus
pstaabp May 20, 2022
0cf8cd4
Patch AnswerHints so that if a subroutine in the list "dies" there will
taniwallach May 24, 2022
ddcc42c
Provide an error message as the result message when a subroutine
taniwallach May 26, 2022
daec8d9
perltidy macros/answerHints.pl
taniwallach May 26, 2022
84b66ad
Limit loop to compute factorial to n<=170, for n>170 return Perl Inf,
taniwallach May 26, 2022
d5d55d1
Fix ww3 mq-editor preview button code causing console log error in ww…
drgrice1 May 26, 2022
db249d9
Revert to the mqeditor toolbar focus hack previously used with WeBWor…
drgrice1 May 26, 2022
a25ced5
Factorial unit test (#1)
pstaabp May 27, 2022
3cdcd9b
Merge pull request #682 from taniwallach/factorial-fix
pstaabp May 29, 2022
f8bdf3c
MathQuill when used in an RTL language should still create
taniwallach May 29, 2022
1acd618
Fix a typo in the scaffold.scss file.
drgrice1 May 29, 2022
7fd44f6
Merge pull request #687 from drgrice1/scaffold-selector-css-typo
drdrew42 May 30, 2022
7852192
Merge pull request #686 from taniwallach/mathquill-rtl-fix
pstaabp May 31, 2022
feb490c
Fix a serious bug discovered by Glenn Rice - incorrect handling if the
taniwallach Jun 2, 2022
33048ac
Correct value for electron volt in Units.pm
duffee Jun 4, 2022
3a3258c
Merge pull request #680 from taniwallach/answerhints-patch
pstaabp Jun 5, 2022
bbc2724
Fix the prevention of creating degenerate objects with keyboard contr…
drgrice1 Jun 13, 2022
16b8225
Merge pull request #690 from duffee/Units_eV_only
drgrice1 Jul 6, 2022
85bb10b
Merge pull request #693 from drgrice1/fix-keyboard-degenerates
pstaabp Jul 6, 2022
07b38e3
Merge pull request #685 from drgrice1/revert-to-mqedit-toolbar-focus-…
pstaabp Jul 6, 2022
c2c4d31
Merge pull request #681 from drgrice1/ww3-preview-not-in-ww2
pstaabp Jul 6, 2022
5a7ae5f
Tweak the styles for lables, text inputs, selects, and textareas in p…
drgrice1 Jul 7, 2022
f28a548
Only use \textstyle with mixed numbers.
somiaj May 26, 2022
8e1d524
Merge pull request #683 from somiaj/fraction-usetextstyle
pstaabp Jul 8, 2022
352d494
For PTX output, don't include hidden MathQuill inputs
Alex-Jordan Jul 9, 2022
3f38a29
Merge pull request #695 from Alex-Jordan/PTXfix
pstaabp Jul 10, 2022
d3288f9
Merge pull request #694 from drgrice1/pg-problem-style-tweaks
pstaabp Jul 11, 2022
e7f73e1
Make knowls wait until the page css has loaded before initializing.
drgrice1 Jul 13, 2022
3ef38fe
Merge pull request #696 from drgrice1/knowls-await-load
pstaabp Jul 13, 2022
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
26 changes: 26 additions & 0 deletions .github/workflows/coverage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# This is a basic workflow to help you get started with Actions

name: Coverage

on:
push:
workflow_dispatch:

jobs:
code_coverage:
runs-on: ubuntu-latest
container: eltenedor/pg-no-ww:latest
steps:
- uses: actions/checkout@v2
- name: Adapt configuration and run tests
env:
HARNESS_PERL_SWITCHES: -MDevel::Cover
run: |
ln -s -t /opt/webwork/ `pwd`
prove -r t
- name: push coverage analysis
if: always()
env:
CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
run: cover -report codecov

11 changes: 10 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,10 @@
lib/chromatic/color
lib/chromatic/color
conf/pg_defaults.yml
*.bak
cover_db/

htdocs/package-lock.json
htdocs/node_modules
htdocs/static-assets.json
htdocs/**/*.min.js
htdocs/**/*.min.css
22 changes: 22 additions & 0 deletions .perltidyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# PBP .perltidyrc file
-l=120 # Max line width is 120 cols
-et=4 # Use tabs instead of spaces.
-i=4 # Indent level is 4 cols
-ci=4 # Continuation indent is 4 cols
-b # Write the file inline and create a .bak file
-vt=0 # Minimal vertical tightness
-cti=0 # No extra indentation for closing brackets
-pt=2 # Maximum parenthesis tightness
-bt=1 # Medium brace tightness
-sbt=1 # Medium square bracket tightness
-bbt=1 # Medium block brace tightness
-nsfs # No space before semicolons
-nolq # Don't outdent long quoted strings
-mbl=1 # Do not allow multiple empty lines
-ce # Cuddled else
-cb # Cuddled blocks
-nbbc # Do not add blank lines before full length comments
-nbot # No line break on ternary
-nlop # No logical padding (this causes mixed tabs and spaces)
-wn # Weld nested containers
-xci # Extended continuation indentation
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
Online Homework Delivery System
Version 2.*

Copyright 2000-2018, The WeBWorK Project
Copyright 2000-2022, The WeBWorK Project
All rights reserved.

This program is free software; you can redistribute it and/or modify
Expand Down
2 changes: 1 addition & 1 deletion README
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

http://webwork.maa.org/wiki/Category:Release_Notes

Copyright 2000-2017, The WeBWorK Project
Copyright 2000-2022, The WeBWorK Project
http://webwork.maa.org
All rights reserved.
32 changes: 19 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,27 @@
#Welcome to WeBWorK
# Welcome to WeBWorK

![main workflow](https://github.com/pstaabp/pg/actions/workflows/coverage.yml/badge.svg)
[![codecov](https://codecov.io/gh/pstaabp/pg/branch/unit-test/graph/badge.svg?token=H7WYHBDB9S)](https://codecov.io/gh/pstaabp/pg)
![GitHub last commit](https://img.shields.io/github/last-commit/pstaabp/pg/unit-test)

WeBWorK is an open-source online homework system for math and sciences courses. WeBWorK is supported by the MAA and the NSF and comes with an Open Problem Library (OPL) of over 30,000 homework problems. Problems in the OPL target most lower division undergraduate math courses and some advanced courses. Supported courses include college algebra, discrete mathematics, probability and statistics, single and multivariable calculus, differential equations, linear algebra and complex analysis. Find out more at the main WeBWorK [webpage](http://webwork.maa.org).

## Information for Users

New users interested in getting started with their own WeBWorK server, or instructors looking to learn more about how to use WeBWorK in their classes, should take a look at one of the following resources:
* [WeBWorK wiki](http://webwork.maa.org/wiki/Main_Page) - The main WeBWorK wiki
* [Instructors](http://webwork.maa.org/wiki/Instructors) - Information for Instructors
* [Problem Authors](http://webwork.maa.org/wiki/Authors) - Information for Problem Authors
* [WW_Install](http://github.com/aubreyja/ww_install) - Information for using the WW_install script
* [Forum](http://webwork.maa.org/moodle/mod/forum/index.php?id=3) - The WeBWorK Forum
* [Frequently Asked Questions](https://github.com/openwebwork/webwork2/wiki/Frequently-Asked-Questions) - A list of frequently asked questions.
New users interested in getting started with their own WeBWorK server, or instructors looking to learn more about how to use WeBWorK in their classes, should take a look at one of the following resources:

* [WeBWorK wiki](http://webwork.maa.org/wiki/Main_Page) - The main WeBWorK wiki
* [Instructors](http://webwork.maa.org/wiki/Instructors) - Information for Instructors
* [Problem Authors](http://webwork.maa.org/wiki/Authors) - Information for Problem Authors
* [WW_Install](http://github.com/aubreyja/ww_install) - Information for using the WW_install script
* [Forum](http://webwork.maa.org/moodle/mod/forum/index.php?id=3) - The WeBWorK Forum
* [Frequently Asked Questions](https://github.com/openwebwork/webwork2/wiki/Frequently-Asked-Questions) - A list of frequently asked questions.

##Information For Developers
## Information For Developers

People interested in developing new features for WeBWorK should take a look at the following resources. People interested in developing new problems for WeBWorK should visit [Problem Authors](http://webwork.maa.org/wiki/Authors).
* [First Time Setup](https://github.com/openwebwork/webwork2/wiki/First-Time-Setup) - Setting up your clone of this github repo for the first time.
* [Coding and Workflow](https://github.com/openwebwork/webwork2/wiki/Coding-and-Workflow) - Our suggested workflow processes. Following this will make it much easier to get code accepted into the repo.
* [Creating Pull Requests](https://github.com/openwebwork/webwork2/wiki/Creating-Pull-Requests) - Instructions on how to submit a pull request.
* [More Information](https://github.com/openwebwork/webwork2/wiki/) - Our Github wiki has additional information for developers, including information about WeBWorK3.

* [First Time Setup](https://github.com/openwebwork/webwork2/wiki/First-Time-Setup) - Setting up your clone of this github repo for the first time.
* [Coding and Workflow](https://github.com/openwebwork/webwork2/wiki/Coding-and-Workflow) - Our suggested workflow processes. Following this will make it much easier to get code accepted into the repo.
* [Creating Pull Requests](https://github.com/openwebwork/webwork2/wiki/Creating-Pull-Requests) - Instructions on how to submit a pull request.
* [More Information](https://github.com/openwebwork/webwork2/wiki/) - Our Github wiki has additional information for developers, including information about WeBWorK3.
4 changes: 2 additions & 2 deletions VERSION
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
$PG_VERSION ='2.16';
$PG_COPYRIGHT_YEARS = '1996-2021';
$PG_VERSION ='2.17';
$PG_COPYRIGHT_YEARS = '1996-2022';

1;
19 changes: 19 additions & 0 deletions conf/pg_defaults.dist.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# This file is loaded if PG is loaded without a webwork2 lib
#
# The following are configuration options that are needed by PG
# and are a slimmed down list from those of WEBWORK_ROOT/conf/defaults.config

options:
webworkDirs:
tmp: /tmp
externalPrograms:
curl: /usr/bin/curl
cp: /bin/cp
mv: /bin/mv
rm: /bin/rm
tar: /bin/tar
latex: /usr/bin/latex --no-shell-escape
pdflatex: /usr/bin/pdflatex --no-shell-escape
dvisvgm: /usr/bin/dvisvgm
pdf2svf: /usr/bin/pdf2svg
convert: /usr/bin/convert
63 changes: 63 additions & 0 deletions docker/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,63 @@
# Docker Instructions

These are instructions to get the docker image running for running the unit tests in `/t`.

Note: You may need sudo privileges in order to run the commands starting with `docker ...`.

## Using the Image from Docker Hub

The following Docker command will execute the command `prove -r t` inside the Docker container from the image [`eltenedor/pg-no-ww:latest`](https://hub.docker.com/r/eltenedor/pg-no-ww).
Make sure to run the commands from your `pg` folder.
The first time, this may take a couple of minutes.

### Running the Test Suite

```bash
docker run -it --rm --name pg-unit-test -v `pwd`:/opt/webwork/pg -w /opt/webwork/pg eltenedor/pg-no-ww prove -r t
```

### Code Coverage

As above, run one of the following Docker commands from you `pg` folder.

#### HTML Output

This runs the command `cover -report html` in the Docker container.

```bash
docker run -it --rm --name pg-unit-test -v `pwd`:/opt/webwork/pg -w /opt/webwork/pg eltenedor/pg-no-ww cover -report html
```

Check the HTML output written to `./pg/cover_db/coverage.html`.

#### Publish Results to [`codecov.io`](https://about.codecov.io/)

```bash
docker run -it --rm --name pg-unit-test -v `pwd`:/opt/webwork/pg -w /opt/webwork/pg -e CODECOV_TOKEN=xxxx-xxxx-xxxx eltenedor/pg-no-ww cover -report codecov
```

Here, `CODECOV_TOKEN=xxxx-xxxx-xxxx` should be adapted to your actual [token](https://docs.codecov.com/docs/quick-start). It is passed to the docker container as argument to the `-e` option.

HTTP Code `200` means that the data was sent successfully to codecov and is availablle at [https://app.codecov.io/gh/pstaabp/pg](https://app.codecov.io/gh/pstaabp/pg)

### Using the Shell

You can also just open up the `bash` of the Docker container via

```bash
docker run -it --rm --name pg-unit-test -v `pwd`:/opt/webwork/pg -w /opt/webwork/pg eltenedor/pg-no-ww
```

At the prompt, just run the commands `prove -r t` and `cover -report html` as indicated above.

## Building the Docker Image Locally

Execute the following command from your `pg/docker` folder

```bash
docker build -t pg-no-ww -f pg-no-dww.Dockerfile
```

### Running the Test Suite Locally

Same as above for the image from Docker Hub. Just replace the name `eltenedor/pg-no-ww` by `pg-no-ww`.
28 changes: 28 additions & 0 deletions docker/pg-no-ww.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
FROM perl:5.32
# set metadata
LABEL maintainer="fabian.gabel@tuhh.de"
LABEL hub.docker.com="eltenedor/pg-no-ww"
# install needed perl modules
RUN cpanm -fi --notest \
Class::Accessor \
Date::Parse \
DateTime \
Devel::Cover \
Devel::Cover::Report::Codecov \
HTML::Entities \
HTML::TagParser \
JSON \
Test::Exception \
Tie::IxHash \
UUID::Tiny module \
YAML::XS
# create webwork environment
RUN mkdir -p /opt/webwork
# rename config file at startup
RUN echo "cp -f /opt/webwork/pg/conf/pg_defaults.yml.dist /opt/webwork/pg/conf/pg_defaults.yml" >> ~/.bashrc
WORKDIR /opt/webwork
ENV PG_ROOT /opt/webwork/pg
ENV WEBWORK_ROOT /opt/webwork/webwork2
ENV WEBWORK_TOPLEVEL /opt/webwork
ENV HARNESS_PERL_SWITCHES -MDevel::Cover
CMD ["/bin/bash"]
25 changes: 25 additions & 0 deletions docker/test-docker.Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
FROM perl:5.32
# install needed perl modules
RUN cpanm -fi --notest \
Class::Accessor \
Date::Parse \
DateTime \
Devel::Cover \
Devel::Cover::Report::Codecov \
HTML::Entities \
HTML::TagParser \
JSON \
Test::Exception \
Tie::IxHash \
UUID::Tiny module \
YAML::XS
# create webwork environment
RUN mkdir -p /opt/webwork
# rename config file at startup
# RUN echo "cp -f /opt/webwork/pg/conf/pg_defaults.yml.dist /opt/webwork/pg/conf/pg_defaults.yml" >> ~/.bashrc
WORKDIR /opt/webwork/pg
ENV PG_ROOT /opt/webwork/pg
# ENV WEBWORK_ROOT /opt/webwork/webwork2
# ENV WEBWORK_TOPLEVEL /opt/webwork
# ENV HARNESS_PERL_SWITCHES -MDevel::Cover
CMD ["/bin/bash"]
Loading