vipergen-roche 0.2.6 → 0.2.7
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/README.md +26 -3
- data/lib/templates/testable/swift/WireFrame/VIPERWireFrame.swift +1 -1
- data/lib/vipergen/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bdd831fc3add818afc0a89dd2927ffcc2c8d931d
|
4
|
+
data.tar.gz: d5bdaac60c60a5891e4e52c8a982610c38953ad9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9a31e496c1c0317ed026bfa6fc43904d68e3e81eec6a30ece9f41bb14738fee73b70966506f9800f5f2ef5a042d788d454692bbcd8fc7b1d0bafc86c4a1157b8
|
7
|
+
data.tar.gz: 03b10031dd4064b82be2e24f72a72cb46321861e93dbaa24781981f90c403ee74a883ccddaa18092eb5a4bafbc1659e43e6b3e04ab3d32932bdda6775b685929
|
data/README.md
CHANGED
@@ -51,12 +51,15 @@ The implementation scheme returned by this generator is hardly inspired in the e
|
|
51
51
|
+-- Interactor
|
52
52
|
| +-- VIPERInteractor.h
|
53
53
|
| +-- VIPERInteractor.m
|
54
|
+
| +-- VIPERInteractorSpec.m
|
54
55
|
+-- Presenter
|
55
56
|
| +-- VIPERPresenter.h
|
56
57
|
| +-- VIPERPresenter.m
|
58
|
+
| +-- VIPERPresenterSpec.m
|
57
59
|
+-- ViewController
|
58
60
|
| +-- VIPERViewController.h
|
59
61
|
| +-- VIPERViewController.m
|
62
|
+
| +-- VIPERViewControllerSpec.m
|
60
63
|
+-- WireFrame
|
61
64
|
| +-- VIPERWireFrame.h
|
62
65
|
| +-- VIPERWireFrame.m
|
@@ -67,10 +70,13 @@ The implementation scheme returned by this generator is hardly inspired in the e
|
|
67
70
|
| +-- VIPERDataManager.swift
|
68
71
|
+-- Interactor
|
69
72
|
| +-- VIPERInteractor.swift
|
73
|
+
| +-- VIPERInteractorSpec.swift
|
70
74
|
+-- Presenter
|
71
75
|
| +-- VIPERPresenter.swift
|
72
|
-
+--
|
73
|
-
|
76
|
+
| +-- VIPERPresenterSpec.swift
|
77
|
+
+-- View
|
78
|
+
| +-- VIPERView.swift
|
79
|
+
| +-- VIPERViewSpec.swift
|
74
80
|
+-- WireFrame
|
75
81
|
| +-- VIPERWireFrame.swift
|
76
82
|
+-- Protocols
|
@@ -79,7 +85,7 @@ The implementation scheme returned by this generator is hardly inspired in the e
|
|
79
85
|
## How to install vipergen ?
|
80
86
|
You can install it easily as using the gem. With ruby installed in your OSX execute:
|
81
87
|
```bash
|
82
|
-
sudo gem install vipergen
|
88
|
+
sudo gem install vipergen-roche
|
83
89
|
```
|
84
90
|
If everything were right, you should have now the vipergem command available in your system console
|
85
91
|
|
@@ -90,6 +96,18 @@ vipergen generate MyFirstViperModule --path=~/myproject/shared
|
|
90
96
|
```
|
91
97
|
And then the files structure will be automatically created. Don't forget to add this folder to your project dragging it into the XCode/Appcode inspector
|
92
98
|
|
99
|
+
## What options are available in generator?
|
100
|
+
You have just to execute the following command
|
101
|
+
```bash
|
102
|
+
vipergen help generate
|
103
|
+
```
|
104
|
+
And then you will see all options available
|
105
|
+
|
106
|
+
Sample:
|
107
|
+
```bash
|
108
|
+
vipergen generate <Module_Name> --path=<Path> --language=swift --author='michal' --template=testable --swift-module <MY_Project>
|
109
|
+
```
|
110
|
+
|
93
111
|
## How can I try the demo project?
|
94
112
|
|
95
113
|
1. Clone the repo `git clone https://github.com/pepibumur/viper-module-generator.git`
|
@@ -123,7 +141,12 @@ updated_at: 2014-08-24
|
|
123
141
|
```
|
124
142
|
- Report it as a PR in this repo updating the gem version in Gemspec.
|
125
143
|
|
144
|
+
### Available Templates
|
145
|
+
- default by pepimbur
|
146
|
+
- testable by wojtysim (includes Spec file templates for Interactor, Presenter and View)
|
147
|
+
|
126
148
|
## Resources
|
149
|
+
- Redbooth presentation: https://speakerdeck.com/sergigracia/clean-architecture-viper
|
127
150
|
- Rspec documentation: http://rubydoc.info/gems/rspec-expectations/frames
|
128
151
|
- XCode Plugins: http://nshipster.com/xcode-plugins/
|
129
152
|
- XCodeProj gem (to modify project groups structure): https://github.com/CocoaPods/Xcodeproj
|
@@ -7,7 +7,7 @@ import Foundation
|
|
7
7
|
|
8
8
|
class VIPERWireFrame: VIPERWireFrameProtocol
|
9
9
|
{
|
10
|
-
class func presentVIPERModule(fromView
|
10
|
+
class func presentVIPERModule(fromView parentView: AnyObject)
|
11
11
|
{
|
12
12
|
// Generating module components
|
13
13
|
let view: VIPERViewProtocol = VIPERView()
|
data/lib/vipergen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,15 @@
|
|
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.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
|
+
- Pedro Piñera
|
7
8
|
- Michal Wojtysiak
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2015-
|
12
|
+
date: 2015-10-02 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: rake
|