Permalink
Commits on Nov 4, 2014
Commits on Nov 2, 2014
  1. Various breaking changes and fixes (see diff of RELEASE-1.0.0b5 for d…

    …etails);
    
    Stub and console fixes;
    CS and MD fixes;
    Dep bump in packaging files.
    boenrobot committed Nov 2, 2014
Commits on Oct 21, 2014
  1. Workaround for sudden exceptions when the last command is /system/reb…

    …oot;
    
    Countable objects now implement the $mode argument;
    Renamed changeMenu() to setMenu(), and added getMenu() for the purpose of chaneMenu() with an empty string;
    Tweaked the VM settings, so that one arrives quicker at the copy&paste phase;
    Moved the test callback into a separate file, thus making the tests no longer requiring allow_url_fopen;
    CS and MD fixes (argument renames, mostly).
    boenrobot committed Oct 21, 2014
Commits on Mar 30, 2014
  1. Removed Message::getAllArguments() in favor of Message::getIterator()…

    …@IteratorAggregate;
    
    Changed Message::__invoke() with no arguments to be a shortcut of getTag();
    Added Message::count()@Countable;
    Added .scrutinizer.yml;
    Minor clean ups and polishes.
    boenrobot committed Mar 30, 2014
Commits on Mar 29, 2014
  1. Implemented some of the easier scrutinizer-ci fixes, located at packa…

    …gexmlsetup.php, roscon.php UnexpectedValueException.php;
    
    Updated examples;
    Added a .gitignore to ignore "vendor";
    Added dev dependencies in composer.json;
    boenrobot committed Mar 29, 2014
Commits on Feb 18, 2014
  1. Added ResponseCollection::orderBy() with tests;

    Added an ".rsc" file with settings for a fresh RouterOS install to run the tests normally;
    Adjusted composer autoloader lookup to honor COMPOSER_VENDOR_DIR if set, and the project root's autoloader is also matched properly;
    Adjusted the console to have most default values as part of the XML;
    The stub no longer includes possible reasons for connection failure, but instead suggests running the console, where if applicable, the same messages are shown.
    boenrobot committed Feb 18, 2014
Commits on Feb 8, 2014
  1. Changed the "--colors" option to accept "yes", "no" and "auto" as val…

    …ues, defaulting to "auto", which automatically turns on coloring on UNIX and Windows+ANSICON;
    
    Escape the "escape" character when outputting it with colors enabled;
    Added back the ".git" registration for Console_Color.
    boenrobot committed Feb 8, 2014
Commits on Jan 27, 2014
  1. Fixed colors in console;

    More sophisticated autoloader;
    Error message changes.
    boenrobot committed Jan 27, 2014
Commits on Nov 10, 2013
  1. Reverted the autoloader changes in the stub. Unnecessary, due to PEAR…

    …2_Autoload conditionally declaring itself, while also unconditionally registering itself;
    
    Minor doc fixes at ResponseCollection.
    boenrobot committed Nov 10, 2013
Commits on Oct 26, 2013
  1. Added unit tests for some of the new functionality;

    Util::prepareScript() now works properly with stream arguments;
    Doc and CS fixes.
    boenrobot committed Oct 26, 2013
Commits on Oct 25, 2013
  1. Added the ability to use an index at ResponseCollection;

    Fixed the unit test for length exception;
    Added an initial version for the next versions' change log.
    boenrobot committed Oct 25, 2013
Commits on Oct 20, 2013
  1. Adjusted roscon.bat to match what's advertised in its REMs;

    Added a shebang to the stub, making the PHAR potentially directly executable on UNIX.
    boenrobot committed Oct 20, 2013
  2. Added a bat file for the console;

    Renamed the "bin" folder to "scripts" (in accordance with PEAR2 requirements);
    Added replacement tasks for the console in packagexmlsetup.php and regenerated package.xml.
    boenrobot committed Oct 20, 2013
Commits on Oct 19, 2013
  1. Added Util::prepareScript() and made Util::exec() use it;

    Added the ability of Util::add() and Util::set()/Util::edit() to accept flags as array values with a numeric key;
    Util::filePutContents() with NULL as data now causes the removal of a file with that name (+ verification of successful deletion) - it previously caused an error;
    Adjusted the methods of ResponseCollection that return a new collection to use "new static" instead of "new ResponseCollection", allowing potential extensions of ResponseCollection;
    Fixed Communicator::verifyLengthSupport() - it's 0xFFFFFFFF (8 "F"s), not 0xFFFFFFF (7 "F"s);
    Doc fixes.
    boenrobot committed Oct 19, 2013
Commits on Oct 17, 2013
  1. Added support for associative arrays at Util::parseValue();

    Fixed invalid argument name detection and its unit test;
    Fixed name collision in LengthException.php;
    Added unit tests for Util::count() and Util::getall();
    Modified Util::get()'s test to reflect the new behavior when an invalid property is supplied;
    Doc fixes.
    boenrobot committed Oct 17, 2013
Commits on Oct 16, 2013
  1. Doc fixes;

    Added support for associative arrays at Util::escapeValue();
    Adjusted the console's decoded length column to be 11 characters - the maximum protocol supported length (as opposed to the maximum RouterOS supported length).
    boenrobot committed Oct 16, 2013
  2. Added a color to the console's "SEND" verbose prompt;

    Added "-- " as a prefix to non-verbose console messages (inspired by the MikroTik wiki example);
    Util::escapeValue() now uses a timestamp for the unix epoch, as opposed to a formatted string, eliminating any timezone issues;
    Adjusted Util::get() to try a "/get" command, before reverting to a print request (which now uses Util::getall());
    Console's multiline mode now works as expected - EOL,\03,\03,EOL results in EOL,\03, allowing the user to write out EOL,\03,\03 as EOL,\03,\03,EOL,\03,\03,EOL;
    bootstrap.php now explicitly sets CWD.
    boenrobot committed Oct 16, 2013
Commits on Oct 13, 2013
  1. Added Util::getall();

    Added notifications to console on timeout and connection termination;
    Doc fixes (notably: replacing the use of the word "entry" with "item", as per the RouterOS manual).
    boenrobot committed Oct 13, 2013
Commits on Oct 12, 2013
  1. Added Util::count();

    Initial support for colors at the console;
    CS fixes;
    boenrobot committed Oct 12, 2013
Commits on Sep 29, 2013
Commits on Aug 15, 2013
  1. Packaging related fixes.

    boenrobot committed Aug 14, 2013
Commits on Aug 14, 2013
  1. CS fixes.

    boenrobot committed Aug 14, 2013
Commits on Aug 13, 2013
  1. Added Util::parseValue();

    Modified Util::get() and Util::set() to accept NULL for menus that don't have entries;
    Reorganized many Unit tests at what was previously RequestHandlingTest.php to use data providers;
    Added a check about the OpenSSL extension at stub.php;
    Response::_receive() releases the lock on any exception, not just SocketException;
    Added a shorter default_socket_timeout(), to avoid needlessly long delays in tests.
    CS fixes.
    boenrobot committed Aug 13, 2013
Commits on Jun 27, 2013
  1. Fixed unit tests.

    boenrobot committed Jun 27, 2013
  2. Minor doc fixes.

    boenrobot committed Jun 27, 2013
  3. Completely refactored the unit testing process;

    Added docs for $crypto;
    Improved performance of Util::escapeString() by making the callback operate on sequences of non-alphanumeric characters instead of one-by-one such characters;
    boenrobot committed Jun 27, 2013
Commits on Jun 23, 2013
  1. Added docs for the new timeouts;

    Changed Util::add() to ignore non-array arguments.
    boenrobot committed Jun 23, 2013
Commits on Jun 22, 2013
  1. Moved the timeout responsibility to the Response object, which will i…

    …n turn only use it when it's ACTUALLY about to receive - not when it's pulling data out of a Registry or whatever;
    
    Also added a timeout to Client::login() (Client::__construct() uses the connection timeout as a value for it), in order to address an accidentally discovered edge case - a TCP connection that's reported as being established, but never brings back any data.
    boenrobot committed Jun 22, 2013
  2. Updated unit tests against RouterOS 6.1;

    Minor CS fixes.
    boenrobot committed Jun 22, 2013
Commits on May 5, 2013
  1. Changed Util::find() to use the "find" command when no arguments are …

    …specified.
    
    (This significantly improves performance in typical use cases, compared to processing a "print .proplist=.id" collection)
    boenrobot committed May 5, 2013
Commits on May 3, 2013
  1. Reworked number targeting at Util;

    Added a changelog;
    Chnaged the PHAR stub to not fail when reading the hash fails.
    boenrobot committed May 3, 2013
Commits on May 2, 2013
  1. Added Util::unsetValue();

    Additional tests and doc fixes.
    boenrobot committed May 2, 2013
  2. Added Util::fileGetContents();

    Finished up Unit tests.
    boenrobot committed May 2, 2013