chandler 0.8.0 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -1
- data/CHANGELOG.md +6 -1
- data/lib/chandler/changelog.rb +8 -1
- data/lib/chandler/version.rb +1 -3
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26382d77ddcc55f95777357d758af9a0dc6f051b01d059bf232df0245ac8f7a5
|
4
|
+
data.tar.gz: fd4206ac7759f7ba2e206f514e766f0d450dc3703de982241139819111d56807
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ec08889fd5a5ca119b0cd6205aac10c42535eaecc8d9ada7e44de056788864a0dc6d46533ebc7726644e8dc7312815e1ac6fc647e5c6010c591d62cb8e05adef
|
7
|
+
data.tar.gz: 819094a03bfb15e3513c2f7f77e8f00eba7b2dedd6589bf63491679fbc4d24401f130634959b59b2958f269b0d24f93753ccf0d33af8798a0c179e9aa66397ca
|
data/.rubocop.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
AllCops:
|
2
|
-
TargetRubyVersion: 2.
|
2
|
+
TargetRubyVersion: 2.3
|
3
3
|
DisplayCopNames: true
|
4
4
|
DisplayStyleGuide: true
|
5
5
|
Exclude:
|
@@ -40,6 +40,9 @@ Style/FileName:
|
|
40
40
|
Exclude:
|
41
41
|
- "Dangerfile"
|
42
42
|
|
43
|
+
Style/FrozenStringLiteralComment:
|
44
|
+
Enabled: false
|
45
|
+
|
43
46
|
Style/HashSyntax:
|
44
47
|
EnforcedStyle: hash_rockets
|
45
48
|
|
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,10 @@ chandler is in a pre-1.0 state. This means that its APIs and behavior are subjec
|
|
8
8
|
|
9
9
|
* Your contribution here!
|
10
10
|
|
11
|
+
## [0.9.0][] (2019-02-10)
|
12
|
+
|
13
|
+
* [#45](https://github.com/mattbrictson/chandler/pull/45): Submit link references together with the release notes for each version so that links are always properly rendered - [@deivid-rodriguez](https://github.com/deivid-rodriguez)
|
14
|
+
|
11
15
|
## [0.8.0][] (2019-01-26)
|
12
16
|
|
13
17
|
* **Drop support for EOL Rubies.** Chandler now requires Ruby >= 2.3.
|
@@ -59,7 +63,8 @@ chandler is in a pre-1.0 state. This means that its APIs and behavior are subjec
|
|
59
63
|
* Initial release
|
60
64
|
|
61
65
|
[Semver]: http://semver.org
|
62
|
-
[Unreleased]: https://github.com/mattbrictson/chandler/compare/v0.
|
66
|
+
[Unreleased]: https://github.com/mattbrictson/chandler/compare/v0.9.0...HEAD
|
67
|
+
[0.9.0]: https://github.com/mattbrictson/chandler/compare/v0.8.0...v0.9.0
|
63
68
|
[0.8.0]: https://github.com/mattbrictson/chandler/compare/v0.7.0...v0.8.0
|
64
69
|
[0.7.0]: https://github.com/mattbrictson/chandler/compare/v0.6.0...v0.7.0
|
65
70
|
[0.6.0]: https://github.com/mattbrictson/chandler/compare/v0.5.0...v0.6.0
|
data/lib/chandler/changelog.rb
CHANGED
@@ -72,11 +72,18 @@ module Chandler
|
|
72
72
|
tokens = heading.gsub(/[\[\]\(\)`]/, " ").split(/[[:space:]]/)
|
73
73
|
tokens = tokens.map(&:strip)
|
74
74
|
version = tokens.find { |t| t.version? }
|
75
|
-
|
75
|
+
text_with_references = [text, link_references].join("\n\n")
|
76
|
+
versions[version.version_number] = text_with_references if version
|
76
77
|
end
|
77
78
|
end
|
78
79
|
# rubocop:enable Style/SymbolProc
|
79
80
|
|
81
|
+
def link_references
|
82
|
+
@link_references ||= text.split("\n")
|
83
|
+
.select { |line| line =~ /^\[.*\]: http.*/ }
|
84
|
+
.join("\n")
|
85
|
+
end
|
86
|
+
|
80
87
|
# Parses the changelog into a hash, where the keys of the hash are the
|
81
88
|
# Markdown/rdoc headings matching the specified heading regexp, and values
|
82
89
|
# are the content delimited by those headings.
|
data/lib/chandler/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chandler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Brictson
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-02-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: netrc
|