lib/autowow/features/gem.rb in autowow-0.14.2 vs lib/autowow/features/gem.rb in autowow-0.15.0

- old
+ new

@@ -15,17 +15,18 @@ unless rubygems_credentials_set? logger.error("Set RubyGems credentials first via `gem push`") return end pretty_with_output.run(git_status) + pretty_with_output.run(bundle_install) start_branch = Vcs.working_branch logger.error("Not on master.") and return unless start_branch.eql?("master") pretty.run(pull) version = nil if version_bump - version = pretty_with_output.run(bump(version_bump)).out.clean_lines.select { |line| line.match(/Bumping|bump/) }.first.split(" ").last + version = pretty_with_output.run(bump(version_bump)).out.clean_lines.select { |line| line.match(/Bumping|bump/) }.first.split("to ").last bump_readme_version_information(version) # Full command is needed because of faulty escaping otherwise pretty.run("git add README.md *version.rb") pretty.run("git commit -m \"Bumps version to v#{version}\"") end @@ -69,9 +70,15 @@ end end def bundle_exec(cmd) Autowow::Executor.pretty_with_output.run(["bundle", "exec"] + cmd) + end + + def ruby_check + rubocop_parallel_autocorrect + bundle_exec(["rspec"]) + pretty_with_output.run(git_status) end def db_migrate pretty_with_output.run(rake_db_migrate) end