xcjobs 0.0.9 → 0.1.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: 854a4e676d81275ecd1a5f140c0e740cad40d901
4
- data.tar.gz: 43ca2fe387752c504a8fe0a204dcb122ffdcc03c
3
+ metadata.gz: 353d3bf4293cc24b47d003cc6ea3c79f9c06d6c6
4
+ data.tar.gz: e1abdc7b203ee96e3fc5bf43fc680be0ae32c454
5
5
  SHA512:
6
- metadata.gz: dbf197109b70fadb5a95cfebd27496e91b25dfaaf94c8735a06dbab4fb01036548c88dd24926e2c3987f71776d9cf386ce4fe31afaf539fac996bde15f063286
7
- data.tar.gz: 93fcddbb1eb2541e436bda39867db30d3c6f7b050d265256ccfcd2ecbf78412361a360673e228d1fc46771431baeda1c7768d36ae6608a3c86a32656cb6f9a57
6
+ metadata.gz: f2ac6a4664757dd7b727bee66f96c94de9a385002a0968093a1cfbf6a448e30999cbaf8e678fe75d7560f928d55b5ea5aaa485db4e2004e287852cb1a8983090
7
+ data.tar.gz: c1b3fa9ef9780382a0c5d2777d7b2fdc4694e63c6c0c40d870d3a7bcb6b2bc5e5a235aab6528c9ab410e90c67b6b9417f4c56198004ab1423c8a7a7147f3de35
data/.travis.yml CHANGED
@@ -4,6 +4,7 @@ rvm:
4
4
  - 1.9.3
5
5
  - 2.0.0
6
6
  - 2.1
7
+ - 2.2
7
8
  branches:
8
9
  only:
9
10
  - master
@@ -143,6 +143,7 @@ module XCJobs
143
143
  def write_report(report)
144
144
  temp = Tempfile.new('coveralls')
145
145
  temp.puts(report.to_json)
146
+ temp.flush
146
147
  temp.path
147
148
  end
148
149
 
@@ -169,6 +169,7 @@ module XCJobs
169
169
  if notes
170
170
  temp = Tempfile.new('release_notes.txt')
171
171
  temp.puts(notes)
172
+ temp.flush
172
173
  opts.concat(['-notesPath', temp.path])
173
174
  end
174
175
  end
@@ -1,3 +1,3 @@
1
1
  module XCJobs
2
- VERSION = "0.0.9"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -200,6 +200,7 @@ describe XCJobs::Distribute do
200
200
  t.api_key = credentials[:api_key]
201
201
  t.build_secret = credentials[:build_secret]
202
202
  t.notifications = true # optional
203
+ t.notes = notes
203
204
  end
204
205
  end
205
206
 
@@ -229,7 +230,12 @@ describe XCJobs::Distribute do
229
230
 
230
231
  it 'executes the appropriate commands' do
231
232
  subject.invoke
232
- expect(@commands).to eq ["#{File.join(framework_path, 'submit')}", credentials[:api_key], credentials[:build_secret], '-ipaPath', "#{file}"]
233
+ expect(@commands).to match ["#{File.join(framework_path, 'submit')}", credentials[:api_key], credentials[:build_secret], '-ipaPath', "#{file}", '-notesPath', an_instance_of(String)]
234
+ end
235
+
236
+ it 'attach specified release notes' do
237
+ subject.invoke
238
+ expect(IO.read(@commands.last).chomp).to eq notes
233
239
  end
234
240
  end
235
241
  end
@@ -313,27 +319,27 @@ describe XCJobs::Distribute do
313
319
  it 'configures the teams' do
314
320
  expect(task.teams).to eq ['12', '23', '42']
315
321
  end
316
-
322
+
317
323
  it 'configures the users' do
318
324
  expect(task.users).to eq ['1224', '5678']
319
325
  end
320
-
326
+
321
327
  it 'configures the mandatory' do
322
328
  expect(task.mandatory).to eq 1
323
329
  end
324
-
330
+
325
331
  it 'configures the commit_sha' do
326
332
  expect(task.commit_sha).to eq '0eb0a329c523bb110b13523d48f19dd612ad77f6'
327
333
  end
328
-
334
+
329
335
  it 'configures the build_server_url' do
330
336
  expect(task.build_server_url).to eq 'http://build-server-url.example.com'
331
337
  end
332
-
338
+
333
339
  it 'configures the repository_url' do
334
340
  expect(task.repository_url).to eq 'https://github.com/kishikawakatsumi/xcjobs'
335
341
  end
336
-
342
+
337
343
  describe 'tasks' do
338
344
  describe 'distribute:hockeyapp' do
339
345
  subject { Rake.application['distribute:hockeyapp'] }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xcjobs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - kishikawa katsumi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-10 00:00:00.000000000 Z
11
+ date: 2015-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler