Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rake task showing raider version #93

Merged
merged 6 commits into from Jan 31, 2024
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 5 additions & 8 deletions lib/generators/templates/common/rakefile.tt
@@ -1,8 +1,5 @@
require 'yaml'

desc 'Selects browser for automation run'
task :select_browser, [:browser] do |_t, args|
config = YAML.load_file('config/config.yml')
config['browser'] = args.browser
File.write('config/config.yml', config.to_yaml)
end
desc 'Print Ruby Raider version'
task :raider do
raider = `raider version`
print raider
natalia-ss marked this conversation as resolved.
Show resolved Hide resolved
end
3 changes: 1 addition & 2 deletions lib/ruby_raider.rb
Expand Up @@ -37,8 +37,7 @@ def version
map 'u' => 'utility'

no_commands do
def gemspec = Gem::Specification.load('ruby_raider.gemspec')
def parsed_version = Gem::Version.new(gemspec.version)
def parsed_version = File.read(File.expand_path('version', __dir__)).strip
natalia-ss marked this conversation as resolved.
Show resolved Hide resolved
end
end
end
1 change: 1 addition & 0 deletions lib/version
@@ -0,0 +1 @@
0.8.6
4 changes: 3 additions & 1 deletion ruby_raider.gemspec
@@ -1,8 +1,10 @@
# frozen_string_literal: true

version = File.read(File.expand_path('lib/version', __dir__)).strip
natalia-ss marked this conversation as resolved.
Show resolved Hide resolved

Gem::Specification.new do |s|
s.name = 'ruby_raider'
s.version = '0.8.6'
s.version = version
s.summary = 'A gem to make setup and start of UI automation projects easier'
s.description = 'This gem has everything you need to start working with test automation'
s.authors = ['Agustin Pequeno']
Expand Down