Rakefile in selenium-connect-2.1.0 vs Rakefile in selenium-connect-2.1.1
- old
+ new
@@ -19,11 +19,11 @@
FileUtils.mkdir_p('build/tmp')
end
RSpec::Core::RakeTask.new(:spec_full)
RSpec::Core::RakeTask.new(:spec_unit) do |t|
- t.rspec_opts = "--tag ~selenium"
+ t.rspec_opts = '--tag ~selenium'
end
desc 'Runs code quality check'
task :rubocop do
sh 'rubocop'
@@ -74,10 +74,12 @@
changelog = File.join(Dir.getwd, 'CHANGELOG.md')
version = File.read(gemspec).match(/s.version\s+=\s?["|'](.+)["|']/)[1]
### Changelog
# get the latest tag
+ system 'git checkout master'
last_tag = `git describe --abbrev=0`
+ system "git checkout release/#{version}"
# get the commit hash since the last that version was merged to develop
hash = `git log --grep="Merge branch 'release/#{last_tag.chomp}' into develop" --format="%H"`
# get all the commits since them less merges
log = `git log --format="- %s" --no-merges #{hash.chomp}..HEAD`