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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjZhYTM1YjllMzljZjhiZWEwNTE3ZDEwZDM2NThjZjk5ZjI5NjkwZg==
4
+ Yzc1ZDE2MWU2MDExNGExOTZlNjE3ODRiNGE0MWI0YmUyZWJiZGE0ZQ==
5
5
  data.tar.gz: !binary |-
6
- ZTAzZWZlNDczM2VmMGVkMTE4ZDI2ZGU5ZDY4ZWE0NzE1M2Q4NjQ0Yg==
6
+ YjU1MDgzYmIxNTUyYmE1MjFjMmY1NWZmNTI5ZjQ0YTI0NjMwOWQ5ZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YmFjYTIxZTZjNDA0Y2MyMzdiN2I1YzJlMTZjMjlmOWM1MjcwZjVjMTBlNDgz
10
- Mzc2MWQ4MTIzYTA1NGFmZjg2ODY3YjllM2ZkNjk4MmJkNzk4YjdhY2QxNGE4
11
- ZTJhNjU4NWYzMzIxMzM4ZDg3NzhkOTQ1OGZkYTVlNzRkYTZlNzc=
9
+ ZWE3MDk5MDRjNjAyYTgwYTc0ZTJkNGZmYWViZWYzZTEwMGM0MTcyMzUwZTg3
10
+ ZmI0ZDZiMzMyMDA3MWJhZGViNGQxNDk3ZTAwMmY4NDgwMTFmMmRmNGY0NDlm
11
+ MjQ4NGQxNDZmYThkZjEyYWQ0MGU2MDJjM2ZkZmIxNTE4OTI1ODQ=
12
12
  data.tar.gz: !binary |-
13
- NWFkMjgzNTkwNWZhZGJjYTdmOTJhNDhiYTNhODM4YzI3Mjk2ZjU3ZDQ0OGQ5
14
- OGI0NjdhYTQ2ZDUyNzUxY2JiMzFkNWM2MGFlMzg4MzYzNDA5MGY2ZjI5MDg1
15
- NWEwOWFhMDIwYzk1NTBiNjI1OTU1MTNlMmYxNGU5MzIzOTY1NWY=
13
+ ZGJlYjM2ODViY2E5MGE5ZDZmYTc5YjdmMDE4NjQwMzBmNzNmM2JhN2IxNTUw
14
+ ODQ4MzMxMzBjMGUxNzQ2NTNmZmY2ZWNiOWM2ZWIwMjg2OGYyNzg5NmFmM2Fm
15
+ OWRmODBkZWVmMTU1MmIzNWYzMGMxMTUxM2E1M2RmNTdiNDEwOTE=
@@ -1,5 +1,6 @@
1
1
 
2
2
 
3
+ ## [0.1.2](https://github.com/theodi/henry/tree/0.1.2) (2016-03-10)
3
4
  ## [0.1.1](https://github.com/theodi/henry/tree/0.1.1) (2016-03-09)
4
5
  ## [0.1.1-beta](https://github.com/theodi/henry/tree/0.1.1-beta) (2016-03-09)
5
6
 
@@ -31,7 +31,7 @@ module Henry
31
31
  end
32
32
 
33
33
  def changelog_content
34
- generator = GitHubChangelogGenerator::Generator.new(user: @user, project: @repo, token: ENV['GITHUB_OUATH_TOKEN'], base: @path, date_format: '%Y-%m-%d')
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)
@@ -1,3 +1,3 @@
1
1
  module Henry
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: henry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - pezholio