wox 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -80,6 +80,20 @@ You'll need to sign up to [TestFlight](http://testflightapp.com) to get your API
80
80
 
81
81
  Also check your development certificate and provisioning profile from inside Xcode.
82
82
 
83
+ ## Available options
84
+
85
+ The following options can be set at any level and will be inherited by child tasks.
86
+
87
+ * :info_plist Default: 'Resources/Info.plist'
88
+ * :version Default: 'CFBundleVersion' from info plist file
89
+ * :target Default: first target in xcode
90
+ * :sdk Default: 'iphoneos'
91
+ * :build_dir Default: 'build'
92
+ * :configuration Default: 'Release'
93
+ * :project_name Default: project name from xcode
94
+ * :app_file Default: project_name
95
+ * :ipa_name Default: 'project_name-version-configuration-ipa_name'
96
+
83
97
  ## Wrapping up
84
98
 
85
99
  This is very much a WIP! So please log any bugs or feedback you might have and feel free to fork and go nuts!
@@ -22,6 +22,7 @@ module Wox
22
22
  options[:sdk] ||= 'iphoneos'
23
23
  options[:configuration] ||= 'Release'
24
24
  options[:target] ||= targets.first
25
+ options[:app_file] ||= self[:project_name]
25
26
 
26
27
  if options[:ipa_name]
27
28
  options[:ipa_file] ||= File.join self[:build_dir],
@@ -53,7 +54,7 @@ module Wox
53
54
  @targets ||= begin
54
55
  start_line = xcodebuild_list.find_index{ |l| l =~ /targets/i } + 1
55
56
  end_line = xcodebuild_list.find_index{ |l| l =~ /configurations/i } - 1
56
- xcodebuild_list.slice start_line...end_line
57
+ xcodebuild_list.slice(start_line...end_line).map{|l| l.gsub('(Active)','').strip }
57
58
  end
58
59
  end
59
60
 
@@ -5,7 +5,9 @@ module Wox
5
5
  def package
6
6
  configuration, sdk, ipa_file, build_dir = environment[:configuration], environment[:sdk], environment[:ipa_file], environment[:build_dir]
7
7
 
8
- app_file = File.join build_dir, "#{configuration}-#{sdk}", "#{environment[:project_name]}.app"
8
+ app_file = File.join build_dir, "#{configuration}-#{sdk}", environment[:app_file]
9
+ app_file += ".app" unless app_file =~ /\.app^/
10
+
9
11
  fail "Couldn't find #{app_file}" unless File.exists? app_file
10
12
 
11
13
  provisioning_profile_file = find_matching_mobile_provision environment[:provisioning_profile]
@@ -9,7 +9,7 @@ module Wox
9
9
  puts "Success. Results in #{options[:results]}"
10
10
  puts
11
11
  else
12
- system "cat #{options[:results]}"
12
+ fail exec "cat #{options[:results]}"
13
13
  end
14
14
  end
15
15
 
@@ -1,3 +1,3 @@
1
1
  module Wox
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wox
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dave Newman
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-04-17 00:00:00 +10:00
18
+ date: 2011-04-20 00:00:00 +10:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency