testplan 0.0.4 → 0.0.5

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: e86fe5f0204532eccc8b6f70555baddaa1a4c029
4
- data.tar.gz: 081f80dae2908c8cfa72d62ebc9cdea37eccd16f
3
+ metadata.gz: 4231b14121755a71e4103cb9360ac81169ab4170
4
+ data.tar.gz: 407d1ae5ab9de3ca0c29b34d40abd076110aab12
5
5
  SHA512:
6
- metadata.gz: c614345131cd13a8d2722023f0a424c5e5a767f8628d978e8dce043dd0a995215afe2a7f3c569f324125dc083ac94b7fdd74c1aaf6b1382e1f4d664dd9a890bd
7
- data.tar.gz: 772fd4c38ed6824a841bfc4995bb8b12ca4d8c0c41b5c8bd60c45e389da9e5ba6ee53b8e2d5673da6966438b73633d71d80d31140dbf152ab183ac044986fc71
6
+ metadata.gz: e25bcdb0f36cf70efce08746751efb200c627647968481e5edebf8634ec736e9e1e1d2e2c17ff092e27a60eb3b98526a0ab2b1f3af5a32938a7c46d49ad1ddd5
7
+ data.tar.gz: 4526196c296e83e5108335abf67f51f127645eb11f64179a83e21202ca684d445f9357c25f9259fc84b68f1332d725c7fdf20d806de038242cf761d6daaa5a29
data/CHANGELOG.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # CHANGELOG
2
+ * support for windows
2
3
 
3
4
  ## 0.0.4 2015-09-30 Pim
4
5
  * Add rake task to run all cases at once
@@ -1,4 +1,3 @@
1
- task default: %w[testplan:build_ci]
2
1
  namespace :testplan do
3
2
 
4
3
  desc 'run all cases in plan separately by testplan name, format documentation'
@@ -1,3 +1,3 @@
1
1
  module Testplan
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
data/lib/testplan.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "testplan/version"
2
+ require 'rbconfig'
2
3
  require 'rspec/core/rake_task'
3
4
  require 'date'
4
5
  require 'yaml'
@@ -70,6 +71,15 @@ module Testplan
70
71
  end
71
72
 
72
73
  def self.make_env_string(envarr)
74
+ case RbConfig::CONFIG['host_os']
75
+ when /mswin|msys|mingw|cygwin|bccwin|wince|emc/
76
+ envstring = make_env_string_win(envarr)
77
+ else
78
+ envstring = make_env_string_unix(envarr)
79
+ end
80
+ end
81
+
82
+ def self.make_env_string_unix(envarr)
73
83
  envstr=''
74
84
  envarr.each do | varname,varvalue|
75
85
  envstr+= "#{varname.upcase}='#{varvalue}' "
@@ -77,6 +87,15 @@ module Testplan
77
87
  return envstr
78
88
  end
79
89
 
90
+ def self.make_env_string_win(envarr)
91
+ envstr=''
92
+ envarr.each do | varname,varvalue|
93
+ envstr+= "set #{varname.upcase}=#{varvalue} &"
94
+ end
95
+ return envstr
96
+ end
97
+
98
+
80
99
  end
81
100
  end
82
101
 
data/testplan.gemspec CHANGED
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "bundler", "~> 1.7"
22
22
  spec.add_runtime_dependency "rake", "~> 10.0"
23
23
  spec.add_runtime_dependency "thor", "~> 0.19"
24
- spec.add_runtime_dependency "rspec", "~> 3.1"
24
+ spec.add_runtime_dependency "rspec", "~> 3"
25
25
  spec.add_runtime_dependency "rspec_testlink_formatters", "~> 0"
26
26
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: testplan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pim Snel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-30 00:00:00.000000000 Z
11
+ date: 2015-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '3.1'
61
+ version: '3'
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: '3.1'
68
+ version: '3'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec_testlink_formatters
71
71
  requirement: !ruby/object:Gem::Requirement