renogen 1.2.0 → 1.2.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: 9c597a603a1ff6629766e2fca60f6970a75bb1e3
4
- data.tar.gz: 70ff70d1bcd0fe5fba73dcb6a7a04b3a70652630
3
+ metadata.gz: 678094f7d0bc73ec7bcbce26bc6b247d77227383
4
+ data.tar.gz: 897ed1b230c1bbfcdc625e678528543042ba3210
5
5
  SHA512:
6
- metadata.gz: 22e630d7505723cf02a2c6c66853c74ae1f98633e0d102cde31061b7dcc8ab1d6bdca9cb22c438f6cb746a8b1ecc5cf295b4fabfa9dff1c49b43e0b7421014ea
7
- data.tar.gz: c94d1ae2b66072bbfcdf8d4960fa3f29caf58a0aaabb76a32d4f164e6eae73bff06a0f6040f64aaaab99b685cc82a92909d11f8a40841e1ec642768f60539c72
6
+ metadata.gz: 5bb3adc8c88af3a84f8784d6237df86ebc1d479f0131c7ec967bcd0cef2b94731f01ef369614ee950df9eb398aa44ba6f9ae17b106044f85af2be69eb48b992b
7
+ data.tar.gz: 8dba5a1b2198b4aa7b515c816c3c8638c3f3efa0192b1ab5ac834b5d80acdb8a9b5f3c3e4f1b2d7663ca1293d786cbce6b177474a3cd2e6ebade0d065cf53354
data/README.md CHANGED
@@ -119,6 +119,13 @@ You have to include that file when running renogen:
119
119
  ### Why does renogen not use renogen?
120
120
  The amount of activity and contributes for this project is small and so it is more practical to use a text file.
121
121
 
122
+ ### How can I run from source?
123
+ ```
124
+ $ git clone git@github.com:DDAZZA/renogen.git
125
+ $ cd ./renogen/
126
+ $ bundle install
127
+ $ bundle exec ./bin/renogen test
128
+ ```
122
129
  ### License
123
130
 
124
131
  Renogen is a programming tool to generate a log of source code changes
@@ -67,6 +67,7 @@ module Renogen
67
67
  #
68
68
  # @param ticket_name [String]
69
69
  def self.new_ticket(ticket_name)
70
+ raise 'You need to provide a ticket_name' if ticket_name.nil?
70
71
  file_path = File.join(Config.instance.changelog_path, 'next', "#{ticket_name}.yml")
71
72
  File.open(file_path, 'w') do |f|
72
73
  Config.instance.default_headings.each do |h|
@@ -9,7 +9,7 @@ module Renogen
9
9
  # @param header [String]
10
10
  # @return [String]
11
11
  def write_header(header)
12
- "<html>\n<h1>#{header}</h1>"
12
+ "<html>\n<h1>#{header}</h1>\n"
13
13
  end
14
14
 
15
15
  # Outputs a line or block as a header for a group.
@@ -10,7 +10,7 @@ module Renogen
10
10
  # @param header [String]
11
11
  # @return [String]
12
12
  def write_header(header)
13
- "# #{header}"
13
+ "# #{header}\n\n"
14
14
  end
15
15
 
16
16
  # Outputs a line or block as a header for a group.
@@ -18,7 +18,7 @@ module Renogen
18
18
  # @param group [String]
19
19
  # @return [String]
20
20
  def write_group(group)
21
- "### #{group}"
21
+ "## #{group}\n\n"
22
22
  end
23
23
 
24
24
  # Outputs a line or block as the body for a change.
@@ -1,3 +1,3 @@
1
1
  module Renogen
2
- VERSION='1.2.0'.freeze # :nodoc:
2
+ VERSION='1.2.1'.freeze # :nodoc:
3
3
  end
@@ -8,7 +8,7 @@ describe Renogen::Formatters::Html do
8
8
 
9
9
  describe '#write_header' do
10
10
  it 'returns header with newline' do
11
- expect(subject.write_header('header')).to eql "<html>\n<h1>header</h1>"
11
+ expect(subject.write_header('header')).to eql "<html>\n<h1>header</h1>\n"
12
12
  end
13
13
  end
14
14
 
@@ -11,13 +11,13 @@ describe Renogen::Formatters::Markdown do
11
11
 
12
12
  describe '#write_header' do
13
13
  it 'returns header with newline' do
14
- expect(subject.write_header('header')).to eql "# header"
14
+ expect(subject.write_header('header')).to eql "# header\n\n"
15
15
  end
16
16
  end
17
17
 
18
18
  describe '#write_group' do
19
19
  it 'returns group' do
20
- expect(subject.write_group('group')).to eql "### group"
20
+ expect(subject.write_group('group')).to eql "## group\n\n"
21
21
  end
22
22
  end
23
23
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: renogen
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dave Elliott
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-23 00:00:00.000000000 Z
11
+ date: 2019-07-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec