ios_build_kit 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 291c94122b7227db6200ca3440374ef77b629c3e
4
- data.tar.gz: cbc7e1119a5ac1ac08f3720f4222d55d79c37beb
3
+ metadata.gz: 1f7630c49a89ef8634980beefd59e04da253a023
4
+ data.tar.gz: e243663b13a963ed6158ccbb67211b68c48fd6a2
5
5
  SHA512:
6
- metadata.gz: 926c4fa488def042c03e0dc7ea3d187715a217644b38f3edd6d4397920f48db78e4b40ee61d13b2bfaf68e0acd9f96308a6b5371516bd110b2080a425bf0d563
7
- data.tar.gz: 9fddc72696d167c577e8363cbb6d30398dfd240130e58cf22b05898be4f58bbbb427ac6823e50577b95afab687fdaab96f0d635c0925eefe1bae780e38b746cd
6
+ metadata.gz: b2e2ad91a9b577b1d023d1862a79f3f3c2795d8cfc98f76102d43f3acfc3149b6ef046d22c609b1af5531dedaea192d842619ec5a8d8f5e07678ce4d97822262
7
+ data.tar.gz: 77fc3e06608825c0c71503aec632c520749ba2f2b0b844f3ad0d48cadcd6408818577e13f7d69e7d2834f24d1d2c2b0dc25001cdf16f1415281cad03b1f30135
data/README.md CHANGED
@@ -76,18 +76,18 @@ An example configuration file:
76
76
 
77
77
  :configuration:
78
78
  :app_name: "BuildKit"
79
- :workspace: "/Users/adamwaite/iOS/Lib/BuildKit/iOS-Build-Kit/example/BuildKit.xcworkspace"
80
- :info_plist: "/Users/adamwaite/iOS/Lib/BuildKit/iOS-Build-Kit/example/BuildKit/BuildKit-Info.plist"
79
+ :workspace: "BuildKit.xcworkspace"
80
+ :info_plist: "BuildKit/BuildKit-Info.plist"
81
81
  :build_configuration: "Release"
82
82
  :scheme: "BuildKit"
83
83
  :sdk: "iphoneos"
84
- :provisioning_profile: "/Users/adamwaite/iOS/Lib/BuildKit/iOS-Build-Kit/example/Provisioning/BuildKitTest.mobileprovision"
84
+ :provisioning_profile: "Provisioning/BuildKitTest.mobileprovision"
85
85
  :code_sign: "iPhone Distribution: Alpaca Labs"
86
- :icon_dir: "/Users/adamwaite/iOS/Lib/BuildKit/iOS-Build-Kit/example/BuildKit/Icon/"
87
- :build_dir: "/Users/adamwaite/iOS/Lib/BuildKit/iOS-Build-Kit/example/Builds/"
86
+ :icon_dir: "BuildKit/Icon/"
87
+ :build_dir: "Builds"
88
88
 
89
89
  :preferences:
90
- :reports: "/Users/adamwaite/iOS/Lib/BuildKit/Reports/"
90
+ :reports: "Reports"
91
91
  ```
92
92
 
93
93
  #### Setting Tasks
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.add_dependency "commander", "~> 4.1"
17
17
  s.add_dependency "json", "~> 1.8"
18
18
  s.add_dependency "paint", "~> 0.8"
19
- s.add_dependency "nomad-cli", "~> 0.0.3"
19
+ s.add_dependency "nomad-cli", "~> 0.0.2"
20
20
  s.add_dependency "rmagick", '~> 2.13'
21
21
  s.add_dependency "xcpretty", '~> 0.1.3'
22
22
 
@@ -2,6 +2,8 @@ module BuildKit
2
2
 
3
3
  module Tasks
4
4
 
5
+ require "fileutils"
6
+
5
7
  def self.xcode_build runner, task_opts
6
8
  task = XcodeBuildTask.new({ runner: runner, opts: task_opts })
7
9
  task.run!
@@ -16,6 +18,7 @@ module BuildKit
16
18
  def run!
17
19
  run_command! "clean" if @task_options[:clean]
18
20
  run_command! "build"
21
+ create_build_directory unless File.exists?(@config.absolute_build_dir)
19
22
  complete_task!
20
23
  end
21
24
 
@@ -23,7 +26,10 @@ module BuildKit
23
26
 
24
27
  def assert_requirements
25
28
  BuildKit::Utilities::Assertions.assert_required_config [:app_name, :workspace, :sdk, :build_configuration, :build_dir, :scheme], @runner
26
- BuildKit::Utilities::Assertions.assert_files_exist [@config.workspace, @config.absolute_build_dir]
29
+ end
30
+
31
+ def create_build_directory
32
+ FileUtils.mkdir_p(@config.absolute_build_dir)
27
33
  end
28
34
 
29
35
  def build_command cmd
@@ -1,3 +1,3 @@
1
1
  module BuildKit
2
- VERSION = '0.0.3'
2
+ VERSION = '0.0.4'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ios_build_kit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Waite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-19 00:00:00.000000000 Z
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: commander
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 0.0.3
61
+ version: 0.0.2
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ~>
67
67
  - !ruby/object:Gem::Version
68
- version: 0.0.3
68
+ version: 0.0.2
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rmagick
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -146,7 +146,6 @@ extra_rdoc_files: []
146
146
  files:
147
147
  - ./Gemfile
148
148
  - ./Gemfile.lock
149
- - ./ios_build_kit-0.0.2.gem
150
149
  - ./ios_build_kit.gemspec
151
150
  - ./lib/ios_build_kit/task.rb
152
151
  - ./lib/ios_build_kit/task_configuration.rb
Binary file