Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

version 2.0.2

  • Loading branch information...
commit 9f3c3ef0c2f38cf642fe531a28fff0ce3eb8e7d6 1 parent 80a4076
@Constellation authored
Showing with 12 additions and 15 deletions.
  1. +5 −0 README.rdoc
  2. +3 −11 Rakefile
  3. +4 −4 lib/jsonschema.rb
View
5 README.rdoc
@@ -41,6 +41,11 @@ if you have json library
gem source -a http://gemcutter.org
sudo gem install jsonschema
+== CONTRIBUTORS:
+
+* Matt Coneybeare
+* hristian Bäuerlein
+
== LICENSE:
Ruby/jsonschema
View
14 Rakefile
@@ -3,9 +3,8 @@ require 'rubygems'
require 'rake'
require 'rake/clean'
require 'rake/testtask'
-require 'rake/packagetask'
-require 'rake/gempackagetask'
-require 'rake/rdoctask'
+require 'rubygems/package_task'
+require 'rake/task'
require 'rake/contrib/rubyforgepublisher'
require 'rake/contrib/sshpublisher'
require 'fileutils'
@@ -58,18 +57,11 @@ spec = Gem::Specification.new do |s|
s.files = %w(README.rdoc Rakefile) + Dir["{bin,test,lib}/**/*"]
end
-Rake::GemPackageTask.new(spec) do |p|
+Gem::PackageTask.new(spec) do |p|
p.need_tar = true
p.gem_spec = spec
end
-Rake::RDocTask.new do |rdoc|
- rdoc.rdoc_dir = 'doc'
- rdoc.options += $rdoc_opts
-# rdoc.template = 'resh'
- rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb", "ext/**/*.c")
-end
-
desc "gem spec"
task :gemspec do
File.open("#{$github_name}.gemspec", "wb") do |f|
View
8 lib/jsonschema.rb
@@ -2,7 +2,7 @@
module JSON
class Schema
- VERSION = '2.0.1'
+ VERSION = '2.0.2'
class ValueError < Exception;end
class Undefined;end
TypesMap = {
@@ -20,15 +20,15 @@ def initialize interactive
@interactive = interactive
@refmap = {}
end
-
+
def keys
@keys ||= []
end
-
+
def key_path
keys.reject{|k| k == 'self'}.join(" > ")
end
-
+
def check_property value, schema, key, parent
if schema
keys.push key
Please sign in to comment.
Something went wrong with that request. Please try again.