awetestlib 0.1.2-x86-mingw32 → 0.1.3-x86-mingw32

Sign up to get free protection for your applications and to get access to all the features.
data/bin/AutoItX3.dll ADDED
Binary file
data/bin/awetestlib CHANGED
@@ -1,7 +1,18 @@
1
1
  $: << "./lib"
2
+ require File.join(File.dirname(__FILE__),"awetestlib-helpers")
3
+
4
+ cmd = ARGV[0]
5
+
6
+ if cmd.nil?
7
+ print_usage
8
+
9
+ elsif cmd == "regression_setup"
10
+ require File.join(File.dirname(__FILE__),"awetestlib-regression-setup")
11
+ awetestlib_regression_setup
12
+
13
+ else
2
14
  require 'optparse'
3
15
  require 'awetestlib'
4
-
5
16
  options = { }
6
17
  OptionParser.new do |opts|
7
18
  opts.banner = "Usage: awetestlib <script_file> [options]"
@@ -65,3 +76,5 @@ options[:script_file] = ARGV[0]
65
76
  IS_WIN_2008 = File.exists?("config/win2008.txt")
66
77
 
67
78
  Awetestlib::Runner.new(options).start
79
+
80
+ end
@@ -0,0 +1,12 @@
1
+ def msg(title, &block)
2
+ puts "\n" + "-"*10 + title + "-"*10
3
+ block.call
4
+ puts "-"*10 + "-------" + "-"*10 + "\n"
5
+ end
6
+
7
+
8
+ def print_usage
9
+ puts <<EOF
10
+ TODO: PUTS HELP INFO
11
+ EOF
12
+ end
@@ -0,0 +1,16 @@
1
+ def awetestlib_regression_setup
2
+ msg("Question") do
3
+ puts "I'm about to setup awetest regression support and register the AutoIt.dll"
4
+ puts "Please hit return to confirm that's what you want."
5
+ puts "NOTE: You may need to run this command as an administrator."
6
+ end
7
+ exit 2 unless STDIN.gets.chomp == ''
8
+
9
+ autoit_file = File.join(File.dirname(__FILE__),"AutoItX3.dll")
10
+ system("regsvr32 #{autoit_file}")
11
+
12
+ msg("Info") do
13
+ puts "Configuring files and settings"
14
+ end
15
+
16
+ end
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module Awetestlib
2
- VERSION = "0.1.2"
3
- VERSION_DATE = "2012-08-15"
2
+ VERSION = "0.1.3"
3
+ VERSION_DATE = "2012-08-16"
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: awetestlib
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: x86-mingw32
12
12
  authors:
13
13
  - Anthony Woo
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-08-15 00:00:00 Z
19
+ date: 2012-08-16 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: watir-webdriver
@@ -260,7 +260,10 @@ dependencies:
260
260
  description: Awetest DSL for automated testing of browser-based applications.
261
261
  email: patrick@3qilabs.com
262
262
  executables:
263
+ - AutoItX3.dll
263
264
  - awetestlib
265
+ - awetestlib-helpers.rb
266
+ - awetestlib-regression-setup.rb
264
267
  extensions: []
265
268
 
266
269
  extra_rdoc_files: []
@@ -273,7 +276,10 @@ files:
273
276
  - awetestlib.windows.gemspec
274
277
  - awetestlib_notes.txt
275
278
  - awetestlib_osx.gemspec
279
+ - bin/AutoItX3.dll
276
280
  - bin/awetestlib
281
+ - bin/awetestlib-helpers.rb
282
+ - bin/awetestlib-regression-setup.rb
277
283
  - ext/Rakefile
278
284
  - ext/mkrf_conf.rb
279
285
  - lib/awetestlib.rb