selenium-connect 1.9.0 → 1.9.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
+ *.task
1
2
  *.gem
2
3
  *.lock
3
4
  *.swp
@@ -12,9 +12,6 @@ module SeleniumConnect
12
12
  attr_accessor :sauce_username, :sauce_api_key,
13
13
  :os, :browser_version, :description
14
14
 
15
- #Logging
16
- #attr_accessor :logs
17
-
18
15
  def config_file=(file)
19
16
  set_config_values_from_file(get_config_values_from_file(file))
20
17
  end
@@ -28,7 +25,6 @@ module SeleniumConnect
28
25
  def defaults
29
26
  @host = 'localhost' unless host
30
27
  @port = 4444 unless port
31
- @log = false unless log
32
28
  @browser = 'firefox' unless browser
33
29
  end
34
30
 
@@ -8,11 +8,7 @@ module SeleniumConnect
8
8
  end
9
9
 
10
10
  def start
11
- # if configuration.browser == 'ghostdriver'
12
- # start_phantomjs
13
- # else
14
- rake "start"
15
- # end
11
+ rake "start"
16
12
  end
17
13
 
18
14
  def stop
@@ -65,9 +61,5 @@ module SeleniumConnect
65
61
  system "rake -f #{get_rake_file} server:#{task}"
66
62
  end
67
63
 
68
- # def start_phantomjs
69
- # system "#{current_dir_path} + '/../../bin/phantomjs --webdriver=#{configuration.port}"
70
- # end
71
-
72
64
  end #Server
73
65
  end #SeleniumConnect
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'selenium-connect'
3
- s.version = '1.9.0'
3
+ s.version = '1.9.1'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.authors = ['Dave Haeffner']
6
6
  s.email = ['dave@arrgyle.com']
7
7
  s.homepage = 'https://github.com/arrgyle/selenium-connect'
8
8
  s.summary = 'A stupid simple way to run your Selenium tests on localhost, against a Selenium Grid, or in the cloud (e.g. SauceLabs).'
9
- s.description = 'Changed the log option so all you need to provide is a directory. The selenium log and browser specific logs will then show up there. Also added GhostDriver support.'
9
+ s.description = 'Minor cleanup and refactoring.'
10
10
  s.license = 'MIT'
11
11
 
12
12
  s.files = `git ls-files`.split($/)
@@ -3,22 +3,24 @@ require_relative 'helper'
3
3
 
4
4
  describe "Logging" do
5
5
  let(:google) { Google.new(SeleniumConnect.start) }
6
- let(:logs_dir) { File.join(Dir.pwd, 'build') }
6
+ let(:log_dir) { File.join(Dir.pwd, 'build') }
7
7
 
8
- it "logging" do
8
+ before(:all) do
9
9
  SeleniumConnect.configure do |c|
10
- c.log = logs_dir
10
+ c.log = log_dir
11
11
  end
12
12
 
13
13
  google.visit
14
14
  SeleniumConnect.finish
15
+ end
15
16
 
16
- server_log = File.read(logs_dir+'/server.log')
17
+ it "server" do
18
+ server_log = File.read(log_dir+'/server.log')
17
19
  server_log.empty?.should be false
20
+ end
18
21
 
19
- browser_log = File.read(logs_dir+'/firefox.log')
22
+ it "browser" do
23
+ browser_log = File.read(log_dir+'/firefox.log')
20
24
  browser_log.empty?.should be false
21
-
22
- # File.delete('runner.out')
23
25
  end
24
26
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-connect
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.0
4
+ version: 1.9.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-06-19 00:00:00.000000000 Z
12
+ date: 2013-06-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: selenium-webdriver
@@ -75,9 +75,7 @@ dependencies:
75
75
  - - ! '>='
76
76
  - !ruby/object:Gem::Version
77
77
  version: '0'
78
- description: Changed the log option so all you need to provide is a directory. The
79
- selenium log and browser specific logs will then show up there. Also added GhostDriver
80
- support.
78
+ description: Minor cleanup and refactoring.
81
79
  email:
82
80
  - dave@arrgyle.com
83
81
  executables: []
@@ -95,7 +93,6 @@ files:
95
93
  - build/.gitkeep
96
94
  - lib/selenium-connect.rb
97
95
  - lib/selenium-connect/configuration.rb
98
- - lib/selenium-connect/rake.task
99
96
  - lib/selenium-connect/runner.rb
100
97
  - lib/selenium-connect/runners/chrome.rb
101
98
  - lib/selenium-connect/runners/firefox.rb
@@ -1,9 +0,0 @@
1
- require 'selenium/rake/server_task'
2
-
3
- Selenium::Rake::ServerTask.new(:server) do |t|
4
- t.version = :latest
5
- t.background
6
- t.log = false
7
- t.port = 4444
8
-
9
- end