Skip to content

Commit 04255f4

Browse files
Merge pull request #44 from electricimp/develop
Develop -> Master for 3.0.1
2 parents fde8d49 + 00f8e48 commit 04255f4

File tree

3 files changed

+10
-8
lines changed

3 files changed

+10
-8
lines changed

Diff for: LICENSE

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2015-19 Electric Imp
3+
Copyright (c) 2015-20 Electric Imp
4+
Copyright (c) 2021 Twilio
45

56
Permission is hereby granted, free of charge, to any person obtaining a copy
67
of this software and associated documentation files (the "Software"), to deal

Diff for: README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Rocky 3.0.0 #
1+
# Rocky 3.0.1 #
22

33
Rocky is an framework for building powerful and scalable APIs for your imp-powered products.
44

@@ -59,7 +59,7 @@ The Rocky library consists of the following components:
5959

6060
## Rocky Usage ##
6161

62-
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.
62+
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.
6363

6464
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:
6565

@@ -105,7 +105,7 @@ A table containing any of the following keys may be passed into *init()* to modi
105105
#### Example ####
106106

107107
```squirrel
108-
#require "rocky.agent.lib.nut:3.0.0"
108+
#require "rocky.agent.lib.nut:3.0.1"
109109
110110
local settings = { "timeout": 30 };
111111
app <- Rocky.init(settings);

Diff for: Rocky.agent.lib.nut

+5-4
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,16 @@ enum ROCKY_ERROR {
99
/**
1010
* This class allows you to define and operate an agent-served API.
1111
*
12-
* @copyright Electric Imp, Inc. 2015-19
12+
* @copyright 2015-19 Electric Imp
13+
* @copyright 2020-21 Twilio
1314
* @license MIT
1415
*
1516
* @table
1617
*
1718
*/
1819
Rocky <- {
1920

20-
"VERSION": "3.0.0",
21+
"VERSION": "3.0.1",
2122

2223
// ------------------ PRIVATE PROPERTIES ------------------//
2324

@@ -47,7 +48,7 @@ Rocky <- {
4748
_setDefaults();
4849

4950
// Initialize settings, checking values as appropriate
50-
if ("timeout" in settings && typeof settings.timeout == "bool") _timeout = settings.timeout;
51+
if ("timeout" in settings && (typeof settings.timeout == "integer" || typeof settings.timeout == "float")) _timeout = settings.timeout;
5152
if ("allowUnsecure" in settings && typeof settings.allowUnsecure == "bool") _allowUnsecure = settings.allowUnsecure;
5253
if ("strictRouting" in settings && typeof settings.strictRouting == "bool") _strictRouting = settings.strictRouting;
5354
if ("accessControl" in settings && typeof settings.accessControl == "bool") _accessControl = settings.accessControl;
@@ -1100,4 +1101,4 @@ class Rocky.Context {
11001101
sent = true;
11011102
}
11021103

1103-
}
1104+
}

0 commit comments

Comments
 (0)