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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e3011f13b0f469c8c0de16c3b98bf9a24272ef6a
4
- data.tar.gz: d9e02d59aa79110500b99e100e1f87476dfbfedb
3
+ metadata.gz: f20c037aec241164349e86753b7027c328f02abc
4
+ data.tar.gz: e42552f7894013b8e04797d05763f6aa8560b986
5
5
  SHA512:
6
- metadata.gz: 2740f351b7542e0cf7702f160d8d4e9df107abe18d142ba7dfa0dfd70cde8990105716ed1565b9570693af017acfb69a8e7af8646d04c4895259436849b555a9
7
- data.tar.gz: 1c10d71fb96e863fd587d09ce85c4d5b4cc11d3fee0d8555ed88d00c69a0a652ddee28dec26bb71271071e547de10690e77ef13404653032df4aa0afc069aa1f
6
+ metadata.gz: 5cabbd65b03dad331ca2a2df9321507fb04d8bbc6bf7b300736f087415359d0d41f380e83df568d8309daf4c25d6dda959dd09503d2db94b24d947dddf175589
7
+ data.tar.gz: 2439437d75262b6f41ca8849129540b67a38623337a9e448867afb04979566c10ef89b943a0a49adb1204a61003b2c9d2ba276f2337b40411b368b3151532896
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- molt (0.2.1)
4
+ molt (0.2.2)
5
5
  commander
6
6
  liquid (~> 4.0.0)
7
7
  terminal-table
@@ -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: {{ module_name }}ViewProtocol)
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: {{ module_name }}ViewProtocol) {
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
- // sourceView.navigationController?.pushViewController(detailVC, animated: true)
38
+ // view.navigationController?.pushViewController(detailVC, animated: true)
41
39
  }
42
40
  }
@@ -1,3 +1,3 @@
1
1
  module Molt
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
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.1
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-23 00:00:00.000000000 Z
11
+ date: 2018-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander