liquigen 0.1.4 → 0.1.5

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: 77e765c5a3fed036596b75bce927a3ed1b815abdbdab5e90fc3cb16488f5e789
4
- data.tar.gz: d438ac018101fe443603fec30cfc4e22b20a18bf9ce9a447fb1557fdd7f9dfac
3
+ metadata.gz: d5eab8ec9756ee7dcef54716cc735102812c492770ea01bf43cffd823e7d0292
4
+ data.tar.gz: 129b36983cd1a924caabfc6b18d05187a6511001b9755b868e3b9167c4162a6f
5
5
  SHA512:
6
- metadata.gz: 8e806d0c261790219380ee0ac6be34eef31f3178c2e7354bb2ceb3d19cddaeb048aff3ed870bf74374768ca77b78b7df99317455d2e0804c5d3933ddf8fe9e09
7
- data.tar.gz: 7444b3942f02cc76e9afe440967e4d9b4fcd08ae2325175e112004a7d70be434086abfe2af71da7f9bf51e8abe937719d68942e5fb040093b71fd280f6517dc6
6
+ metadata.gz: 155b59073d224c15dc01ae48fbc29a78fc730e28c4a7ea6f18cc3ea36d19a8c5a5dfb39e1b8645ed232129de223a52b8338db0407eb6d15178377ad041c84ad9
7
+ data.tar.gz: bc7047c63fbd6f36a2caed2fbf3e37eadf2a10ff1a3b97b7f751773c9ce4d27db09549d6c0e48576a29499dc6080f01f99560f89b8058ac229312275cfba9650
@@ -17,13 +17,13 @@ module Liquigen::Scaffold
17
17
  "package #{current_package};",
18
18
  '',
19
19
  'import com.dyg.backend.controller.auth.HasPermissionOrRoot;',
20
- "import com.dyg.backend.entity.#{name.camelize};",
21
- 'import com.dyg.lib.rest.controller.RestCRUD;',
20
+ "import com.dyg.backend.entity.#{name.singularize.camelize};",
21
+ 'import com.dyg.base.rest.controller.RestCRUD;',
22
22
  'import lombok.Getter;',
23
23
  'import org.springframework.web.bind.annotation.RequestMapping;',
24
24
  'import org.springframework.web.bind.annotation.RestController;',
25
25
  '',
26
- 'import static com.dyg.lib.rest.controller.KeySpecCollection.permit;',
26
+ 'import static com.dyg.base.rest.controller.KeySpecCollection.permit;',
27
27
  ''
28
28
  ]
29
29
  end
@@ -33,7 +33,7 @@ module Liquigen::Scaffold
33
33
  '@RestController',
34
34
  "@RequestMapping(\"/#{name.underscore.pluralize}\")",
35
35
  '@HasPermissionOrRoot',
36
- "public class #{name.pluralize.camelize}#{file_append} implements RestCRUD<#{name.camelize}> {"
36
+ "public class #{name.pluralize.camelize}#{file_append} implements RestCRUD<#{name.singularize.camelize}> {"
37
37
  ]
38
38
  end
39
39
 
@@ -9,6 +9,7 @@ module Liquigen::Scaffold
9
9
  def import_lines
10
10
  [
11
11
  "package #{current_package};",
12
+ 'import com.dyg.entity.FakeDeleteBaseEntity;',
12
13
  'import lombok.Getter;',
13
14
  'import lombok.Setter;',
14
15
  'import lombok.experimental.Accessors;',
@@ -10,7 +10,7 @@ module Liquigen::Scaffold
10
10
  [
11
11
  "package #{current_package};",
12
12
  '',
13
- 'import com.dyg.main.config.Constants;',
13
+ 'import com.dyg.backend.config.Constants;',
14
14
  'import com.dyg.schemas.*;',
15
15
  'import lombok.Getter;',
16
16
  'import lombok.Setter;',
@@ -1,3 +1,3 @@
1
1
  module Liquigen
2
- VERSION = '0.1.4'.freeze
2
+ VERSION = '0.1.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: liquigen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Cui
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-22 00:00:00.000000000 Z
11
+ date: 2019-03-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport