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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d7cf1122d6f3c6e074e72dc9f982177aeaad669
4
- data.tar.gz: 35deb0087deb8f23f31ec4b07a05460cc2262bc1
3
+ metadata.gz: a2c1a41cecc4f0b81aceabd946330f46d6197cb0
4
+ data.tar.gz: 31e8eeef8bd4eca2c3220a53417fa9b94aa91490
5
5
  SHA512:
6
- metadata.gz: e83e1e44c433652d321e5e78a0ac948e31ad27ab0a4918d1ec229e448f213e0c739bfb5968ac52f25593b3d85929dee182400b33db94aed2aeab4851ab8cb3e9
7
- data.tar.gz: 2e472ccc2b81879a66afb5001e5866697d814ae98b79f4acaf09cb1f728a0e928bff9628ac7dc78fa7d877f0b52b9f424f0fa1e8679b8d34c8b0fa043132990a
6
+ metadata.gz: e4fb8f2cd29aa928b7b3565bcd0ca4fbcb34663dd8983dcfbb2786118a7b51438a7361ae38ced9f86865c192aa226c70a03c429b14b7b7ea13a7ba16b1e0fdd2
7
+ data.tar.gz: a35976bd412adf303f6f53be43584cd471009cb9c884bac74f4b870a6f39d8b57b40228e81b67be15c50a14ff42d1caf69d38e146dd59ecda082d633b403c9b9
data/.semver CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
2
  :major: 2
3
3
  :minor: 0
4
- :patch: 0
4
+ :patch: 1
5
5
  :special: ''
6
6
  :metadata: ''
@@ -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
@@ -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 file
84
- current_history = File.read file
85
- File.open file, 'w' do |f|
86
- f.puts "== #{current_version} (#{Time.now.strftime '%d %B %Y'})"
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
@@ -1,3 +1,3 @@
1
1
  module RakeNBake
2
- VERSION = '2.0.0'
2
+ VERSION = '2.0.1'
3
3
  end
@@ -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 "== v1.2.3 (#{Time.now.strftime '%d %B %Y'})\n"
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.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-17 00:00:00.000000000 Z
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.8
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!