dkron-rb 0.10.0 → 0.11.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/README.md +1 -5
  4. data/config.json +1 -1
  5. data/dkron-rb.gemspec +2 -2
  6. data/lib/dkron-rb.rb +1 -5
  7. data/lib/dkron-rb/api/default_api.rb +1 -1
  8. data/lib/dkron-rb/api/executions_api.rb +1 -1
  9. data/lib/dkron-rb/api/jobs_api.rb +1 -1
  10. data/lib/dkron-rb/api/members_api.rb +1 -1
  11. data/lib/dkron-rb/api_client.rb +1 -1
  12. data/lib/dkron-rb/api_error.rb +1 -1
  13. data/lib/dkron-rb/configuration.rb +1 -1
  14. data/lib/dkron-rb/models/execution.rb +1 -1
  15. data/lib/dkron-rb/models/executor_config.rb +1 -1
  16. data/lib/dkron-rb/models/job.rb +1 -1
  17. data/lib/dkron-rb/models/member.rb +1 -1
  18. data/lib/dkron-rb/models/processors.rb +1 -1
  19. data/lib/dkron-rb/models/status.rb +1 -1
  20. data/lib/dkron-rb/version.rb +2 -2
  21. data/node_modules/isarray/build/build.js +209 -0
  22. data/node_modules/mime/build/build.js +11 -0
  23. data/node_modules/mime/build/test.js +57 -0
  24. data/spec/api/default_api_spec.rb +12 -24
  25. data/spec/api/executions_api_spec.rb +8 -12
  26. data/spec/api/jobs_api_spec.rb +16 -36
  27. data/spec/api/members_api_spec.rb +8 -12
  28. data/spec/api_client_spec.rb +2 -13
  29. data/spec/configuration_spec.rb +2 -13
  30. data/spec/models/execution_spec.rb +12 -36
  31. data/spec/models/executor_config_spec.rb +1 -1
  32. data/spec/models/job_spec.rb +45 -87
  33. data/spec/models/member_spec.rb +17 -61
  34. data/spec/models/processors_spec.rb +1 -1
  35. data/spec/models/status_spec.rb +6 -6
  36. data/spec/spec_helper.rb +2 -13
  37. metadata +10 -27
  38. data/pkg/dkron-rb-0.9.2.gem +0 -0
  39. data/seeds.rb +0 -21
  40. data/spec/api/main_api_spec.rb +0 -65
  41. data/spec/models/agent_spec.rb +0 -36
  42. data/spec/models/executor_shell_spec.rb +0 -54
  43. data/spec/models/inline_response_200_spec.rb +0 -66
  44. data/spec/models/processor_files_spec.rb +0 -48
  45. data/spec/models/processor_log_spec.rb +0 -42
  46. data/spec/models/processor_syslog_spec.rb +0 -42
  47. data/spec/models/serf_spec.rb +0 -36
  48. data/spec/models/tags_spec.rb +0 -36
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d47418ee23ef236ea3215e047e52b34818540f7a
4
- data.tar.gz: 19dc87903a8869b13649e4b24866227f63d39f3c
3
+ metadata.gz: 49834e6dc68ff58937a3d32e05959ba28251551c
4
+ data.tar.gz: d84b01ede79f593daadeee41eba39f1f7d2afb61
5
5
  SHA512:
6
- metadata.gz: a0fcba3dff41e977d1269f1942a24ac5c42152d531f04d19cb6e0c362f263defcef7534d133bc980527a0f1f80fbc4db49ac74e6d23bd404fe9588d359d9ce06
7
- data.tar.gz: f460616e1582573745ee7514c03a7057b84568c10a45c185caf8f1575a1582371770a605165d777c41065b21672c265d02ee4843f37774bd8199eadc2ac937dd
6
+ metadata.gz: b3f3826cea04680a60ca4e9411050b56e1bcd0454d941a42d4d1a11efb7d92c3c79023684c0c83f7543bfd9fd9692e7bbaea4e10b30b5454663b5201944083ba
7
+ data.tar.gz: e447340e8a3c3cb20f34b18b09b7ded1d4fcea68e7f01cae2aabad1955fb947a878e357ec696ebbf50a59015c0e9aee154677283195317458fbb2f3ead77c971
@@ -2,7 +2,7 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  dkron-rb (0.10.0)
5
- json (~> 2.1, >= 2.1.0)
5
+ json (~> 1.0)
6
6
  typhoeus (~> 1.0, >= 1.0.1)
7
7
 
8
8
  GEM
@@ -23,7 +23,7 @@ GEM
23
23
  ffi (>= 1.3.0)
24
24
  ffi (1.9.23)
25
25
  hashdiff (0.3.0)
26
- json (2.1.0)
26
+ json (1.8.6)
27
27
  rake (12.0.0)
28
28
  rspec (3.7.0)
29
29
  rspec-core (~> 3.7.0)
@@ -41,7 +41,7 @@ GEM
41
41
  safe_yaml (1.0.4)
42
42
  sys-uname (1.0.3)
43
43
  ffi (>= 1.0.0)
44
- typhoeus (1.3.0)
44
+ typhoeus (1.3.1)
45
45
  ethon (>= 0.9.0)
46
46
  vcr (3.0.3)
47
47
  webmock (1.24.6)
@@ -64,4 +64,4 @@ DEPENDENCIES
64
64
  webmock (~> 1.24, >= 1.24.3)
65
65
 
66
66
  BUNDLED WITH
67
- 1.14.4
67
+ 1.16.2
data/README.md CHANGED
@@ -6,7 +6,7 @@ You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes u
6
6
 
7
7
  This SDK is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
8
8
 
9
- - API version: 0.10.0
9
+ - API version: 0.11.2
10
10
  - Package version: 0.10.0
11
11
  - Build package: io.swagger.codegen.languages.RubyClientCodegen
12
12
 
@@ -87,12 +87,8 @@ Class | Method | HTTP request | Description
87
87
 
88
88
  - [Dkron::Execution](docs/Execution.md)
89
89
  - [Dkron::ExecutorConfig](docs/ExecutorConfig.md)
90
- - [Dkron::ExecutorShell](docs/ExecutorShell.md)
91
90
  - [Dkron::Job](docs/Job.md)
92
91
  - [Dkron::Member](docs/Member.md)
93
- - [Dkron::ProcessorFiles](docs/ProcessorFiles.md)
94
- - [Dkron::ProcessorLog](docs/ProcessorLog.md)
95
- - [Dkron::ProcessorSyslog](docs/ProcessorSyslog.md)
96
92
  - [Dkron::Processors](docs/Processors.md)
97
93
  - [Dkron::Status](docs/Status.md)
98
94
 
@@ -1,5 +1,5 @@
1
1
  {
2
2
  "gemName": "dkron-rb",
3
3
  "moduleName": "Dkron",
4
- "gemVersion": "0.10.0"
4
+ "gemVersion": "0.11.2"
5
5
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
7
7
 
8
- OpenAPI spec version: 0.10.0
8
+ OpenAPI spec version: 0.11.2
9
9
 
10
10
  Generated by: https://github.com/swagger-api/swagger-codegen.git
11
11
  Swagger Codegen version: 2.3.1
@@ -29,7 +29,7 @@ Gem::Specification.new do |s|
29
29
  s.required_ruby_version = ">= 1.9"
30
30
 
31
31
  s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
32
- s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+ s.add_runtime_dependency 'json', '~> 1', '>= 1.4'
33
33
 
34
34
  s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
35
35
  s.add_development_dependency 'vcr', '~> 3.0', '>= 3.0.1'
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -19,12 +19,8 @@ require 'dkron-rb/configuration'
19
19
  # Models
20
20
  require 'dkron-rb/models/execution'
21
21
  require 'dkron-rb/models/executor_config'
22
- require 'dkron-rb/models/executor_shell'
23
22
  require 'dkron-rb/models/job'
24
23
  require 'dkron-rb/models/member'
25
- require 'dkron-rb/models/processor_files'
26
- require 'dkron-rb/models/processor_log'
27
- require 'dkron-rb/models/processor_syslog'
28
24
  require 'dkron-rb/models/processors'
29
25
  require 'dkron-rb/models/status'
30
26
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -3,7 +3,7 @@
3
3
 
4
4
  #You can communicate with Dkron using a RESTful JSON API over HTTP. Dkron nodes usually listen on port `8080` for API requests. All examples in this section assume that you've found a running leader at `localhost:8080`. Dkron implements a RESTful JSON API over HTTP to communicate with software clients. Dkron listens in port `8080` by default. All examples in this section assume that you're using the default port. Default API responses are unformatted JSON add the `pretty=true` param to format the response.
5
5
 
6
- OpenAPI spec version: 0.10.0
6
+ OpenAPI spec version: 0.11.2
7
7
 
8
8
  Generated by: https://github.com/swagger-api/swagger-codegen.git
9
9
  Swagger Codegen version: 2.3.1
@@ -11,5 +11,5 @@ Swagger Codegen version: 2.3.1
11
11
  =end
12
12
 
13
13
  module Dkron
14
- VERSION = "0.10.0"
14
+ VERSION = "0.11.2"
15
15
  end
@@ -0,0 +1,209 @@
1
+
2
+ /**
3
+ * Require the given path.
4
+ *
5
+ * @param {String} path
6
+ * @return {Object} exports
7
+ * @api public
8
+ */
9
+
10
+ function require(path, parent, orig) {
11
+ var resolved = require.resolve(path);
12
+
13
+ // lookup failed
14
+ if (null == resolved) {
15
+ orig = orig || path;
16
+ parent = parent || 'root';
17
+ var err = new Error('Failed to require "' + orig + '" from "' + parent + '"');
18
+ err.path = orig;
19
+ err.parent = parent;
20
+ err.require = true;
21
+ throw err;
22
+ }
23
+
24
+ var module = require.modules[resolved];
25
+
26
+ // perform real require()
27
+ // by invoking the module's
28
+ // registered function
29
+ if (!module.exports) {
30
+ module.exports = {};
31
+ module.client = module.component = true;
32
+ module.call(this, module.exports, require.relative(resolved), module);
33
+ }
34
+
35
+ return module.exports;
36
+ }
37
+
38
+ /**
39
+ * Registered modules.
40
+ */
41
+
42
+ require.modules = {};
43
+
44
+ /**
45
+ * Registered aliases.
46
+ */
47
+
48
+ require.aliases = {};
49
+
50
+ /**
51
+ * Resolve `path`.
52
+ *
53
+ * Lookup:
54
+ *
55
+ * - PATH/index.js
56
+ * - PATH.js
57
+ * - PATH
58
+ *
59
+ * @param {String} path
60
+ * @return {String} path or null
61
+ * @api private
62
+ */
63
+
64
+ require.resolve = function(path) {
65
+ if (path.charAt(0) === '/') path = path.slice(1);
66
+ var index = path + '/index.js';
67
+
68
+ var paths = [
69
+ path,
70
+ path + '.js',
71
+ path + '.json',
72
+ path + '/index.js',
73
+ path + '/index.json'
74
+ ];
75
+
76
+ for (var i = 0; i < paths.length; i++) {
77
+ var path = paths[i];
78
+ if (require.modules.hasOwnProperty(path)) return path;
79
+ }
80
+
81
+ if (require.aliases.hasOwnProperty(index)) {
82
+ return require.aliases[index];
83
+ }
84
+ };
85
+
86
+ /**
87
+ * Normalize `path` relative to the current path.
88
+ *
89
+ * @param {String} curr
90
+ * @param {String} path
91
+ * @return {String}
92
+ * @api private
93
+ */
94
+
95
+ require.normalize = function(curr, path) {
96
+ var segs = [];
97
+
98
+ if ('.' != path.charAt(0)) return path;
99
+
100
+ curr = curr.split('/');
101
+ path = path.split('/');
102
+
103
+ for (var i = 0; i < path.length; ++i) {
104
+ if ('..' == path[i]) {
105
+ curr.pop();
106
+ } else if ('.' != path[i] && '' != path[i]) {
107
+ segs.push(path[i]);
108
+ }
109
+ }
110
+
111
+ return curr.concat(segs).join('/');
112
+ };
113
+
114
+ /**
115
+ * Register module at `path` with callback `definition`.
116
+ *
117
+ * @param {String} path
118
+ * @param {Function} definition
119
+ * @api private
120
+ */
121
+
122
+ require.register = function(path, definition) {
123
+ require.modules[path] = definition;
124
+ };
125
+
126
+ /**
127
+ * Alias a module definition.
128
+ *
129
+ * @param {String} from
130
+ * @param {String} to
131
+ * @api private
132
+ */
133
+
134
+ require.alias = function(from, to) {
135
+ if (!require.modules.hasOwnProperty(from)) {
136
+ throw new Error('Failed to alias "' + from + '", it does not exist');
137
+ }
138
+ require.aliases[to] = from;
139
+ };
140
+
141
+ /**
142
+ * Return a require function relative to the `parent` path.
143
+ *
144
+ * @param {String} parent
145
+ * @return {Function}
146
+ * @api private
147
+ */
148
+
149
+ require.relative = function(parent) {
150
+ var p = require.normalize(parent, '..');
151
+
152
+ /**
153
+ * lastIndexOf helper.
154
+ */
155
+
156
+ function lastIndexOf(arr, obj) {
157
+ var i = arr.length;
158
+ while (i--) {
159
+ if (arr[i] === obj) return i;
160
+ }
161
+ return -1;
162
+ }
163
+
164
+ /**
165
+ * The relative require() itself.
166
+ */
167
+
168
+ function localRequire(path) {
169
+ var resolved = localRequire.resolve(path);
170
+ return require(resolved, parent, path);
171
+ }
172
+
173
+ /**
174
+ * Resolve relative to the parent.
175
+ */
176
+
177
+ localRequire.resolve = function(path) {
178
+ var c = path.charAt(0);
179
+ if ('/' == c) return path.slice(1);
180
+ if ('.' == c) return require.normalize(p, path);
181
+
182
+ // resolve deps by returning
183
+ // the dep in the nearest "deps"
184
+ // directory
185
+ var segs = parent.split('/');
186
+ var i = lastIndexOf(segs, 'deps') + 1;
187
+ if (!i) i = 0;
188
+ path = segs.slice(0, i + 1).join('/') + '/deps/' + path;
189
+ return path;
190
+ };
191
+
192
+ /**
193
+ * Check if module is defined at `path`.
194
+ */
195
+
196
+ localRequire.exists = function(path) {
197
+ return require.modules.hasOwnProperty(localRequire.resolve(path));
198
+ };
199
+
200
+ return localRequire;
201
+ };
202
+ require.register("isarray/index.js", function(exports, require, module){
203
+ module.exports = Array.isArray || function (arr) {
204
+ return Object.prototype.toString.call(arr) == '[object Array]';
205
+ };
206
+
207
+ });
208
+ require.alias("isarray/index.js", "isarray/index.js");
209
+