summaryrefslogtreecommitdiff
path: root/spec/mspec/tool/remove_old_guards.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mspec/tool/remove_old_guards.rb')
-rw-r--r--spec/mspec/tool/remove_old_guards.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/mspec/tool/remove_old_guards.rb b/spec/mspec/tool/remove_old_guards.rb
index d0920344eb..feb4ee4662 100644
--- a/spec/mspec/tool/remove_old_guards.rb
+++ b/spec/mspec/tool/remove_old_guards.rb
@@ -36,6 +36,6 @@ def remove_guards(guard, keep)
end
end
-version = "2.2"
+version = (ARGV[0] || "2.2")
remove_guards(/ruby_version_is ["']#{version}["'] do/, true)
remove_guards(/ruby_version_is ["'][0-9.]*["']...["']#{version}["'] do/, false)