wtapack 0.0.7 → 0.0.8

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: a467b4fe58a67be2946fa2e6618aefd53ffb5b01
4
- data.tar.gz: e25496b8d78f65bf579ca4a2f7cab56ceb5784e3
3
+ metadata.gz: 329103f00dd3f7890f5e0eaa96211176219a063f
4
+ data.tar.gz: 09d6beead84b9a57330ea164dbf22074c6a353a7
5
5
  SHA512:
6
- metadata.gz: dbbf858fdad6368339755a95b57caa5c2102ab2d0b159981bf55ec7f025fe0c06e2ba3add1e9893e996302eb061cfd4342fb02f783551694718d4a826eb0a776
7
- data.tar.gz: 9420e5f62b39f0615a257a2798c2a90b3d7ecb24a4f074f6bba03682872f1ababf26fc70a55f5da45d7cb65d1e7135efbfa577fffe7127f8f1b6ed4c741a0f7a
6
+ metadata.gz: 409e5dc0e40b54549ffc2238d29cc01fe176fc368591ee0f785d38c2d2ec5f7c6754c4851e704b44935162998cfb0e5d89c714d2be053b4a13f426cd406543ad
7
+ data.tar.gz: c6743f24d7b4d96e1cbc4144a94a012ee49aee53a30375e151880e0230b09e76a701e4990915c0a4bb34af36765c1813f992deb47cd72b6b19868834154b6c93
@@ -11,4 +11,5 @@
11
11
  @interface CodeSigner : NSObject
12
12
  + (void)signBinary:(NSURL*)binaryURL;
13
13
  + (void)signFramework:(NSURL*)frameworkURL;
14
+ + (void)reset;
14
15
  @end
@@ -32,7 +32,7 @@ void validateSigningIdentity(NSString* identity);
32
32
  if (!result)
33
33
  {
34
34
  NSString* signingIdentity = [self signingIdentity];
35
- result = [NSString stringWithFormat:@"/usr/bin/codesign --force --preserve-metadata=identifier,entitlements,resource-rules --sign %@ --resource-rules=\"%%@\" --entitlements \"%%@\" \"%%@\"", signingIdentity];
35
+ result = [NSString stringWithFormat:@"/usr/bin/codesign --force --sign %@ --resource-rules=\"%%@\" --entitlements \"%%@\" \"%%@\"", signingIdentity];
36
36
 
37
37
  objc_setAssociatedObject(self, @selector(codesignFormatString), result, OBJC_ASSOCIATION_COPY_NONATOMIC);
38
38
  }
@@ -94,6 +94,12 @@ void validateSigningIdentity(NSString* identity);
94
94
  fprintf(stdout, "%s", codesignOuput.UTF8String);
95
95
  }
96
96
  }
97
+
98
+ + (void)reset
99
+ {
100
+ objc_setAssociatedObject(self, @selector(codesignFormatString), nil, OBJC_ASSOCIATION_COPY_NONATOMIC);
101
+ objc_setAssociatedObject(self, @selector(signingIdentity), nil, OBJC_ASSOCIATION_COPY_NONATOMIC);
102
+ }
97
103
  @end
98
104
 
99
105
  // It turned out the Rakefile already does the below, so no point in doing it twice.
data/ext/wtapack/main.m CHANGED
@@ -178,6 +178,7 @@ int main(int argc, const char* argv[]) {
178
178
 
179
179
  // Code signing
180
180
  [CodeSigner signBinary:extensionURL];
181
+ extensionProfileManager = nil;
181
182
  });
182
183
 
183
184
  // Code signing of frameworks. We don't care if this call fails, because many apps don't
@@ -219,6 +220,8 @@ int main(int argc, const char* argv[]) {
219
220
 
220
221
  // Clean up after ourselves
221
222
  [fm removeItemAtURL:tmpDirURL error:NULL];
223
+ mainProfileManager = nil;
224
+ [CodeSigner reset];
222
225
  }
223
226
  #ifndef WTA_STANDALONE
224
227
  return rb_int2inum(0);
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wtapack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Thompson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-17 00:00:00.000000000 Z
11
+ date: 2014-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake-compiler