Skip to content

Commit

Permalink
1.0.4 Update
Browse files Browse the repository at this point in the history
Minor Changes
  • Loading branch information
Krikroff77 committed Feb 16, 2014
1 parent 4b4739a commit 5d77ba5
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 10 deletions.
4 changes: 2 additions & 2 deletions Examples/HttpRequestwithcustomHeaders.lua
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
-------------------------------------------------------------------------------------------
-------------------------------------------------------------------------------------------
-- Make http request with custom headers
-- Required library: Toolkit.Net
-- Copyright 2013 Jean-christophe Vermandé
-- Copyright 2013-2014 Jean-christophe Vermandé
-------------------------------------------------------------------------------------------

-- set Toolkit.Net.* trace enabled
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Fibaro-HC2-Toolkit-Framework
Fibaro-HC2-Toolkit-Framework
============================

This Framework is a lua library for HC2 and is an addon for HC2 Toolkit application in a goal to aid the integration.
Hope that it will be useful!

Current version 1.0.3
Current version 1.0.4

Tested on Lua 5.1 with Fibaro HC2 3.5xx

Expand Down
15 changes: 9 additions & 6 deletions Toolkit.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
-- This Framework is an addon for HC2 Toolkit application in a goal to aid the integration.
-- Tested on Lua 5.1 with Fibaro HC2 3.572 beta
--
-- Version 1.0.3 [01-13-2014]
-- Version 1.0.4 [01-13-2014]
--
-- Use: Toolkit or Tk shortcut to access Toolkit namespace members.
--
Expand All @@ -18,7 +18,7 @@
-- Memory is preserved: The code is loaded only the first time in a virtual device
-- main loop and reloaded only if application pool restarded.
--
-- Copyright (C) 2013 Jean-Christophe Vermandé
-- Copyright (C) 2013-2014 Jean-Christophe Vermandé
--
-- This program is free software: you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
Expand All @@ -28,11 +28,11 @@
-------------------------------------------------------------------------------------------
if not Toolkit then Toolkit = {
__header = "Toolkit",
__version = "1.0.3",
__version = "1.0.4",
__luaBase = "5.1.0",
__copyright = "Jean-Christophe Vermandé",
__licence = [[
Copyright (C) 2013 Jean-Christophe Vermandé
Copyright (C) 2013-2014 Jean-Christophe Vermandé
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -76,7 +76,7 @@ if not Toolkit then Toolkit = {
-- hour (string/integer)
-- min (string/integer)
-- sec (string/integer)
comparableTime = (function(hour, min) return tonumber(string.format("%02d%02d%02d", hour, min, sec)) end),
comparableTime = (function(hour, min, sec) return tonumber(string.format("%02d%02d%02d", hour, min, sec)) end),
-- isTraceEnabled
-- (boolean) get or set to enable or disable trace
isTraceEnabled = true,
Expand Down Expand Up @@ -155,6 +155,9 @@ if not Toolkit then Toolkit = {
Tk.assertArg("value", s, "string");
return (string.gsub(s, "^%s*(.-)%s*$", "%1"));
end),
-- isNaN(value)
-- return true is NaN or false if not NaN
isNaN = (function (x) return x ~= x end),
-- filterByPredicate(table, predicate)
-- table (table) - table to filter
-- predicate (function) - function for predicate
Expand All @@ -175,7 +178,7 @@ if not Toolkit then Toolkit = {
n = n + 1;
end
end
end
end
return out, #out;
end)
};Toolkit:__frameworkHeader();Tk=Toolkit;
Expand Down

0 comments on commit 5d77ba5

Please sign in to comment.