goa_model_gen 0.7.0 → 0.7.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7688fbd0deceb1a0e7c2bcf7db894bae0a8fcb02c391e00c34dda9760f525601
|
4
|
+
data.tar.gz: 646ff959fe0cce1b7256d7bf7de046aebed82a4e030168429a005b8e32c48658
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47eafcee348fa1a47b3aada4540f49bdcca3f6a8e6ccd45ecee2613dceeddb676981dbebf31b8656da30a08592962df53514d726258d02e898e19af10fa72d55
|
7
|
+
data.tar.gz: 99ebfd800233dadca64e4d292efd15a6947c6a6bbf59f2a379ea01ad51df59da77d37dce3f0d24bf5d0cc1395338face2ca987fc893ab7619662135447872302
|
data/lib/goa_model_gen/cli.rb
CHANGED
@@ -65,7 +65,7 @@ module GoaModelGen
|
|
65
65
|
def converter(*paths)
|
66
66
|
setup
|
67
67
|
new_generator.process({
|
68
|
-
"templates/converter_base.go.erb" => File.join(cfg.converter_dir, "
|
68
|
+
"templates/converter_base.go.erb" => File.join(cfg.converter_dir, "base.go"),
|
69
69
|
})
|
70
70
|
load_types_for(paths) do |source_file|
|
71
71
|
next if source_file.types.all?{|t| !t.payload && !t.media_type}
|
data/lib/goa_model_gen/config.rb
CHANGED
@@ -17,6 +17,7 @@ module GoaModelGen
|
|
17
17
|
store_dir
|
18
18
|
converter_dir
|
19
19
|
validator_path
|
20
|
+
generator_version_comment
|
20
21
|
].freeze
|
21
22
|
|
22
23
|
attr_accessor *ATTRIBUTES
|
@@ -29,6 +30,7 @@ module GoaModelGen
|
|
29
30
|
@store_dir ||= "./stores"
|
30
31
|
@converter_dir ||= "./converters"
|
31
32
|
@validator_path ||= "gopkg.in/go-playground/validator.v9"
|
33
|
+
@generator_version_comment ||= false
|
32
34
|
self
|
33
35
|
end
|
34
36
|
|
@@ -12,7 +12,7 @@
|
|
12
12
|
// "Book": "Books",
|
13
13
|
// }
|
14
14
|
|
15
|
-
func
|
15
|
+
func FromContext(c context.Context) *goon.Goon {
|
16
16
|
r := goon.FromContext(c)
|
17
17
|
// baseResolver := r.KindNameResolver
|
18
18
|
// r.KindNameResolver = func(src interface{}) string {
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: goa_model_gen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-01-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|