mvcgen 0.1.19 → 0.1.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +16 -16
- data/lib/mvcgen/version.rb +1 -1
- metadata +2 -8
- data/lib/basexcodetemplate/AppDelegate.swift +0 -46
- data/lib/basexcodetemplate/Assets.xcassets/AppIcon.appiconset/Contents.json +0 -98
- data/lib/basexcodetemplate/Assets.xcassets/Contents.json +0 -6
- data/lib/basexcodetemplate/Info.plist +0 -45
- data/lib/basexcodetemplate/LaunchScreen.storyboard +0 -25
- data/lib/basexcodetemplate/Main.storyboard +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c6d2b0188f0092f35c61de28a1f6c3dba6612432
|
4
|
+
data.tar.gz: 68adf84e24be94e067c4a70112540293e9b02858
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 34d5ac13e410067e630c9193478685d411f6fcb0fd2bfcc51b61494b36c7321cb105122c6d8c1049a4424b561947c8c6f04a35e76449948bffa4b97e01893407
|
7
|
+
data.tar.gz: 3b2a068d12d78cd888f7f69d23dce9ac9e49aacc8fcb4b1b944255558ea39bc5e9a3df0bc30d126983f3c4c30bcb0b4ce620ebcd37f4012035150fec29edd721
|
data/README.md
CHANGED
@@ -109,19 +109,19 @@ The implementation scheme returned by this generator is hardly inspired in the e
|
|
109
109
|
+-- Podfile
|
110
110
|
| +-- podfile
|
111
111
|
```
|
112
|
-
## How to install
|
112
|
+
## How to install mvcgen ?
|
113
113
|
You can install it easily as using the gem. With ruby installed in your OSX execute:
|
114
114
|
```bash
|
115
|
-
sudo gem install
|
115
|
+
sudo gem install mvcgen
|
116
116
|
```
|
117
|
-
If everything were right, you should have now the
|
117
|
+
If everything were right, you should have now the mvcgen command available in your system console
|
118
118
|
|
119
|
-
## How to generate a
|
120
|
-
You have just to execute the following command
|
119
|
+
## How to generate a MVC module with a given name?
|
120
|
+
You have just to execute the following command standing on your project main folder
|
121
121
|
```bash
|
122
|
-
|
122
|
+
mvcgen generate YourProjectName --path=./
|
123
123
|
```
|
124
|
-
And then the files structure will be automatically created. Don't forget to
|
124
|
+
And then the files structure will be automatically created and added to the project. Don't forget to run pod install after that
|
125
125
|
|
126
126
|
## Developer tips
|
127
127
|
### Update the gem
|
@@ -133,19 +133,19 @@ gem push vipergen-0.1.gem
|
|
133
133
|
```
|
134
134
|
Then you'll be asked for your credentials in order to make the update in the repo (http://guides.rubygems.org/publishing/)
|
135
135
|
|
136
|
-
### Add a new template
|
137
|
-
Are you interested in
|
136
|
+
<!-- ### Add a new template
|
137
|
+
Are you interested in MVC and you would like to contribute with this gem adding new templates? Feel free to do it. It's pretty easy. You've just to:
|
138
138
|
- Create a folder inside `templates` with the name of your template
|
139
|
-
- You'll have to create inside the templates
|
140
|
-
- Use the word
|
141
|
-
- Remember to add the file
|
139
|
+
- You'll have to create inside the templates a swift folder with your files (get inspired from existing templates)
|
140
|
+
- Use the word MVCGEN where you want the name to be replaced in.
|
141
|
+
- Remember to add the file mvcspec.yml with the description of your template as below:
|
142
142
|
```yaml
|
143
143
|
author: pepi
|
144
|
-
author_email:
|
145
|
-
template_description: Default template with the simplest structure using
|
146
|
-
updated_at:
|
144
|
+
author_email: daniel.martinezcg@gmail.com
|
145
|
+
template_description: Default template with the simplest structure using MVC
|
146
|
+
updated_at: 2018-08-01
|
147
147
|
```
|
148
|
-
- Report it as a PR in this repo updating the gem version in Gemspec.
|
148
|
+
- Report it as a PR in this repo updating the gem version in Gemspec. -->
|
149
149
|
|
150
150
|
## Resources
|
151
151
|
- Rspec documentation: http://rubydoc.info/gems/rspec-expectations/frames
|
data/lib/mvcgen/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mvcgen
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.20
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martinez
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-08-
|
11
|
+
date: 2018-08-14 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -92,12 +92,6 @@ files:
|
|
92
92
|
- LICENSE
|
93
93
|
- README.md
|
94
94
|
- bin/mvcgen
|
95
|
-
- lib/basexcodetemplate/AppDelegate.swift
|
96
|
-
- lib/basexcodetemplate/Assets.xcassets/AppIcon.appiconset/Contents.json
|
97
|
-
- lib/basexcodetemplate/Assets.xcassets/Contents.json
|
98
|
-
- lib/basexcodetemplate/Info.plist
|
99
|
-
- lib/basexcodetemplate/LaunchScreen.storyboard
|
100
|
-
- lib/basexcodetemplate/Main.storyboard
|
101
95
|
- lib/mvcgen.rb
|
102
96
|
- lib/mvcgen/dirutils.rb
|
103
97
|
- lib/mvcgen/filemanager.rb
|
@@ -1,46 +0,0 @@
|
|
1
|
-
//
|
2
|
-
// AppDelegate.swift
|
3
|
-
// testing
|
4
|
-
//
|
5
|
-
// Created by Daniel Martinez on 7/24/18.
|
6
|
-
// Copyright © 2018 Houlak. All rights reserved.
|
7
|
-
//
|
8
|
-
|
9
|
-
import UIKit
|
10
|
-
|
11
|
-
@UIApplicationMain
|
12
|
-
class AppDelegate: UIResponder, UIApplicationDelegate {
|
13
|
-
|
14
|
-
var window: UIWindow?
|
15
|
-
|
16
|
-
|
17
|
-
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool {
|
18
|
-
// Override point for customization after application launch.
|
19
|
-
return true
|
20
|
-
}
|
21
|
-
|
22
|
-
func applicationWillResignActive(_ application: UIApplication) {
|
23
|
-
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
|
24
|
-
// Use this method to pause ongoing tasks, disable timers, and invalidate graphics rendering callbacks. Games should use this method to pause the game.
|
25
|
-
}
|
26
|
-
|
27
|
-
func applicationDidEnterBackground(_ application: UIApplication) {
|
28
|
-
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
|
29
|
-
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
|
30
|
-
}
|
31
|
-
|
32
|
-
func applicationWillEnterForeground(_ application: UIApplication) {
|
33
|
-
// Called as part of the transition from the background to the active state; here you can undo many of the changes made on entering the background.
|
34
|
-
}
|
35
|
-
|
36
|
-
func applicationDidBecomeActive(_ application: UIApplication) {
|
37
|
-
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
|
38
|
-
}
|
39
|
-
|
40
|
-
func applicationWillTerminate(_ application: UIApplication) {
|
41
|
-
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
|
42
|
-
}
|
43
|
-
|
44
|
-
|
45
|
-
}
|
46
|
-
|
@@ -1,98 +0,0 @@
|
|
1
|
-
{
|
2
|
-
"images" : [
|
3
|
-
{
|
4
|
-
"idiom" : "iphone",
|
5
|
-
"size" : "20x20",
|
6
|
-
"scale" : "2x"
|
7
|
-
},
|
8
|
-
{
|
9
|
-
"idiom" : "iphone",
|
10
|
-
"size" : "20x20",
|
11
|
-
"scale" : "3x"
|
12
|
-
},
|
13
|
-
{
|
14
|
-
"idiom" : "iphone",
|
15
|
-
"size" : "29x29",
|
16
|
-
"scale" : "2x"
|
17
|
-
},
|
18
|
-
{
|
19
|
-
"idiom" : "iphone",
|
20
|
-
"size" : "29x29",
|
21
|
-
"scale" : "3x"
|
22
|
-
},
|
23
|
-
{
|
24
|
-
"idiom" : "iphone",
|
25
|
-
"size" : "40x40",
|
26
|
-
"scale" : "2x"
|
27
|
-
},
|
28
|
-
{
|
29
|
-
"idiom" : "iphone",
|
30
|
-
"size" : "40x40",
|
31
|
-
"scale" : "3x"
|
32
|
-
},
|
33
|
-
{
|
34
|
-
"idiom" : "iphone",
|
35
|
-
"size" : "60x60",
|
36
|
-
"scale" : "2x"
|
37
|
-
},
|
38
|
-
{
|
39
|
-
"idiom" : "iphone",
|
40
|
-
"size" : "60x60",
|
41
|
-
"scale" : "3x"
|
42
|
-
},
|
43
|
-
{
|
44
|
-
"idiom" : "ipad",
|
45
|
-
"size" : "20x20",
|
46
|
-
"scale" : "1x"
|
47
|
-
},
|
48
|
-
{
|
49
|
-
"idiom" : "ipad",
|
50
|
-
"size" : "20x20",
|
51
|
-
"scale" : "2x"
|
52
|
-
},
|
53
|
-
{
|
54
|
-
"idiom" : "ipad",
|
55
|
-
"size" : "29x29",
|
56
|
-
"scale" : "1x"
|
57
|
-
},
|
58
|
-
{
|
59
|
-
"idiom" : "ipad",
|
60
|
-
"size" : "29x29",
|
61
|
-
"scale" : "2x"
|
62
|
-
},
|
63
|
-
{
|
64
|
-
"idiom" : "ipad",
|
65
|
-
"size" : "40x40",
|
66
|
-
"scale" : "1x"
|
67
|
-
},
|
68
|
-
{
|
69
|
-
"idiom" : "ipad",
|
70
|
-
"size" : "40x40",
|
71
|
-
"scale" : "2x"
|
72
|
-
},
|
73
|
-
{
|
74
|
-
"idiom" : "ipad",
|
75
|
-
"size" : "76x76",
|
76
|
-
"scale" : "1x"
|
77
|
-
},
|
78
|
-
{
|
79
|
-
"idiom" : "ipad",
|
80
|
-
"size" : "76x76",
|
81
|
-
"scale" : "2x"
|
82
|
-
},
|
83
|
-
{
|
84
|
-
"idiom" : "ipad",
|
85
|
-
"size" : "83.5x83.5",
|
86
|
-
"scale" : "2x"
|
87
|
-
},
|
88
|
-
{
|
89
|
-
"idiom" : "ios-marketing",
|
90
|
-
"size" : "1024x1024",
|
91
|
-
"scale" : "1x"
|
92
|
-
}
|
93
|
-
],
|
94
|
-
"info" : {
|
95
|
-
"version" : 1,
|
96
|
-
"author" : "xcode"
|
97
|
-
}
|
98
|
-
}
|
@@ -1,45 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
-
<plist version="1.0">
|
4
|
-
<dict>
|
5
|
-
<key>CFBundleDevelopmentRegion</key>
|
6
|
-
<string>$(DEVELOPMENT_LANGUAGE)</string>
|
7
|
-
<key>CFBundleExecutable</key>
|
8
|
-
<string>$(EXECUTABLE_NAME)</string>
|
9
|
-
<key>CFBundleIdentifier</key>
|
10
|
-
<string>$(PRODUCT_BUNDLE_IDENTIFIER)</string>
|
11
|
-
<key>CFBundleInfoDictionaryVersion</key>
|
12
|
-
<string>6.0</string>
|
13
|
-
<key>CFBundleName</key>
|
14
|
-
<string>$(PRODUCT_NAME)</string>
|
15
|
-
<key>CFBundlePackageType</key>
|
16
|
-
<string>APPL</string>
|
17
|
-
<key>CFBundleShortVersionString</key>
|
18
|
-
<string>1.0</string>
|
19
|
-
<key>CFBundleVersion</key>
|
20
|
-
<string>1</string>
|
21
|
-
<key>LSRequiresIPhoneOS</key>
|
22
|
-
<true/>
|
23
|
-
<key>UILaunchStoryboardName</key>
|
24
|
-
<string>LaunchScreen</string>
|
25
|
-
<key>UIMainStoryboardFile</key>
|
26
|
-
<string>Main</string>
|
27
|
-
<key>UIRequiredDeviceCapabilities</key>
|
28
|
-
<array>
|
29
|
-
<string>armv7</string>
|
30
|
-
</array>
|
31
|
-
<key>UISupportedInterfaceOrientations</key>
|
32
|
-
<array>
|
33
|
-
<string>UIInterfaceOrientationPortrait</string>
|
34
|
-
<string>UIInterfaceOrientationLandscapeLeft</string>
|
35
|
-
<string>UIInterfaceOrientationLandscapeRight</string>
|
36
|
-
</array>
|
37
|
-
<key>UISupportedInterfaceOrientations~ipad</key>
|
38
|
-
<array>
|
39
|
-
<string>UIInterfaceOrientationPortrait</string>
|
40
|
-
<string>UIInterfaceOrientationPortraitUpsideDown</string>
|
41
|
-
<string>UIInterfaceOrientationLandscapeLeft</string>
|
42
|
-
<string>UIInterfaceOrientationLandscapeRight</string>
|
43
|
-
</array>
|
44
|
-
</dict>
|
45
|
-
</plist>
|
@@ -1,25 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" launchScreen="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="01J-lp-oVM">
|
3
|
-
<dependencies>
|
4
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
5
|
-
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
6
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
7
|
-
</dependencies>
|
8
|
-
<scenes>
|
9
|
-
<!--View Controller-->
|
10
|
-
<scene sceneID="EHf-IW-A2E">
|
11
|
-
<objects>
|
12
|
-
<viewController id="01J-lp-oVM" sceneMemberID="viewController">
|
13
|
-
<view key="view" contentMode="scaleToFill" id="Ze5-6b-2t3">
|
14
|
-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
15
|
-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
16
|
-
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
17
|
-
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
18
|
-
</view>
|
19
|
-
</viewController>
|
20
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="iYj-Kq-Ea1" userLabel="First Responder" sceneMemberID="firstResponder"/>
|
21
|
-
</objects>
|
22
|
-
<point key="canvasLocation" x="53" y="375"/>
|
23
|
-
</scene>
|
24
|
-
</scenes>
|
25
|
-
</document>
|
@@ -1,24 +0,0 @@
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
-
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="13122.16" systemVersion="17A277" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" useSafeAreas="YES" colorMatched="YES" initialViewController="BYZ-38-t0r">
|
3
|
-
<dependencies>
|
4
|
-
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="13104.12"/>
|
5
|
-
<capability name="Safe area layout guides" minToolsVersion="9.0"/>
|
6
|
-
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
|
7
|
-
</dependencies>
|
8
|
-
<scenes>
|
9
|
-
<!--View Controller-->
|
10
|
-
<scene sceneID="tne-QT-ifu">
|
11
|
-
<objects>
|
12
|
-
<viewController id="BYZ-38-t0r" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
|
13
|
-
<view key="view" contentMode="scaleToFill" id="8bC-Xf-vdC">
|
14
|
-
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
|
15
|
-
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
|
16
|
-
<color key="backgroundColor" red="1" green="1" blue="1" alpha="1" colorSpace="custom" customColorSpace="sRGB"/>
|
17
|
-
<viewLayoutGuide key="safeArea" id="6Tk-OE-BBY"/>
|
18
|
-
</view>
|
19
|
-
</viewController>
|
20
|
-
<placeholder placeholderIdentifier="IBFirstResponder" id="dkx-z0-nzr" sceneMemberID="firstResponder"/>
|
21
|
-
</objects>
|
22
|
-
</scene>
|
23
|
-
</scenes>
|
24
|
-
</document>
|