vipergen-xctestable 0.2.9 → 0.3.0
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 +10 -9
- data/lib/templates/xctestable/swift/Protocols/VIPERProtocols.swift +1 -0
- data/lib/vipergen/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f686a4c7abf098f61e7065228cdb73fa06aef71
|
4
|
+
data.tar.gz: c3f50d48aa02939ec526a3314ad7ebe73a8dde50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ca25561cb3c2d438fd8b6823d4f8cd07726dc98cd04a7d5dd79c06487eae89029205b59c470dc6cae6d8a1e477d9a24a39f9fd6c45d69f1308c7742ad131ea21
|
7
|
+
data.tar.gz: e2d76be52ab03a4ae858b43e726e7ecae3cc33680d56d067c6ba041339ed399a15f8e4b071b3b7d0d9b0d257333d0ef331dc860405050fedbd62f52fbff44213
|
data/README.md
CHANGED
@@ -70,13 +70,13 @@ The implementation scheme returned by this generator is hardly inspired in the e
|
|
70
70
|
| +-- VIPERDataManager.swift
|
71
71
|
+-- Interactor
|
72
72
|
| +-- VIPERInteractor.swift
|
73
|
-
| +--
|
73
|
+
| +-- VIPERInteractorTests.swift
|
74
74
|
+-- Presenter
|
75
75
|
| +-- VIPERPresenter.swift
|
76
|
-
| +--
|
76
|
+
| +-- VIPERPresenterTests.swift
|
77
77
|
+-- View
|
78
78
|
| +-- VIPERView.swift
|
79
|
-
| +--
|
79
|
+
| +-- VIPERViewTests.swift
|
80
80
|
+-- WireFrame
|
81
81
|
| +-- VIPERWireFrame.swift
|
82
82
|
+-- Protocols
|
@@ -85,27 +85,27 @@ The implementation scheme returned by this generator is hardly inspired in the e
|
|
85
85
|
## How to install vipergen ?
|
86
86
|
You can install it easily as using the gem. With ruby installed in your OSX execute:
|
87
87
|
```bash
|
88
|
-
sudo gem install vipergen-
|
88
|
+
sudo gem install vipergen-xctestable
|
89
89
|
```
|
90
90
|
If everything were right, you should have now the vipergem command available in your system console
|
91
91
|
|
92
92
|
## How to generate a VIPER module with a given name?
|
93
93
|
You have just to execute the following command
|
94
94
|
```bash
|
95
|
-
vipergen generate MyFirstViperModule --path=~/myproject/shared
|
95
|
+
vipergen-xctestable generate MyFirstViperModule --path=~/myproject/shared
|
96
96
|
```
|
97
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
|
98
98
|
|
99
99
|
## What options are available in generator?
|
100
100
|
You have just to execute the following command
|
101
101
|
```bash
|
102
|
-
vipergen help generate
|
102
|
+
vipergen-xctestable help generate
|
103
103
|
```
|
104
104
|
And then you will see all options available
|
105
105
|
|
106
106
|
Sample:
|
107
107
|
```bash
|
108
|
-
vipergen generate <Module_Name> --path=<Path> --language=swift --author='michal' --template=testable --swift-module <MY_Project>
|
108
|
+
vipergen-xctestable generate <Module_Name> --path=<Path> --language=swift --author='michal' --template=testable --swift-module <MY_Project>
|
109
109
|
```
|
110
110
|
|
111
111
|
## How can I try the demo project?
|
@@ -122,8 +122,8 @@ vipergen generate <Module_Name> --path=<Path> --language=swift --author='michal'
|
|
122
122
|
When the gem is updated it has to be reported to the gem repository. I followed this tutorial http://amaras-tech.co.uk/article/43/Creating_executable_gems that basically says that once you have your gem ready execute:
|
123
123
|
```bash
|
124
124
|
gem build vipergen.gemspec
|
125
|
-
gem install vipergen-0.
|
126
|
-
gem push vipergen-0.
|
125
|
+
gem install vipergen-xctestable-0.3.0.gem
|
126
|
+
gem push vipergen-xctestable-0.3.0.gem
|
127
127
|
```
|
128
128
|
Then you'll be asked for your credentials in order to make the update in the repo (http://guides.rubygems.org/publishing/)
|
129
129
|
|
@@ -144,6 +144,7 @@ updated_at: 2014-08-24
|
|
144
144
|
### Available Templates
|
145
145
|
- default by pepimbur
|
146
146
|
- testable by wojtysim (includes Spec file templates for Interactor, Presenter and View)
|
147
|
+
- xctestable by hhtopcu (Swift 3.0 compliant and XCTest copmliant)
|
147
148
|
|
148
149
|
## Resources
|
149
150
|
- Redbooth presentation: https://speakerdeck.com/sergigracia/clean-architecture-viper
|
data/lib/vipergen/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: vipergen-xctestable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pedro Piñera
|
@@ -82,8 +82,9 @@ dependencies:
|
|
82
82
|
- - '>='
|
83
83
|
- !ruby/object:Gem::Version
|
84
84
|
version: '0'
|
85
|
-
description:
|
86
|
-
|
85
|
+
description: Swift 3.0 compliant VIPER architecture based on the objc.io post about
|
86
|
+
VIPER. It saves time in the implementation generating the controllers and adding
|
87
|
+
interactions between them (in Swift or Objective-C)
|
87
88
|
email: hhtopcu@gmail.com
|
88
89
|
executables:
|
89
90
|
- vipergen
|