goon_model_gen 0.1.2 → 0.1.3
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: 23badabb9901481656de5b91833d0b04452ff998cf18036fbc8c4152963ed7d8
|
4
|
+
data.tar.gz: 25c94a3b11c2411e8d5d68367dc9e5f81d737072be6e69d151597e92232066b8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c085ab7ad6374af508b4d2cc57fd750d9d2843d10d05906050aae9f31a4d27739df11118a542a21d9e8e3dd6500809e2bfd52c13f29c610b436adebc5cb0f28
|
7
|
+
data.tar.gz: fc2f17df0f6446a511615215bf7f0937aa8c29639229f007a456385d53eeab3bc95433b2e439bd09ba30b4fac336db22c42f6c86c6453207983bc5fa23751db5
|
@@ -6,6 +6,7 @@ module GoonModelGen
|
|
6
6
|
module Builder
|
7
7
|
class AbstractBuilder
|
8
8
|
attr_reader :base_package_path
|
9
|
+
attr_accessor :package_suffix
|
9
10
|
|
10
11
|
# @param base_package_path [String]
|
11
12
|
def initialize(base_package_path)
|
@@ -18,7 +19,7 @@ module GoonModelGen
|
|
18
19
|
Golang::Packages.new.tap do |r|
|
19
20
|
build_sentences = []
|
20
21
|
context.files.each do |f|
|
21
|
-
package_path = File.join(base_package_path, f.basename)
|
22
|
+
package_path = File.join(base_package_path, f.basename + (package_suffix || ""))
|
22
23
|
pkg, procs = build_package(package_path, f.types)
|
23
24
|
r << pkg
|
24
25
|
build_sentences.concat(procs)
|
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.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- akm
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-05-
|
11
|
+
date: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: thor
|