wox 0.0.5 → 0.0.6
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +2 -0
- data/lib/wox/build_environment.rb +10 -5
- data/lib/wox/builder.rb +1 -1
- data/lib/wox/tasks.rb +5 -0
- data/lib/wox/version.rb +1 -1
- data/wox.gemspec +2 -0
- metadata +19 -4
data/CHANGELOG.md
ADDED
@@ -18,6 +18,7 @@ module Wox
|
|
18
18
|
options[:build_dir] ||= 'build'
|
19
19
|
options[:sdk] ||= 'iphoneos'
|
20
20
|
options[:configuration] ||= 'Release'
|
21
|
+
options[:target] ||= targets.first
|
21
22
|
@options = options
|
22
23
|
end
|
23
24
|
|
@@ -28,11 +29,7 @@ module Wox
|
|
28
29
|
def project_name
|
29
30
|
self[:project_name]
|
30
31
|
end
|
31
|
-
|
32
|
-
def read_version plist_file
|
33
|
-
|
34
|
-
end
|
35
|
-
|
32
|
+
|
36
33
|
def version
|
37
34
|
self[:version]
|
38
35
|
end
|
@@ -52,6 +49,14 @@ module Wox
|
|
52
49
|
xcodebuild_list.slice start_line...end_line
|
53
50
|
end
|
54
51
|
end
|
52
|
+
|
53
|
+
def targets
|
54
|
+
@targets ||= begin
|
55
|
+
start_line = xcodebuild_list.find_index{ |l| l =~ /targets/i } + 1
|
56
|
+
end_line = xcodebuild_list.find_index{ |l| l =~ /configurations/i } - 1
|
57
|
+
xcodebuild_list.slice start_line...end_line
|
58
|
+
end
|
59
|
+
end
|
55
60
|
|
56
61
|
def [](name)
|
57
62
|
fail "You need to specify :#{name} in Rakefile" unless @options[name]
|
data/lib/wox/builder.rb
CHANGED
@@ -9,7 +9,7 @@ module Wox
|
|
9
9
|
|
10
10
|
log_file = File.join environment[:build_dir], "build-#{configuration}.log"
|
11
11
|
|
12
|
-
run_command "xcodebuild -target '#{environment
|
12
|
+
run_command "xcodebuild -target '#{environment[:target]}' -configuration #{configuration}", :results => log_file
|
13
13
|
end
|
14
14
|
end
|
15
15
|
end
|
data/lib/wox/tasks.rb
CHANGED
data/lib/wox/version.rb
CHANGED
data/wox.gemspec
CHANGED
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 6
|
10
|
+
version: 0.0.6
|
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-
|
18
|
+
date: 2011-04-16 00:00:00 +10:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -46,6 +46,20 @@ dependencies:
|
|
46
46
|
version: "0"
|
47
47
|
type: :runtime
|
48
48
|
version_requirements: *id002
|
49
|
+
- !ruby/object:Gem::Dependency
|
50
|
+
name: rspec
|
51
|
+
prerelease: false
|
52
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
type: :development
|
62
|
+
version_requirements: *id003
|
49
63
|
description: Wox is a collection of build tasks that helps you build and publish iOS appicatinos
|
50
64
|
email:
|
51
65
|
- dave@snappyco.de
|
@@ -58,6 +72,7 @@ extra_rdoc_files: []
|
|
58
72
|
files:
|
59
73
|
- .gitignore
|
60
74
|
- .rvmrc
|
75
|
+
- CHANGELOG.md
|
61
76
|
- Gemfile
|
62
77
|
- README.md
|
63
78
|
- Rakefile
|