selenium-grid 0.2.3 → 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.
@@ -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
@@ -2,7 +2,7 @@ module SeleniumGrid #:nodoc:
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 2
5
- TINY = 3
5
+ TINY = 4
6
6
  STRING = [MAJOR, MINOR, TINY].join('.')
7
7
  end
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: selenium-grid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Dy