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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6a430620a11fca2c0269e036602d469d402c3f719a0424c61c88a061b2c05d55
4
- data.tar.gz: beed6a9967ca241dfebc85cc3bf3b79a1b6843b07bb1c56c427d2141142e0d00
3
+ metadata.gz: 2237d50089bbb1374fe4783be7b0abd6e07da584ec8536f559cff3fa732c8a05
4
+ data.tar.gz: 95da7c8c0b649e1b9f5777ef200b05b722d84340e93d0fbaa45d01a24fd6660b
5
5
  SHA512:
6
- metadata.gz: 61837bce53cf7a707924dfe362d555a86a19b7ca2337475058e55d5dc34bd32449372bc1acb1c2141c9fd75b69b41d5f3fcd41a94e915063b7c8da1845bf18d4
7
- data.tar.gz: 7ac7b9ca34b8fc98e396f2e4e25c6b9047a5b623a88f72f0d09fbc8f07933b2ba0b4d7527b92db2f108645bf6a3c9b2687b7a7d3f0896988ad2ecb2861bdeae0
6
+ metadata.gz: 9e6a776ed620fc46b68106f3a371dce7c8705bc6a9dc4a982497fd8807a869dc847129ffe853f6b963bcda10a1ba433f46babc6d50c5ef6899b1a2d05aad1819
7
+ data.tar.gz: 4766da2836e839a3524e31339d7206784a7b6a7adec765cadfa405750620a4ceb021a8a77a609c0fc14696bc0198dd447d93c5ba79a62d898dac990928919b28
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- vsvipergen (0.1.1)
4
+ vsvipergen (0.1.3)
5
5
  xcodeproj (~> 1.7.0)
6
6
 
7
7
  GEM
@@ -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, string) id<I<$prefix$>InteractorForPresenter> interactor;
15
- @property (nonatomic, string) id<I<$prefix$>Router> router;
14
+ @property (nonatomic, strong) id<I<$prefix$>InteractorForPresenter> interactor;
15
+ @property (nonatomic, strong) id<I<$prefix$>Router> router;
16
16
  @end
@@ -9,6 +9,6 @@
9
9
  #import <Foundation/Foundation.h>
10
10
  #import "VS<$prefix$>Contracts.h"
11
11
 
12
- @interface VS<$prefix$>>Router : NSObject <I<$prefix>Router>
12
+ @interface VS<$prefix$>Router : NSObject <I<$prefix$>Router>
13
13
 
14
14
  @end
@@ -1,3 +1,3 @@
1
1
  module Vsvipergen
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
data/lib/vsvipergen.rb CHANGED
@@ -11,7 +11,7 @@ module Vsvipergen
11
11
 
12
12
  def init(prefix, now, year)
13
13
  @prefix = prefix
14
- @currPath = Dir.pwd + "/#{prefix.strip}"
14
+ @currPath = Dir.pwd + "/#{prefix.strip.downcase}"
15
15
  @now = now
16
16
  @year = year
17
17
  @generatedFilePaths = []
@@ -20,7 +20,10 @@ module Vsvipergen
20
20
  end
21
21
 
22
22
  def makeHeaderFile
23
- newHeaderFilePath = currPath + "/VS#{prefix.strip}Contracts.h"
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
- newHeaderFilePath = currPath + "/VS#{prefix.strip}Interactor.h"
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
- newImplementFilePath = currPath + "/VS#{prefix.strip}Interactor.m"
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__)
@@ -20,7 +20,10 @@ module Vsvipergen
20
20
  end
21
21
 
22
22
  def makeHeaderFile
23
- newHeaderFilePath = currPath + "/VS#{modelPrefix.strip}VO.h"
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
- newImplementFilePath = currPath + "/VS#{modelPrefix.strip}VO.m"
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__)
@@ -20,7 +20,10 @@ module Vsvipergen
20
20
  end
21
21
 
22
22
  def makeHeaderFile
23
- newHeaderFilePath = currPath + "/VS#{prefix.strip}Presenter.h"
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
- newImplementFilePath = currPath + "/VS#{prefix.strip}Presenter.m"
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__)
@@ -20,7 +20,10 @@ module Vsvipergen
20
20
  end
21
21
 
22
22
  def makeHeaderFile
23
- newHeaderFilePath = currPath + "/VS#{prefix.strip}Router.h"
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
- newImplementFilePath = currPath + "/VS#{prefix.strip}Router.m"
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__)
@@ -20,7 +20,10 @@ module Vsvipergen
20
20
  end
21
21
 
22
22
  def makeHeaderFile
23
- newHeaderFilePath = currPath + "/VS#{prefix.strip}ViewController.h"
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
- newImplementFilePath = currPath + "/VS#{prefix.strip}ViewController.m"
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.2
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-01 00:00:00.000000000 Z
11
+ date: 2018-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler