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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fd4141edfe860fc492bde9aed13fef52ef9a5f67
4
- data.tar.gz: f3c7e5137f24ab4fc1b78682b985aec9b6ff6afa
3
+ metadata.gz: 28c48e717e5bfe8d315838375675db111b000913
4
+ data.tar.gz: 887b51655dca90533757f24715e81afaf1df6c11
5
5
  SHA512:
6
- metadata.gz: 87b95d5879b8879690cb4e741021f0de1623d81d9b67742fdd7b272220ef1edc54ab0bfbafbf1e6516dbb25ff56cb53b0037b9200bccdf5fc049b4d9d546bb6f
7
- data.tar.gz: e4d1f957f725338bd2b0815ecda6089e8e2663faa754950001ca9cadef9a34acea5e520dddb8623cca0304447199e86546fb9da5fcd6ecf78da2691a84ac147b
6
+ metadata.gz: 3e9fbca039407baae857944739451a995303a8a67e1ca692266aaf2644cbd326114d22d1dcc0838dda68b6a569244276773145fbe6b5201c9da89ce1522dc221
7
+ data.tar.gz: 3a188794e3bd013b64532385567a1fce8de60446dfd9a7d629dd414f5d86192e0838ab60a1c6fc1a7949f3b9f8557a1ff90b03e62d976dc21831673f79f80c57
@@ -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.1...HEAD
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
- require "chandler/tasks"
7
- task "release:rubygem_push" => "chandler:push"
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"
@@ -10,11 +10,11 @@ module Chandler
10
10
  NoMatchingVersion = Class.new(StandardError)
11
11
 
12
12
  HEADING_PATTERNS = [
13
- /^##\s+.*\n/, # Markdown "atx" style
14
- /^###\s+.*\n/,
15
- /^==\s+.*\n/, # Rdoc style
16
- /^===\s+.*\n/,
17
- /^\S.*\n-+\n/ # Markdown "Setext" style
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.map(&:strip)
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
- # Replace unicode non-breaking space with regular space, to prevent
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
@@ -1,3 +1,3 @@
1
1
  module Chandler
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chandler
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Brictson