molt 0.2.1 → 0.2.2
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/bundle/template_sets/VIPER_TableView/Presenter.swift.liquid +3 -1
- data/bundle/template_sets/VIPER_TableView/Protocols.swift.liquid +1 -1
- data/bundle/template_sets/VIPER_TableView/Wireframe.swift.liquid +2 -4
- data/lib/molt/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f20c037aec241164349e86753b7027c328f02abc
|
4
|
+
data.tar.gz: e42552f7894013b8e04797d05763f6aa8560b986
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cabbd65b03dad331ca2a2df9321507fb04d8bbc6bf7b300736f087415359d0d41f380e83df568d8309daf4c25d6dda959dd09503d2db94b24d947dddf175589
|
7
|
+
data.tar.gz: 2439437d75262b6f41ca8849129540b67a38623337a9e448867afb04979566c10ef89b943a0a49adb1204a61003b2c9d2ba276f2337b40411b368b3151532896
|
data/Gemfile.lock
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
{% if target != "xcode" %}{% assign filename_suffix = "Presenter.swift" %}{% include 'header' %}{% else %}//___FILEHEADER___{% endif %}
|
2
2
|
|
3
|
+
import UIKit
|
4
|
+
|
3
5
|
final class {{ module_name }}Presenter {
|
4
6
|
|
5
7
|
weak var view: {{ module_name }}ViewProtocol?
|
@@ -27,7 +29,7 @@ extension {{ module_name }}Presenter: {{ module_name }}PresenterProtocol {
|
|
27
29
|
}
|
28
30
|
|
29
31
|
func process(object: {{ model }}) {
|
30
|
-
guard let view = view else { return }
|
32
|
+
guard let view = view as? UIViewController else { return }
|
31
33
|
wireframe?.navigate(to: object, from: view)
|
32
34
|
}
|
33
35
|
}
|
@@ -53,5 +53,5 @@ protocol {{ module_name }}ViewProtocol: Loadable {
|
|
53
53
|
// MARK: PRESENTER -> WIREFRAME
|
54
54
|
protocol {{ module_name }}WireframeProtocol: class {
|
55
55
|
static func prepareModule() -> UIViewController
|
56
|
-
func navigate(to object: {{ model }}, from view:
|
56
|
+
func navigate(to object: {{ model }}, from view: UIViewController)
|
57
57
|
}
|
@@ -33,10 +33,8 @@ final class {{ module_name }}Wireframe {
|
|
33
33
|
// MARK: NAVIGATION
|
34
34
|
extension {{ module_name }}Wireframe: {{ module_name }}WireframeProtocol {
|
35
35
|
|
36
|
-
func navigate(to object: {{ model }}, from view:
|
37
|
-
guard let sourceView = view as? UIViewController else { return }
|
38
|
-
|
36
|
+
func navigate(to object: {{ model }}, from view: UIViewController) {
|
39
37
|
// let detailVC = {{ module_name }}DetailWireframe.prepareModule(with: object)
|
40
|
-
//
|
38
|
+
// view.navigationController?.pushViewController(detailVC, animated: true)
|
41
39
|
}
|
42
40
|
}
|
data/lib/molt/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: molt
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marco Cabazal
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-02-
|
11
|
+
date: 2018-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: commander
|