rswift 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 604aa724482d9209a4b3f5a3ef86472a1f296466
4
- data.tar.gz: 80dcd676a5d2c849cc633b766915dcb6c34f3ee8
3
+ metadata.gz: 02eac7f37932040d9c8d9bb0b1d50e225632f5ee
4
+ data.tar.gz: a00e6f0ffa2cb5f6baea99b90b88a3a0b68860ff
5
5
  SHA512:
6
- metadata.gz: 5f31418cbc5a5af71ea8b6d199146e8d46e847b50557f04545dcc43d9b4a85c2fcad948f28a1b55300df5a5143db5964d7128ac55b5ea865a885e3a2cb32c56a
7
- data.tar.gz: 6b1898b77c63981f8b8cbe2bbae87f74b7f9e0b73b0a6f01f23c701d9783a45e9d88d2f229bd0df4a9ac3906e7f7d9139880a767fcfbe0c43692789029400964
6
+ metadata.gz: c0194408d9a61e18e4ec209829ce845baf7add58e65135c0e57f883bcb2bd645e921b554d44f138ff2444199a03105f080ada1cc2f2fd440669755ba53f45d7c
7
+ data.tar.gz: cd90b6adbdfc4e5f91a4ff7732a2897ee557d13c71ac42ab1986469ccc2be3cf97b405172659e05a14280968dd7b6f958527bcd3cf26e538c20968d34d5a2ce2
@@ -0,0 +1,3 @@
1
+ excluded:
2
+ - Carthage
3
+ - Pods
@@ -5,7 +5,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5
5
 
6
6
  var window: UIWindow?
7
7
 
8
- func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool {
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()
@@ -18,7 +18,7 @@ class AppDelegateSpec: QuickSpec {
18
18
  }
19
19
 
20
20
  it("should pass") {
21
- expect(true).to(beTruthy())
21
+ expect(sut).toNot(beNil())
22
22
  }
23
23
  }
24
24
  }
@@ -0,0 +1,3 @@
1
+ excluded:
2
+ - Carthage
3
+ - Pods
@@ -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! String
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)", action: #selector(terminate), keyEquivalent: "q")
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
- styleMask: NSTitledWindowMask | NSClosableWindowMask | NSMiniaturizableWindowMask | NSResizableWindowMask,
20
- backing: .Buffered,
21
- defer: false)
22
+ styleMask: NSTitledWindowMask | NSClosableWindowMask |
23
+ NSMiniaturizableWindowMask | NSResizableWindowMask,
24
+ backing: .Buffered,
25
+ defer: false)
22
26
  window?.title = appName
23
27
  window?.orderFrontRegardless()
24
28
  }
@@ -2,4 +2,4 @@ import Cocoa
2
2
 
3
3
  let delegate = AppDelegate()
4
4
  NSApplication.sharedApplication().delegate = delegate
5
- NSApplicationMain(Process.argc, Process.unsafeArgv);
5
+ NSApplicationMain(Process.argc, Process.unsafeArgv)
@@ -18,7 +18,7 @@ class AppDelegateSpec: QuickSpec {
18
18
  }
19
19
 
20
20
  it("should pass") {
21
- expect(true).to(beTruthy())
21
+ expect(sut).toNot(beNil())
22
22
  }
23
23
  }
24
24
  }
@@ -0,0 +1,3 @@
1
+ excluded:
2
+ - Carthage
3
+ - Pods
@@ -5,7 +5,8 @@ class AppDelegate: UIResponder, UIApplicationDelegate {
5
5
 
6
6
  var window: UIWindow?
7
7
 
8
- func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject:AnyObject]?) -> Bool {
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()
@@ -18,7 +18,7 @@ class AppDelegateSpec: QuickSpec {
18
18
  }
19
19
 
20
20
  it("should pass") {
21
- expect(true).to(beTruthy())
21
+ expect(sut).toNot(beNil())
22
22
  }
23
23
  }
24
24
  }
@@ -1,3 +1,3 @@
1
1
  module RSwift
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.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-08 00:00:00.000000000 Z
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.4.6
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