Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-03-09 | Removed trailing whitespace from the code | Steve Kemp | |
2015-03-09 | Whitespace fixups. | Steve Kemp | |
These were all identified and suggested by rubocop. | |||
2015-03-09 | Removed spaces inside parenthesis. | Steve Kemp | |
2015-03-09 | Prefer single-quotes when you don't need interpolation. | Steve Kemp | |
So "foo" is less good than 'foo'. | |||
2015-03-09 | Do not terminate expressions with ";". | Steve Kemp | |
Ruby is not Perl, much as I sometimes wish it were. | |||
2015-03-09 | Avoid redudent returns. | Steve Kemp | |
The last expression of a method is the return value. So: def foo; false ; end Is the same as: def foo; return false; end | |||
2015-03-09 | Don't use parenthesis aroudn conditions in an if. | Steve Kemp | |
2015-03-09 | Do not use parentheses for method calls with no arguments. | Steve Kemp | |
This is neater. Flagged by rubocop | |||
2015-03-09 | Don't use "::" for method-calls. | Steve Kemp | |
Instead prefer ".". Flagged by rubocop | |||
2015-02-13 | Added 5.28.58.0/24 to the Bytemark ranges. | Steve Kemp | |
2015-01-30 | Removed executable permissions, this is a library. | Steve Kemp | |
2015-01-29 | Removed shebang. | Steve Kemp | |
This refereed to ruby1.8 in a versioned way which was wrong. | |||
2014-12-11 | Use getnameinfo rather than getaddrinfo | Patrick J Cherry | |
2013-07-11 | Updated the first IPv6 range. | Steve Kemp | |
2013-07-11 | Added 2001:41c9::/32 as a Bytemark range. | Steve Kemp | |
2013-06-24 | Updated the code to be more module. | Steve Kemp | |
Broke down the inside? function into a function for returning the hours in a period, and for sanitizing hour strings "14" vs. "2pm", etc. Updated test-cases to match. | |||
2013-06-24 | The worst-case for testing a time-period, and one used in the | Steve Kemp | |
parser test, is matching against a period that covers the full 24 hours. Correctly terminate this case, and add a new test-case to ensure that this is always correct. | |||
2013-06-24 | Removed obsolete debug-code. | Steve Kemp | |
2013-06-24 | Use the global timeout-period for DNS lookups. | Steve Kemp | |
The rest of custodian will use the configuration file to read the timeout value (with a default of 30 seconds), but the DNS-lookups were hardwired to timeout after four seconds. This is now resolved; the DNS lookups will use the global timeout period too now. | |||
2013-06-24 | Added Custodian::Util::TimeSpan | Steve Kemp | |
This class is used to determine whether an "hour" is within a given hour-span. e.g. To cope with: foo must run ping except between 04-06 otherwise 'alert'. This updates issue #4551. | |||
2012-11-24 | Removed test/driver-code. | Steve Kemp | |
2012-11-23 | Moved the code to detect whether an IP-address is inside/outside the ↵ | Steve Kemp | |
Bytemark range into its own class & added _simple_ test-cases. | |||
2012-11-23 | Ensure we have a sane argument to our constructor. | Steve Kemp | |
2012-11-22 | Whitespace updates. | Steve Kemp | |
2012-11-22 | Renamed. | Steve Kemp | |