vsvipergen 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/templates/presenter/VS<$$>Presenter.h +2 -2
- data/lib/templates/router/VS<$$>Router.h +1 -1
- data/lib/vsvipergen/version.rb +1 -1
- data/lib/vsvipergen.rb +1 -1
- data/lib/vsvipergen_contracts.rb +4 -1
- data/lib/vsvipergen_interactor.rb +8 -2
- data/lib/vsvipergen_model.rb +8 -2
- data/lib/vsvipergen_presenter.rb +8 -2
- data/lib/vsvipergen_router.rb +8 -2
- data/lib/vsvipergen_view.rb +8 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2237d50089bbb1374fe4783be7b0abd6e07da584ec8536f559cff3fa732c8a05
|
4
|
+
data.tar.gz: 95da7c8c0b649e1b9f5777ef200b05b722d84340e93d0fbaa45d01a24fd6660b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e6a776ed620fc46b68106f3a371dce7c8705bc6a9dc4a982497fd8807a869dc847129ffe853f6b963bcda10a1ba433f46babc6d50c5ef6899b1a2d05aad1819
|
7
|
+
data.tar.gz: 4766da2836e839a3524e31339d7206784a7b6a7adec765cadfa405750620a4ceb021a8a77a609c0fc14696bc0198dd447d93c5ba79a62d898dac990928919b28
|
data/Gemfile.lock
CHANGED
@@ -11,6 +11,6 @@
|
|
11
11
|
|
12
12
|
@interface VS<$prefix$>Presenter : NSObject <I<$prefix$>PresenterForView, I<$prefix$>PresenterForInteractor>
|
13
13
|
@property (nonatomic, weak) id<I<$prefix$>ViewForPresenter> view;
|
14
|
-
@property (nonatomic,
|
15
|
-
@property (nonatomic,
|
14
|
+
@property (nonatomic, strong) id<I<$prefix$>InteractorForPresenter> interactor;
|
15
|
+
@property (nonatomic, strong) id<I<$prefix$>Router> router;
|
16
16
|
@end
|
data/lib/vsvipergen/version.rb
CHANGED
data/lib/vsvipergen.rb
CHANGED
data/lib/vsvipergen_contracts.rb
CHANGED
@@ -20,7 +20,10 @@ module Vsvipergen
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def makeHeaderFile
|
23
|
-
|
23
|
+
subPath = currPath + "/contracts"
|
24
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
25
|
+
|
26
|
+
newHeaderFilePath = subPath + "/VS#{prefix.strip}Contracts.h"
|
24
27
|
generatedFilePaths.push(newHeaderFilePath)
|
25
28
|
|
26
29
|
templateHeaderFilePath = File.expand_path '../lib/templates/VS<$$>Contracts.h', File.dirname(__FILE__)
|
@@ -20,7 +20,10 @@ module Vsvipergen
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def makeHeaderFile
|
23
|
-
|
23
|
+
subPath = currPath + "/interactor"
|
24
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
25
|
+
|
26
|
+
newHeaderFilePath = subPath + "/VS#{prefix.strip}Interactor.h"
|
24
27
|
generatedFilePaths.push(newHeaderFilePath)
|
25
28
|
|
26
29
|
templateHeaderFilePath = File.expand_path '../lib/templates/interactor/VS<$$>Interactor.h', File.dirname(__FILE__)
|
@@ -35,7 +38,10 @@ module Vsvipergen
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def makeImplementFile
|
38
|
-
|
41
|
+
subPath = currPath + "/interactor"
|
42
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
43
|
+
|
44
|
+
newImplementFilePath = subPath + "/VS#{prefix.strip}Interactor.m"
|
39
45
|
generatedFilePaths.push(newImplementFilePath)
|
40
46
|
|
41
47
|
templateImplementFilePath = File.expand_path '../lib/templates/interactor/VS<$$>Interactor.m', File.dirname(__FILE__)
|
data/lib/vsvipergen_model.rb
CHANGED
@@ -20,7 +20,10 @@ module Vsvipergen
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def makeHeaderFile
|
23
|
-
|
23
|
+
subPath = currPath + "/entity"
|
24
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
25
|
+
|
26
|
+
newHeaderFilePath = subPath + "/VS#{modelPrefix.strip}VO.h"
|
24
27
|
generatedFilePaths.push(newHeaderFilePath)
|
25
28
|
|
26
29
|
templateHeaderFilePath = File.expand_path '../lib/templates/model/VS<$$>VO.h', File.dirname(__FILE__)
|
@@ -35,7 +38,10 @@ module Vsvipergen
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def makeImplementFile
|
38
|
-
|
41
|
+
subPath = currPath + "/entity"
|
42
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
43
|
+
|
44
|
+
newImplementFilePath = subPath + "/VS#{modelPrefix.strip}VO.m"
|
39
45
|
generatedFilePaths.push(newImplementFilePath)
|
40
46
|
|
41
47
|
templateImplementFilePath = File.expand_path '../lib/templates/model/VS<$$>VO.m', File.dirname(__FILE__)
|
data/lib/vsvipergen_presenter.rb
CHANGED
@@ -20,7 +20,10 @@ module Vsvipergen
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def makeHeaderFile
|
23
|
-
|
23
|
+
subPath = currPath + "/presenter"
|
24
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
25
|
+
|
26
|
+
newHeaderFilePath = subPath + "/VS#{prefix.strip}Presenter.h"
|
24
27
|
generatedFilePaths.push(newHeaderFilePath)
|
25
28
|
|
26
29
|
templateHeaderFilePath = File.expand_path '../lib/templates/Presenter/VS<$$>Presenter.h', File.dirname(__FILE__)
|
@@ -35,7 +38,10 @@ module Vsvipergen
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def makeImplementFile
|
38
|
-
|
41
|
+
subPath = currPath + "/presenter"
|
42
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
43
|
+
|
44
|
+
newImplementFilePath = subPath + "/VS#{prefix.strip}Presenter.m"
|
39
45
|
generatedFilePaths.push(newImplementFilePath)
|
40
46
|
|
41
47
|
templateImplementFilePath = File.expand_path '../lib/templates/Presenter/VS<$$>Presenter.m', File.dirname(__FILE__)
|
data/lib/vsvipergen_router.rb
CHANGED
@@ -20,7 +20,10 @@ module Vsvipergen
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def makeHeaderFile
|
23
|
-
|
23
|
+
subPath = currPath + "/router"
|
24
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
25
|
+
|
26
|
+
newHeaderFilePath = subPath + "/VS#{prefix.strip}Router.h"
|
24
27
|
generatedFilePaths.push(newHeaderFilePath)
|
25
28
|
|
26
29
|
templateHeaderFilePath = File.expand_path '../lib/templates/router/VS<$$>Router.h', File.dirname(__FILE__)
|
@@ -35,7 +38,10 @@ module Vsvipergen
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def makeImplementFile
|
38
|
-
|
41
|
+
subPath = currPath + "/router"
|
42
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
43
|
+
|
44
|
+
newImplementFilePath = subPath + "/VS#{prefix.strip}Router.m"
|
39
45
|
generatedFilePaths.push(newImplementFilePath)
|
40
46
|
|
41
47
|
templateImplementFilePath = File.expand_path '../lib/templates/router/VS<$$>Router.m', File.dirname(__FILE__)
|
data/lib/vsvipergen_view.rb
CHANGED
@@ -20,7 +20,10 @@ module Vsvipergen
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def makeHeaderFile
|
23
|
-
|
23
|
+
subPath = currPath + "/view"
|
24
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
25
|
+
|
26
|
+
newHeaderFilePath = subPath + "/VS#{prefix.strip}ViewController.h"
|
24
27
|
generatedFilePaths.push(newHeaderFilePath)
|
25
28
|
|
26
29
|
templateHeaderFilePath = File.expand_path '../lib/templates/view/VS<$$>ViewController.h', File.dirname(__FILE__)
|
@@ -35,7 +38,10 @@ module Vsvipergen
|
|
35
38
|
end
|
36
39
|
|
37
40
|
def makeImplementFile
|
38
|
-
|
41
|
+
subPath = currPath + "/view"
|
42
|
+
Dir.mkdir(subPath) unless File.exists?(subPath)
|
43
|
+
|
44
|
+
newImplementFilePath = subPath + "/VS#{prefix.strip}ViewController.m"
|
39
45
|
generatedFilePaths.push(newImplementFilePath)
|
40
46
|
|
41
47
|
templateImplementFilePath = File.expand_path '../lib/templates/view/VS<$$>ViewController.m', File.dirname(__FILE__)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vsvipergen
|
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
|
- vendys-choohyoung
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|