chandler 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/Rakefile +7 -2
- data/lib/chandler/changelog.rb +8 -9
- data/lib/chandler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28c48e717e5bfe8d315838375675db111b000913
|
4
|
+
data.tar.gz: 887b51655dca90533757f24715e81afaf1df6c11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e9fbca039407baae857944739451a995303a8a67e1ca692266aaf2644cbd326114d22d1dcc0838dda68b6a569244276773145fbe6b5201c9da89ce1522dc221
|
7
|
+
data.tar.gz: 3a188794e3bd013b64532385567a1fce8de60446dfd9a7d629dd414f5d86192e0838ab60a1c6fc1a7949f3b9f8557a1ff90b03e62d976dc21831673f79f80c57
|
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.1.2][] (2015-10-26)
|
12
|
+
|
13
|
+
* Fix Windows test failures introduced in 0.1.1
|
14
|
+
|
11
15
|
## [0.1.1][] (2015-10-26)
|
12
16
|
|
13
17
|
* Work around parsing issues caused by non-breaking spaces in change logs (e.g. SSHKit)
|
@@ -17,5 +21,6 @@ chandler is in a pre-1.0 state. This means that its APIs and behavior are subjec
|
|
17
21
|
* Initial release
|
18
22
|
|
19
23
|
[Semver]: http://semver.org
|
20
|
-
[Unreleased]: https://github.com/mattbrictson/chandler/compare/v0.1.
|
24
|
+
[Unreleased]: https://github.com/mattbrictson/chandler/compare/v0.1.2...HEAD
|
25
|
+
[0.1.2]: https://github.com/mattbrictson/chandler/compare/v0.1.1...v0.1.2
|
21
26
|
[0.1.1]: https://github.com/mattbrictson/chandler/compare/v0.1.0...v0.1.1
|
data/Rakefile
CHANGED
@@ -3,8 +3,13 @@ require "rake/testtask"
|
|
3
3
|
require "rubocop/rake_task"
|
4
4
|
|
5
5
|
$LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
|
6
|
-
|
7
|
-
|
6
|
+
task "release:rubygem_push" do
|
7
|
+
# Delay loading Chandler until this point, since it requires Ruby >= 2.1,
|
8
|
+
# which may not be available in all environments (e.g. Travis).
|
9
|
+
# We assume that the person doing `rake release` has Ruby >= 2.1.
|
10
|
+
require "chandler/tasks"
|
11
|
+
Rake.application.invoke_task("chandler:push")
|
12
|
+
end
|
8
13
|
|
9
14
|
Rake::TestTask.new(:test) do |t|
|
10
15
|
t.libs << "test"
|
data/lib/chandler/changelog.rb
CHANGED
@@ -10,11 +10,11 @@ module Chandler
|
|
10
10
|
NoMatchingVersion = Class.new(StandardError)
|
11
11
|
|
12
12
|
HEADING_PATTERNS = [
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
/^\S.*\n-+\n/
|
13
|
+
/^##[[:space:]]+.*\n/, # Markdown "atx" style
|
14
|
+
/^###[[:space:]]+.*\n/,
|
15
|
+
/^==[[:space:]]+.*\n/, # Rdoc style
|
16
|
+
/^===[[:space:]]+.*\n/,
|
17
|
+
/^\S.*\n-+\n/ # Markdown "Setext" style
|
18
18
|
].freeze
|
19
19
|
|
20
20
|
attr_reader :path
|
@@ -64,7 +64,8 @@ module Chandler
|
|
64
64
|
# rubocop:disable Style/SymbolProc
|
65
65
|
def versions_at_headings(heading_re)
|
66
66
|
sections(heading_re).each_with_object({}) do |(heading, text), versions|
|
67
|
-
tokens = heading.gsub(/[\[\]\(\)`]/, " ").split
|
67
|
+
tokens = heading.gsub(/[\[\]\(\)`]/, " ").split(/[[:space:]]/)
|
68
|
+
tokens = tokens.map(&:strip)
|
68
69
|
version = tokens.find { |t| t.version? }
|
69
70
|
versions[version.version_number] = text if version
|
70
71
|
end
|
@@ -91,9 +92,7 @@ module Chandler
|
|
91
92
|
end
|
92
93
|
|
93
94
|
def text
|
94
|
-
|
95
|
-
# regexps from failing.
|
96
|
-
@text ||= IO.read(path).tr(" ", " ")
|
95
|
+
@text ||= IO.read(path, :encoding => "UTF-8")
|
97
96
|
end
|
98
97
|
end
|
99
98
|
end
|
data/lib/chandler/version.rb
CHANGED