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: 316458bf5f2033fb2e803fc8cb74b8a8ef80a44eb2adf8bec57862a9283b19ad
4
- data.tar.gz: 57100fe6b8c389a3f0eb7faa8ea4e7ac063e386c9866d9eb24eeb0c0ea82ef55
3
+ metadata.gz: 23badabb9901481656de5b91833d0b04452ff998cf18036fbc8c4152963ed7d8
4
+ data.tar.gz: 25c94a3b11c2411e8d5d68367dc9e5f81d737072be6e69d151597e92232066b8
5
5
  SHA512:
6
- metadata.gz: 9f52397b1dbb695e7f65826cccb701b9cb171bc861b03c50274fd00d94a3a53b5312022f096bedc2fca6d956c0d18748daa2344c673b47c84cfd0b7bbe7ff582
7
- data.tar.gz: 8226739cfb3a3404a70eb5814e6d0b7ba8169216850ad509f11493bad632bc3ed0392e4b40da811c06f56cdc5378e10a26b7dd8bbbb8cc04557937e4988b2c58
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)
@@ -17,6 +17,7 @@ module GoonModelGen
17
17
  # @param model_packages [Golang::Packages]
18
18
  def initialize(base_package_path, model_packages)
19
19
  super(base_package_path)
20
+ @package_suffix = "_store"
20
21
  @model_packages = model_packages
21
22
  end
22
23
 
@@ -1,3 +1,3 @@
1
1
  module GoonModelGen
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
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.1.2
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-07 00:00:00.000000000 Z
11
+ date: 2019-05-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor