watir_testframework 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 34c7d0e863bc56e244d45303c46d8a357de22b23
4
- data.tar.gz: bb31d0d7ca68a6d9bc7de61297367791a701ec7f
3
+ metadata.gz: 50b0a1701344d14438ee451eb97e1b43632d8cfa
4
+ data.tar.gz: 54540f84eb9d079da48bb3de01254c0e9525da46
5
5
  SHA512:
6
- metadata.gz: d7322e76f2e7f86579243cf3cdf8a8db9060fcaa0838274570bb6fd4c2a4235f5967922306305cc473e1761a25254099848cd6cc75032e83c1391ddb7c2c689e
7
- data.tar.gz: 5aae00757e1065cf7e8918b0ffc0be2969482a8ee35234f11873f8bc6acdaccff97f4f1ab2226c4874d68c053d04c62eb5a279347974408c5920dcad96977508
6
+ metadata.gz: f4cabb5b4a6e3aaf5643a8345df472560d4529bff3c04fc4715d3ee056a04b34d4d274f1491dcfb8578b484a0f9520047185d21f7dfbb8daa06f4b0ed8502497
7
+ data.tar.gz: e386d66d35f96c03c3b49cfe2fa06d15a50243f5cadb9e8ceec521b0a8893e14f6ab7960723e5ba5407092769766e181a90b5d5b594c1e9e3523b036588000c1
data/bin/runregress CHANGED
@@ -1,16 +1,17 @@
1
1
  #!/usr/bin/env ruby
2
- require "watir_testframework/version"
3
- require 'open3'
4
- require 'optparse'
5
- require 'common'
6
- require 'setup'
2
+ require 'util_helpers'
7
3
  include Common
8
4
  include Setup
5
+
9
6
  puts "Running: 'WatirTestframework: version:#{WatirTestframework::VERSION}'\n\n"
10
7
 
11
8
  opts = Setup::cml_options #Lets grab the CommandLine Options
12
9
 
13
10
  unless opts[:projectname].nil?
11
+ if (File.exists?(opts[:projectname]))
12
+ puts "#{opts[:projectname]} already exists..."
13
+ exit(1)
14
+ end
14
15
  binpath = File.expand_path(File.dirname(__FILE__)) + "\/"
15
16
  Setup::unbundle_and_untar(binpath, opts[:projectname])
16
17
  exit(0)
data/lib/setup.rb CHANGED
@@ -33,17 +33,13 @@ module Setup
33
33
 
34
34
  opts.banner = "Usage: runregress [options]"
35
35
 
36
- opts.on("-v", "--verbose", "Run in verbose mode") do|v|
37
- options[:verbose] = v
38
- end
39
- opts.on("-s", "--setup", "Setup new projet") do |s|
40
- options[:setup] = true
41
- scaffold
36
+ opts.on("-h", "--help", "Display this screen") do |h|
37
+ puts opts
38
+ exit
42
39
  end
43
40
 
44
- opts.on('-l', '--logfile FILENAME', 'Write Log to FILE') do |file|
45
- options[:logfile] = file
46
- puts "using file name: #{file}"
41
+ opts.on('-n', '--new PROJECTNAME','Create new project')do |projectname|
42
+ options[:projectname] = projectname
47
43
  end
48
44
 
49
45
  opts.on('-r', '--test_list FILENAME', 'File with Tests for this regression') do |file|
@@ -55,14 +51,6 @@ module Setup
55
51
  options[:testlist] = tests
56
52
  puts "Running Tests: #{options[:testlist]}"
57
53
  end
58
-
59
- opts.on('-n', '--new PROJECTNAME','Create new project')do |projectname|
60
- options[:projectname] = projectname
61
- end
62
- opts.on("-h", "--help", "Display this screen") do |h|
63
- puts opts
64
- exit
65
- end
66
54
  end.parse!
67
55
  options
68
56
  end
@@ -0,0 +1,7 @@
1
+ require "watir_testframework/version"
2
+ require 'open3'
3
+ require 'optparse'
4
+ require 'common'
5
+ require 'setup'
6
+ include Common
7
+ include Setup
@@ -1,3 +1,3 @@
1
1
  module WatirTestframework
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: watir_testframework
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Vladmr
@@ -79,6 +79,7 @@ files:
79
79
  - lib/common.rb
80
80
  - lib/setup.rb
81
81
  - lib/tar.rb
82
+ - lib/util_helpers.rb
82
83
  - lib/watir_testframework.rb
83
84
  - lib/watir_testframework/version.rb
84
85
  homepage: https://github.com/vcharlem/watir_testframework.git