json-schema-openc-fork 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/lib/json-schema/util/uri.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZjYxMmQ1YWFkNjZkYTg2ZWQwNmYyYmUwNTE2MTU3ZWFlMTE0MWY5ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjQ4ZjFiNTEzMDdkMjczYmQ3NzQzNjA2YzY2NDQ5NGM3ZDY2OGQzMg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
M2Y0NmUzYmM3Y2MwYzI5Mjk5M2EzNjcyY2EwMjQ2MDYzODNlNGRmOTgxOWJh
|
10
|
+
NjAyNTg5NmNlYWY2MTU2Njg2MjI2ZGE1OTViOGFhNDZhNGFmNTEwMzU1YzA2
|
11
|
+
MjhiNDFlMzMyYmYzMGRjOTIwMjBjOWRiYjU1OGU3YWI1ZDk0NTk=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
YWYwMzY3MWE2MmNmMThmYjJiMTk0MDc1YmMzNjgxYzg0ZWQ0ZTE5YTVjNzM3
|
14
|
+
ZGQ1MjU4OWM5NWFiODc3NmU3NWMxNzIyYTdiMWNlNTA5MTFiMTNmMjU1ZDc3
|
15
|
+
OTY0NGM3YmIzMmFmOWIwOGMxYTgxNDRjYzM4NzUxZmU3ZTFlZDc=
|
data/lib/json-schema/util/uri.rb
CHANGED
@@ -2,6 +2,13 @@ module JSON
|
|
2
2
|
module Util
|
3
3
|
module URI
|
4
4
|
def self.normalized_uri(uri)
|
5
|
+
@normalized_uris ||= Hash.new do |h, k|
|
6
|
+
h[k] = _normalized_uri(uri)
|
7
|
+
end
|
8
|
+
@normalized_uris[uri]
|
9
|
+
end
|
10
|
+
|
11
|
+
def self._normalized_uri(uri)
|
5
12
|
uri = Addressable::URI.parse(uri) unless uri.is_a?(Addressable::URI)
|
6
13
|
# Check for absolute path
|
7
14
|
if uri.relative?
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: json-schema-openc-fork
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kenny Hoxworth
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-03-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|