pimpmychangelog 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 +7 -0
- data/CHANGELOG.md +6 -0
- data/LICENSE +22 -0
- data/lib/pimpmychangelog/git_remote.rb +2 -2
- data/lib/pimpmychangelog/version.rb +1 -1
- data/pimpmychangelog.gemspec +2 -0
- data/spec/git_remote_spec.rb +9 -0
- data/spec/spec_helper.rb +2 -0
- metadata +49 -33
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 437b82b2e0edcee6e194382cb19a9733dd907564351aab59a9c4d30d1c2068a8
|
4
|
+
data.tar.gz: 236fd3beaccb0458a4500ce0efa6913ee3311181637a1e23918a720a69480ea6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 3bd0471c3b529d85a2a87e06616e41704b6946a3e3093648121bebf66332e4cd8fa21475138c4edb791b2a534fa2dc8badeb1c1496bb72da75c8be90a908bd35
|
7
|
+
data.tar.gz: e2f9f90d6501b955cce7908674d6aba84c3965409c49f6be742c3e5ac0a33b42de5ee232e9dad8d5cd813020c9e99e3414a56e1595bec48804e5f7ea504ff6f4
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,9 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## Version 0.1.3
|
4
|
+
|
5
|
+
* Retrieve git-remote from local configuration PR [#17][] by [@marcotc][].
|
6
|
+
|
3
7
|
## Version 0.1.2
|
4
8
|
|
5
9
|
* Add support for changelogs without extra new line at the end of file.
|
@@ -39,8 +43,10 @@ This would output the pimped version of the changelog.
|
|
39
43
|
[#3]: https://github.com/pcreux/pimpmychangelog/issues/3
|
40
44
|
[#4]: https://github.com/pcreux/pimpmychangelog/issues/4
|
41
45
|
[#6]: https://github.com/pcreux/pimpmychangelog/issues/6
|
46
|
+
[#17]: https://github.com/pcreux/pimpmychangelog/issues/17
|
42
47
|
[@Maher4Ever]: https://github.com/Maher4Ever
|
43
48
|
[@arangamani]: https://github.com/arangamani
|
49
|
+
[@marcotc]: https://github.com/marcotc
|
44
50
|
[@miketheman]: https://github.com/miketheman
|
45
51
|
[@pcreux]: https://github.com/pcreux
|
46
52
|
[@rymai]: https://github.com/rymai
|
data/LICENSE
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2013 Philippe Creux
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
@@ -4,7 +4,7 @@ class GitRemote
|
|
4
4
|
# Define recurring patterns
|
5
5
|
(?<part> [\w\d-]+ ){0}
|
6
6
|
|
7
|
-
(?<user>\g<part>)/(?<repo>\g<part>).git
|
7
|
+
(?<user>\g<part>)/(?<repo>\g<part>)(.git)?$
|
8
8
|
}x
|
9
9
|
|
10
10
|
def initialize(url = nil)
|
@@ -29,6 +29,6 @@ class GitRemote
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def run_command
|
32
|
-
|
32
|
+
`git config --get remote.origin.url`
|
33
33
|
end
|
34
34
|
end
|
data/pimpmychangelog.gemspec
CHANGED
@@ -5,6 +5,7 @@ require "pimpmychangelog/version"
|
|
5
5
|
Gem::Specification.new do |s|
|
6
6
|
s.name = "pimpmychangelog"
|
7
7
|
s.version = PimpMyChangelog::VERSION
|
8
|
+
s.license = 'MIT'
|
8
9
|
s.authors = ["Philippe Creux"]
|
9
10
|
s.email = ["pcreux@gmail.com"]
|
10
11
|
s.homepage = "https://github.com/pcreux/pimpmychangelog"
|
@@ -19,6 +20,7 @@ Gem::Specification.new do |s|
|
|
19
20
|
s.require_paths = ["lib"]
|
20
21
|
|
21
22
|
s.add_development_dependency "rspec"
|
23
|
+
s.add_development_dependency "rspec-its"
|
22
24
|
s.add_development_dependency "guard-rspec"
|
23
25
|
s.add_development_dependency "rake"
|
24
26
|
end
|
data/spec/git_remote_spec.rb
CHANGED
@@ -14,4 +14,13 @@ describe GitRemote do
|
|
14
14
|
its(:user) { should == 'pcreux' }
|
15
15
|
its(:project) { should == 'pimpmychangelog' }
|
16
16
|
end
|
17
|
+
|
18
|
+
context "when no URL is passed" do
|
19
|
+
subject { described_class.new }
|
20
|
+
|
21
|
+
# We can't match an exact user, as this depends on who
|
22
|
+
# has checked out this repository.
|
23
|
+
its(:user) { should be_a(String) }
|
24
|
+
its(:project) { should == 'pimpmychangelog' }
|
25
|
+
end
|
17
26
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,49 +1,71 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pimpmychangelog
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Philippe Creux
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2021-01-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rspec
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - ">="
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rspec-its
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
25
41
|
- !ruby/object:Gem::Dependency
|
26
42
|
name: guard-rspec
|
27
|
-
requirement:
|
28
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
29
44
|
requirements:
|
30
|
-
- -
|
45
|
+
- - ">="
|
31
46
|
- !ruby/object:Gem::Version
|
32
47
|
version: '0'
|
33
48
|
type: :development
|
34
49
|
prerelease: false
|
35
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
36
55
|
- !ruby/object:Gem::Dependency
|
37
56
|
name: rake
|
38
|
-
requirement:
|
39
|
-
none: false
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
40
58
|
requirements:
|
41
|
-
- -
|
59
|
+
- - ">="
|
42
60
|
- !ruby/object:Gem::Version
|
43
61
|
version: '0'
|
44
62
|
type: :development
|
45
63
|
prerelease: false
|
46
|
-
version_requirements:
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
47
69
|
description: Linkify issue numbers (#123) and github users (@gregbell) in markdown
|
48
70
|
changelogs.
|
49
71
|
email:
|
@@ -53,10 +75,11 @@ executables:
|
|
53
75
|
extensions: []
|
54
76
|
extra_rdoc_files: []
|
55
77
|
files:
|
56
|
-
- .gitignore
|
78
|
+
- ".gitignore"
|
57
79
|
- CHANGELOG.md
|
58
80
|
- Gemfile
|
59
81
|
- Guardfile
|
82
|
+
- LICENSE
|
60
83
|
- README.md
|
61
84
|
- Rakefile
|
62
85
|
- bin/pimpmychangelog
|
@@ -73,34 +96,27 @@ files:
|
|
73
96
|
- spec/pimper_spec.rb
|
74
97
|
- spec/spec_helper.rb
|
75
98
|
homepage: https://github.com/pcreux/pimpmychangelog
|
76
|
-
licenses:
|
77
|
-
|
99
|
+
licenses:
|
100
|
+
- MIT
|
101
|
+
metadata: {}
|
102
|
+
post_install_message:
|
78
103
|
rdoc_options: []
|
79
104
|
require_paths:
|
80
105
|
- lib
|
81
106
|
required_ruby_version: !ruby/object:Gem::Requirement
|
82
|
-
none: false
|
83
107
|
requirements:
|
84
|
-
- -
|
108
|
+
- - ">="
|
85
109
|
- !ruby/object:Gem::Version
|
86
110
|
version: '0'
|
87
|
-
segments:
|
88
|
-
- 0
|
89
|
-
hash: -4129073779404705412
|
90
111
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
91
|
-
none: false
|
92
112
|
requirements:
|
93
|
-
- -
|
113
|
+
- - ">="
|
94
114
|
- !ruby/object:Gem::Version
|
95
115
|
version: '0'
|
96
|
-
segments:
|
97
|
-
- 0
|
98
|
-
hash: -4129073779404705412
|
99
116
|
requirements: []
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
specification_version: 3
|
117
|
+
rubygems_version: 3.0.3
|
118
|
+
signing_key:
|
119
|
+
specification_version: 4
|
104
120
|
summary: Pimp your CHANGELOG.md
|
105
121
|
test_files:
|
106
122
|
- spec/cli_spec.rb
|