xamarin-test-cloud 2.0.0 → 2.0.1.pre1

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: d5e647b85d4a43752ebe4960f87b0860f5a3a73e
4
- data.tar.gz: 499cba9a6428d4109b771d376d4fa028bd43367e
3
+ metadata.gz: 91950de187198fc82a974abedf172c378f204d1a
4
+ data.tar.gz: 4aad5601098916dd71ab870287b548b7374fa08f
5
5
  SHA512:
6
- metadata.gz: f1340fb676f6a14565b6dce3ebd3fa65f93ef165a29fa90d71a90fe2b749872489b22275dc40896ccb2728392cb951a4b3f2f938af86922ae5a101fb04ce9e77
7
- data.tar.gz: a0adae20dd8f71db72eb0ed71d7791b79819cf63b89f66d03aa6e4923d7f698d30f0707ec92e50c6d426b8941c1757d57df4f4ab4409b16a61ca41957f917f02
6
+ metadata.gz: 3afd2c8a96ef80653b504ea6d40bfc2319dd5a9238f53db48d57a237cca333eb1b846a5ba066b84e05b5a7a0771c8a6728e3a4228c0f383f5f6fa2ddb6bba47a
7
+ data.tar.gz: 6f15772519b764c4ba1dfa4f796fc2e2167e5546e62f42bfa2ba217b3cd07af50431108ddb2dd1dcfd56d27bd40b030ae49dfd838519cc243e92898559b40c72
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ### 2.0.1
2
+
3
+ * Windows: expand tmp directory version 8.3 short paths #71
4
+
1
5
  ### 2.0.0
2
6
 
3
7
  * C: appears in place of ./vendor directory when uploading tests from Windows
@@ -411,7 +411,9 @@ module XamarinTestCloud
411
411
  end
412
412
 
413
413
  def submit_test_job(device_selection_data)
414
- tmpdir = Dir.mktmpdir
414
+ # See docs in TmpDir
415
+ require "xamarin-test-cloud/tmpdir"
416
+ tmpdir = XamarinTestCloud::TmpDir.mktmpdir
415
417
  if Environment.debug?
416
418
  log "Packaging gems in: #{tmpdir}"
417
419
  end
@@ -0,0 +1,41 @@
1
+
2
+ module XamarinTestCloud
3
+ class TmpDir
4
+
5
+ require "xamarin-test-cloud/environment"
6
+ require "tmpdir"
7
+
8
+ def self.mktmpdir
9
+ tmpdir = Dir.mktmpdir
10
+
11
+ if XamarinTestCloud::Environment.windows_env?
12
+ tmpdir = self.windows_long_path(tmpdir)
13
+ end
14
+
15
+ tmpdir
16
+ end
17
+
18
+ private
19
+
20
+ # Given a Windows user with name moodymoodymoody (> 9 characters)
21
+ # Dir.mktmpdir returns:
22
+ #
23
+ # C:\Users\MOODYM~1\AppData\Local\Temp
24
+ #
25
+ # This breaks path equality assertions. File.expand_path does not expand
26
+ # this MOODYM~1.
27
+ #
28
+ # Thanks @ http://stackoverflow.com/questions/8128863/how-to-get-long-filename-from-argv
29
+ # TODO: We don't know the behavior on 64 bit rubies.
30
+ def self.windows_long_path(short_name)
31
+ require "Win32API"
32
+ max_path = 1024
33
+ long_name = " " * max_path
34
+ lfn_size = Win32API.new("kernel32", "GetLongPathName",
35
+ ['P','P','L'],'L').call(short_name,
36
+ long_name,
37
+ max_path)
38
+ (1..max_path).include?(lfn_size) ? long_name[0..lfn_size-1] : short_name
39
+ end
40
+ end
41
+ end
@@ -1,3 +1,3 @@
1
1
  module XamarinTestCloud
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1.pre1"
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: 2.0.0
4
+ version: 2.0.1.pre1
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: 2016-06-24 00:00:00.000000000 Z
12
+ date: 2016-07-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: thor
@@ -323,6 +323,7 @@ files:
323
323
  - lib/xamarin-test-cloud/http/retriable_client.rb
324
324
  - lib/xamarin-test-cloud/retriable_options.rb
325
325
  - lib/xamarin-test-cloud/test_file.rb
326
+ - lib/xamarin-test-cloud/tmpdir.rb
326
327
  - lib/xamarin-test-cloud/version.rb
327
328
  homepage: http://xamarin.com/test-cloud
328
329
  licenses: []
@@ -338,9 +339,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
338
339
  version: '2.0'
339
340
  required_rubygems_version: !ruby/object:Gem::Requirement
340
341
  requirements:
341
- - - ">="
342
+ - - ">"
342
343
  - !ruby/object:Gem::Version
343
- version: '0'
344
+ version: 1.3.1
344
345
  requirements: []
345
346
  rubyforge_project:
346
347
  rubygems_version: 2.5.1