henry 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/CHANGELOG.md +1 -0
- data/lib/henry/deploy.rb +43 -1
- data/lib/henry/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
Yzc1ZDE2MWU2MDExNGExOTZlNjE3ODRiNGE0MWI0YmUyZWJiZGE0ZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjU1MDgzYmIxNTUyYmE1MjFjMmY1NWZmNTI5ZjQ0YTI0NjMwOWQ5ZA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZWE3MDk5MDRjNjAyYTgwYTc0ZTJkNGZmYWViZWYzZTEwMGM0MTcyMzUwZTg3
|
10
|
+
ZmI0ZDZiMzMyMDA3MWJhZGViNGQxNDk3ZTAwMmY4NDgwMTFmMmRmNGY0NDlm
|
11
|
+
MjQ4NGQxNDZmYThkZjEyYWQ0MGU2MDJjM2ZkZmIxNTE4OTI1ODQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZGJlYjM2ODViY2E5MGE5ZDZmYTc5YjdmMDE4NjQwMzBmNzNmM2JhN2IxNTUw
|
14
|
+
ODQ4MzMxMzBjMGUxNzQ2NTNmZmY2ZWNiOWM2ZWIwMjg2OGYyNzg5NmFmM2Fm
|
15
|
+
OWRmODBkZWVmMTU1MmIzNWYzMGMxMTUxM2E1M2RmNTdiNDEwOTE=
|
data/CHANGELOG.md
CHANGED
data/lib/henry/deploy.rb
CHANGED
@@ -31,7 +31,7 @@ module Henry
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def changelog_content
|
34
|
-
generator = GitHubChangelogGenerator::Generator.new(
|
34
|
+
generator = GitHubChangelogGenerator::Generator.new(changelog_options)
|
35
35
|
generator.compound_changelog
|
36
36
|
end
|
37
37
|
|
@@ -39,6 +39,48 @@ module Henry
|
|
39
39
|
File.open(File.join(@path, 'CHANGELOG.md'), "w") { |file| file.write(changelog_content) }
|
40
40
|
end
|
41
41
|
|
42
|
+
def changelog_options
|
43
|
+
{
|
44
|
+
:tag1=>nil,
|
45
|
+
:tag2=>nil,
|
46
|
+
:date_format=>"%Y-%m-%d",
|
47
|
+
:output=>"CHANGELOG.md",
|
48
|
+
:base=>@path,
|
49
|
+
:issues=>true,
|
50
|
+
:add_issues_wo_labels=>true,
|
51
|
+
:add_pr_wo_labels=>true,
|
52
|
+
:pulls=>true,
|
53
|
+
:filter_issues_by_milestone=>true,
|
54
|
+
:author=>true,
|
55
|
+
:unreleased=>true,
|
56
|
+
:unreleased_label=>"Unreleased",
|
57
|
+
:compare_link=>true,
|
58
|
+
:enhancement_labels=>["enhancement", "Enhancement"],
|
59
|
+
:bug_labels=>["bug", "Bug"],
|
60
|
+
:exclude_labels=>
|
61
|
+
["duplicate",
|
62
|
+
"question",
|
63
|
+
"invalid",
|
64
|
+
"wontfix",
|
65
|
+
"Duplicate",
|
66
|
+
"Question",
|
67
|
+
"Invalid",
|
68
|
+
"Wontfix"],
|
69
|
+
:max_issues=>nil,
|
70
|
+
:simple_list=>false,
|
71
|
+
:verbose=>true,
|
72
|
+
:header=>"# Change Log",
|
73
|
+
:merge_prefix=>"**Merged pull requests:**",
|
74
|
+
:issue_prefix=>"**Closed issues:**",
|
75
|
+
:bug_prefix=>"**Fixed bugs:**",
|
76
|
+
:enhancement_prefix=>"**Implemented enhancements:**",
|
77
|
+
:git_remote=>"origin",
|
78
|
+
:user=>@user,
|
79
|
+
:project=>@repo,
|
80
|
+
:token=>ENV['GITHUB_OUATH_TOKEN']
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
42
84
|
def push_changelog
|
43
85
|
filename = 'CHANGELOG.md'
|
44
86
|
file_path = File.join(@path, filename)
|
data/lib/henry/version.rb
CHANGED