sequenceserver 1.1.0.beta → 1.1.0.beta2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/.travis.yml +7 -7
  3. data/README.md +9 -11
  4. data/Rakefile +2 -15
  5. data/lib/sequenceserver/database.rb +7 -1
  6. data/lib/sequenceserver/routes.rb +5 -2
  7. data/lib/sequenceserver/version.rb +1 -1
  8. data/lib/sequenceserver.rb +3 -1
  9. data/package.json +2 -3
  10. data/public/config.js +0 -7
  11. data/public/css/sequenceserver.css +8 -17
  12. data/public/css/sequenceserver.min.css +2 -2
  13. data/public/js/report.js +62 -45
  14. data/public/js/search.js +24 -17
  15. data/public/js/sequenceserver.js +23 -60
  16. data/public/sequenceserver-report.min.js +17 -0
  17. data/public/sequenceserver-search.min.js +11 -0
  18. data/sequenceserver.gemspec +5 -5
  19. data/spec/capybara_spec.rb +3 -3
  20. data/spec/sequence_spec.rb +2 -2
  21. data/views/layout.erb +1 -13
  22. data/views/report.erb +13 -0
  23. data/views/search.erb +45 -0
  24. metadata +26 -92
  25. data/public/css/sequenceserver.min.css.gz +0 -0
  26. data/public/sequenceserver.min.js +0 -26
  27. data/public/sequenceserver.min.js.gz +0 -0
  28. data/public/vendor/npm/object-assign@2.1.1/.jspm-hash +0 -1
  29. data/public/vendor/npm/object-assign@2.1.1/.jspm.json +0 -72
  30. data/public/vendor/npm/object-assign@2.1.1/index.js +0 -27
  31. data/public/vendor/npm/object-assign@2.1.1/package.json +0 -38
  32. data/public/vendor/npm/object-assign@2.1.1.js +0 -1
  33. data/public/vendor/npm/qs@2.4.1/.jshintignore +0 -1
  34. data/public/vendor/npm/qs@2.4.1/.jshintrc +0 -10
  35. data/public/vendor/npm/qs@2.4.1/.jspm-hash +0 -1
  36. data/public/vendor/npm/qs@2.4.1/.jspm.json +0 -61
  37. data/public/vendor/npm/qs@2.4.1/.npmignore +0 -18
  38. data/public/vendor/npm/qs@2.4.1/.travis.yml +0 -6
  39. data/public/vendor/npm/qs@2.4.1/CHANGELOG.md +0 -68
  40. data/public/vendor/npm/qs@2.4.1/CONTRIBUTING.md +0 -1
  41. data/public/vendor/npm/qs@2.4.1/LICENSE +0 -28
  42. data/public/vendor/npm/qs@2.4.1/Makefile +0 -8
  43. data/public/vendor/npm/qs@2.4.1/README.md +0 -233
  44. data/public/vendor/npm/qs@2.4.1/index.js +0 -2
  45. data/public/vendor/npm/qs@2.4.1/lib/index.js +0 -8
  46. data/public/vendor/npm/qs@2.4.1/lib/parse.js +0 -100
  47. data/public/vendor/npm/qs@2.4.1/lib/stringify.js +0 -67
  48. data/public/vendor/npm/qs@2.4.1/lib/utils.js +0 -132
  49. data/public/vendor/npm/qs@2.4.1/lib.js +0 -2
  50. data/public/vendor/npm/qs@2.4.1/package.json +0 -29
  51. data/public/vendor/npm/qs@2.4.1/test/parse.js +0 -359
  52. data/public/vendor/npm/qs@2.4.1.js +0 -1
  53. data/public/vendor/npm/react-router@0.13.3/.jspm-hash +0 -1
  54. data/public/vendor/npm/react-router@0.13.3/.jspm.json +0 -70
  55. data/public/vendor/npm/react-router@0.13.3/README.md +0 -140
  56. data/public/vendor/npm/react-router@0.13.3/lib/Cancellation.js +0 -9
  57. data/public/vendor/npm/react-router@0.13.3/lib/History.js +0 -31
  58. data/public/vendor/npm/react-router@0.13.3/lib/Match.js +0 -80
  59. data/public/vendor/npm/react-router@0.13.3/lib/Navigation.js +0 -22
  60. data/public/vendor/npm/react-router@0.13.3/lib/PathUtils.js +0 -154
  61. data/public/vendor/npm/react-router@0.13.3/lib/PropTypes.js +0 -15
  62. data/public/vendor/npm/react-router@0.13.3/lib/Redirect.js +0 -12
  63. data/public/vendor/npm/react-router@0.13.3/lib/Route.js +0 -133
  64. data/public/vendor/npm/react-router@0.13.3/lib/ScrollHistory.js +0 -53
  65. data/public/vendor/npm/react-router@0.13.3/lib/State.js +0 -25
  66. data/public/vendor/npm/react-router@0.13.3/lib/TestUtils.js +0 -102
  67. data/public/vendor/npm/react-router@0.13.3/lib/Transition.js +0 -58
  68. data/public/vendor/npm/react-router@0.13.3/lib/actions/LocationActions.js +0 -25
  69. data/public/vendor/npm/react-router@0.13.3/lib/behaviors/ImitateBrowserBehavior.js +0 -19
  70. data/public/vendor/npm/react-router@0.13.3/lib/behaviors/ScrollToTopBehavior.js +0 -15
  71. data/public/vendor/npm/react-router@0.13.3/lib/components/ActiveHandler.js +0 -111
  72. data/public/vendor/npm/react-router@0.13.3/lib/components/ContextWrapper.js +0 -39
  73. data/public/vendor/npm/react-router@0.13.3/lib/components/DefaultRoute.js +0 -41
  74. data/public/vendor/npm/react-router@0.13.3/lib/components/Link.js +0 -119
  75. data/public/vendor/npm/react-router@0.13.3/lib/components/NotFoundRoute.js +0 -41
  76. data/public/vendor/npm/react-router@0.13.3/lib/components/Redirect.js +0 -40
  77. data/public/vendor/npm/react-router@0.13.3/lib/components/Route.js +0 -67
  78. data/public/vendor/npm/react-router@0.13.3/lib/components/RouteHandler.js +0 -111
  79. data/public/vendor/npm/react-router@0.13.3/lib/createRouter.js +0 -329
  80. data/public/vendor/npm/react-router@0.13.3/lib/createRoutesFromReactChildren.js +0 -59
  81. data/public/vendor/npm/react-router@0.13.3/lib/getWindowScrollPosition.js +0 -19
  82. data/public/vendor/npm/react-router@0.13.3/lib/index.js +0 -26
  83. data/public/vendor/npm/react-router@0.13.3/lib/isReactChildren.js +0 -14
  84. data/public/vendor/npm/react-router@0.13.3/lib/locations/HashLocation.js +0 -79
  85. data/public/vendor/npm/react-router@0.13.3/lib/locations/HistoryLocation.js +0 -64
  86. data/public/vendor/npm/react-router@0.13.3/lib/locations/RefreshLocation.js +0 -18
  87. data/public/vendor/npm/react-router@0.13.3/lib/locations/StaticLocation.js +0 -50
  88. data/public/vendor/npm/react-router@0.13.3/lib/locations/TestLocation.js +0 -104
  89. data/public/vendor/npm/react-router@0.13.3/lib/runRouter.js +0 -16
  90. data/public/vendor/npm/react-router@0.13.3/lib/supportsHistory.js +0 -17
  91. data/public/vendor/npm/react-router@0.13.3/lib.js +0 -2
  92. data/public/vendor/npm/react-router@0.13.3/package.json +0 -36
  93. data/public/vendor/npm/react-router@0.13.3/umd/ReactRouter.js +0 -3388
  94. data/public/vendor/npm/react-router@0.13.3/umd/ReactRouter.min.js +0 -8
@@ -1,79 +0,0 @@
1
- /* */
2
- 'use strict';
3
- var LocationActions = require("../actions/LocationActions");
4
- var History = require("../History");
5
- var _listeners = [];
6
- var _isListening = false;
7
- var _actionType;
8
- function notifyChange(type) {
9
- if (type === LocationActions.PUSH)
10
- History.length += 1;
11
- var change = {
12
- path: HashLocation.getCurrentPath(),
13
- type: type
14
- };
15
- _listeners.forEach(function(listener) {
16
- listener.call(HashLocation, change);
17
- });
18
- }
19
- function ensureSlash() {
20
- var path = HashLocation.getCurrentPath();
21
- if (path.charAt(0) === '/') {
22
- return true;
23
- }
24
- HashLocation.replace('/' + path);
25
- return false;
26
- }
27
- function onHashChange() {
28
- if (ensureSlash()) {
29
- var curActionType = _actionType;
30
- _actionType = null;
31
- notifyChange(curActionType || LocationActions.POP);
32
- }
33
- }
34
- var HashLocation = {
35
- addChangeListener: function addChangeListener(listener) {
36
- _listeners.push(listener);
37
- ensureSlash();
38
- if (!_isListening) {
39
- if (window.addEventListener) {
40
- window.addEventListener('hashchange', onHashChange, false);
41
- } else {
42
- window.attachEvent('onhashchange', onHashChange);
43
- }
44
- _isListening = true;
45
- }
46
- },
47
- removeChangeListener: function removeChangeListener(listener) {
48
- _listeners = _listeners.filter(function(l) {
49
- return l !== listener;
50
- });
51
- if (_listeners.length === 0) {
52
- if (window.removeEventListener) {
53
- window.removeEventListener('hashchange', onHashChange, false);
54
- } else {
55
- window.removeEvent('onhashchange', onHashChange);
56
- }
57
- _isListening = false;
58
- }
59
- },
60
- push: function push(path) {
61
- _actionType = LocationActions.PUSH;
62
- window.location.hash = path;
63
- },
64
- replace: function replace(path) {
65
- _actionType = LocationActions.REPLACE;
66
- window.location.replace(window.location.pathname + window.location.search + '#' + path);
67
- },
68
- pop: function pop() {
69
- _actionType = LocationActions.POP;
70
- History.back();
71
- },
72
- getCurrentPath: function getCurrentPath() {
73
- return decodeURI(window.location.href.split('#')[1] || '');
74
- },
75
- toString: function toString() {
76
- return '<HashLocation>';
77
- }
78
- };
79
- module.exports = HashLocation;
@@ -1,64 +0,0 @@
1
- /* */
2
- 'use strict';
3
- var LocationActions = require("../actions/LocationActions");
4
- var History = require("../History");
5
- var _listeners = [];
6
- var _isListening = false;
7
- function notifyChange(type) {
8
- var change = {
9
- path: HistoryLocation.getCurrentPath(),
10
- type: type
11
- };
12
- _listeners.forEach(function(listener) {
13
- listener.call(HistoryLocation, change);
14
- });
15
- }
16
- function onPopState(event) {
17
- if (event.state === undefined) {
18
- return;
19
- }
20
- notifyChange(LocationActions.POP);
21
- }
22
- var HistoryLocation = {
23
- addChangeListener: function addChangeListener(listener) {
24
- _listeners.push(listener);
25
- if (!_isListening) {
26
- if (window.addEventListener) {
27
- window.addEventListener('popstate', onPopState, false);
28
- } else {
29
- window.attachEvent('onpopstate', onPopState);
30
- }
31
- _isListening = true;
32
- }
33
- },
34
- removeChangeListener: function removeChangeListener(listener) {
35
- _listeners = _listeners.filter(function(l) {
36
- return l !== listener;
37
- });
38
- if (_listeners.length === 0) {
39
- if (window.addEventListener) {
40
- window.removeEventListener('popstate', onPopState, false);
41
- } else {
42
- window.removeEvent('onpopstate', onPopState);
43
- }
44
- _isListening = false;
45
- }
46
- },
47
- push: function push(path) {
48
- window.history.pushState({path: path}, '', path);
49
- History.length += 1;
50
- notifyChange(LocationActions.PUSH);
51
- },
52
- replace: function replace(path) {
53
- window.history.replaceState({path: path}, '', path);
54
- notifyChange(LocationActions.REPLACE);
55
- },
56
- pop: History.back,
57
- getCurrentPath: function getCurrentPath() {
58
- return decodeURI(window.location.pathname + window.location.search);
59
- },
60
- toString: function toString() {
61
- return '<HistoryLocation>';
62
- }
63
- };
64
- module.exports = HistoryLocation;
@@ -1,18 +0,0 @@
1
- /* */
2
- 'use strict';
3
- var HistoryLocation = require("./HistoryLocation");
4
- var History = require("../History");
5
- var RefreshLocation = {
6
- push: function push(path) {
7
- window.location = path;
8
- },
9
- replace: function replace(path) {
10
- window.location.replace(path);
11
- },
12
- pop: History.back,
13
- getCurrentPath: HistoryLocation.getCurrentPath,
14
- toString: function toString() {
15
- return '<RefreshLocation>';
16
- }
17
- };
18
- module.exports = RefreshLocation;
@@ -1,50 +0,0 @@
1
- /* */
2
- 'use strict';
3
-
4
- var _classCallCheck = function (instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError('Cannot call a class as a function'); } };
5
-
6
- var _createClass = (function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ('value' in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; })();
7
-
8
- var invariant = require('react/lib/invariant');
9
-
10
- function throwCannotModify() {
11
- invariant(false, 'You cannot modify a static location');
12
- }
13
-
14
- /**
15
- * A location that only ever contains a single path. Useful in
16
- * stateless environments like servers where there is no path history,
17
- * only the path that was used in the request.
18
- */
19
-
20
- var StaticLocation = (function () {
21
- function StaticLocation(path) {
22
- _classCallCheck(this, StaticLocation);
23
-
24
- this.path = path;
25
- }
26
-
27
- _createClass(StaticLocation, [{
28
- key: 'getCurrentPath',
29
- value: function getCurrentPath() {
30
- return this.path;
31
- }
32
- }, {
33
- key: 'toString',
34
- value: function toString() {
35
- return '<StaticLocation path="' + this.path + '">';
36
- }
37
- }]);
38
-
39
- return StaticLocation;
40
- })();
41
-
42
- // TODO: Include these in the above class definition
43
- // once we can use ES7 property initializers.
44
- // https://github.com/babel/babel/issues/619
45
-
46
- StaticLocation.prototype.push = throwCannotModify;
47
- StaticLocation.prototype.replace = throwCannotModify;
48
- StaticLocation.prototype.pop = throwCannotModify;
49
-
50
- module.exports = StaticLocation;
@@ -1,104 +0,0 @@
1
- /* */
2
- 'use strict';
3
- var _classCallCheck = function(instance, Constructor) {
4
- if (!(instance instanceof Constructor)) {
5
- throw new TypeError('Cannot call a class as a function');
6
- }
7
- };
8
- var _createClass = (function() {
9
- function defineProperties(target, props) {
10
- for (var i = 0; i < props.length; i++) {
11
- var descriptor = props[i];
12
- descriptor.enumerable = descriptor.enumerable || false;
13
- descriptor.configurable = true;
14
- if ('value' in descriptor)
15
- descriptor.writable = true;
16
- Object.defineProperty(target, descriptor.key, descriptor);
17
- }
18
- }
19
- return function(Constructor, protoProps, staticProps) {
20
- if (protoProps)
21
- defineProperties(Constructor.prototype, protoProps);
22
- if (staticProps)
23
- defineProperties(Constructor, staticProps);
24
- return Constructor;
25
- };
26
- })();
27
- var invariant = require("react/lib/invariant");
28
- var LocationActions = require("../actions/LocationActions");
29
- var History = require("../History");
30
- var TestLocation = (function() {
31
- function TestLocation(history) {
32
- _classCallCheck(this, TestLocation);
33
- this.history = history || [];
34
- this.listeners = [];
35
- this._updateHistoryLength();
36
- }
37
- _createClass(TestLocation, [{
38
- key: 'needsDOM',
39
- get: function() {
40
- return false;
41
- }
42
- }, {
43
- key: '_updateHistoryLength',
44
- value: function _updateHistoryLength() {
45
- History.length = this.history.length;
46
- }
47
- }, {
48
- key: '_notifyChange',
49
- value: function _notifyChange(type) {
50
- var change = {
51
- path: this.getCurrentPath(),
52
- type: type
53
- };
54
- for (var i = 0,
55
- len = this.listeners.length; i < len; ++i)
56
- this.listeners[i].call(this, change);
57
- }
58
- }, {
59
- key: 'addChangeListener',
60
- value: function addChangeListener(listener) {
61
- this.listeners.push(listener);
62
- }
63
- }, {
64
- key: 'removeChangeListener',
65
- value: function removeChangeListener(listener) {
66
- this.listeners = this.listeners.filter(function(l) {
67
- return l !== listener;
68
- });
69
- }
70
- }, {
71
- key: 'push',
72
- value: function push(path) {
73
- this.history.push(path);
74
- this._updateHistoryLength();
75
- this._notifyChange(LocationActions.PUSH);
76
- }
77
- }, {
78
- key: 'replace',
79
- value: function replace(path) {
80
- invariant(this.history.length, 'You cannot replace the current path with no history');
81
- this.history[this.history.length - 1] = path;
82
- this._notifyChange(LocationActions.REPLACE);
83
- }
84
- }, {
85
- key: 'pop',
86
- value: function pop() {
87
- this.history.pop();
88
- this._updateHistoryLength();
89
- this._notifyChange(LocationActions.POP);
90
- }
91
- }, {
92
- key: 'getCurrentPath',
93
- value: function getCurrentPath() {
94
- return this.history[this.history.length - 1];
95
- }
96
- }, {
97
- key: 'toString',
98
- value: function toString() {
99
- return '<TestLocation>';
100
- }
101
- }]);
102
- return TestLocation;
103
- })();
104
- module.exports = TestLocation;
@@ -1,16 +0,0 @@
1
- /* */
2
- 'use strict';
3
- var createRouter = require("./createRouter");
4
- function runRouter(routes, location, callback) {
5
- if (typeof location === 'function') {
6
- callback = location;
7
- location = null;
8
- }
9
- var router = createRouter({
10
- routes: routes,
11
- location: location
12
- });
13
- router.run(callback);
14
- return router;
15
- }
16
- module.exports = runRouter;
@@ -1,17 +0,0 @@
1
- /* */
2
- 'use strict';
3
-
4
- function supportsHistory() {
5
- /*! taken from modernizr
6
- * https://github.com/Modernizr/Modernizr/blob/master/LICENSE
7
- * https://github.com/Modernizr/Modernizr/blob/master/feature-detects/history.js
8
- * changed to avoid false negatives for Windows Phones: https://github.com/rackt/react-router/issues/586
9
- */
10
- var ua = navigator.userAgent;
11
- if ((ua.indexOf('Android 2.') !== -1 || ua.indexOf('Android 4.0') !== -1) && ua.indexOf('Mobile Safari') !== -1 && ua.indexOf('Chrome') === -1 && ua.indexOf('Windows Phone') === -1) {
12
- return false;
13
- }
14
- return window.history && 'pushState' in window.history;
15
- }
16
-
17
- module.exports = supportsHistory;
@@ -1,2 +0,0 @@
1
- /* */
2
- module.exports = require('./lib/index');
@@ -1,36 +0,0 @@
1
- {
2
- "name": "react-router",
3
- "version": "0.13.3",
4
- "description": "A complete routing library for React.js",
5
- "main": "lib",
6
- "repository": {
7
- "type": "git",
8
- "url": "https://github.com/rackt/react-router.git"
9
- },
10
- "homepage": "https://github.com/rackt/react-router/blob/latest/README.md",
11
- "bugs": "https://github.com/rackt/react-router/issues",
12
- "authors": [
13
- "Ryan Florence",
14
- "Michael Jackson"
15
- ],
16
- "license": "MIT",
17
- "peerDependencies": {
18
- "react": "0.13.x"
19
- },
20
- "dependencies": {
21
- "object-assign": "^2.0.0",
22
- "qs": "2.4.1"
23
- },
24
- "tags": [
25
- "react",
26
- "router"
27
- ],
28
- "keywords": [
29
- "react",
30
- "react-component",
31
- "routing",
32
- "route",
33
- "routes",
34
- "router"
35
- ]
36
- }