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 +4 -4
- data/README.md +7 -0
- data/lib/renogen/cli.rb +1 -0
- data/lib/renogen/formatters/html.rb +1 -1
- data/lib/renogen/formatters/markdown.rb +2 -2
- data/lib/renogen/version.rb +1 -1
- data/spec/lib/renogen/formatters/html_spec.rb +1 -1
- data/spec/lib/renogen/formatters/markdown_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 678094f7d0bc73ec7bcbce26bc6b247d77227383
|
4
|
+
data.tar.gz: 897ed1b230c1bbfcdc625e678528543042ba3210
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/renogen/cli.rb
CHANGED
@@ -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|
|
@@ -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
|
-
"
|
21
|
+
"## #{group}\n\n"
|
22
22
|
end
|
23
23
|
|
24
24
|
# Outputs a line or block as the body for a change.
|
data/lib/renogen/version.rb
CHANGED
@@ -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 "
|
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.
|
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:
|
11
|
+
date: 2019-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|