From 7308da092accef9dfc667e755e4a22e166462ce7 Mon Sep 17 00:00:00 2001 From: Tony Smith Date: Tue, 16 Jun 2020 11:21:19 +0100 Subject: [PATCH 1/7] Correct init() settings.timeout type check bool -> integer or float --- Rocky.agent.lib.nut | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Rocky.agent.lib.nut b/Rocky.agent.lib.nut index f279ce1..2533b12 100644 --- a/Rocky.agent.lib.nut +++ b/Rocky.agent.lib.nut @@ -47,7 +47,7 @@ Rocky <- { _setDefaults(); // Initialize settings, checking values as appropriate - if ("timeout" in settings && typeof settings.timeout == "bool") _timeout = settings.timeout; + if ("timeout" in settings && (typeof settings.timeout == "integer" || typeof settings.timeout == "float")) _timeout = settings.timeout; if ("allowUnsecure" in settings && typeof settings.allowUnsecure == "bool") _allowUnsecure = settings.allowUnsecure; if ("strictRouting" in settings && typeof settings.strictRouting == "bool") _strictRouting = settings.strictRouting; if ("accessControl" in settings && typeof settings.accessControl == "bool") _accessControl = settings.accessControl; @@ -1100,4 +1100,4 @@ class Rocky.Context { sent = true; } -} \ No newline at end of file +} From 72ccd85f3c6a73e21e99d3782afb2241ed11ae51 Mon Sep 17 00:00:00 2001 From: Tony Smith Date: Tue, 16 Jun 2020 11:21:38 +0100 Subject: [PATCH 2/7] Update version --- Rocky.agent.lib.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocky.agent.lib.nut b/Rocky.agent.lib.nut index 2533b12..d323dac 100644 --- a/Rocky.agent.lib.nut +++ b/Rocky.agent.lib.nut @@ -17,7 +17,7 @@ enum ROCKY_ERROR { */ Rocky <- { - "VERSION": "3.0.0", + "VERSION": "3.0.1", // ------------------ PRIVATE PROPERTIES ------------------// From 094bf8d6d7eef291adf5e05a57336620fca3cc9d Mon Sep 17 00:00:00 2001 From: Tony Smith Date: Tue, 16 Jun 2020 11:22:01 +0100 Subject: [PATCH 3/7] Update copyright date --- Rocky.agent.lib.nut | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Rocky.agent.lib.nut b/Rocky.agent.lib.nut index d323dac..5ce738f 100644 --- a/Rocky.agent.lib.nut +++ b/Rocky.agent.lib.nut @@ -9,7 +9,7 @@ enum ROCKY_ERROR { /** * This class allows you to define and operate an agent-served API. * - * @copyright Electric Imp, Inc. 2015-19 + * @copyright Electric Imp, Inc. 2015-20 * @license MIT * * @table From 780a08acfbde0eb6fc68251d431beb52b8b6f251 Mon Sep 17 00:00:00 2001 From: Tony Smith Date: Tue, 16 Jun 2020 11:23:30 +0100 Subject: [PATCH 4/7] Correct version number for update --- README.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index b6ec05d..af1cf28 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Rocky 3.0.0 # +# Rocky 3.0.1 # Rocky is an framework for building powerful and scalable APIs for your imp-powered products. @@ -59,7 +59,7 @@ The Rocky library consists of the following components: ## Rocky Usage ## -Rocky 3.0.0 is implemented as a table to enforce singleton behavior. You code should no longer instantiate Rocky using a constructor call, but instead call the new *init()* method to initialize the library. +Rocky 3.0.0 and up is implemented as a table to enforce singleton behavior. You code should no longer instantiate Rocky using a constructor call, but instead call the new *init()* method to initialize the library. All of Rocky’s methods are accessible as before, and return the same values. *init()* returns a reference to the Rocky singleton. There is no longer a distinction between class and instance methods: all of Rocky’s methods can be called on Rocky itself, or an alias variables, as these reference the same table: @@ -105,7 +105,7 @@ A table containing any of the following keys may be passed into *init()* to modi #### Example #### ```squirrel -#require "rocky.agent.lib.nut:3.0.0" +#require "rocky.agent.lib.nut:3.0.1" local settings = { "timeout": 30 }; app <- Rocky.init(settings); From 5f9ee9ecb729d3fe28f249bd2ec0fe82559938ff Mon Sep 17 00:00:00 2001 From: Tony Smith Date: Tue, 16 Jun 2020 11:23:55 +0100 Subject: [PATCH 5/7] Update LICENSE --- LICENSE | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LICENSE b/LICENSE index b77deb6..bf9562b 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,6 @@ The MIT License (MIT) -Copyright (c) 2015-19 Electric Imp +Copyright (c) 2015-20 Electric Imp Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 798f4242fdfad7cd3dada37d9b8e8a7ed70bd830 Mon Sep 17 00:00:00 2001 From: Tony Smith Date: Fri, 15 Jan 2021 10:53:57 +0000 Subject: [PATCH 6/7] Update LICENSE --- LICENSE | 1 + 1 file changed, 1 insertion(+) diff --git a/LICENSE b/LICENSE index bf9562b..feea409 100644 --- a/LICENSE +++ b/LICENSE @@ -1,6 +1,7 @@ The MIT License (MIT) Copyright (c) 2015-20 Electric Imp +Copyright (c) 2021 Twilio Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal From 8769a320a9ea888a04e692a81f7d2439b018fb8c Mon Sep 17 00:00:00 2001 From: Tony Smith Date: Fri, 15 Jan 2021 10:57:53 +0000 Subject: [PATCH 7/7] Update Rocky.agent.lib.nut --- Rocky.agent.lib.nut | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Rocky.agent.lib.nut b/Rocky.agent.lib.nut index 5ce738f..c781150 100644 --- a/Rocky.agent.lib.nut +++ b/Rocky.agent.lib.nut @@ -9,7 +9,8 @@ enum ROCKY_ERROR { /** * This class allows you to define and operate an agent-served API. * - * @copyright Electric Imp, Inc. 2015-20 + * @copyright 2015-19 Electric Imp + * @copyright 2020-21 Twilio * @license MIT * * @table