ios_android_toolbox 0.0.17 → 0.0.18

Sign up to get free protection for your applications and to get access to all the features.
@@ -64,15 +64,7 @@ module IosAndroidToolbox
64
64
  def self.remove_stale_equivalent_profiles(path)
65
65
  new_profile = IosProvisioningProfile.new(path)
66
66
 
67
- # Look through each file in the list
68
- # Dir.glob(File.join(PROV_PROFILE_DIR,"*.mobileprovision")) do |installed_profile_path|
69
-
70
- # next if not /#{UUID_REGEX}\.mobileprovision$/.match(installed_profile_path)
71
- # puts "Examining prov. profile: #{installed_profile_path}" if DEBUG
72
-
73
- # installed_profile = IosProvisioningProfile.new(File.open(installed_profile_path).read)
74
-
75
- self.loop_through_existing_profiles do |installed_profile|
67
+ self.loop_through_existing_profiles do |installed_profile, installed_profile_path|
76
68
  if installed_profile.app_id == new_profile.app_id and
77
69
  installed_profile.creation_date < new_profile.creation_date and
78
70
  installed_profile.has_provisioned_devices? == new_profile.has_provisioned_devices?
@@ -103,7 +95,7 @@ module IosAndroidToolbox
103
95
 
104
96
  def self.profile_worth_installing?(path)
105
97
  new_profile = IosProvisioningProfile.new(path)
106
- loop_through_existing_profiles do |installed_profile|
98
+ loop_through_existing_profiles do |installed_profile, path|
107
99
  if installed_profile.app_id == new_profile.app_id and installed_profile.has_provisioned_devices? == new_profile.has_provisioned_devices?
108
100
  return false if installed_profile.creation_date >= new_profile.creation_date
109
101
  end
@@ -122,7 +114,7 @@ module IosAndroidToolbox
122
114
 
123
115
  installed_profile = IosProvisioningProfile.new(File.open(installed_profile_path).read)
124
116
 
125
- yield installed_profile
117
+ yield installed_profile, installed_profile_path
126
118
  end
127
119
  end
128
120
  end
@@ -1,3 +1,3 @@
1
1
  module IosAndroidToolbox
2
- VERSION = "0.0.17"
2
+ VERSION = "0.0.18"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_android_toolbox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 17
10
- version: 0.0.17
9
+ - 18
10
+ version: 0.0.18
11
11
  platform: ruby
12
12
  authors:
13
13
  - Igor Sales
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-09-23 00:00:00 Z
18
+ date: 2012-09-25 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: ""