wtapack 0.0.5 → 0.0.6

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/ext/wtapack/ProfileManager.m +7 -10
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 532bc12523126c4558b0a0ff78ec934dadc493bf
4
- data.tar.gz: c809504a82a4e67a1204234af3b68dbad42aec2a
3
+ metadata.gz: 604553c1b3bfa8cb3283e11eb20ed9f09a7811c6
4
+ data.tar.gz: 6dd7295e7c5cc77d75c6f421193f6eb8ae8e8b41
5
5
  SHA512:
6
- metadata.gz: fbba5c005d99fbe6fe66b2f39a041e37dc5a38c52261f7eac0bb7c1df2bf62625e6e6aaa219fd831bdc1cb0f8d38867fac3081ec744f290dc23e65f201ccfb4b
7
- data.tar.gz: 1f39b8052fa550ddf555003d6375fd6e50cedcde5b4d7b5195c6531ca51e3bc424b4a15dbca9223b00cc21ee8e4e59eca7d539888e6e2f0e1fed5e258ce9501b
6
+ metadata.gz: 70c63aea7cce7192fb27990e9270d4dbcea851d68e731e8e2e0538fd22555e1c84e968ed2dcd3828f97da10da4cdad1058518009e7f4382850ac5b9fedb91581
7
+ data.tar.gz: 4e30560aca9a8a7ff24cf52c7c5caa9c905cc5c9decf938b4ab1f2fe8850b293f47fe1d3e3e257087544e777d9ab8bfdb20d8f2c3327ea16ebcf6052d0758b5a
@@ -20,31 +20,28 @@
20
20
 
21
21
  @implementation ProfileManager
22
22
  #pragma mark Initializers
23
- - (instancetype)initWithKey:(NSString *)profileUUIDKey bundleURL:(NSURL *)bundleURL
23
+ - (instancetype)initWithKey:(NSString *)profileKey bundleURL:(NSURL *)bundleURL
24
24
  {
25
25
  self = [super init];
26
26
  if (self)
27
27
  {
28
- NSString* profileUUID = [[NSUserDefaults standardUserDefaults] stringForKey:profileUUIDKey];
29
- if (!profileUUID)
28
+ NSString* profilePath = [[NSUserDefaults standardUserDefaults] stringForKey:profileKey];
29
+ if (!profilePath)
30
30
  {
31
31
  NSString* errorString = [NSString stringWithFormat:@"You must specify a profile for key \"%@\".",
32
- profileUUIDKey];
32
+ profileKey];
33
33
  [ErrorHandler fatalErrorWithMessage:errorString
34
34
  exitCode:EX_USAGE];
35
35
  }
36
36
 
37
- NSString* provisioningProfilePath = [[NSString stringWithFormat:@"~/Library/MobileDevice/Provisioning Profiles/%@.mobileprovision",
38
- profileUUID] stringByExpandingTildeInPath];
39
-
40
- if ([[NSFileManager defaultManager] fileExistsAtPath:provisioningProfilePath])
37
+ if ([[NSFileManager defaultManager] fileExistsAtPath:profilePath])
41
38
  {
42
- _profileURL = [NSURL fileURLWithPath:provisioningProfilePath];
39
+ _profileURL = [NSURL fileURLWithPath:profilePath];
43
40
  }
44
41
  else
45
42
  {
46
43
  NSString* errorString = [NSString stringWithFormat:@"Specifed provisioning profile %@ does not exist",
47
- profileUUID];
44
+ profilePath];
48
45
 
49
46
  [ErrorHandler fatalErrorWithMessage:errorString
50
47
  exitCode:EX_NOINPUT];
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wtapack
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Thompson