Skip to content

Commit

Permalink
Allowed addressable 2.4+ to work with json-schema
Browse files Browse the repository at this point in the history
I've had to change one of the specs because of this. It seems that
addressable now raises an error if you parse a uri that looks like a
json text, which was one of our test cases.

This fixes and supersedes #301
  • Loading branch information
Iain Beeston committed Feb 26, 2016
1 parent e16ab7a commit 9505f4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This project adheres to [Semantic Versioning](http://semver.org/).

### Changed
- Readme was converted from textile to markdown
- Updated addressable dependency to 2.4.0

## [2.6.0] - 2016-01-08

Expand Down
2 changes: 1 addition & 1 deletion json-schema.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -23,5 +23,5 @@ Gem::Specification.new do |s|
s.add_development_dependency "webmock"
s.add_development_dependency "bundler"

s.add_runtime_dependency "addressable", '~> 2.3.8'
s.add_runtime_dependency "addressable", '>= 2.4'
end
2 changes: 1 addition & 1 deletion test/test_initialize_data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ def test_parse_hash_string

assert(JSON::Validator.validate(schema, data, :json => true))

assert_raises(JSON::Schema::JsonLoadError) { JSON::Validator.validate(schema, data, :uri => true) }
assert_raises(JSON::Schema::UriError) { JSON::Validator.validate(schema, data, :uri => true) }
end

def test_parse_json_string
Expand Down

0 comments on commit 9505f4d

Please sign in to comment.