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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1b3a9f1be05eeba8aa04aa53bb51f772733251f87d6f0b5902b3e6c8f1a510ce
4
- data.tar.gz: 0f088cd4911a7fcc6959a7727d56e95d01ed41721bab85b47e4d890221abbfc2
3
+ metadata.gz: 389c27c5691e701681c024557e0addbb47de43ba3c168a8ea1325f522520ee05
4
+ data.tar.gz: d760a6084bea43dc070c2651d582d59ecf9a74be65136ed9cad1392bfce94282
5
5
  SHA512:
6
- metadata.gz: 796194776aac212a5036cbedc42d43d8a79ebd0b608b1d2e33de3b6b6125074d5d614c50f17b6a64e23db7d02360cc79d1f0abd561f1b80d3e1b1262ff84ebe1
7
- data.tar.gz: 7dcdeddd27e7766c194cbdd7922e028e6533651bf9673a12ab69437044725bb6610e175acd93d0726654b6e347eb43722be0fa1735c74c9445c327c5b584cd92
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
@@ -1,3 +1,3 @@
1
1
  module GoonModelGen
2
- VERSION = "0.3.0"
2
+ VERSION = "0.3.1"
3
3
  end
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor