vipergen-roche 0.2.7 → 0.2.8
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/lib/templates/testable/swift/DataManager/API/VIPERAPIDataManager.swift +1 -1
- data/lib/templates/testable/swift/DataManager/Local/VIPERLocalDataManager.swift +1 -1
- data/lib/templates/testable/swift/Interactor/VIPERInteractor.swift +2 -2
- data/lib/templates/testable/swift/Presenter/VIPERPresenter.swift +1 -1
- data/lib/templates/testable/swift/Protocols/VIPERProtocols.swift +2 -2
- data/lib/templates/testable/swift/View/VIPERView.swift +1 -1
- data/lib/templates/testable/swift/WireFrame/VIPERWireFrame.swift +6 -4
- data/lib/templates/testable/viperspec.yml +1 -1
- data/lib/vipergen/version.rb +1 -1
- metadata +2 -3
- data/lib/templates/testable/swift/Interactor/VIPERItem.swift +0 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6b5576d719256dbc09175f3d86b9ed5da5d43055
|
4
|
+
data.tar.gz: e49af44f2d39c9f3722ab9e79bf2862146d50808
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 117238e23032ed850bc98d94b0e146070cc4f68f0327f0b8676678eab01f0514d916a5ad9d3a8451e1d47ce5c618b4ecdcc7d29564711029e872320ec35871b3
|
7
|
+
data.tar.gz: b02d115999136a37c62946ea039dc55a4fa59bd14b71430dc0ac47c5a86103ec2d0e9948601948b2a40da49ad2312cc9f46561031a6a93fe2ccf5cef5aadc3a8
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
import Foundation
|
7
7
|
|
8
|
-
class VIPERInteractor: VIPERInteractorInputProtocol
|
8
|
+
final class VIPERInteractor: VIPERInteractorInputProtocol
|
9
9
|
{
|
10
10
|
weak var presenter: VIPERInteractorOutputProtocol?
|
11
11
|
var APIDataManager: VIPERAPIDataManagerInputProtocol?
|
12
|
-
var
|
12
|
+
var localDataManager: VIPERLocalDataManagerInputProtocol?
|
13
13
|
|
14
14
|
init() {}
|
15
15
|
}
|
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
import Foundation
|
7
7
|
|
8
|
-
class VIPERPresenter: VIPERPresenterProtocol, VIPERInteractorOutputProtocol
|
8
|
+
final class VIPERPresenter: VIPERPresenterProtocol, VIPERInteractorOutputProtocol
|
9
9
|
{
|
10
10
|
weak var view: VIPERViewProtocol?
|
11
11
|
var interactor: VIPERInteractorInputProtocol?
|
@@ -15,7 +15,7 @@ protocol VIPERViewProtocol: class
|
|
15
15
|
|
16
16
|
protocol VIPERWireFrameProtocol: class
|
17
17
|
{
|
18
|
-
static func
|
18
|
+
static func setupVIPERModule(object: AnyObject) -> UIViewController
|
19
19
|
/**
|
20
20
|
* Add here your methods for communication PRESENTER -> WIREFRAME
|
21
21
|
*/
|
@@ -42,7 +42,7 @@ protocol VIPERInteractorInputProtocol: class
|
|
42
42
|
{
|
43
43
|
var presenter: VIPERInteractorOutputProtocol? { get set }
|
44
44
|
var APIDataManager: VIPERAPIDataManagerInputProtocol? { get set }
|
45
|
-
var
|
45
|
+
var localDataManager: VIPERLocalDataManagerInputProtocol? { get set }
|
46
46
|
/**
|
47
47
|
* Add here your methods for communication PRESENTER -> INTERACTOR
|
48
48
|
*/
|
@@ -4,10 +4,10 @@
|
|
4
4
|
//
|
5
5
|
|
6
6
|
import Foundation
|
7
|
-
|
8
|
-
class VIPERWireFrame: VIPERWireFrameProtocol
|
7
|
+
import UIKit
|
8
|
+
final class VIPERWireFrame: VIPERWireFrameProtocol
|
9
9
|
{
|
10
|
-
class func
|
10
|
+
class func setupVIPERModule(object: AnyObject) -> UIViewController
|
11
11
|
{
|
12
12
|
// Generating module components
|
13
13
|
let view: VIPERViewProtocol = VIPERView()
|
@@ -24,6 +24,8 @@ class VIPERWireFrame: VIPERWireFrameProtocol
|
|
24
24
|
presenter.interactor = interactor
|
25
25
|
interactor.presenter = presenter
|
26
26
|
interactor.APIDataManager = APIDataManager
|
27
|
-
interactor.
|
27
|
+
interactor.localDataManager = localDataManager
|
28
|
+
|
29
|
+
return UINavigationController(rootViewController: view as! UIViewController)
|
28
30
|
}
|
29
31
|
}
|
@@ -1,4 +1,4 @@
|
|
1
1
|
author: Michal Wojtysiak (Roche)
|
2
2
|
author_email: michal.wojtysiak@roche.com
|
3
3
|
template_description: Template for VIPER structure including Tests (BDD/TDD), Swift 2.0 compatible. Quick&Nible for Swift, Specta, Expecta, OCMockito for Obj-C
|
4
|
-
updated_at: 2015-
|
4
|
+
updated_at: 2015-10-23
|
data/lib/vipergen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vipergen-roche
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Piñera
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-10-
|
12
|
+
date: 2015-10-23 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -134,7 +134,6 @@ files:
|
|
134
134
|
- lib/templates/testable/swift/DataManager/Local/VIPERLocalDataManager.swift
|
135
135
|
- lib/templates/testable/swift/Interactor/VIPERInteractor.swift
|
136
136
|
- lib/templates/testable/swift/Interactor/VIPERInteractorSpec.swift
|
137
|
-
- lib/templates/testable/swift/Interactor/VIPERItem.swift
|
138
137
|
- lib/templates/testable/swift/Presenter/VIPERPresenter.swift
|
139
138
|
- lib/templates/testable/swift/Presenter/VIPERPresenterSpec.swift
|
140
139
|
- lib/templates/testable/swift/Protocols/VIPERProtocols.swift
|