xamarin-test-cloud 0.9.22 → 0.9.23

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: d4f3e751626b34ef14e12ab8618bfa39b425067b
4
- data.tar.gz: 88993fbb8f7668148c038bc93be3dbe65e4748dd
3
+ metadata.gz: a2d847ea19fc7b8402e99ee9698bf155a0dec15a
4
+ data.tar.gz: 6bc08e38845d94ce81f47c2966d7e18bb403762e
5
5
  SHA512:
6
- metadata.gz: 4345fb1d1f2064236fdc98d5ac4accb8129fe20ce2d33213905b9c538f4fdaf05859bda696f2a83dcb5213e5905c1f081e4a0a7099e12d8a1ab475b5b368125a
7
- data.tar.gz: 395748f3dacc975d0374d669731cfcd41c57959baf0c7a4dedb99bab584cbecff973370c118d238b7834849b23af2876f278631c22912d9f6ea1a5009f649854
6
+ metadata.gz: d49b0095708759e6b36ed4dc5daee1797e0be0c68a3f69e7a344ba074c764c727f0f9a58cbc9ad8493f80a4fe2ab78c934f2b011d0a11e76f3f4543118a3d02f
7
+ data.tar.gz: 8fed008f85eb31f33e1cedcccef81d34f6afef135dd77b7a2552606cf46546b8b4e4eaf865391fa9b0384f536e63d032ecd400259d8214f2ee9c1342cd8502a5
@@ -301,7 +301,13 @@ module XamarinTestCloud
301
301
  device_selection
302
302
  end
303
303
 
304
+ def workspace_gemfile
305
+ File.join(self.workspace, 'Gemfile')
306
+ end
304
307
 
308
+ def workspace_gemfile_lock
309
+ File.join(self.workspace, 'Gemfile.lock')
310
+ end
305
311
 
306
312
  def submit_test_job(device_selection_data)
307
313
  tmpdir = Dir.mktmpdir
@@ -314,9 +320,10 @@ module XamarinTestCloud
314
320
  server = verify_app_and_extract_test_server
315
321
 
316
322
  log_header('Checking for Gemfile')
317
- if File.exist?("Gemfile")
318
- FileUtils.cp "Gemfile", tmpdir
319
- FileUtils.cp "Gemfile.lock", tmpdir if File.exist?("Gemfile.lock")
323
+
324
+ if File.exist?(workspace_gemfile)
325
+ FileUtils.cp workspace_gemfile, tmpdir
326
+ FileUtils.cp workspace_gemfile_lock, tmpdir if File.exist?(workspace_gemfile_lock)
320
327
  else
321
328
  copy_default_gemfile(File.join(tmpdir, "Gemfile"), server)
322
329
  end
@@ -525,13 +532,34 @@ module XamarinTestCloud
525
532
  end
526
533
 
527
534
  def calabash_android_version
528
- require 'calabash-android'
529
- Calabash::Android::VERSION
535
+ version = nil
536
+
537
+
538
+ if File.exist?(workspace_gemfile)
539
+ FileUtils.cd(self.workspace) do
540
+ version = `bundle exec ruby -e "require 'calabash-android/version'; puts Calabash::Android::VERSION"`
541
+ end
542
+ end
543
+ unless version
544
+ require 'calabash-android'
545
+ version = Calabash::Android::VERSION
546
+ end
547
+
548
+ version = version.strip
530
549
  end
531
550
 
532
551
  def calabash_ios_version
533
- require 'calabash-cucumber'
534
- Calabash::Cucumber::VERSION
552
+ version = nil
553
+ if File.exist?(workspace_gemfile)
554
+ FileUtils.cd(self.workspace) do
555
+ version = `bundle exec ruby -e "require 'calabash-cucumber/version'; puts Calabash::Cucumber::VERSION"`
556
+ end
557
+ end
558
+ unless version
559
+ require 'calabash-cucumber'
560
+ version = Calabash::Cucumber::VERSION
561
+ end
562
+ version = version.strip
535
563
  end
536
564
 
537
565
  def test_server_path
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = '0.9.22'
2
+ VERSION = '0.9.23'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xamarin-test-cloud
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.22
4
+ version: 0.9.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Karl Krukow
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-08-25 00:00:00.000000000 Z
12
+ date: 2013-08-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor