github_changelog_generator 1.3.6 → 1.3.8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/github_changelog_generator.gemspec +1 -1
- data/lib/CHANGELOG.md +14 -0
- data/lib/github_changelog_generator/parser.rb +12 -2
- data/lib/github_changelog_generator/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 19ea8ceff048952fab9c94b985c8c64c74ce924b
|
|
4
|
+
data.tar.gz: 469711709c955b4057fcd5f70ea4414584ab1489
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bc65228a50ae0dbd3ebe843e0b671a19c81684317b88c6b37a67e32f9a91eb330cf066f725c2b6bacbfac7a0cea8d2521993944ec42445fb799eb2eb7168772
|
|
7
|
+
data.tar.gz: 6731d228b8a5a7058eae2a4b21f2f183d5e6d0719ee2c0040fadbca94645c3f354b3819c886d721602835966ec965a9ef120d7b6a36eb1efdefd820295051931
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [1.3.6](https://github.com/skywinder/Github-Changelog-Generator/tree/1.3.6) (2015-03-05)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/skywinder/Github-Changelog-Generator/compare/1.3.5...1.3.6)
|
|
6
|
+
|
|
3
7
|
## [1.3.5](https://github.com/skywinder/Github-Changelog-Generator/tree/1.3.5) (2015-03-04)
|
|
4
8
|
|
|
5
9
|
[Full Changelog](https://github.com/skywinder/Github-Changelog-Generator/compare/1.3.4...1.3.5)
|
|
@@ -14,7 +14,7 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.email = %q{sky4winder+github_changelog_generator@gmail.com}
|
|
15
15
|
spec.date = `date +"%Y-%m-%d"`.strip!
|
|
16
16
|
spec.summary = %q{Script, that automatically generate changelog from your tags, issues, labels and pull requests.}
|
|
17
|
-
spec.description = %q{
|
|
17
|
+
spec.description = %q{Changelog generation has never been so easy. Fully automate changelog generation - this gem generate change log file based on tags, issues and merged pull requests from Github issue tracker.}
|
|
18
18
|
spec.homepage = %q{https://github.com/skywinder/Github-Changelog-Generator}
|
|
19
19
|
spec.license = "MIT"
|
|
20
20
|
|
data/lib/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,19 @@
|
|
|
1
1
|
# Change Log
|
|
2
2
|
|
|
3
|
+
## [Unreleased](https://github.com/skywinder/changelog_test/tree/HEAD)
|
|
4
|
+
|
|
5
|
+
[Full Changelog](https://github.com/skywinder/changelog_test/compare/v0.0.2...HEAD)
|
|
6
|
+
|
|
7
|
+
**Merged pull requests:**
|
|
8
|
+
|
|
9
|
+
- Here is a test hotfix should appear in v.0.0.2 [\#2](https://github.com/skywinder/changelog_test/pull/2) ([skywinder](https://github.com/skywinder))
|
|
10
|
+
|
|
11
|
+
## [v0.0.2](https://github.com/skywinder/changelog_test/tree/v0.0.2) (2015-03-04)
|
|
12
|
+
|
|
13
|
+
[Full Changelog](https://github.com/skywinder/changelog_test/compare/v0.0.1...v0.0.2)
|
|
14
|
+
|
|
15
|
+
## [v0.0.1](https://github.com/skywinder/changelog_test/tree/v0.0.1) (2015-03-02)
|
|
16
|
+
|
|
3
17
|
|
|
4
18
|
|
|
5
19
|
\* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
|
|
@@ -26,7 +26,8 @@ module GitHubChangelogGenerator
|
|
|
26
26
|
:filter_issues_by_milestone => true,
|
|
27
27
|
:compare_link => true,
|
|
28
28
|
:unreleased => true,
|
|
29
|
-
:unreleased_label => 'Unreleased'
|
|
29
|
+
:unreleased_label => 'Unreleased',
|
|
30
|
+
:branch => 'origin'
|
|
30
31
|
}
|
|
31
32
|
|
|
32
33
|
parser = OptionParser.new { |opts|
|
|
@@ -129,11 +130,20 @@ module GitHubChangelogGenerator
|
|
|
129
130
|
|
|
130
131
|
if !options[:user] && !options[:project]
|
|
131
132
|
remote = `git remote -vv`.split("\n")
|
|
132
|
-
|
|
133
|
+
# try to find repo in format: origin git@github.com:skywinder/Github-Changelog-Generator.git (fetch)
|
|
134
|
+
remote.select { |v| v.include? options[:branch] }
|
|
135
|
+
match = /.*(?:[:\/])((?:-|\w|\.)*)\/((?:-|\w|\.)*)(?:\.git).*/.match(remote[0])
|
|
133
136
|
|
|
134
137
|
if match && match[1] && match[2]
|
|
135
138
|
puts "Detected user:#{match[1]}, project:#{match[2]}"
|
|
136
139
|
options[:user], options[:project] = match[1], match[2]
|
|
140
|
+
else
|
|
141
|
+
# try to find repo in format: origin https://github.com/skywinder/ChangelogMerger (fetch)
|
|
142
|
+
match = /.*\/((?:-|\w|\.)*)\/((?:-|\w|\.)*).*/.match(remote[0])
|
|
143
|
+
if match && match[1] && match[2]
|
|
144
|
+
puts "Detected user:#{match[1]}, project:#{match[2]}"
|
|
145
|
+
options[:user], options[:project] = match[1], match[2]
|
|
146
|
+
end
|
|
137
147
|
end
|
|
138
148
|
end
|
|
139
149
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: github_changelog_generator
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.3.
|
|
4
|
+
version: 1.3.8
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Petr Korolev
|
|
@@ -66,8 +66,9 @@ dependencies:
|
|
|
66
66
|
- - "~>"
|
|
67
67
|
- !ruby/object:Gem::Version
|
|
68
68
|
version: '0.7'
|
|
69
|
-
description:
|
|
70
|
-
|
|
69
|
+
description: Changelog generation has never been so easy. Fully automate changelog
|
|
70
|
+
generation - this gem generate change log file based on tags, issues and merged
|
|
71
|
+
pull requests from Github issue tracker.
|
|
71
72
|
email: sky4winder+github_changelog_generator@gmail.com
|
|
72
73
|
executables:
|
|
73
74
|
- github_changelog_generator
|