Skip to content

Commit

Permalink
Release 2.0.0 (2022042400).
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-milette committed Apr 24, 2022
1 parent 0295ab8 commit 39708b1
Show file tree
Hide file tree
Showing 12 changed files with 226 additions and 88 deletions.
178 changes: 177 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,177 @@
vendor
##### Only include English
/lang/*
!/lang/en

##### Windows
# Windows thumbnail cache files
Thumbs.db
Thumbs.db:encryptable
ehthumbs.db
ehthumbs_vista.db

# Windows shortcuts
*.lnk

# Test file.
test.php

# KDE directory preferences
.directory

##### MacOS
# General
.DS_Store
.AppleDouble
.LSOverride

# Thumbnails
._*

##### Backup
*.bak
*.bakup
*.gho
*.old
*.ori
*.orig
*.original
*.tmp
*.temp

# Log file - the following switch allows to specify the file that will be
# used to write all messages from simulation: -l <filename>
*.log

##### Dropbox
# Dropbox settings and caches
.dropbox
.dropbox.attr
.dropbox.cache

##### Vim
# Swap
[._]*.s[a-v][a-z]
!*.svg # comment out if you don't need vector files
[._]*.sw[a-p]
[._]s[a-rt-v][a-z]
[._]ss[a-gi-z]
[._]sw[a-p]

# Session
Session.vim
Sessionx.vim

##### Emacs
# -*- mode: gitignore; -*-
*~
\#*\#
/.emacs.desktop
/.emacs.desktop.lock
*.elc
auto-save-list
tramp
.\#*

##### SublimeText
# Cache files for Sublime Text
*.tmlanguage.cache
*.tmPreferences.cache
*.stTheme.cache

# Workspace files are user-specific
*.sublime-workspace

# Project files should be checked into the repository, unless a significant
# proportion of contributors will probably not be using Sublime Text
# *.sublime-project

##### TextMate
*.tmproj
*.tmproject
tmtags

##### VisualStudioCode
.vscode/
.vscode/*
!.vscode/settings.json
!.vscode/tasks.json
!.vscode/launch.json
!.vscode/extensions.json
*.code-workspace

# Local History for Visual Studio Code
.history/

##### NetBeans
**/nbproject/private/
**/nbproject/Makefile-*.mk
**/nbproject/Package-*.bash
build/
nbbuild/
dist/
nbdist/
.nb-gradle/

##### JetBrains
# Covers JetBrains IDEs: IntelliJ, RubyMine, PhpStorm, AppCode, PyCharm, CLion, Android Studio, WebStorm and Rider
# Reference: https://intellij-support.jetbrains.com/hc/en-us/articles/206544839

# User-specific stuff
.idea/**/workspace.xml
.idea/**/tasks.xml
.idea/**/usage.statistics.xml
.idea/**/dictionaries
.idea/**/shelf

# Generated files
.idea/**/contentModel.xml

# Sensitive or high-churn files
.idea/**/dataSources/
.idea/**/dataSources.ids
.idea/**/dataSources.local.xml
.idea/**/sqlDataSources.xml
.idea/**/dynamic.xml
.idea/**/uiDesigner.xml
.idea/**/dbnavigator.xml

##### Eclipse
.metadata
bin/
tmp/
*~.nib
local.properties
.settings/
.loadpath
.recommenders

##### Dreamweaver
# DW Dreamweaver added files
_notes
_compareTemp
configs/
dwsync.xml
dw_php_codehinting.config
*.mno

##### CodeKit
# General CodeKit files to ignore
config.codekit
config.codekit3
/min

##### Composer
composer.phar
/vendor/

# Commit your application's lock file https://getcomposer.org/doc/01-basic-usage.md#commit-your-composer-lock-file-to-version-control
# You may choose to ignore a library lock file http://getcomposer.org/doc/02-libraries.md#lock-file
composer.lock

##### PHP CodeSniffer
# gitignore for the PHP Codesniffer framework
# website: https://github.com/squizlabs/PHP_CodeSniffer
#
# Recommended template: PHP.gitignore

/wpcs/*
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
# Change Log
All notable changes to this project will be documented in this file.

## [1.4.2] - 2022-04-23 (DEV)
## [2.0.0] - 2022-04-24
### Added
- Detects and reports the log location if mail.log is set in php.ini.
- Detects if email diverting is enabled.
- Detects if email/messaging is disabled by way of $CFG->noemailever.
### Updated
- Removed db directory as there are no tables used by this plugin.
- .gitignore
- Compatible with PHP 5.6 to 7.4.
- Compatible with Moodle up to v4.0.
- Copyright notice for 2022.

## [1.4.0] - 2020-09-20
### Added
Expand Down
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ integrated into the project.

Style Guides
-------------------
1. Write in UTF-8 in PHP 5.6, 7.0 and 7.1.
1. Write in UTF-8 in PHP 5.6, 7.0, 7.1, 7.2, 7.3 and 7.4.
2. Follow the official[Moodle Coding Style Guide](https://docs.moodle.org/dev/Coding_style).
3. Fully test your code with Moodle **Debug Messages** setting set to
**DEVELOPER: extra Moodle debug messages for developers** and
Expand Down Expand Up @@ -49,4 +49,4 @@ rules.

Versioning
---------------------
We use [SemVer](http://semver.org/) for versioning.
We use [SemVer](http://semver.org/) for versioning.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

Local eMailTest plugin for Moodle
=================================
![PHP](https://img.shields.io/badge/PHP-v5.6%20%2F%20v7.0%20%2F%20v7.1%20%2F%20v7.2%20%2F%20v7.3-blue.svg)
![Moodle](https://img.shields.io/badge/Moodle-v2.5%20to%20v3.9-orange.svg)
![PHP](https://img.shields.io/badge/PHP-v5.6%20%2F%20v7.0%20%2F%20v7.1%20%2F%20v7.2%20%2F%20v7.3%20%2F%20v7.4-blue.svg)
![Moodle](https://img.shields.io/badge/Moodle-v2.5%20to%20v4.0-orange.svg)
[![GitHub Issues](https://img.shields.io/github/issues/michael-milette/moodle-local_mailtest.svg)](https://github.com/michael-milette/moodle-local_mailtest/issues)
[![Contributions welcome](https://img.shields.io/badge/contributions-welcome-green.svg)](#contributing)
[![License](https://img.shields.io/badge/License-GPL%20v3-blue.svg)](#license)
Expand Down Expand Up @@ -293,7 +293,7 @@ https://github.com/michael-milette/moodle-local_mailtest

# License

Copyright © 2015-2019 TNG Consulting Inc. - https://www.tngconsulting.ca/
Copyright © 2015-2022 TNG Consulting Inc. - https://www.tngconsulting.ca/

This file is part of MailTest/eMailTest for Moodle - http://moodle.org/

Expand Down
14 changes: 7 additions & 7 deletions classes/mailtest_form.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,17 +18,17 @@
* Main form for eMailTest.
*
* @package local_mailtest
* @copyright 2015-2019 TNG Consulting Inc. - www.tngcosulting.ca
* @copyright 2015-2022 TNG Consulting Inc. - www.tngcosulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

defined('MOODLE_INTERNAL') || die;
require_once($CFG->libdir.'/formslib.php');
require_once($CFG->libdir . '/formslib.php');

/**
* Form to prompt administrator for the recipient's email address.
* @copyright 2015-2019 TNG Consulting Inc. - www.tngcosulting.ca
* @copyright 2015-2022 TNG Consulting Inc. - www.tngcosulting.ca
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/
class mailtest_form extends moodleform {
Expand All @@ -42,7 +42,7 @@ public function definition() {

// Header.

$mform->addElement('html', '<p>'.get_string('pluginname_help', 'local_mailtest').'</p>');
$mform->addElement('html', '<p>' . get_string('pluginname_help', 'local_mailtest') . '</p>');

// Send method.

Expand All @@ -53,10 +53,10 @@ public function definition() {
}
if ($CFG->branch >= 32) {
$sendmethod .= ' (<a href="../../admin/settings.php?section=outgoingmailconfig#admin-smtphosts">' .
get_string('change', 'admin').'</a>)';
get_string('change', 'admin') . '</a>)';
} else {
$sendmethod .= ' (<a href="../../admin/settings.php?section=messagesettingemail">' .
get_string('change', 'admin').'</a>)';
get_string('change', 'admin') . '</a>)';
}
$mform->addElement('static', 'sendmethod', get_string('sendmethod', 'local_mailtest'), $sendmethod);

Expand Down Expand Up @@ -138,7 +138,7 @@ public function definition() {
$divertstatus = get_string('divertedto', 'local_mailtest', $CFG->divertallemailsto);
}
$divertstatus .= ' (<a href="../../admin/settings.php?section=outgoingmailconfig#admin-divertallemailsto">' .
get_string('change', 'admin').'</a>)';
get_string('change', 'admin') . '</a>)';
$mform->addElement('static', 'divertemails', get_string('divertallemails', 'admin'), $divertstatus);
}

Expand Down
6 changes: 2 additions & 4 deletions classes/privacy/provider.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,13 @@
* Privacy Subsystem implementation for local_mailtest.
*
* @package local_mailtest
* @copyright 2015-2021 TNG Consulting Inc. - www.tngcosulting.ca
* @copyright 2015-2022 TNG Consulting Inc. - www.tngcosulting.ca
* @author Michael Milette
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
*/

namespace local_mailtest\privacy;

defined('MOODLE_INTERNAL') || die();

/**
* Privacy Subsystem for local_mailtest implementing null_provider.
*
Expand All @@ -44,4 +42,4 @@ class provider implements \core_privacy\local\metadata\null_provider {
public static function get_reason() : string {
return 'privacy:metadata';
}
}
}
40 changes: 0 additions & 40 deletions db/upgrade.php

This file was deleted.

Loading

0 comments on commit 39708b1

Please sign in to comment.