forked from nightscout/minimed-connect-to-nightscout
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
271 changed files
with
25,071 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
* text=auto |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.DS_Store | ||
/*.xml | ||
/*.png | ||
/docs/*.js | ||
/docs/*.xml | ||
/docs/_build | ||
/tmp | ||
*.pyc |
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
docs | ||
modules/vendors | ||
modules/events.js | ||
modules/querystring.js | ||
samples/** | ||
tests/clitests/** | ||
tests/testdir/** | ||
tmp | ||
./*.js | ||
./phantomjs*/* | ||
./engine/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"asi": true, | ||
"browser": true, | ||
"debug": true, | ||
"devel": true, | ||
"eqeqeq": true, | ||
"evil": true, | ||
"maxparams": 5, | ||
"maxdepth": 3, | ||
"maxstatements": 15, | ||
"maxcomplexity": 7, | ||
"proto": true, | ||
"regexdash": true, | ||
"strict": true, | ||
"sub": true, | ||
"trailing": true, | ||
"undef": true, | ||
|
||
"predef" : [ | ||
"exports", | ||
"phantom", | ||
"window", | ||
"require" | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
branches: | ||
only: | ||
- "master" | ||
|
||
before_install: | ||
- echo "Installing $ENGINE $ENGINE_VERSION from $ENGINE_ARCHIVE_URL" | ||
- wget $ENGINE_ARCHIVE_URL --output-document=engine.tar.bz2 | ||
- mkdir engine && tar --strip-components=1 -xvf engine.tar.bz2 -C engine | ||
- if [[ $ENGINE == 'phantomjs' ]]; then | ||
ENGINE_EXECUTABLE="engine/bin/phantomjs"; | ||
elif [[ $ENGINE == 'slimerjs' ]]; then | ||
ENGINE_EXECUTABLE="engine/slimerjs"; | ||
else | ||
echo "Unsupported engine $ENGINE"; | ||
fi | ||
- ls -la $ENGINE_EXECUTABLE && $ENGINE_EXECUTABLE --version; | ||
- export ENGINE_EXECUTABLE="$ENGINE_EXECUTABLE $ENGINE_FLAGS" | ||
|
||
install: | ||
- sudo apt-get install -qq mono-devel mono-mcs | ||
|
||
before_script: | ||
- "npm install -g [email protected]" | ||
|
||
script: | ||
- "make $MAKE_TEST_COMMAND" | ||
|
||
env: | ||
global: | ||
- ENGINE_FLAGS="--local-to-remote-url-access=yes --ignore-ssl-errors=yes" | ||
matrix: | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.8.2" MAKE_TEST_COMMAND="test-dotNET" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.8.2-linux-x86_64.tar.bz2" | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.8.2" MAKE_TEST_COMMAND="test" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.8.2-linux-x86_64.tar.bz2" | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.9.0" MAKE_TEST_COMMAND="test-dotNET" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2" | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.9.0" MAKE_TEST_COMMAND="test" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.0-linux-x86_64.tar.bz2" | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.9.1" MAKE_TEST_COMMAND="test-dotNET" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2" | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.9.1" MAKE_TEST_COMMAND="test" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.1-linux-x86_64.tar.bz2" | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.9.2" MAKE_TEST_COMMAND="test-dotNET" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2" | ||
- ENGINE="phantomjs" ENGINE_VERSION="1.9.2" MAKE_TEST_COMMAND="test" | ||
ENGINE_ARCHIVE_URL="https://phantomjs.googlecode.com/files/phantomjs-1.9.2-linux-x86_64.tar.bz2" | ||
- ENGINE="slimerjs" ENGINE_VERSION="0.8.4" MAKE_TEST_COMMAND="test-dotNET" | ||
ENGINE_ARCHIVE_URL="http://download.slimerjs.org/v0.8/0.8.4/slimerjs-0.8.4-linux-x86_64.tar.bz2" | ||
- ENGINE="slimerjs" ENGINE_VERSION="0.8.4" MAKE_TEST_COMMAND="test" | ||
ENGINE_ARCHIVE_URL="http://download.slimerjs.org/v0.8/0.8.4/slimerjs-0.8.4-linux-x86_64.tar.bz2" | ||
- ENGINE="slimerjs" ENGINE_VERSION="0.8.5" MAKE_TEST_COMMAND="test-dotNET" | ||
ENGINE_ARCHIVE_URL="http://download.slimerjs.org/v0.8/0.8.5/slimerjs-0.8.5-linux-x86_64.tar.bz2" | ||
- ENGINE="slimerjs" ENGINE_VERSION="0.8.5" MAKE_TEST_COMMAND="test" | ||
ENGINE_ARCHIVE_URL="http://download.slimerjs.org/v0.8/0.8.5/slimerjs-0.8.5-linux-x86_64.tar.bz2" | ||
|
||
notifications: | ||
irc: | ||
channels: | ||
- "irc.freenode.org#casperjs" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
[This file has moved to Github](https://github.com/n1k0/casperjs/releases) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,93 @@ | ||
# Contribution Guide | ||
|
||
*Note: this guide has been heavily inspired by [PhantomJS' one](https://github.com/ariya/phantomjs/blob/master/CONTRIBUTING.md).* | ||
|
||
**This page describes how to contribute changes to the [CasperJS](http://casperjs.org/) project.** | ||
|
||
Please do **not** create a pull request without reading this guide first. Failure to do so may result in the **rejection** of the pull request. | ||
|
||
## For The Impatients | ||
|
||
**Work on a feature branch**. | ||
If your changes need to be modified due to some reviews, it is less clutter to tweak an isolated feature branch and push it again. | ||
|
||
**Create a ticket in the [issue tracker](https://github.com/n1k0/casperjs/issues/)**. | ||
This serves as a placeholder for important feedback, review, or any future updates. **Please ensure searching the bugtracker for an already opened issue matching your case before filing a new issue.** | ||
|
||
In the commit message(s): | ||
|
||
* **Keep the first line short**. Write additional paragraphs if necessary. | ||
* **Reference an opened issue**, by referencing the issue ID prefixed by a `#` and the keyword `refs`, eg. `refs #123` | ||
|
||
Sample commit message: | ||
|
||
> refs #123 - fixed error message formatting | ||
> | ||
> (optional: a short explanation of what the patch actually does) | ||
**Run tests** | ||
|
||
Run CasperJS' test suite to see you didn't break something: | ||
|
||
$ casperjs selftest | ||
|
||
The result status bar **must be green** before sending your PR. | ||
|
||
## Communicate | ||
|
||
**Improvement and feature request**. If you have an improvement idea, please send an email to the [mailing list](http://groups.google.com/group/casperjs) (preferable than contacting the developers directly) so that other people can give their insights and opinions. This is also important to avoid duplicate work. | ||
|
||
**Help request**. If you're stuck using CasperJS and don't understand how to achieve something, please [ask on the mailing-list](https://groups.google.com/forum/#!forum/casperjs) first. Please don't ask for all the kind people to write your scripts for you. | ||
|
||
**Ensure the issue is related to CasperJS**. Please try to reproduce the issue using plain PhantomJS. If it works with the native PhantomJS API but doesn't with CasperJS, then the issue is probably valid. In the opposite case, please file an issue on [PhantomJS issue tracker](http://code.google.com/p/phantomjs/issues/list). | ||
|
||
**Extending with new API**. Whenever you want to introduce a new API, please send an email to the mailing list along with the link to the issue if any. It may require few iterations to agree on the final API and hence it is important to engage all interested parties as early as possible. | ||
|
||
## Get Ready | ||
|
||
### Use Feature Branch | ||
|
||
To isolate your change, please avoid working on the master branch. Instead, work on a *feature branch* (often also known as *topic branch*). You can create a new branch (example here crash-fix) off the master branch by using: | ||
|
||
git checkout -b crash-fix master | ||
|
||
Refer to your favorite Git tutorial/book for further detailed help. | ||
|
||
Some good practices for the feature branch: | ||
|
||
* Give it a meaningful name instead of, e.g. `prevent-zero-divide` instead of just `fix` | ||
* Make *granular* and *atomic* commits, e.g. do not mix a typo fix with some major refactoring | ||
* Keep one branch for one specific issue. If you need to work on other unrelated issues, create another branch. | ||
|
||
### Write tests | ||
|
||
CasperJS being partly a testing framework, how irrelevant would be to send a pull request with no test? So, please take the time to write and attach tests to your PR. Furthermore, testing with CasperJS is quite [exhaustively documented](http://casperjs.org/testing.html). | ||
|
||
### Run tests! | ||
|
||
This may sound obvious but **don't send pull requests which break the casperjs test suite**. | ||
|
||
To see if your modifications broke the suite, just run: | ||
|
||
$ casperjs selftest | ||
|
||
### Write documentation | ||
|
||
Do you appreciate the [CasperJS documentation](http://casperjs.org/)? I do too. As the documentation contents are managed and generated using Github, Markdown and CasperJS itself, take the time to read the [Documentation Contribution Guide](https://github.com/n1k0/casperjs/blob/gh-pages/README.md#casperjs-documentation) and write the documentation related to your PR whenever applicable. | ||
|
||
**Note:** As the documentation is handled in a [dedicated separated `gh-pages` branch](https://github.com/n1k0/casperjs/tree/gh-pages), you'll have to send a dedicated PR for doc patches. I'm working on a more comfortable solution, but it's no easy task though. | ||
|
||
## Review and Merge | ||
|
||
When your branch is ready, send the pull request. | ||
|
||
While it is not always the case, often it is necessary to improve parts of your code in the branch. This is the actual review process. | ||
|
||
Here is a check list for the review: | ||
|
||
* It does not break the test suite | ||
* There is no typo | ||
* The coding style follows the existing one | ||
* There is a reasonable amount of comment | ||
* The license header is intact | ||
* All examples are still working |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,109 @@ | ||
# CasperJS contributors | ||
|
||
You can check out the [contribution graphs on github](https://github.com/n1k0/casperjs/graphs/contributors). | ||
|
||
``` | ||
$ git shortlog -s -n | cut -c8- | ||
Nicolas Perriault | ||
Mickaël Andrieu | ||
Laurent Jouanneau | ||
hexid | ||
Brikou CARRE | ||
oncletom | ||
Matt DuVall | ||
Nathan Black | ||
hannyu | ||
Julien Muetton | ||
Chris Bosco | ||
Matt Bowman | ||
Shiryaev Andrey | ||
mickaelandrieu | ||
Clochix | ||
Chris Lorenzo | ||
Victor Yap | ||
JF Paradis | ||
Matthew DuVall | ||
Rob Barreca | ||
Oleg Pudeyev | ||
pborreli | ||
nrabinowitz | ||
Darrell Hamilton | ||
Tyler Ritchie | ||
Andrew Childs | ||
Eric Bouchut | ||
Dave Lee | ||
Solomon White | ||
Luke Rodgers | ||
reina.sweet | ||
renatodarrigo | ||
Donovan Hutchinson | ||
Sean Massa | ||
Vladimir Chizhov | ||
Samuel Gabel | ||
Reina Sweet | ||
Jan Schaumann | ||
fwebdev | ||
Reid Lynch | ||
Justin Collum | ||
Philip Hansen | ||
Michael Geers | ||
Orchestrator81 | ||
Nick Currier | ||
Julien Moulin | ||
Elmar Langholz | ||
Jason Funk | ||
Lee Byrd | ||
Thomas Rosenau | ||
V Sreekanth | ||
Patrick Reagan | ||
Andrew de Andrade | ||
Andy Shinn | ||
Ben Johnson | ||
Ben Lowery | ||
Bert Pareyn | ||
Brandon Bethke | ||
Charlie Park | ||
Chris Winters | ||
Christophe Benz | ||
Dharrya | ||
Dmitry Menshikov | ||
Florent DUBOST | ||
Harrison Reiser | ||
Itamar Nabriski | ||
Ivan | ||
Jamey J. DeOrio | ||
Jan Pochyla | ||
Jan-Martin Fruehwacht | ||
John F. Douthat | ||
Julian Gruber | ||
Justin Marsan | ||
Justin Slattery | ||
Justine Tunney | ||
KaroDidi | ||
Leandro Boscariol | ||
Maisons du monde | ||
Marcel Duran | ||
Mathieu Agopian | ||
Mehdi Kabab | ||
Miguel González | ||
Mikhail Korobov | ||
Mikko Peltonen | ||
Narno | ||
Pascal Borreli | ||
Phillip Alexander | ||
Rafael | ||
Rafael Garcia | ||
Raphaël Benitte | ||
Rock Li | ||
Scott | ||
Thomas Parisot | ||
Tim Bunce | ||
Tzvi Friedman | ||
Yasuo Ohgaki | ||
Yevgeny Smirnov | ||
alfetopito | ||
jayseeg | ||
jean-philippe serafin | ||
shekyan | ||
snkashis | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
Copyright (c) 2011-2012 Nicolas Perriault | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is furnished | ||
to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN | ||
THE SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
.PHONY: default test test-dotNET docs selftest compile-dotNET selftest-dotNET clitest jshint | ||
|
||
default: test | ||
|
||
test: selftest clitest jshint | ||
|
||
test-dotNET: compile-dotNET selftest-dotNET | ||
|
||
docs: | ||
sphinx-build -b html ./docs docs/_build | ||
|
||
selftest: | ||
bin/casperjs selftest | ||
|
||
compile-dotNET: | ||
mcs -langversion:3 -out:bin/casperjs.exe src/casperjs.cs | ||
|
||
selftest-dotNET: | ||
bin/casperjs.exe selftest | ||
|
||
clitest: | ||
python tests/clitests/runtests.py | ||
|
||
jshint: | ||
jshint . |
Oops, something went wrong.