shenzhen 0.14.1 → 0.14.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2de2ca4689c9602ec72a27711e71c8ed3c722336
4
- data.tar.gz: 5424ace41fc9543662373c6fc141c9903772d667
3
+ metadata.gz: 97524b3d4b8575b141cc7c66cb9e4d8bd9be1a00
4
+ data.tar.gz: 70fae6a5c3dfdf0ef75e4cc60198829b28c83f54
5
5
  SHA512:
6
- metadata.gz: e444b6f0051c69282896ebc51f1e1ff8884f98b3a6cac0f959a08a51a7c309269c20be2a4faff6bfa596aaf14d18af09c342affd7d5055b55358cdd82df9a66f
7
- data.tar.gz: fd070ef5e7bd8fc534b048857fd12ff2280beae9a47b3ae578f8dc0151f9dd11e76affce1cb8e6a5bfafb0d0db73e8390b79a62adba0a9f379dd5d1135fcfe43
6
+ metadata.gz: 31c9e8b8a97c479f96e472a635cbf6779e4c891fb93d239440c52988f1dc7f4e14cb8f68c82a6fd48134699182425751f10e5f76a1b8decf92edb27cf5c04163
7
+ data.tar.gz: 10771d2596902b64a5154ec6a3141b90870145182ea5cc8a7b8d1b175929744a1948b2b5883384b152d055e38dc7febdf47c079954220c97074d025a17fcc2d8
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- shenzhen (0.14.1)
4
+ shenzhen (0.14.2)
5
5
  aws-sdk (~> 1.0)
6
6
  commander (~> 4.3)
7
7
  dotenv (>= 0.7)
@@ -122,18 +122,20 @@ command :build do |c|
122
122
  end
123
123
  end
124
124
 
125
- log "Adding WatchKit support files", "#{xcode}/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/Library/Application Support/WatchKit/WK"
126
- Dir.mktmpdir do |tmpdir|
127
- # Make watchkit support directory
128
- watchkit_support = File.join(tmpdir, "WatchKitSupport")
129
- Dir.mkdir(watchkit_support)
130
-
131
- # Copy WK from Xcode into WatchKitSupport
132
- FileUtils.copy_file("#{xcode}/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/Library/Application Support/WatchKit/WK", File.join(watchkit_support, "WK"))
133
-
134
- # Add "WatchKitSupport" to the .ipa archive
135
- Dir.chdir(tmpdir) do
136
- abort unless system %{zip --recurse-paths "#{@ipa_path}" "WatchKitSupport" #{'> /dev/null' unless $verbose}}
125
+ if watchkit_present?
126
+ log "Adding WatchKit support files", "#{xcode}/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/Library/Application Support/WatchKit/WK"
127
+ Dir.mktmpdir do |tmpdir|
128
+ # Make watchkit support directory
129
+ watchkit_support = File.join(tmpdir, "WatchKitSupport")
130
+ Dir.mkdir(watchkit_support)
131
+
132
+ # Copy WK from Xcode into WatchKitSupport
133
+ FileUtils.copy_file("#{xcode}/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS.sdk/Library/Application Support/WatchKit/WK", File.join(watchkit_support, "WK"))
134
+
135
+ # Add "WatchKitSupport" to the .ipa archive
136
+ Dir.chdir(tmpdir) do
137
+ abort unless system %{zip --recurse-paths "#{@ipa_path}" "WatchKitSupport" #{'> /dev/null' unless $verbose}}
138
+ end
137
139
  end
138
140
  end
139
141
 
@@ -197,4 +199,10 @@ command :build do |c|
197
199
  @configuration = choose "Select a configuration:", *configurations
198
200
  end
199
201
  end
202
+
203
+ def watchkit_present?
204
+ Dir["#{@app_path}/**/*.plist"].any? do |plist_path|
205
+ `/usr/libexec/PlistBuddy -c 'Print WKWatchKitApp' '#{plist_path}' 2>&1`.strip == 'true'
206
+ end
207
+ end
200
208
  end
@@ -1,3 +1,3 @@
1
1
  module Shenzhen
2
- VERSION = '0.14.1'
2
+ VERSION = '0.14.2'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shenzhen
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1
4
+ version: 0.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mattt Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-04 00:00:00.000000000 Z
11
+ date: 2015-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -237,8 +237,6 @@ files:
237
237
  - ./LICENSE
238
238
  - ./Rakefile
239
239
  - ./README.md
240
- - ./shenzhen-0.13.2.gem
241
- - ./shenzhen-0.14.0.gem
242
240
  - ./shenzhen.gemspec
243
241
  - bin/ipa
244
242
  homepage: http://nomad-cli.com
Binary file
Binary file