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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bdd831fc3add818afc0a89dd2927ffcc2c8d931d
4
- data.tar.gz: d5bdaac60c60a5891e4e52c8a982610c38953ad9
3
+ metadata.gz: 6b5576d719256dbc09175f3d86b9ed5da5d43055
4
+ data.tar.gz: e49af44f2d39c9f3722ab9e79bf2862146d50808
5
5
  SHA512:
6
- metadata.gz: 9a31e496c1c0317ed026bfa6fc43904d68e3e81eec6a30ece9f41bb14738fee73b70966506f9800f5f2ef5a042d788d454692bbcd8fc7b1d0bafc86c4a1157b8
7
- data.tar.gz: 03b10031dd4064b82be2e24f72a72cb46321861e93dbaa24781981f90c403ee74a883ccddaa18092eb5a4bafbc1659e43e6b3e04ab3d32932bdda6775b685929
6
+ metadata.gz: 117238e23032ed850bc98d94b0e146070cc4f68f0327f0b8676678eab01f0514d916a5ad9d3a8451e1d47ce5c618b4ecdcc7d29564711029e872320ec35871b3
7
+ data.tar.gz: b02d115999136a37c62946ea039dc55a4fa59bd14b71430dc0ac47c5a86103ec2d0e9948601948b2a40da49ad2312cc9f46561031a6a93fe2ccf5cef5aadc3a8
@@ -5,7 +5,7 @@
5
5
 
6
6
  import Foundation
7
7
 
8
- class VIPERAPIDataManager: VIPERAPIDataManagerInputProtocol
8
+ final class VIPERAPIDataManager: VIPERAPIDataManagerInputProtocol
9
9
  {
10
10
  init() {}
11
11
  }
@@ -5,7 +5,7 @@
5
5
 
6
6
  import Foundation
7
7
 
8
- class VIPERLocalDataManager: VIPERLocalDataManagerInputProtocol
8
+ final class VIPERLocalDataManager: VIPERLocalDataManagerInputProtocol
9
9
  {
10
10
  init() {}
11
11
  }
@@ -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 localDatamanager: VIPERLocalDataManagerInputProtocol?
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 presentVIPERModule(fromView view: AnyObject)
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 localDatamanager: VIPERLocalDataManagerInputProtocol? { get set }
45
+ var localDataManager: VIPERLocalDataManagerInputProtocol? { get set }
46
46
  /**
47
47
  * Add here your methods for communication PRESENTER -> INTERACTOR
48
48
  */
@@ -6,7 +6,7 @@
6
6
  import Foundation
7
7
  import UIKit
8
8
 
9
- class VIPERView: UIViewController, VIPERViewProtocol
9
+ final class VIPERView: UIViewController, VIPERViewProtocol
10
10
  {
11
11
  var presenter: VIPERPresenterProtocol?
12
12
  }
@@ -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 presentVIPERModule(fromView parentView: AnyObject)
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.localDatamanager = localDataManager
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-09-30
4
+ updated_at: 2015-10-23
@@ -1,4 +1,4 @@
1
1
  module Vipergen
2
2
  NAME = "vipergen"
3
- VERSION = "0.2.7"
3
+ VERSION = "0.2.8"
4
4
  end
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.7
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-02 00:00:00.000000000 Z
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
@@ -1,13 +0,0 @@
1
- //
2
- // Created by AUTHOR.
3
- // Copyright (c) YEAR AUTHOR. All rights reserved.
4
- //
5
-
6
- import Foundation
7
-
8
- struct VIPERItem
9
- {
10
- /**
11
- * Attributes here
12
- */
13
- }