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.
Files changed (3) hide show
  1. checksums.yaml +8 -8
  2. data/lib/json-schema/util/uri.rb +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDQ1ZDEyOTcxZmRjYmU4MmU5YzE1NmUzODJhZjI5MzYxODk2MzI0MQ==
4
+ ZjYxMmQ1YWFkNjZkYTg2ZWQwNmYyYmUwNTE2MTU3ZWFlMTE0MWY5ZQ==
5
5
  data.tar.gz: !binary |-
6
- ODU3N2JiZjVkMGZiZDUwZjYzYmY2ZmViYjc1ZTViZTRmMzg2MTM0ZA==
6
+ YjQ4ZjFiNTEzMDdkMjczYmQ3NzQzNjA2YzY2NDQ5NGM3ZDY2OGQzMg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YTc2NGY3YmNiMTNiYzMwYTJiNWIyZGQwMjA0N2MxNzczMTFjZWJiMGI0OTY1
10
- MDg0MzBkOTRiMWYwNzZkNGExZGRiMDM1Y2Y5NjAyOGJkMGMwYmNiMmM3NmU3
11
- NDlkMDkzZjE4NDM0OTI3NjA1NWIyOGMwNGVkZWYzMjI2OWJlM2Q=
9
+ M2Y0NmUzYmM3Y2MwYzI5Mjk5M2EzNjcyY2EwMjQ2MDYzODNlNGRmOTgxOWJh
10
+ NjAyNTg5NmNlYWY2MTU2Njg2MjI2ZGE1OTViOGFhNDZhNGFmNTEwMzU1YzA2
11
+ MjhiNDFlMzMyYmYzMGRjOTIwMjBjOWRiYjU1OGU3YWI1ZDk0NTk=
12
12
  data.tar.gz: !binary |-
13
- ZGQ5ZjhmNTcyZGU5YTE3MGIxNTcwNjgwZTQ4MTBlMzk0YmYwMjkwODcwNTIx
14
- Mjc4NjM1OTZkYjgwZjU5OGUxZWYzNWUzZThhOTcxNzU0YmI1ZWE0M2FkZjI1
15
- YzRiN2M2ZWU5MmEyNjVhOGQwZGYyYzRiMTY0ZDJiZjllNjdlZjM=
13
+ YWYwMzY3MWE2MmNmMThmYjJiMTk0MDc1YmMzNjgxYzg0ZWQ0ZTE5YTVjNzM3
14
+ ZGQ1MjU4OWM5NWFiODc3NmU3NWMxNzIyYTdiMWNlNTA5MTFiMTNmMjU1ZDc3
15
+ OTY0NGM3YmIzMmFmOWIwOGMxYTgxNDRjYzM4NzUxZmU3ZTFlZDc=
@@ -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.1
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-02-18 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake