From bd54be05da7bbb820db364a95f8009fba5c3f3be Mon Sep 17 00:00:00 2001 From: Watson Date: Wed, 22 Oct 2014 00:22:52 +0900 Subject: [PATCH] recognize Provisioning Profile which has "iOSTeam Provisioning..." http://hipbyte.myjetbrains.com/youtrack/issue/RM-643 --- lib/motion/project/template/ios-extension-config.rb | 2 +- lib/motion/project/template/ios/config.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/motion/project/template/ios-extension-config.rb b/lib/motion/project/template/ios-extension-config.rb index 01d620c3..4c247844 100644 --- a/lib/motion/project/template/ios-extension-config.rb +++ b/lib/motion/project/template/ios-extension-config.rb @@ -82,7 +82,7 @@ module Motion; module Project; super('iPhone') end - def provisioning_profile(name = /iOS Team Provisioning Profile/) + def provisioning_profile(name = /iOS\s?Team Provisioning Profile/) @provisioning_profile ||= begin paths = Dir.glob(File.expand_path("~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision")).select do |path| text = File.read(path) diff --git a/lib/motion/project/template/ios/config.rb b/lib/motion/project/template/ios/config.rb index 6e80773d..26ae0b2c 100644 --- a/lib/motion/project/template/ios/config.rb +++ b/lib/motion/project/template/ios/config.rb @@ -107,7 +107,7 @@ module Motion; module Project; super('iPhone') end - def provisioning_profile(name = /iOS Team Provisioning Profile/) + def provisioning_profile(name = /iOS\s?Team Provisioning Profile/) @provisioning_profile ||= begin paths = Dir.glob(File.expand_path("~/Library/MobileDevice/Provisioning\ Profiles/*.mobileprovision")).select do |path| text = File.read(path)