rake-n-bake 2.0.0 → 2.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.semver +1 -1
- data/history.rdoc +9 -0
- data/lib/semver_versioning.rb +5 -4
- data/lib/version.rb +1 -1
- data/spec/semver_versioning_spec.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a2c1a41cecc4f0b81aceabd946330f46d6197cb0
|
4
|
+
data.tar.gz: 31e8eeef8bd4eca2c3220a53417fa9b94aa91490
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e4fb8f2cd29aa928b7b3565bcd0ca4fbcb34663dd8983dcfbb2786118a7b51438a7361ae38ced9f86865c192aa226c70a03c429b14b7b7ea13a7ba16b1e0fdd2
|
7
|
+
data.tar.gz: a35976bd412adf303f6f53be43584cd471009cb9c884bac74f4b870a6f39d8b57b40228e81b67be15c50a14ff42d1caf69d38e146dd59ecda082d633b403c9b9
|
data/.semver
CHANGED
data/history.rdoc
CHANGED
@@ -1,11 +1,20 @@
|
|
1
|
+
== v2.0.1 (24 November 2016)
|
2
|
+
|
3
|
+
* Fix version headding addition in markdown files
|
4
|
+
|
1
5
|
== v2.0.0 (17 November 2016)
|
2
6
|
|
3
7
|
* Remove code quality tasks (Rubocop now does all of this)
|
4
8
|
|
5
9
|
== v1.4.3 (17 November 2016)
|
6
10
|
|
11
|
+
* Fix internal Rubocop violations
|
12
|
+
* Add a blank line after logging out a step
|
13
|
+
|
7
14
|
== v1.4.2 (12 October 2016)
|
8
15
|
|
16
|
+
* Make semver tasks update version.rb in gem projects
|
17
|
+
|
9
18
|
== v1.4.1 (08 September 2016)
|
10
19
|
|
11
20
|
* Update Rake dependency
|
data/lib/semver_versioning.rb
CHANGED
@@ -80,10 +80,11 @@ module RakeNBake
|
|
80
80
|
puts "To push the new tag, use 'git push origin #{branch} --tags'"
|
81
81
|
end
|
82
82
|
|
83
|
-
def self.add_version_to_top
|
84
|
-
|
85
|
-
File.
|
86
|
-
|
83
|
+
def self.add_version_to_top filepath
|
84
|
+
heading_marker = (filepath =~ /rdoc$/) ? '==' : '##'
|
85
|
+
current_history = File.read filepath
|
86
|
+
File.open filepath, 'w' do |f|
|
87
|
+
f.puts "#{heading_marker} #{current_version} (#{Time.now.strftime '%d %B %Y'})"
|
87
88
|
f.puts
|
88
89
|
f.print current_history
|
89
90
|
end
|
data/lib/version.rb
CHANGED
@@ -126,7 +126,7 @@ describe RakeNBake::SemverVersioning do
|
|
126
126
|
it 'Adds the version number and date to the top of the file and adds it to git' do
|
127
127
|
expect(Object).to receive(:`).with('git add CHANGELOG.md')
|
128
128
|
described_class.update_history_file
|
129
|
-
expect(File.read(changelog).lines.first).to eq "
|
129
|
+
expect(File.read(changelog).lines.first).to eq "## v1.2.3 (#{Time.now.strftime '%d %B %Y'})\n"
|
130
130
|
end
|
131
131
|
end
|
132
132
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-n-bake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Richard Vickerstaff
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-11-
|
12
|
+
date: 2016-11-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rake
|
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
125
125
|
version: '0'
|
126
126
|
requirements: []
|
127
127
|
rubyforge_project:
|
128
|
-
rubygems_version: 2.4.
|
128
|
+
rubygems_version: 2.4.5
|
129
129
|
signing_key:
|
130
130
|
specification_version: 4
|
131
131
|
summary: Common rake tasks, baked to perfection and ready to serve!
|