goon_model_gen 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/goon_model_gen/converter/loader.rb +1 -1
- data/lib/goon_model_gen/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 389c27c5691e701681c024557e0addbb47de43ba3c168a8ea1325f522520ee05
|
4
|
+
data.tar.gz: d760a6084bea43dc070c2651d582d59ecf9a74be65136ed9cad1392bfce94282
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 23f5fb13c3e5791cd487b7404d0a0011ac93ab5765f5bbedc292b42ead0bf6635768bd2a1ed95f78680c9dd9a0ca95af68cc1f1a8f7df750b5bbf6d7668b2080
|
7
|
+
data.tar.gz: ec2bd2b24674643f2d03e98ff67c1c90fb722849b04cc9e9584ae2d5e9f895e25cb2d647c9484548b6221afd7d40c055726c651ac643503c741072ac3b3cfe17
|
@@ -37,7 +37,7 @@ module GoonModelGen
|
|
37
37
|
def load_conv_defs(f, conv_class, hash)
|
38
38
|
hash.map do |(name, definition)|
|
39
39
|
model = load_model_for_conv(definition['model'])
|
40
|
-
gen_type = TypeRef.new(name, File.join(config.goa_gen_package_path, f.basename))
|
40
|
+
gen_type = TypeRef.new(name, File.join(config.goa_gen_package_path, definition['package_name'] || f.basename))
|
41
41
|
mappings = load_mappings(definition['mappings'], conv_class)
|
42
42
|
conv_class.new(name, model, gen_type, mappings).tap do |conv|
|
43
43
|
conv.file = f
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goon_model_gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|