pivotal-selenium-grid 0.2.2 → 0.2.4

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.
data/bin/selenium-grid CHANGED
@@ -106,6 +106,19 @@ class RcRunningOptions < SeleniumGridOptions
106
106
  end
107
107
  end
108
108
 
109
+ # class GlobalOptions < SeleniumGridOptions
110
+ #
111
+ # protected
112
+ #
113
+ # def initialize_options
114
+ # return OptionParser.new do |opts|
115
+ # opts.banner = "global options"
116
+ #
117
+ # opts.on('-v', '--version', 'print the version')
118
+ # end
119
+ # end
120
+ # end
121
+
109
122
  case ARGV.first
110
123
  when 'grid:list':
111
124
  hub = Hub.instance.list.collect { |port, component| "#{port}\t#{component}"}
@@ -134,8 +147,14 @@ case ARGV.first
134
147
  puts options[:port] ? Remote.instance.running?(options[:port]) : Remote.instance.running?
135
148
  when 'rc:list':
136
149
  puts Remote.instance.list.collect { |port, browser| "#{port}\tremote\t#{browser}"}.sort.join("\n")
150
+ when '--version':
151
+ puts SeleniumGrid::VERSION::STRING
152
+ when '-v':
153
+ puts SeleniumGrid::VERSION::STRING
137
154
  else
138
- puts "Usage: selenium-grid <command> [options]"
155
+ puts "Usage:"
156
+ puts "\tselenium-grid <command> [options]"
157
+ puts "\tselenium-grid -v/--version"
139
158
  puts ""
140
159
  puts "commands"
141
160
  puts "\t" + %w(grid:list grid:stop hub:start hub:stop hub:list hub:running rc:start rc:stop rc:list rc:running).join("\n\t")
@@ -145,4 +164,6 @@ case ARGV.first
145
164
  RcStartOptions.new.summarize
146
165
  RcStopOptions.new.summarize
147
166
  RcRunningOptions.new.summarize
167
+
168
+ puts "Version: #{SeleniumGrid::VERSION::STRING}"
148
169
  end
data/lib/java/vm.rb CHANGED
@@ -47,7 +47,7 @@ module Java
47
47
  def include_log(command, options)
48
48
  if options[:log]
49
49
  command << "> '#{options[:log]}' 2>&1"
50
- mkdir_p File.dirname(options[:log])
50
+ mkdir_p File.dirname(options[:log]), :verbose => false
51
51
  end
52
52
  end
53
53
 
@@ -2,7 +2,7 @@ module SeleniumGrid #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 2
5
+ TINY = 4
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
  end
8
8
  end
data/spec/java/vm_spec.rb CHANGED
@@ -40,8 +40,8 @@ module Java
40
40
  end
41
41
 
42
42
  it "is the last option" do
43
- mock(vm).sh("java test.ClassName > '/var/log/test.log' 2>&1 &")
44
- vm.run "test.ClassName", {:background => true, :log => '/var/log/test.log'}
43
+ mock(vm).sh("java test.ClassName -one uno &")
44
+ vm.run "test.ClassName", {:background => true, :arguments => { :one => 'uno' }}
45
45
  end
46
46
  end
47
47
 
@@ -54,7 +54,7 @@ module Java
54
54
 
55
55
  context "when the options include :log" do
56
56
  before do
57
- mock(vm).mkdir_p("/var/log")
57
+ mock(vm).mkdir_p("/var/log", :verbose => false)
58
58
  end
59
59
 
60
60
  it "shells out to java and redirects output to the specified log file" do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pivotal-selenium-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Dy