Add warning about ruby version

This commit is contained in:
Vladmir Sharhsov(warpc) 2013-07-31 15:03:22 +04:00
parent 3ee41a9f69
commit 3fb6b6999c
1 changed files with 7 additions and 8 deletions

View File

@ -14,16 +14,15 @@
# License for the specific language governing permissions and limitations
# under the License.
if RUBY_VERSION < "1.9"
puts "Astute tested and works only on Ruby 1.9.3 but you use #{RUBY_VERSION}"
puts "Please run astute using ruby -rubygems bin/astute.rb"
end
require 'optparse'
require 'yaml'
begin
require 'astute'
require 'astute/version'
rescue LoadError
require 'rubygems'
require 'astute'
require 'astute/version'
end
require 'astute'
require 'astute/version'
class ConsoleReporter
def report(msg)