Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
* 'master' of https://github.com/forio/epicenter-js-libs:
  Release v2.2.0 (pre-release)
  update changelog with release date, and to reflect latest feedback on presence service docs
  EPICENTER-2568: move tests to variable api
  EPICENTER-2568: change & test
  EPICENTER-2568: add test for & in GET
  EPICENTER-2568: add test for run api variable with &
  • Loading branch information
narenranjit committed Mar 16, 2017
2 parents 10c429b + 0b19a00 commit 7659c50
Show file tree
Hide file tree
Showing 7 changed files with 33 additions and 12 deletions.
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<a name="2.2.0"></a>
### 2.2.0 (2017-03-01)
### 2.2.0 (2017-03-15)

This is one of our biggest releases of Epicenter.js in a while. It includes:

Expand Down Expand Up @@ -172,7 +172,7 @@ The `savedRuns` manager gives you utility functions for dealing with multiple ru

### Presence Service

The Presence API Service provides methods to get and set the presence of an end user in a project, that is, to indicate whether the end user is online. This can be done explicitly: you can make a call, using this service, to indicate that a particular end user is online or offline. This is also done automatically: in projects that use channels, the end user's presence is published automatically on a "presence" channel that is specific to each group. See [complete details on the Presence Service](http://forio.com/epicenter/docs/public/api_adapters/generated/presence-api-service/) and also the updated [Epicenter Channel Manager's getPresenceChannel()](http://forio.com/epicenter/docs/public/api_adapters/generated/epicenter-channel-manager/#getpresencechannel).
The Presence API Service provides methods to get and set the presence of an end user in a project, that is, to indicate whether the end user is online. This happens automatically: in projects that use channels, the end user's presence is published automatically on a "presence" channel that is specific to each group. You can also use the Presence API Service to do this explicitly: you can make a call to indicate that a particular end user is online or offline. See [complete details on the Presence Service](http://forio.com/epicenter/docs/public/api_adapters/generated/presence-api-service/) and also the updated [Epicenter Channel Manager's getPresenceChannel()](http://forio.com/epicenter/docs/public/api_adapters/generated/epicenter-channel-manager/#getpresencechannel).


### jQuery Version Requirements
Expand Down
6 changes: 3 additions & 3 deletions dist/components/assignment/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<meta name="description" content="">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.1.0/components/assignment/assignment.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.2.0/components/assignment/assignment.css">
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/lodash.js/2.4.1/lodash.js"></script>
</head>
Expand Down Expand Up @@ -73,8 +73,8 @@
</div>
</div>
<!-- make sure to include jquery, epicenter.js and assignment.js -->
<script src="https://forio.com/tools/js-libs/2.1.0/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.1.0/components/assignment/assignment.js"></script>
<script src="https://forio.com/tools/js-libs/2.2.0/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.2.0/components/assignment/assignment.js"></script>
<script>
new window.forio.MultiplayerAssignmentComponent({
el: '#assignment-component',
Expand Down
6 changes: 3 additions & 3 deletions dist/components/login/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,12 @@
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.2/css/bootstrap.min.css">

<!-- login.css provides styling for the group selector pop over dialog -->
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.1.0/components/login/login.css">
<link rel="stylesheet" href="https://forio.com/tools/js-libs/2.2.0/components/login/login.css">

<!-- make sure to include jquery, epicenter.js and login.js -->
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.1.0/jquery.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.1.0/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.1.0/components/login/login.js"></script>
<script src="https://forio.com/tools/js-libs/2.2.0/epicenter.min.js"></script>
<script src="https://forio.com/tools/js-libs/2.2.0/components/login/login.js"></script>
</head>
<body>
<!--
Expand Down
4 changes: 2 additions & 2 deletions dist/epicenter.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/epicenter.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "epicenter-js",
"version": "2.1.0",
"version": "2.2.0",
"repository": {
"type": "git",
"url": "https://github.com/forio/epicenter-js-libs"
Expand Down
21 changes: 21 additions & 0 deletions tests/spec/test-variables-api-service.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,27 @@
var req = server.requests.pop();
req.requestHeaders.should.not.have.property('X-AutoRestore');
});

it('should call GET with & in variable name', function () {
vs.query(['&saved', '.price&']);
var req = server.requests.pop();
req.url.should.equal(baseURL + ';/variables/?include=&saved,.price&');
});

it('should call GET with & in long variable names', function () {
var variableArray = [];
for (var i = 0; i < 500; i++) {
var name = '&variable';
variableArray.push(name);
}
vs.query(variableArray);
server.respond();
server.requests.length.should.be.above(1);
server.requests.forEach(function (xhr) {
xhr.url.length.should.be.below(2049);
});

});
});


Expand Down

0 comments on commit 7659c50

Please sign in to comment.