Skip to content

Commit

Permalink
Update dev-lib and fix codesniff issues
Browse files Browse the repository at this point in the history
  • Loading branch information
JDGrimes committed Dec 5, 2016
1 parent c1c4331 commit ffcbd2f
Show file tree
Hide file tree
Showing 25 changed files with 43 additions and 36 deletions.
6 changes: 6 additions & 0 deletions .wordpoints-dev-lib-config.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@ function wordpoints-dev-lib-config() {

# This needs to be set for caching to work.
export WP_HTTP_TC_HOST=example.com

# Exclude WP HTTP TestCase cache files from the disallowed strings check.
CODESNIFF_PATH_STRINGS=("${CODESNIFF_PATH_STRINGS[@]}" '!' -path './tests/phpunit/cache/wp-http-tc/*')

# Ignore lines that currently still need to have 'http' in them.
CODESNIFF_IGNORED_STRINGS=("${CODESNIFF_IGNORED_STRINGS[@]}" -e http://example.org -e 'this->url')
}

# EOF
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
GNU GENERAL PUBLIC LICENSE
Version 2, June 1991

Copyright (C) 1989, 1991 Free Software Foundation, Inc., <http://fsf.org/>
Copyright (C) 1989, 1991 Free Software Foundation, Inc., <https://fsf.org/>
51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
Everyone is permitted to copy and distribute verbatim copies
of this license document, but changing it is not allowed.
Expand Down
2 changes: 1 addition & 1 deletion dev-lib
Submodule dev-lib updated 47 files
+5 −3 .travis.yml
+30 −0 CHANGELOG.md
+19 −5 bin/env.sh
+85 −12 bin/functions.sh
+30 −6 bin/init.sh
+9 −2 bin/update-version.sh
+8 −0 bin/update-year.sh
+11 −4 bin/verify-php-autoloader
+2 −0 git/.gitignore
+51 −0 grunt/Gruntfile.js
+7 −0 grunt/package.json
+7 −5 grunt/tasks/autoloader.js
+1 −0 jshint/.jshintrc
+1 −0 l10n-validator/php.php
+119 −5 l10n-validator/wordpoints.php
+2 −0 l10n-validator/wordpress.php
+5 −0 phpcs/WordPoints/Sniffs/PHP/DisallowedFunctionsSniff.php
+2 −0 phpcs/WordPoints/Sniffs/PHP/MissingEchoSniff.php
+2 −0 phpcs/WordPoints/Tests/PHP/DisallowedFunctionsUnitTest.inc
+1 −0 phpcs/WordPoints/Tests/PHP/DisallowedFunctionsUnitTest.php
+18 −4 phpcs/WordPoints/ruleset.xml
+128 −0 phpunit/classes/class/autoloader.php
+35 −0 phpunit/classes/testcase/module/uninstall.php
+20 −0 phpunit/composer.json
+95 −2 phpunit/functions.php
+59 −3 phpunit/module-bootstrap.php
+16 −0 phpunit/phpunit.uninstall.xml.dist
+17 −0 phpunit/simulate-module-use.php
+53 −0 phpunit/test-uninstall.php
+20 −0 phpunit/test.php
+104 −0 phpunit/wpppb-init
+19 −0 run
+35 −6 travis/commands.sh
+3 −2 travis/module.yml
+3 −2 travis/wordpoints.yml
+1 −1 wpcept/bootstrap.php
+163 −20 wpcept/includes/AcceptanceTester.php
+52 −0 wpcept/includes/BlackHoleCache.php
+60 −0 wpcept/includes/Element.php
+133 −0 wpcept/includes/Element/Reaction.php
+48 −0 wpcept/includes/Element/ReactionCondition.php
+55 −31 wpcept/includes/Modules/WordPointsLoader.php
+4 −4 wpcept/includes/TestLoader.php
+1 −1 wpcept/module.yml
+3 −3 wpcept/scaffold/_support/AcceptanceTester.php
+2 −2 wpcept/scaffold/acceptance/bootstrap.php
+1 −1 wpcept/wordpoints.yml
6 changes: 4 additions & 2 deletions src/admin/includes/apis/edd-software-licensing.php
Original file line number Diff line number Diff line change
Expand Up @@ -360,8 +360,10 @@ public function wordpoints_modules_list_table_items( $modules ) {
} else {
wordpoints_show_admin_message( esc_html__( 'License deactivated.', 'wordpointsorg' ) );
}
}
}

} // End if ( activating license ) elseif ( deactivating license ).

} // End foreach ( $modules['all'] as $module ).

return $modules;
}
Expand Down
3 changes: 2 additions & 1 deletion src/admin/includes/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -640,7 +640,8 @@ function wordpointsorg_module_update_row( $file, $module_data ) {
</tr>

<?php
}

} // End if ( is_network_admin() || ! is_multisite() ).
}

/**
Expand Down
4 changes: 2 additions & 2 deletions src/languages/wordpointsorg.pot
Original file line number Diff line number Diff line change
Expand Up @@ -252,13 +252,13 @@ msgid "WordPoints"
msgstr ""

#. Author URI of the module
msgid "http://wordpoints.org/"
msgid "https://wordpoints.org/"
msgstr ""

#. Module Name of the module
msgid "WordPoints.org Modules"
msgstr ""

#. Module URI of the module
msgid "http://wordpoints.org/modules/wordpoints-org/"
msgid "https://wordpoints.org/modules/wordpoints-org/"
msgstr ""
4 changes: 2 additions & 2 deletions src/wordpointsorg.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@
'
Module Name: WordPoints.org Modules
Author: WordPoints
Author URI: http://wordpoints.org/
Module URI: http://wordpoints.org/modules/wordpoints-org/
Author URI: https://wordpoints.org/
Module URI: https://wordpoints.org/modules/wordpoints-org/
Version: 1.1.4
License: GPLv2+
Description: Update modules from WordPoints.org through your admin panel.
Expand Down
Binary file modified tests/phpunit/data/module-packages/module-6.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/phpunit/data/module-packages/module-6/module-6.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Test 6
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Plugin URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Plugin URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
Binary file modified tests/phpunit/data/module-packages/module-7-update.bk.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Module 7
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.1
* License: GPLv2+
* Description: Description.
Expand Down
Binary file modified tests/phpunit/data/module-packages/module-7.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/phpunit/data/module-packages/module-7/module-7.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Module 7
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
Binary file modified tests/phpunit/data/module-packages/module-8.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions tests/phpunit/data/module-packages/module-8/module-8.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Module 8
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
Binary file modified tests/phpunit/data/module-packages/no-module.bk.zip
Binary file not shown.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Sub module
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/data/module-packages/no-module/module.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Not a module
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/data/module-packages/no-module/plugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Plugin Name: Not a module
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Plugin URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Plugin URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/data/modules/module-7/module-7.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Module 7
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/data/modules/module-8/module-8.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Module 8
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/data/modules/test-1.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Test 1
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
4 changes: 2 additions & 2 deletions tests/phpunit/data/modules/test-2.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* Module Name: Test 2
* Author: J.D. Grimes
* Author URI: http://codesymphony.co/
* Module URI: http://codesymphony.co/
* Author URI: https://codesymphony.co/
* Module URI: https://codesymphony.co/
* Version: 1.0.0
* License: GPLv2+
* Description: Description.
Expand Down
6 changes: 3 additions & 3 deletions tools/wp-l10n-validator/cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"errors": false
},
"\/admin\/includes\/apis\/edd-software-licensing.php": {
"size": 20115,
"hash": "1ee05936abf4bc4d05cd90d20be8e103",
"size": 20116,
"hash": "9b01bae6cc714691ed8c1f2d554e23e1",
"errors": false
},
"\/admin\/includes\/class-bulk-module-upgrader-skin.php": {
Expand Down Expand Up @@ -71,5 +71,5 @@
"errors": false
}
},
"config_signature": "50004c7a59d855e646f34b5aa3dfcf00"
"config_signature": "c3b6985eed6e2932c09bfa8dd0c1fb43"
}
2 changes: 0 additions & 2 deletions tools/wp-l10n-validator/ignores-cache.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@
"438": false
},
"-": {
"441": false,
"445": false,
"446": false
}
},
Expand Down

0 comments on commit ffcbd2f

Please sign in to comment.