mvcgen 0.1.18 → 0.1.19

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: 527aae911488c059b370377b568eb048100bef88
4
- data.tar.gz: 20d4c574b8e76bbabd3bb910f3fc87de6b2022f0
3
+ metadata.gz: d3170692ab394b0250983cf46d14b17794973be3
4
+ data.tar.gz: 7efa4c0983cabd41eb588fd5a7eb1d8e82b731f3
5
5
  SHA512:
6
- metadata.gz: 1e39f86088333a7f5293c923c330f3dfc12fce17677cabb026d832ee1d6b3098988d5d43b3b2c0fcc60af4f356c18a250b828ccefc717e88c2aadd2ea9dbb441
7
- data.tar.gz: e5678b20e1f644360626037b64c0a18168f35953bb92e9a7fc1dfb6f5a6b76328e8357c705cc6e15679baf6a3f1a1aa6de52d53630fa92ad3a7e1b6a3ce1da0e
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
- <!-- ## :warning: This project is no longer maintained.
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 Objc.io, http://www.objc.io/issue-13/viper.html .
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 and Objective-C
22
- - Ready to be installed as a gem https://rubygems.org/gems/VIPERGen
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.6
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
- ### Changelog 0.1
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
- +-- DataManager
61
- | +-- VIPERDataManager.swift
62
- +-- Interactor
63
- | +-- VIPERInteractor.swift
64
- +-- Presenter
65
- | +-- VIPERPresenter.swift
66
- +-- ViewController
67
- | +-- VIPERViewController.swift
68
- +-- WireFrame
69
- | +-- VIPERWireFrame.swift
70
- +-- Protocols
71
- | +-- VIPERProtocols.swift
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:
@@ -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
- if file.include? (MVCgen::Generator::REPLACEMENT_KEY)
75
- rename_file(file, name)
76
- end
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
 
@@ -1,4 +1,4 @@
1
1
  module MVCgen
2
2
  NAME = "mvcgen"
3
- VERSION = "0.1.18"
3
+ VERSION = "0.1.19"
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mvcgen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.18
4
+ version: 0.1.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Martinez