taza 0.9.1.1 → 0.9.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,6 +1,59 @@
1
+ script: "bundle exec rspec spec"
1
2
  rvm:
2
3
  - 1.8.7
3
4
  - 1.9.2
4
5
  - 1.9.3
6
+ - ruby-head
7
+ - ree
5
8
  - jruby
6
- script: "bundle exec rspec spec"
9
+ - rbx
10
+ env:
11
+ -
12
+ - JRUBY_OPTS="--1.8"
13
+ - JRUBY_OPTS="--1.9"
14
+ matrix:
15
+ exclude:
16
+ # exclude 1.8.7
17
+ - rvm: 1.8.7
18
+ env: JRUBY_OPTS="--1.8"
19
+ - rvm: 1.8.7
20
+ env: JRUBY_OPTS="--1.9"
21
+
22
+ # exclude 1.9.2
23
+ - rvm: 1.9.2
24
+ env: JRUBY_OPTS="--1.8"
25
+ - rvm: 1.9.2
26
+ env: JRUBY_OPTS="--1.9"
27
+
28
+ # exclude 1.9.3
29
+ - rvm: 1.9.3
30
+ env: JRUBY_OPTS="--1.8"
31
+ - rvm: 1.9.3
32
+ env: JRUBY_OPTS="--1.9"
33
+
34
+ # exclude ruby-head
35
+ - rvm: ruby-head
36
+ env: JRUBY_OPTS="--1.8"
37
+ - rvm: ruby-head
38
+ env: JRUBY_OPTS="--1.9"
39
+
40
+ # exclude ree
41
+ - rvm: ree
42
+ env: JRUBY_OPTS="--1.8"
43
+ - rvm: ree
44
+ env: JRUBY_OPTS="--1.9"
45
+
46
+ # exclude jruby
47
+ - rvm: jruby
48
+ env:
49
+ - rvm: jruby
50
+ env: JRUBY_OPTS="--1.9"
51
+
52
+ # exclude rbx
53
+ - rvm: rbx
54
+ env: JRUBY_OPTS="--1.8"
55
+ - rvm: rbx
56
+ env: JRUBY_OPTS="--1.9"
57
+ notifications:
58
+ email:
59
+ - pnascimento@gmail.com
@@ -1,3 +1,7 @@
1
+ === 0.9.1.2
2
+ Experimental pure Webdriver support
3
+ Fix app generator (thanks @certonaqa)
4
+
1
5
  === 0.9.1
2
6
 
3
7
  * Bundler support on the project itself
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'rubigen'
3
+ require 'taza'
3
4
  class TazaGenerator < RubiGen::Base
4
5
  DEFAULT_SHEBANG = File.join(Config::CONFIG['bindir'],
5
6
  Config::CONFIG['ruby_install_name'])
@@ -1,5 +1,6 @@
1
1
  require 'active_support/all'
2
2
  require 'rspec'
3
+ require 'taza/version'
3
4
  require 'taza/page'
4
5
  require 'taza/site'
5
6
  require 'taza/browser'
@@ -33,6 +33,17 @@ module Taza
33
33
  Selenium::SeleniumDriver.new(params[:server_ip],params[:server_port],'*' + params[:browser].to_s,params[:timeout])
34
34
  end
35
35
 
36
+ def self.create_selenium_webdriver(params)
37
+ require 'selenium-webdriver'
38
+ #Small hack. :)
39
+ Selenium::WebDriver::Driver.class_eval do
40
+ def goto(params)
41
+ navigate.to params
42
+ end
43
+ end
44
+ Selenium::WebDriver.for params[:browser].to_sym
45
+ end
46
+
36
47
  def self.watir_firefox(params)
37
48
  require 'firewatir'
38
49
  FireWatir::Firefox.new
@@ -46,7 +57,7 @@ module Taza
46
57
  def self.watir_ie(params)
47
58
  require 'watir'
48
59
  if params[:attach]
49
- browser = Watir::IE.find(:title, //)
60
+ browser = Watir::IE.find(:title, //)
50
61
  end
51
62
  browser || Watir::IE.new
52
63
  end
@@ -1,3 +1,3 @@
1
1
  module Taza
2
- VERSION = "0.9.1.1"
2
+ VERSION = "0.9.1.2"
3
3
  end
@@ -32,6 +32,11 @@ describe Taza::Browser do
32
32
  browser = Taza::Browser.create(:browser => :firefox, :driver => :watir_webdriver)
33
33
  end
34
34
 
35
+ it 'should use params browser type when creating a selenium webdriver instance' do
36
+ Selenium::WebDriver.expects(:for).with(:firefox)
37
+ browser = Taza::Browser.create(:browser => :firefox, :driver => :selenium_webdriver)
38
+ end
39
+
35
40
  it "should be able to create a selenium instance" do
36
41
  browser = Taza::Browser.create(:browser => :firefox, :driver => :selenium)
37
42
  browser.should be_a_kind_of(Selenium::SeleniumDriver)
@@ -5,6 +5,7 @@ require 'rubigen'
5
5
  require 'rubigen/helpers/generator_test_helper'
6
6
  require 'taza'
7
7
  require 'watir-webdriver'
8
+ require 'selenium-webdriver'
8
9
  RSpec.configure do |config|
9
10
  config.mock_with :mocha
10
11
  end
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.add_runtime_dependency(%q<user-choices>, ["~> 1.1.6.1"])
26
26
  s.add_runtime_dependency(%q<Selenium>, ["~> 1.1.14"])
27
27
  s.add_runtime_dependency(%q<firewatir>, ["~> 1.9.4"])
28
- s.add_runtime_dependency(%q<watir-webdriver>, ["~> 0.3"])
28
+ s.add_runtime_dependency(%q<watir-webdriver>, ["~> 0.4"])
29
29
 
30
30
 
31
31
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taza
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1.1
4
+ version: 0.9.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -11,11 +11,11 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2011-11-12 00:00:00.000000000 Z
14
+ date: 2011-12-27 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: rake
18
- requirement: &70278768436480 !ruby/object:Gem::Requirement
18
+ requirement: &70193146135000 !ruby/object:Gem::Requirement
19
19
  none: false
20
20
  requirements:
21
21
  - - ~>
@@ -23,10 +23,10 @@ dependencies:
23
23
  version: 0.9.2
24
24
  type: :runtime
25
25
  prerelease: false
26
- version_requirements: *70278768436480
26
+ version_requirements: *70193146135000
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: mocha
29
- requirement: &70278768435580 !ruby/object:Gem::Requirement
29
+ requirement: &70193146134120 !ruby/object:Gem::Requirement
30
30
  none: false
31
31
  requirements:
32
32
  - - ~>
@@ -34,10 +34,10 @@ dependencies:
34
34
  version: 0.9.3
35
35
  type: :runtime
36
36
  prerelease: false
37
- version_requirements: *70278768435580
37
+ version_requirements: *70193146134120
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: rspec
40
- requirement: &70278768434640 !ruby/object:Gem::Requirement
40
+ requirement: &70193146133420 !ruby/object:Gem::Requirement
41
41
  none: false
42
42
  requirements:
43
43
  - - ~>
@@ -45,10 +45,10 @@ dependencies:
45
45
  version: '2.6'
46
46
  type: :runtime
47
47
  prerelease: false
48
- version_requirements: *70278768434640
48
+ version_requirements: *70193146133420
49
49
  - !ruby/object:Gem::Dependency
50
50
  name: rubigen
51
- requirement: &70278768433720 !ruby/object:Gem::Requirement
51
+ requirement: &70193146132580 !ruby/object:Gem::Requirement
52
52
  none: false
53
53
  requirements:
54
54
  - - ~>
@@ -56,10 +56,10 @@ dependencies:
56
56
  version: 1.5.6
57
57
  type: :runtime
58
58
  prerelease: false
59
- version_requirements: *70278768433720
59
+ version_requirements: *70193146132580
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: user-choices
62
- requirement: &70278768432600 !ruby/object:Gem::Requirement
62
+ requirement: &70193146131880 !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
65
  - - ~>
@@ -67,10 +67,10 @@ dependencies:
67
67
  version: 1.1.6.1
68
68
  type: :runtime
69
69
  prerelease: false
70
- version_requirements: *70278768432600
70
+ version_requirements: *70193146131880
71
71
  - !ruby/object:Gem::Dependency
72
72
  name: Selenium
73
- requirement: &70278768431020 !ruby/object:Gem::Requirement
73
+ requirement: &70193146100140 !ruby/object:Gem::Requirement
74
74
  none: false
75
75
  requirements:
76
76
  - - ~>
@@ -78,10 +78,10 @@ dependencies:
78
78
  version: 1.1.14
79
79
  type: :runtime
80
80
  prerelease: false
81
- version_requirements: *70278768431020
81
+ version_requirements: *70193146100140
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: firewatir
84
- requirement: &70278768429980 !ruby/object:Gem::Requirement
84
+ requirement: &70193146099320 !ruby/object:Gem::Requirement
85
85
  none: false
86
86
  requirements:
87
87
  - - ~>
@@ -89,18 +89,18 @@ dependencies:
89
89
  version: 1.9.4
90
90
  type: :runtime
91
91
  prerelease: false
92
- version_requirements: *70278768429980
92
+ version_requirements: *70193146099320
93
93
  - !ruby/object:Gem::Dependency
94
94
  name: watir-webdriver
95
- requirement: &70278768219220 !ruby/object:Gem::Requirement
95
+ requirement: &70193146098360 !ruby/object:Gem::Requirement
96
96
  none: false
97
97
  requirements:
98
98
  - - ~>
99
99
  - !ruby/object:Gem::Version
100
- version: '0.3'
100
+ version: '0.4'
101
101
  type: :runtime
102
102
  prerelease: false
103
- version_requirements: *70278768219220
103
+ version_requirements: *70193146098360
104
104
  description: Taza is a page object framework.
105
105
  email:
106
106
  - watir-general@googlegroups.com
@@ -209,7 +209,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
209
209
  version: '0'
210
210
  segments:
211
211
  - 0
212
- hash: 1518555983236963114
212
+ hash: -3860340058295255979
213
213
  requirements: []
214
214
  rubyforge_project: taza
215
215
  rubygems_version: 1.8.10