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 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
data/bin/jsv-rb-repl ADDED
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ $LOAD_PATH.unshift(File.expand_path('../../lib', __FILE__))
4
+
5
+ require 'irb'
6
+ require 'jsv'
7
+
8
+ IRB.start