mvcgen 0.1.18 → 0.1.19
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +89 -50
- data/lib/mvcgen/generator.rb +4 -3
- data/lib/mvcgen/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3170692ab394b0250983cf46d14b17794973be3
|
4
|
+
data.tar.gz: 7efa4c0983cabd41eb588fd5a7eb1d8e82b731f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b1fdb0f174bd94bb69f0f20f4d8d10a56af649001574abc9ddc499d785b06ede56bb00a42e27b4e92d938d1e0df076f39b0fabc9326286460094afda8e32c7cd
|
7
|
+
data.tar.gz: 5388db4aadc311ef697d18394faedb4ba851b6f2c89b53537a8ab8c8eebc3fd79b569860d11bf7c85e31b41c0474c23dcba25c9860e2d6249a35617e8c1e370f
|
data/README.md
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
MVC Module Generator
|
2
2
|
======================
|
3
3
|
|
4
|
-
|
4
|
+
## :warning: This project is currently on development and it must be used before project starts, otherwise it will override some of your files.
|
5
5
|
|
6
|
-
Gem to generate MVC modules to use them in your Swift projects
|
7
|
-
The implementation scheme returned by this generator is hardly inspired in the example and post of
|
6
|
+
Gem to generate MVC starting modules to use them in your Swift projects
|
7
|
+
The implementation scheme returned by this generator is hardly inspired in the example and post of vipergen, https://rubygems.org/gems/vipergen/versions/0.2.6 .
|
8
8
|
|
9
9
|
- [Features](#features)
|
10
10
|
- [Changelog](#changelog-0.1)
|
@@ -18,57 +18,96 @@ The implementation scheme returned by this generator is hardly inspired in the e
|
|
18
18
|
- [Resources](#resources)
|
19
19
|
|
20
20
|
## Features
|
21
|
-
- Generates the module in Swift
|
22
|
-
- Ready to be installed as a gem https://rubygems.org/gems/
|
21
|
+
- Generates the module in Swift, including required podfile
|
22
|
+
- Ready to be installed as a gem https://rubygems.org/gems/mvcgen
|
23
23
|
|
24
|
-
### Changelog 0.1.
|
25
|
-
- Added `templates` command to know which templates are available
|
26
|
-
- YAML file in each template with the information about the template (more scalable)
|
24
|
+
<!-- ### Changelog 0.1.1 -->
|
27
25
|
|
28
|
-
|
29
|
-
- Added default template
|
30
|
-
- Fully components tested
|
31
|
-
|
32
|
-
### Expected in version 0.2
|
33
|
-
- Example project of Redbooth login with notifications
|
34
|
-
- FetchedResultsController template
|
35
|
-
- Default template in Swift
|
36
|
-
- Login template
|
37
|
-
- Integrate with XCode as a plugin (http://nshipster.com/xcode-plugins/)
|
38
|
-
|
39
|
-
## Viper files structure
|
26
|
+
## MVC files structure
|
40
27
|
```bash
|
41
|
-
.objc
|
42
|
-
+-- DataManager
|
43
|
-
| +-- VIPERDataManager.h
|
44
|
-
| +-- VIPERDataManager.m
|
45
|
-
+-- Interactor
|
46
|
-
| +-- VIPERInteractor.h
|
47
|
-
| +-- VIPERInteractor.m
|
48
|
-
+-- Presenter
|
49
|
-
| +-- VIPERPresenter.h
|
50
|
-
| +-- VIPERPresenter.m
|
51
|
-
+-- ViewController
|
52
|
-
| +-- VIPERViewController.h
|
53
|
-
| +-- VIPERViewController.m
|
54
|
-
+-- WireFrame
|
55
|
-
| +-- VIPERWireFrame.h
|
56
|
-
| +-- VIPERWireFrame.m
|
57
|
-
+-- Protocols
|
58
|
-
| +-- VIPERProtocols.h
|
59
28
|
.swift
|
60
|
-
+--
|
61
|
-
| +--
|
62
|
-
+--
|
63
|
-
| +--
|
64
|
-
+--
|
65
|
-
| +--
|
66
|
-
+--
|
67
|
-
| +--
|
68
|
-
+--
|
69
|
-
| +--
|
70
|
-
+--
|
71
|
-
| +--
|
29
|
+
+-- Helper
|
30
|
+
| +-- Utils.swift
|
31
|
+
| +-- AWSManager.swift
|
32
|
+
| +-- FilesManager.swift
|
33
|
+
| +-- APIManager.swift
|
34
|
+
| +-- APIRequestBody.swift
|
35
|
+
| +-- S3Manager.swift
|
36
|
+
| +-- APIHelper.swift
|
37
|
+
+-- Controllers
|
38
|
+
| +-- Login
|
39
|
+
| | +-- LoginVC.swift
|
40
|
+
| | +-- RegisterVC.swift
|
41
|
+
| | +-- ForgetPasswordVC.swift
|
42
|
+
| +-- Notifications
|
43
|
+
| | +-- NotificationsVC.swift
|
44
|
+
| | +-- Cells
|
45
|
+
| | | +-- NotificationsCell.swift
|
46
|
+
| +-- Profile
|
47
|
+
| | +-- ProfileContainerVC.swift
|
48
|
+
| | +-- AboutUsVC.swift
|
49
|
+
| | +-- ProfileTVC.swift
|
50
|
+
| | +-- Cells
|
51
|
+
| | | +-- ImagesCollectionViewCell.swift
|
52
|
+
| | | +-- DescriptionCell.swift
|
53
|
+
| | | +-- DestinationCellView.xib
|
54
|
+
| | | +-- DestinationCell.swift
|
55
|
+
| | | +-- FavoriteCollectionCell.swift
|
56
|
+
| | | +-- AboutUsImageCell.swift
|
57
|
+
| +-- OtherLogin
|
58
|
+
| | +-- SelectLanguageCell.swift
|
59
|
+
| | +-- OtherRegisterVC.swift
|
60
|
+
| | +-- ForgetPasswordTVC.swift
|
61
|
+
| | +-- LoginTVC.swift
|
62
|
+
| | +-- SelectLanguageVC.swift
|
63
|
+
| | +-- TermsAndConditionsVC.swift
|
64
|
+
| +-- Tutorial
|
65
|
+
| | +-- TutorialVC.swift
|
66
|
+
+-- Extensions
|
67
|
+
| +-- UIColorExtensions.swift
|
68
|
+
| +-- GradientView.swift
|
69
|
+
| +-- ArrayDuplicates.swift
|
70
|
+
| +-- Images.swift
|
71
|
+
| +-- HideKeyboard.swift
|
72
|
+
| +-- InnerShadowExtension.swift
|
73
|
+
| +-- CustomCamera.swift
|
74
|
+
| +-- TableViewEmptyView.swift
|
75
|
+
| +-- Buttons.swift
|
76
|
+
| +-- TapEffectExtension.swift
|
77
|
+
| +-- UnderlinedWithIconTextField.swift
|
78
|
+
| +-- UnderlinedTextView.swift
|
79
|
+
+-- Models
|
80
|
+
| +-- Notif.swift
|
81
|
+
| +-- Country.swift
|
82
|
+
| +-- User.swift
|
83
|
+
| +-- Responeses
|
84
|
+
| | +-- UserResponse.swift
|
85
|
+
| | +-- NotificationResponse.swift
|
86
|
+
| | +-- BaseResponse.swift
|
87
|
+
| | +-- UserSingupResponse.swift
|
88
|
+
| +-- Managers
|
89
|
+
| | +-- UserManager.swift
|
90
|
+
+-- Config
|
91
|
+
| +-- Config.plist
|
92
|
+
| +-- Config.swift
|
93
|
+
+-- UI
|
94
|
+
| +-- Views
|
95
|
+
| | +-- EmptyTableView
|
96
|
+
| | | +-- EmptyTableLabelView.swift
|
97
|
+
| | | +-- NoNotificationView.swift
|
98
|
+
| | | +-- Xibs
|
99
|
+
| | | | +-- EmptyTableLabelView.xib
|
100
|
+
| | | | +-- NoNotificationsView.xib
|
101
|
+
| +-- Storyboards
|
102
|
+
| | +-- Login.storyboard
|
103
|
+
| | +-- OtherLogin.storyboard
|
104
|
+
| | +-- Home.storyboard
|
105
|
+
+-- Info.plist
|
106
|
+
+-- Assets.xcassets
|
107
|
+
+-- AppDelegate.swift
|
108
|
+
.podfile
|
109
|
+
+-- Podfile
|
110
|
+
| +-- podfile
|
72
111
|
```
|
73
112
|
## How to install vipergen ?
|
74
113
|
You can install it easily as using the gem. With ruby installed in your OSX execute:
|
data/lib/mvcgen/generator.rb
CHANGED
@@ -71,9 +71,10 @@ module MVCgen
|
|
71
71
|
# - It renames the content of the file
|
72
72
|
def self.rename_files(files, name)
|
73
73
|
files.each do |file|
|
74
|
-
|
75
|
-
|
76
|
-
|
74
|
+
rename_file_content(file, name)
|
75
|
+
# if file.include? (MVCgen::Generator::REPLACEMENT_KEY)
|
76
|
+
# rename_file(file, name)
|
77
|
+
# end
|
77
78
|
end
|
78
79
|
end
|
79
80
|
|
data/lib/mvcgen/version.rb
CHANGED