jimmy 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/jimmy/type_reference.rb +6 -2
- data/lib/jimmy/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8b76c959aa311808120ea671011bf0316c5a6ff8
|
4
|
+
data.tar.gz: 6e0dfdb00bcbdabbbd54d907b57bc5a6deee49eb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e2e3825046654937ef3026854784e534f824fb5d5eda8089c246645b351c5ccd1ce5b3140fadac4a194c00965ffbdfa58bdfbf2f9e9b7b9b1d56d464b25102
|
7
|
+
data.tar.gz: c74f5544ba3bbb4b44be6de53571e52aa4901c76515aed8bcff76e0ff44f7d27f8f8b556e944443728da2e5b98210974c3ec470e95f796814e67b81402c4c67e
|
data/lib/jimmy/type_reference.rb
CHANGED
@@ -2,9 +2,13 @@ module Jimmy
|
|
2
2
|
class TypeReference < Reference
|
3
3
|
attr_reader :type
|
4
4
|
|
5
|
-
def initialize(type, *args)
|
5
|
+
def initialize(type, domain, *args)
|
6
6
|
@type = type
|
7
|
-
|
7
|
+
uri = domain.root + "types/#{type}.json#"
|
8
|
+
path = uri.path.dup
|
9
|
+
path << '?' << uri.query if uri.query
|
10
|
+
path << '#' << uri.fragment if uri.fragment
|
11
|
+
super path, domain, *args
|
8
12
|
end
|
9
13
|
end
|
10
14
|
end
|
data/lib/jimmy/version.rb
CHANGED