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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7f01e9010051775612d968f772485ca04a12da95953f9289da00614b804eece1
4
- data.tar.gz: 622e99b3d39732144759ca655f25ba2660fec07b7af58ea5437f7473e91a6f8e
3
+ metadata.gz: 26382d77ddcc55f95777357d758af9a0dc6f051b01d059bf232df0245ac8f7a5
4
+ data.tar.gz: fd4206ac7759f7ba2e206f514e766f0d450dc3703de982241139819111d56807
5
5
  SHA512:
6
- metadata.gz: 5c90903cada9ff6f8b24f7fbfe87840631f087d9071c43efd3356db5f19956423916324c666a88db44ddb31242427b80851134baff88a63cee4f5634c552331b
7
- data.tar.gz: 77e7ce541a295fbb1a8c564033fd27abd65541c6f8d338d86180b8c4b97c7b9eeb8acd1ca075e0f705730227f715b6e4658270055bf8b75106e38e92406d0aad
6
+ metadata.gz: ec08889fd5a5ca119b0cd6205aac10c42535eaecc8d9ada7e44de056788864a0dc6d46533ebc7726644e8dc7312815e1ac6fc647e5c6010c591d62cb8e05adef
7
+ data.tar.gz: 819094a03bfb15e3513c2f7f77e8f00eba7b2dedd6589bf63491679fbc4d24401f130634959b59b2958f269b0d24f93753ccf0d33af8798a0c179e9aa66397ca
@@ -1,5 +1,5 @@
1
1
  AllCops:
2
- TargetRubyVersion: 2.1
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
 
@@ -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.8.0...HEAD
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
@@ -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
- versions[version.version_number] = text if version
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.
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module Chandler
4
- VERSION = "0.8.0".freeze
2
+ VERSION = "0.9.0".freeze
5
3
  end
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.8.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-01-26 00:00:00.000000000 Z
11
+ date: 2019-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: netrc