xcody 0.3.0 → 0.4.0

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: d30a0d46805e428b1fd1f03e1cc0f4b93876a2f9
4
- data.tar.gz: d6f20aed63c0474585606bbb054eb7b08d122413
3
+ metadata.gz: 4023268bebc9e06fd29c6e37687bd5294fc41046
4
+ data.tar.gz: 00a430254300ec07cc7f2ca4269dad778de5b586
5
5
  SHA512:
6
- metadata.gz: 2ef016d179aea7d0983af3b4010a4aa648dda0921a6f2e1bf78dafb715413a57589090f4a4970d6138aa0ddb0ddbf18a136027d6fb60b9c2673c8360b3cd54a2
7
- data.tar.gz: b1d9b154297648d633194311a0bcc24c0c909df32a60c13e86da632b94debe2b0bf201ea8802916cdc67d7bab661a882eff4c49ad0ea31aa2a9f34f102b9e384
6
+ metadata.gz: 1f4928669f0c16c443d529183b39ee816e316803b14fb8d3d8cbe05022bae9decdf37176d357d3ec535579229a6e2878abca5fa433a362637bc180be07b54fc2
7
+ data.tar.gz: 9623d87e90de13b080e0aa890286abffd1d6869a38d94e4572fc922eeddfd7a3d882aab26753600d5ff1a5afc7ef876fd7da6e3721db584bbe3e505f5efd70b4
data/lib/xcody.rb CHANGED
@@ -167,10 +167,27 @@ class Xcody
167
167
  def run(log_file = "./tmp/build_log.txt")
168
168
  puts "running with #{@xcode_build_cmd.inspect}"
169
169
 
170
+ run_command @xcode_build_cmd, log_file
171
+ end
172
+
173
+ def xcpretty(log_file = "./tmp/build_log.txt", option = [])
174
+ command = @xcode_build_cmd.concat(%( | xcpretty )).concat(option.join(" "))
175
+ puts "running with #{command}"
176
+
177
+ run_command command, log_file
178
+ end
179
+
180
+ private
181
+
182
+ def xcode_path
183
+ `xcode-select -p 2> /dev/null`.strip.sub(%r{/Contents/Developer\z}, "")
184
+ end
185
+
186
+ def run_command(command, log_file)
170
187
  log_file_dir = Pathname.new(log_file).dirname
171
188
  FileUtils.mkdir_p(log_file_dir)
172
189
 
173
- out_with_err, status = Open3.capture2e(@xcode_build_cmd)
190
+ out_with_err, status = Open3.capture2e command
174
191
  exit_code = status.exitstatus
175
192
  case exit_code
176
193
  when 0
@@ -182,21 +199,4 @@ class Xcody
182
199
  puts "Exit build with error status: #{exit_code}"
183
200
  end
184
201
  end
185
-
186
- def xcpretty(log_file = "./tmp/build_log.txt", option = [])
187
- option.push "--output #{log_file}"
188
- command = @xcode_build_cmd.concat(%( | xcpretty )).concat(option.join(" "))
189
- puts "running with #{command}"
190
-
191
- log_file_dir = Pathname.new(log_file).dirname
192
- FileUtils.mkdir_p(log_file_dir)
193
-
194
- `#{command}`
195
- end
196
-
197
- private
198
-
199
- def xcode_path
200
- `xcode-select -p 2> /dev/null`.strip.sub(%r{/Contents/Developer\z}, "")
201
- end
202
202
  end
data/lib/xcody/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class Xcody
2
- VERSION = "0.3.0"
2
+ VERSION = "0.4.0"
3
3
  end
data/xcody.gemspec CHANGED
@@ -18,9 +18,5 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
- spec.add_dependency 'xcpretty', '~> 0.2'
22
-
23
- spec.add_development_dependency "bundler", "~> 1.12"
24
- spec.add_development_dependency "rake", "~> 10.0"
25
- spec.add_development_dependency "minitest", "~> 5.0"
21
+ spec.add_dependency "xcpretty"
26
22
  end
metadata CHANGED
@@ -1,71 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcody
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kazuaki MATSUO
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-11 00:00:00.000000000 Z
11
+ date: 2016-10-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: xcpretty
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.2'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '0.2'
27
- - !ruby/object:Gem::Dependency
28
- name: bundler
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '1.12'
34
- type: :development
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '1.12'
41
- - !ruby/object:Gem::Dependency
42
- name: rake
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - "~>"
46
- - !ruby/object:Gem::Version
47
- version: '10.0'
48
- type: :development
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - "~>"
53
- - !ruby/object:Gem::Version
54
- version: '10.0'
55
- - !ruby/object:Gem::Dependency
56
- name: minitest
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - "~>"
60
- - !ruby/object:Gem::Version
61
- version: '5.0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - "~>"
67
- - !ruby/object:Gem::Version
68
- version: '5.0'
26
+ version: '0'
69
27
  description: Simple Xcode command wrapper
70
28
  email:
71
29
  - fly.49.89.over@gmail.com