pimpmychangelog 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -2,3 +2,4 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ tmp
@@ -1,5 +1,15 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 0.1.1
4
+
5
+ * Add support for usernames with hyphens. Closes issue [#4][] reported by
6
+ [@miketheman][].
7
+
8
+ ## Version 0.1.0
9
+
10
+ * Add support for git repos with HTTPS urls. PR [#3][] by
11
+ [@Maher4Ever][].
12
+
3
13
  ## Version 0.0.3
4
14
 
5
15
  * Add support for Github nicknames with dashes. PR [#2][] by [@rymai][].
@@ -20,5 +30,9 @@ This would output the pimped version of the changelog.
20
30
  <!--- The following link definition list is generated by PimpMyChangelog --->
21
31
  [#1]: https://github.com/com/pcreux/issues/1
22
32
  [#2]: https://github.com/com/pcreux/issues/2
33
+ [#3]: https://github.com/com/pcreux/issues/3
34
+ [#4]: https://github.com/com/pcreux/issues/4
35
+ [@Maher4Ever]: https://github.com/Maher4Ever
36
+ [@miketheman]: https://github.com/miketheman
23
37
  [@pcreux]: https://github.com/pcreux
24
38
  [@rymai]: https://github.com/rymai
@@ -38,7 +38,7 @@ module PimpMyChangelog
38
38
  # The following regexp ensure that the issue or contributor is
39
39
  # not wrapped between brackets (aka: is a link)
40
40
  ISSUE_NUMBER_REGEXP = /(^|[^\[])#(\d+)($|[^\]])/
41
- CONTRIBUTOR_REGEXP = /(^|[^\[])@(\w+)($|[^\]])/
41
+ CONTRIBUTOR_REGEXP = /(^|[^\[])@([\w-]+)($|[^\]])/
42
42
 
43
43
  # @param [Array] issues An array of issue numbers
44
44
  # @param [Array] contributors An array of contributors github ids
@@ -1,3 +1,3 @@
1
1
  module PimpMyChangelog
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
@@ -39,14 +39,14 @@ describe Pimper do
39
39
  end
40
40
 
41
41
  context "when the changelog contains a contributor" do
42
- let(:changelog) { 'New feature by @pcreux' }
42
+ let(:changelog) { 'New feature by @pc-re_ux' }
43
43
 
44
44
  it "should wrap the issue number to make a link" do
45
- better_changelog.should include("[@pcreux][]")
45
+ better_changelog.should include("[@pc-re_ux][]")
46
46
  end
47
47
 
48
48
  it "should append the link definition at the end of the changelog" do
49
- better_changelog.split("\n").last.should == "[@pcreux]: https://github.com/pcreux"
49
+ better_changelog.split("\n").last.should == "[@pc-re_ux]: https://github.com/pc-re_ux"
50
50
  end
51
51
  end
52
52
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pimpmychangelog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2013-07-10 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
16
- requirement: &70336240420000 !ruby/object:Gem::Requirement
16
+ requirement: &70333408835520 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *70336240420000
24
+ version_requirements: *70333408835520
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: guard-rspec
27
- requirement: &70336240419440 !ruby/object:Gem::Requirement
27
+ requirement: &70333408835020 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70336240419440
35
+ version_requirements: *70333408835020
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70336240418720 !ruby/object:Gem::Requirement
38
+ requirement: &70333408849800 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70336240418720
46
+ version_requirements: *70333408849800
47
47
  description: Linkify issue numbers (#123) and github users (@gregbell) in markdown
48
48
  changelogs.
49
49
  email:
@@ -86,7 +86,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
86
86
  version: '0'
87
87
  segments:
88
88
  - 0
89
- hash: 4367698830413585535
89
+ hash: 59480807338519773
90
90
  required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  none: false
92
92
  requirements:
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  version: '0'
96
96
  segments:
97
97
  - 0
98
- hash: 4367698830413585535
98
+ hash: 59480807338519773
99
99
  requirements: []
100
100
  rubyforge_project:
101
101
  rubygems_version: 1.8.11