qa_robusta 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
data/History.txt CHANGED
@@ -1,3 +1,5 @@
1
+ === 0.1.4 / 2011-10-01
2
+ * Remove common/lib/gem_helpers.rb and add to localized_gems
1
3
  === 0.1.0 / 2011-10-01
2
4
 
3
5
  * 1 major enhancement
data/Manifest.txt CHANGED
@@ -95,7 +95,6 @@ common/lib/format_html_tmp.html
95
95
  common/lib/update_element.rb
96
96
  common/lib/cache.rb
97
97
  common/lib/array.rb
98
- common/lib/gem_helpers.rb
99
98
  common/lib/gen_suite_doc.rb
100
99
  common/lib/constants.rb
101
100
  lib/monkey_patch.rb
data/Rakefile CHANGED
@@ -12,6 +12,7 @@ require 'hoe'
12
12
  Hoe.spec 'qa_robusta' do
13
13
  developer('Cliff Cyphers', 'cliff.cyphers@gmail.com')
14
14
  extra_deps << ['platform_helpers', '0.1.2']
15
+ extra_deps << ['localized_gems', '0.1.1']
15
16
  extra_deps << 'rubigen'
16
17
  end
17
18
 
data/common/Rakefile CHANGED
@@ -1,13 +1,13 @@
1
1
  require 'fileutils'
2
2
 
3
3
  require 'rubygems'
4
+ require 'localized_gems'
4
5
  require 'platform_helpers'
5
6
  #require 'archive/tar/minitar'
6
7
  #require 'zlib'
7
8
 
8
9
  base_dir = File.expand_path(File.dirname(__FILE__))
9
10
  require "#{base_dir}/lib/monkey_patch"
10
- require "#{base_dir}/lib/gem_helpers"
11
11
 
12
12
  namespace :doc do
13
13
 
@@ -1,7 +1,8 @@
1
1
  GEN_BASE_DIR = File.expand_path(File.dirname(__FILE__))
2
2
 
3
3
  require "#{GEN_BASE_DIR}/../../qa_observer/lib/doc"
4
- require "#{GEN_BASE_DIR}/gem_helpers"
4
+ require 'rubygems'
5
+ require 'localized_gems'
5
6
  GemHelpers.update_gem_path "#{GEN_BASE_DIR}/../gems/installed"
6
7
  require 'faster_csv'
7
8
  require 'hpricot'
@@ -1,7 +1,6 @@
1
1
  base = File.expand_path(File.dirname(__FILE__))
2
- #require 'rubygems'
3
- #require 'archive/tar/minitar'
4
- require "#{base}/../lib/gem_helpers"
2
+ require 'rubygems'
3
+ require 'localized_gems'
5
4
  GemHelpers.update_gem_path "#{base}/gems/installed"
6
5
  require 'yaml'
7
6
  require 'fileutils'
@@ -1,6 +1,7 @@
1
1
  require 'yaml'
2
2
  base=File.expand_path(File.dirname(__FILE__))
3
- require "#{base}/gem_helpers"
3
+ require 'rubygems'
4
+ require 'localized_gems'
4
5
  GemHelpers.update_gem_path "#{base}/../gems/installed"
5
6
  require 'mechanize'
6
7
  #=begin
data/lib/monkey_patch.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  base = File.expand_path(File.dirname(__FILE__))
2
- #require 'rubygems'
2
+ require 'rubygems'
3
3
  #require 'archive/tar/minitar'
4
- require "#{base}/../common/lib/gem_helpers"
4
+ require 'localized_helpers'
5
5
  GemHelpers.update_gem_path "#{base}/../common/gems/installed"
6
6
  require 'yaml'
7
7
  require 'fileutils'
data/lib/qa_robusta.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  class QaRobusta
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
@@ -1,5 +1,6 @@
1
1
  base=File.expand_path(File.dirname(__FILE__))
2
- require "#{base}/../../../common/lib/gem_helpers"
2
+ require 'rubygems'
3
+ require 'localized_gems'
3
4
  GemHelpers.update_gem_path "#{base}/../../../common/gems/installed"
4
5
 
5
6
  require 'test/unit'
@@ -2,7 +2,8 @@ base_dir = File.expand_path(File.dirname(__FILE__))
2
2
  require 'yaml'
3
3
  require 'pstore'
4
4
  require "#{base_dir}/doc"
5
- require "#{$qa_observer_client}/../common/lib/gem_helpers"
5
+ require 'rubygems'
6
+ require 'localized_gems'
6
7
  GemHelpers.update_gem_path "#{$qa_observer_client}/../common/gems/installed"
7
8
  require 'platform_helpers'
8
9
  require 'capture_io'
@@ -104,7 +105,13 @@ class SystemTest < MiniTest::Unit::TestCase
104
105
  $sequence = 0
105
106
  unless @no_browser
106
107
  if Constants::SUPPORTED_BROWSERS.include?($run_on_browser)
107
- $browser = Watir::Browser.new $run_on_browser.to_sym
108
+ retry_ct = 0
109
+ begin
110
+ $browser = Watir::Browser.new $run_on_browser.to_sym
111
+ rescue => e
112
+ retry_ct += 1
113
+ retry if retry_ct < 4
114
+ end
108
115
  else
109
116
  raise ArgumentError, "Unsuppored browser provided: #{$run_on_browser}"
110
117
  end
@@ -1,5 +1,6 @@
1
1
  base = File.expand_path(File.dirname(__FILE__))
2
- require "#{base}/../common/lib/gem_helpers"
2
+ require 'rubygems'
3
+ require 'localized_gems'
3
4
  GemHelpers.update_gem_path "#{base}/../common/gems/installed"
4
5
  require 'platform_helpers'
5
6
  require 'getoptions'
@@ -1,6 +1,7 @@
1
1
  base_dir = File.expand_path(File.dirname(__FILE__))
2
2
  require 'fileutils'
3
- require "#{base_dir}/../../common/lib/gem_helpers"
3
+ require 'rubygems'
4
+ require 'localized_gems'
4
5
  require 'time'
5
6
  require 'find'
6
7
  GemHelpers.update_gem_path "#{base_dir}/../../common/gems/installed"
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: qa_robusta
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.1.3
5
+ version: 0.1.4
6
6
  platform: ruby
7
7
  authors:
8
8
  - Cliff Cyphers
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-10-03 00:00:00 Z
13
+ date: 2011-10-04 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: platform_helpers
@@ -24,27 +24,38 @@ dependencies:
24
24
  type: :runtime
25
25
  version_requirements: *id001
26
26
  - !ruby/object:Gem::Dependency
27
- name: rubigen
27
+ name: localized_gems
28
28
  prerelease: false
29
29
  requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - "="
33
+ - !ruby/object:Gem::Version
34
+ version: 0.1.1
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: rubigen
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
30
41
  none: false
31
42
  requirements:
32
43
  - - ">="
33
44
  - !ruby/object:Gem::Version
34
45
  version: "0"
35
46
  type: :runtime
36
- version_requirements: *id002
47
+ version_requirements: *id003
37
48
  - !ruby/object:Gem::Dependency
38
49
  name: hoe
39
50
  prerelease: false
40
- requirement: &id003 !ruby/object:Gem::Requirement
51
+ requirement: &id004 !ruby/object:Gem::Requirement
41
52
  none: false
42
53
  requirements:
43
54
  - - ~>
44
55
  - !ruby/object:Gem::Version
45
56
  version: "2.12"
46
57
  type: :development
47
- version_requirements: *id003
58
+ version_requirements: *id004
48
59
  description: |-
49
60
  QA Robusta is an automation framework easing pain points away from automation test case writers. How is pain relieved?
50
61
 
@@ -181,7 +192,6 @@ files:
181
192
  - common/lib/update_element.rb
182
193
  - common/lib/cache.rb
183
194
  - common/lib/array.rb
184
- - common/lib/gem_helpers.rb
185
195
  - common/lib/gen_suite_doc.rb
186
196
  - common/lib/constants.rb
187
197
  - lib/monkey_patch.rb
@@ -1,29 +0,0 @@
1
- require 'rubygems'
2
- require 'find'
3
- require 'fileutils'
4
-
5
- module GemHelpers
6
- def self.update_gem_path(path)
7
- Gem.clear_paths
8
- ENV['GEM_HOME'] = File.expand_path(path)
9
- ENV['GEM_PATH'] = File.expand_path(path)
10
- end
11
-
12
- # FIXME: update to handle version
13
- def self.is_installed?(gem_install_dir, gem_name)
14
- spec = File.basename(gem_name.gsub(/\.gem$/, '.gemspec'))
15
- dir = File.expand_path(gem_install_dir)
16
- File.exists?("#{dir}/specifications/#{spec}")
17
- end
18
-
19
- # TODO once the cross platform gem install is working as expected
20
- # copy over to other projects
21
- def self.install(gem, install_dir)
22
- #unless GemHelpers.is_installed?(install_dir, gem)
23
- fork { exec("gem install #{gem} --no-rdoc --no-ri -i #{install_dir}") }
24
- Process.wait2
25
- FileUtils.chmod_R 0777, install_dir
26
- #end
27
- end
28
-
29
- end