changelog 0.7 → 0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ = Version 0.8
2
+ * Play nicely with multiple lines per item [#3].
3
+
1
4
  = Version 0.7
2
5
  * Play nice with Bundler [#2].
3
6
 
@@ -8,10 +8,10 @@ require "base64"
8
8
 
9
9
  Gem::Specification.new do |s|
10
10
  s.name = "changelog"
11
- s.version = "0.7"
11
+ s.version = "0.8"
12
12
  s.authors = ["Jakub Šťastný aka Botanicus"]
13
13
  s.homepage = "http://github.com/botanicus/changelog"
14
- s.summary = "Simple CHANGELOG parser for Ruby 1.9"
14
+ s.summary = "Simple CHANGELOG parser."
15
15
  s.description = "" # TODO: long description
16
16
  s.cert_chain = nil
17
17
  s.email = Base64.decode64("c3Rhc3RueUAxMDFpZGVhcy5jeg==\n")
@@ -107,6 +107,8 @@ class CHANGELOG
107
107
  hash[version] = Array.new
108
108
  elsif line.match(/^\s+\* /)
109
109
  hash[version].push(line.chomp.sub(/^\s+\* /, ""))
110
+ elsif line.match(/[^\s]/)
111
+ hash[version][-1] = [hash[version][-1], line.chomp.strip].join(" ")
110
112
  else # skip empty lines
111
113
  end
112
114
  [version, hash]
@@ -50,6 +50,10 @@ describe CHANGELOG do
50
50
  it "should raise StandardError if more than one version is matched" do
51
51
  lambda { @changelog[/Version 0.2.\d/] }.should raise_error(StandardError)
52
52
  end
53
+
54
+ it "should work with multiple lines per one record" do
55
+ @changelog["Version 0.2.0"][0].should match("path.html. All other paths are relative to the template paths.")
56
+ end
53
57
  end
54
58
 
55
59
  describe "#select" do
@@ -2,7 +2,8 @@
2
2
  * Cucumber Integration
3
3
 
4
4
  = Version 0.2.0
5
- * Template helpers can work with paths relative to current template via ./path.html resp. ../path.html. All other paths are relative to the template paths.
5
+ * Template helpers can work with paths relative to current template via ./path.html resp. ../path.html.
6
+ All other paths are relative to the template paths.
6
7
  * Use simple-logger as a default logger or standar logger if the simple-logger isn't installed.
7
8
 
8
9
  = Version 0.1.2
metadata CHANGED
@@ -1,19 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: changelog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
5
4
  prerelease:
6
- segments:
7
- - 0
8
- - 7
9
- version: "0.7"
5
+ version: "0.8"
10
6
  platform: ruby
11
7
  authors:
12
8
  - "Jakub \xC5\xA0\xC5\xA5astn\xC3\xBD aka Botanicus"
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain:
16
- date: 2011-04-14 00:00:00 +01:00
12
+ date: 2011-05-02 00:00:00 +02:00
17
13
  default_executable:
18
14
  dependencies: []
19
15
 
@@ -40,7 +36,7 @@ has_rdoc: true
40
36
  homepage: http://github.com/botanicus/changelog
41
37
  licenses: []
42
38
 
43
- post_install_message: "[\e[32mVersion 0.7\e[0m] Play nice with Bundler [#2].\n"
39
+ post_install_message: "[\e[32mVersion 0.8\e[0m] Play nicely with multiple lines per item [#3].\n"
44
40
  rdoc_options: []
45
41
 
46
42
  require_paths:
@@ -50,25 +46,19 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
46
  requirements:
51
47
  - - ">="
52
48
  - !ruby/object:Gem::Version
53
- hash: 3
54
- segments:
55
- - 0
56
49
  version: "0"
57
50
  required_rubygems_version: !ruby/object:Gem::Requirement
58
51
  none: false
59
52
  requirements:
60
53
  - - ">="
61
54
  - !ruby/object:Gem::Version
62
- hash: 3
63
- segments:
64
- - 0
65
55
  version: "0"
66
56
  requirements: []
67
57
 
68
58
  rubyforge_project: changelog
69
- rubygems_version: 1.5.2
59
+ rubygems_version: 1.5.3
70
60
  signing_key:
71
61
  specification_version: 3
72
- summary: Simple CHANGELOG parser for Ruby 1.9
62
+ summary: Simple CHANGELOG parser.
73
63
  test_files: []
74
64