Skip to content

Commit b23f44b

Browse files
author
jeannegreulich
authored
(SIMP-8075) Rake task not working (#147)
- The Rake file attempts to clear out task but when building the ISO in rpm_docker this task, predefined by puppet, is not defined. So check if the task is defined before trying to clear it SIMP-8075 #comment rubygem-simp-cli
1 parent 957e3ed commit b23f44b

3 files changed

Lines changed: 7 additions & 3 deletions

File tree

Rakefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ end
5555

5656
# This project has unit tests in nonstandard locations, so redefine the
5757
# underlying Rake task to pick up its tests
58-
Rake::Task[:spec_standalone].clear
58+
Rake::Task[:spec_standalone].clear if Rake::Task.task_defined?(:spec_standalone)
5959
RSpec::Core::RakeTask.new(:spec_standalone) do |t|
6060
t.rspec_opts = ['--color']
6161
t.exclude_pattern = '**/{acceptance,fixtures,files}/**/*_spec.rb'

build/rubygem-simp-cli.spec

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
%global gemdir /usr/share/simp/ruby
44
%global geminstdir %{gemdir}/gems/%{gemname}-%{version}
5-
%global cli_version 6.0.0
5+
%global cli_version 6.0.1
66
%global highline_version 1.7.8
77

88
# gem2ruby's method of installing gems into mocked build roots will blow up
@@ -129,6 +129,10 @@ EOM
129129
%doc %{gemdir}/doc
130130

131131
%changelog
132+
* Tue Sep 01 2020 Jeanne Greulich <jeanne.greulich@onyxpoint.com> - 6.0.1
133+
- In Rakefile check if task spec_standalone exists before trying to
134+
clear it
135+
132136
* Thu Aug 13 2020 Trevor Vaughan <tvaughan@onyxpoint.com> - 6.0.0
133137
- Allow users to set the SIMP_ENVIRONMENT environment variable to change the
134138
initial environment from 'production' to a custom value

lib/simp/cli/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module Simp; end
22

33
class Simp::Cli
4-
VERSION = '6.0.0'
4+
VERSION = '6.0.1'
55
end

0 commit comments

Comments
 (0)