pimpmychangelog 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.md +11 -2
- data/lib/pimpmychangelog/parser.rb +1 -1
- data/lib/pimpmychangelog/version.rb +1 -1
- data/spec/parser_spec.rb +2 -2
- metadata +45 -62
data/CHANGELOG.md
CHANGED
@@ -1,15 +1,24 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## Version 0.0.3
|
4
|
+
|
5
|
+
* Add support for Github nicknames with dashes. PR [#2][] by [@rymai][].
|
6
|
+
|
3
7
|
## Version 0.0.2
|
4
8
|
|
5
9
|
* CLI does not accept any options anymore
|
6
10
|
* Github user and projects are extracted from the origin remote fetch
|
7
11
|
url
|
8
|
-
* CHANGELOG.md is overwritten instead of printed out. #1
|
12
|
+
* CHANGELOG.md is overwritten instead of printed out. [#1][]
|
9
13
|
|
10
14
|
|
11
15
|
## Version 0.0.1
|
12
16
|
|
13
|
-
* Initial version by @pcreux
|
17
|
+
* Initial version by [@pcreux][]
|
14
18
|
* Usage: `pimpmychangelog gregbell activeadmin CHANGELOG.md`
|
15
19
|
This would output the pimped version of the changelog.
|
20
|
+
<!--- The following link definition list is generated by PimpMyChangelog --->
|
21
|
+
[#1]: https://github.com/com/pcreux/issues/1
|
22
|
+
[#2]: https://github.com/com/pcreux/issues/2
|
23
|
+
[@pcreux]: https://github.com/pcreux
|
24
|
+
[@rymai]: https://github.com/rymai
|
@@ -21,7 +21,7 @@ module PimpMyChangelog
|
|
21
21
|
# @return [Array] ordered array of contributors found in the changelog
|
22
22
|
# Example: ['gregbell', 'pcreux', 'samvincent']
|
23
23
|
def contributors
|
24
|
-
changelog.scan(/@(\w+)/).flatten.uniq.sort
|
24
|
+
changelog.scan(/@([\w-]+)/).flatten.uniq.sort
|
25
25
|
end
|
26
26
|
end
|
27
27
|
end
|
data/spec/parser_spec.rb
CHANGED
@@ -49,8 +49,8 @@ EOS
|
|
49
49
|
|
50
50
|
describe "#contributors" do
|
51
51
|
it "should return a sorted list of unique contributors" do
|
52
|
-
Parser.new("@samvincent @pcreux @gregbell @pcreux").contributors.
|
53
|
-
should == ['gregbell', 'pcreux', 'samvincent']
|
52
|
+
Parser.new("@samvincent @pcreux @gregbell @pcreux @dash-and_underscore").contributors.
|
53
|
+
should == ['dash-and_underscore', 'gregbell', 'pcreux', 'samvincent']
|
54
54
|
end
|
55
55
|
end
|
56
56
|
end
|
metadata
CHANGED
@@ -1,60 +1,47 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: pimpmychangelog
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
version: 0.0.2
|
11
6
|
platform: ruby
|
12
|
-
authors:
|
7
|
+
authors:
|
13
8
|
- Philippe Creux
|
14
9
|
autorequire:
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
- !ruby/object:Gem::Dependency
|
12
|
+
date: 2012-06-04 00:00:00.000000000 Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
21
15
|
name: rspec
|
22
|
-
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
16
|
+
requirement: &70366086210620 !ruby/object:Gem::Requirement
|
24
17
|
none: false
|
25
|
-
requirements:
|
26
|
-
- -
|
27
|
-
- !ruby/object:Gem::Version
|
28
|
-
|
29
|
-
segments:
|
30
|
-
- 0
|
31
|
-
version: "0"
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
32
22
|
type: :development
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: guard-rspec
|
36
23
|
prerelease: false
|
37
|
-
|
24
|
+
version_requirements: *70366086210620
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: guard-rspec
|
27
|
+
requirement: &70366086210180 !ruby/object:Gem::Requirement
|
38
28
|
none: false
|
39
|
-
requirements:
|
40
|
-
- -
|
41
|
-
- !ruby/object:Gem::Version
|
42
|
-
|
43
|
-
segments:
|
44
|
-
- 0
|
45
|
-
version: "0"
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
46
33
|
type: :development
|
47
|
-
|
48
|
-
|
49
|
-
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *70366086210180
|
36
|
+
description: Linkify issue numbers (#123) and github users (@gregbell) in markdown
|
37
|
+
changelogs.
|
38
|
+
email:
|
50
39
|
- pcreux@gmail.com
|
51
|
-
executables:
|
40
|
+
executables:
|
52
41
|
- pimpmychangelog
|
53
42
|
extensions: []
|
54
|
-
|
55
43
|
extra_rdoc_files: []
|
56
|
-
|
57
|
-
files:
|
44
|
+
files:
|
58
45
|
- .gitignore
|
59
46
|
- CHANGELOG.md
|
60
47
|
- Gemfile
|
@@ -76,36 +63,32 @@ files:
|
|
76
63
|
- spec/spec_helper.rb
|
77
64
|
homepage: https://github.com/pcreux/pimpmychangelog
|
78
65
|
licenses: []
|
79
|
-
|
80
66
|
post_install_message:
|
81
67
|
rdoc_options: []
|
82
|
-
|
83
|
-
require_paths:
|
68
|
+
require_paths:
|
84
69
|
- lib
|
85
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
70
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
86
71
|
none: false
|
87
|
-
requirements:
|
88
|
-
- -
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
|
91
|
-
|
92
|
-
- 0
|
93
|
-
version: "0"
|
94
|
-
required_rubygems_version: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ! '>='
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
95
77
|
none: false
|
96
|
-
requirements:
|
97
|
-
- -
|
98
|
-
- !ruby/object:Gem::Version
|
99
|
-
|
100
|
-
segments:
|
101
|
-
- 0
|
102
|
-
version: "0"
|
78
|
+
requirements:
|
79
|
+
- - ! '>='
|
80
|
+
- !ruby/object:Gem::Version
|
81
|
+
version: '0'
|
103
82
|
requirements: []
|
104
|
-
|
105
83
|
rubyforge_project:
|
106
84
|
rubygems_version: 1.8.11
|
107
85
|
signing_key:
|
108
86
|
specification_version: 3
|
109
87
|
summary: Pimp your CHANGELOG.md
|
110
|
-
test_files:
|
111
|
-
|
88
|
+
test_files:
|
89
|
+
- spec/cli_spec.rb
|
90
|
+
- spec/git_remote_spec.rb
|
91
|
+
- spec/parser_spec.rb
|
92
|
+
- spec/pimper_spec.rb
|
93
|
+
- spec/spec_helper.rb
|
94
|
+
has_rdoc:
|