jsv.rb 0.0.1.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +19 -0
- data/README +29 -0
- data/bin/jsv-rb-repl +8 -0
- data/js/build/jsv.rb.js +5870 -0
- data/lib/jsv/context.rb +37 -0
- data/lib/jsv/environment.rb +24 -0
- data/lib/jsv/report.rb +17 -0
- data/lib/jsv/version.rb +3 -0
- data/lib/jsv.rb +1 -0
- data/spec/jsv/environment_spec.rb +79 -0
- data/spec/spec_helper.rb +6 -0
- metadata +126 -0
data/LICENSE
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
Copyright (c) 2013 David Yip
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
4
|
+
of this software and associated documentation files (the "Software"), to deal
|
5
|
+
in the Software without restriction, including without limitation the rights
|
6
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
7
|
+
copies of the Software, and to permit persons to whom the Software is
|
8
|
+
furnished to do so, subject to the following conditions:
|
9
|
+
|
10
|
+
The above copyright notice and this permission notice shall be included in all
|
11
|
+
copies or substantial portions of the Software.
|
12
|
+
|
13
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
14
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
15
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
16
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
17
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
18
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
19
|
+
SOFTWARE.
|
data/README
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
1. jsv.rb
|
2
|
+
|
3
|
+
Some applications process very complex JSON documents. In some cases,
|
4
|
+
application developers have encoded expectations for those documents in JSON
|
5
|
+
Schema, and would like to be able to use those schemas to validate input.
|
6
|
+
|
7
|
+
Gary Court's JSV[1] is by far the most complete JSON Schema validator
|
8
|
+
available, and it makes sense to build upon the work that has gone into JSV
|
9
|
+
rather than try to reimplement it.
|
10
|
+
|
11
|
+
This is a library for Ruby applications that builds a distribution of JSV
|
12
|
+
suitable for use in ExecJS. It also contains a Ruby shim for communicating
|
13
|
+
with JSV.
|
14
|
+
|
15
|
+
jsv.rb was written at Northwestern University's Biomedical Informatics
|
16
|
+
Center[2] for use in NCS Navigator Cases[3].
|
17
|
+
|
18
|
+
2. License
|
19
|
+
|
20
|
+
Copyright (c) 2013 David Yip. Made available under the MIT License; see
|
21
|
+
LICENSE for details.
|
22
|
+
|
23
|
+
3. Special thanks
|
24
|
+
|
25
|
+
she, Kap Slap, Starsmith, Neon Indian, Florence + the Machine.
|
26
|
+
|
27
|
+
[1]: https://github.com/garycourt/JSV
|
28
|
+
[2]: http://projects.nubic.northwestern.edu/
|
29
|
+
[3]: https://github.com/NUBIC/ncs_navigator_core
|