rswift 0.1.1 → 0.1.2
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/lib/rswift/templates/app/ios/.swiftlint.yml.erb +3 -0
- data/lib/rswift/templates/app/ios/app/AppDelegate.swift.erb +2 -1
- data/lib/rswift/templates/app/ios/spec/AppDelegateSpec.swift.erb +1 -1
- data/lib/rswift/templates/app/osx/.swiftlint.yml.erb +3 -0
- data/lib/rswift/templates/app/osx/app/AppDelegate.swift.erb +9 -5
- data/lib/rswift/templates/app/osx/app/main.swift.erb +1 -1
- data/lib/rswift/templates/app/osx/spec/AppDelegateSpec.swift.erb +1 -1
- data/lib/rswift/templates/app/tvos/.swiftlint.yml.erb +3 -0
- data/lib/rswift/templates/app/tvos/app/AppDelegate.swift.erb +2 -1
- data/lib/rswift/templates/app/tvos/spec/AppDelegateSpec.swift.erb +1 -1
- data/lib/rswift/version.rb +1 -1
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02eac7f37932040d9c8d9bb0b1d50e225632f5ee
|
4
|
+
data.tar.gz: a00e6f0ffa2cb5f6baea99b90b88a3a0b68860ff
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c0194408d9a61e18e4ec209829ce845baf7add58e65135c0e57f883bcb2bd645e921b554d44f138ff2444199a03105f080ada1cc2f2fd440669755ba53f45d7c
|
7
|
+
data.tar.gz: cd90b6adbdfc4e5f91a4ff7732a2897ee557d13c71ac42ab1986469ccc2be3cf97b405172659e05a14280968dd7b6f958527bcd3cf26e538c20968d34d5a2ce2
|
@@ -5,7 +5,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
5
5
|
|
6
6
|
var window: UIWindow?
|
7
7
|
|
8
|
-
func application(application: UIApplication,
|
8
|
+
func application(application: UIApplication,
|
9
|
+
didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool {
|
9
10
|
window = UIWindow(frame: UIScreen.mainScreen().bounds)
|
10
11
|
window?.rootViewController = UIViewController()
|
11
12
|
window?.backgroundColor = UIColor.whiteColor()
|
@@ -5,20 +5,24 @@ class AppDelegate: NSObject, NSApplicationDelegate {
|
|
5
5
|
var window: NSWindow?
|
6
6
|
|
7
7
|
func applicationDidFinishLaunching(aNotification: NSNotification) {
|
8
|
-
let appName = NSBundle.mainBundle().infoDictionary?["CFBundleName"] as
|
8
|
+
guard let appName = NSBundle.mainBundle().infoDictionary?["CFBundleName"] as? String else {
|
9
|
+
return
|
10
|
+
}
|
9
11
|
|
10
12
|
let mainMenu = NSMenu(title: appName)
|
11
13
|
let appNameMenuItem = NSMenuItem(title: "", action: nil, keyEquivalent: "")
|
12
14
|
let appNameMenu = NSMenu(title: appName)
|
13
|
-
appNameMenu.addItemWithTitle("Quit \(appName)",
|
15
|
+
appNameMenu.addItemWithTitle("Quit \(appName)",
|
16
|
+
action: #selector(terminate), keyEquivalent: "q")
|
14
17
|
appNameMenuItem.submenu = appNameMenu
|
15
18
|
mainMenu.addItem(appNameMenuItem)
|
16
19
|
NSApp.mainMenu = mainMenu
|
17
20
|
|
18
21
|
window = NSWindow(contentRect: NSMakeRect(240, 180, 480, 360),
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
+
styleMask: NSTitledWindowMask | NSClosableWindowMask |
|
23
|
+
NSMiniaturizableWindowMask | NSResizableWindowMask,
|
24
|
+
backing: .Buffered,
|
25
|
+
defer: false)
|
22
26
|
window?.title = appName
|
23
27
|
window?.orderFrontRegardless()
|
24
28
|
}
|
@@ -5,7 +5,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
|
|
5
5
|
|
6
6
|
var window: UIWindow?
|
7
7
|
|
8
|
-
func application(application: UIApplication,
|
8
|
+
func application(application: UIApplication,
|
9
|
+
didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool {
|
9
10
|
window = UIWindow(frame: UIScreen.mainScreen().bounds)
|
10
11
|
window?.rootViewController = UIViewController()
|
11
12
|
window?.backgroundColor = UIColor.whiteColor()
|
data/lib/rswift/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rswift
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lukasz Wolanczyk
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -128,6 +128,7 @@ files:
|
|
128
128
|
- lib/rswift/target_configurator.rb
|
129
129
|
- lib/rswift/template_manager.rb
|
130
130
|
- lib/rswift/templates/app/ios/.gitignore.erb
|
131
|
+
- lib/rswift/templates/app/ios/.swiftlint.yml.erb
|
131
132
|
- lib/rswift/templates/app/ios/Gemfile.erb
|
132
133
|
- lib/rswift/templates/app/ios/Podfile.erb
|
133
134
|
- lib/rswift/templates/app/ios/Rakefile.erb
|
@@ -139,6 +140,7 @@ files:
|
|
139
140
|
- lib/rswift/templates/app/ios/spec/AppDelegateSpec.swift.erb
|
140
141
|
- lib/rswift/templates/app/ios/spec/Info.plist.erb
|
141
142
|
- lib/rswift/templates/app/osx/.gitignore.erb
|
143
|
+
- lib/rswift/templates/app/osx/.swiftlint.yml.erb
|
142
144
|
- lib/rswift/templates/app/osx/Gemfile.erb
|
143
145
|
- lib/rswift/templates/app/osx/Podfile.erb
|
144
146
|
- lib/rswift/templates/app/osx/Rakefile.erb
|
@@ -149,6 +151,7 @@ files:
|
|
149
151
|
- lib/rswift/templates/app/osx/spec/AppDelegateSpec.swift.erb
|
150
152
|
- lib/rswift/templates/app/osx/spec/Info.plist.erb
|
151
153
|
- lib/rswift/templates/app/tvos/.gitignore.erb
|
154
|
+
- lib/rswift/templates/app/tvos/.swiftlint.yml.erb
|
152
155
|
- lib/rswift/templates/app/tvos/Gemfile.erb
|
153
156
|
- lib/rswift/templates/app/tvos/Podfile.erb
|
154
157
|
- lib/rswift/templates/app/tvos/Rakefile.erb
|
@@ -219,7 +222,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
219
222
|
version: '0'
|
220
223
|
requirements: []
|
221
224
|
rubyforge_project:
|
222
|
-
rubygems_version: 2.
|
225
|
+
rubygems_version: 2.5.0
|
223
226
|
signing_key:
|
224
227
|
specification_version: 4
|
225
228
|
summary: RSwift allows to create and develop iOS, OSX, tvOS and watchOS projects using
|