api_schema 0.2.2 → 0.2.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/api_schema/api_version.rb +1 -1
- data/lib/api_schema/root_methods.rb +2 -2
- data/lib/api_schema/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: 3358bdecaec39f6472c13ae3e3fd1ea154ec2a0d
|
4
|
+
data.tar.gz: a79b3e5828f4ab3fc5149b755967668339ee4329
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae92521c717add88eba74d5287f00d6ba493e53b1237e06ddfd0a678e10024a0e86ad4b9f5c86d685f0d3766dc3b743df115c546c41bba5313d34d2d73d27c07
|
7
|
+
data.tar.gz: 7bf634c99b23adfcb1ebf2c7809b26dcb8b8e760c5f050f669e932d196a4aa4fa8877d0c01fe82d423b05b40247125a90455b89b23c5a814046ca0c56b82e494
|
@@ -56,7 +56,7 @@ module ApiSchema
|
|
56
56
|
end
|
57
57
|
|
58
58
|
def imported_version(import)
|
59
|
-
"#{import.name.capitalize}::#{import.
|
59
|
+
"#{import.name.capitalize}::#{import.api_version.capitalize}::BaseDocs".constantize.api_version
|
60
60
|
end
|
61
61
|
|
62
62
|
def add_errors(key, object)
|
@@ -16,9 +16,9 @@ module ApiSchema
|
|
16
16
|
@version_serializers = {}
|
17
17
|
end
|
18
18
|
|
19
|
-
def import_serializers_from(name,
|
19
|
+
def import_serializers_from(name, api_version)
|
20
20
|
@api_version.imported_versions << OpenStruct.new(name: name,
|
21
|
-
|
21
|
+
api_version: api_version)
|
22
22
|
end
|
23
23
|
|
24
24
|
def api_version
|
data/lib/api_schema/version.rb
CHANGED