rabbit 2.0.9 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/doc/_config.yml +1 -1
- data/doc/en/news.rd +30 -0
- data/doc/ja/news.rd +29 -0
- data/lib/rabbit/logger/stderr.rb +5 -1
- data/lib/rabbit/readme-parser.rb +7 -1
- data/lib/rabbit/version.rb +1 -1
- data/rabbit.gemspec +2 -0
- metadata +2 -2
data/doc/_config.yml
CHANGED
data/doc/en/news.rd
CHANGED
@@ -3,12 +3,42 @@ layout: en
|
|
3
3
|
title: News
|
4
4
|
apply_data: false
|
5
5
|
---
|
6
|
+
== 2.1.0: 2013-06-16
|
7
|
+
|
8
|
+
A bug fix release of 2.0.9.
|
9
|
+
|
10
|
+
=== Improvements
|
11
|
+
|
12
|
+
==== rabbit
|
13
|
+
|
14
|
+
* Ignored backup files when detecting a README file.
|
15
|
+
[GitHub:#21] [Reported by TOMITA Masahiro]
|
16
|
+
* Added Ruby version check on RubyGems install.
|
17
|
+
If you install with Ruby 1.8, RubyGems reports an error.
|
18
|
+
|
19
|
+
=== Fixes
|
20
|
+
|
21
|
+
==== rabbit
|
22
|
+
|
23
|
+
* Fixed a bug that encoding conversion error handling is bad.
|
24
|
+
[Reported by Junichi Oya]
|
25
|
+
* Supported Ruby/GLib2 2.0.2 or ealier.
|
26
|
+
|
27
|
+
=== Thanks
|
28
|
+
|
29
|
+
* TOMITA Masahiro
|
30
|
+
* Junichi Oya
|
31
|
+
|
6
32
|
== 2.0.9: 2013-06-16
|
7
33
|
|
8
34
|
Boot related fix release.
|
9
35
|
|
10
36
|
=== Improvements
|
11
37
|
|
38
|
+
==== All
|
39
|
+
|
40
|
+
* Dropped Ruby 1.8 support.
|
41
|
+
|
12
42
|
==== rabbit
|
13
43
|
|
14
44
|
* Migrated to Ruby's encoding converter from GLib's encoding converter.
|
data/doc/ja/news.rd
CHANGED
@@ -3,12 +3,41 @@ layout: ja
|
|
3
3
|
title: お知らせ
|
4
4
|
apply_data: false
|
5
5
|
---
|
6
|
+
== 2.1.0: 2013-06-16
|
7
|
+
|
8
|
+
2.0.9のバグフィックスリリース。
|
9
|
+
|
10
|
+
=== 改良
|
11
|
+
|
12
|
+
==== rabbit
|
13
|
+
|
14
|
+
* READMEファイルを検出するときにバックアップファイルを無視するようにした。
|
15
|
+
[GitHub:#21] [TOMITA Masahiroさんが報告]
|
16
|
+
* Ruby 1.8でインストールしようとしたらRubyGemsがエラーを報告するようにした。
|
17
|
+
|
18
|
+
=== 修正
|
19
|
+
|
20
|
+
==== rabbit
|
21
|
+
|
22
|
+
* エンコーディング変換時のエラー処理が動かなかった問題を修正。
|
23
|
+
[Junichi Oyaさんが報告]
|
24
|
+
* Ruby/GLib2 2.0.2でも動作するようにした。
|
25
|
+
|
26
|
+
=== 感謝
|
27
|
+
|
28
|
+
* TOMITA Masahiroさん
|
29
|
+
* Junichi Oyaさん
|
30
|
+
|
6
31
|
== 2.0.9: 2013-06-16
|
7
32
|
|
8
33
|
起動まわりを修正したリリース。
|
9
34
|
|
10
35
|
=== 改良
|
11
36
|
|
37
|
+
==== 全体
|
38
|
+
|
39
|
+
* Ruby 1.8のサポートを終了した。
|
40
|
+
|
12
41
|
==== rabbit
|
13
42
|
|
14
43
|
* GLibのエンコーディング変換機能ではなくRubyのエンコーディング変換機
|
data/lib/rabbit/logger/stderr.rb
CHANGED
@@ -9,9 +9,13 @@ module Rabbit
|
|
9
9
|
|
10
10
|
private
|
11
11
|
def do_log(severity, prog_name, message)
|
12
|
+
# TODO: Remove me. It is workaround until Ruby/GLib2 2.0.3 is released.
|
13
|
+
if message.encoding == Encoding::ASCII_8BIT
|
14
|
+
message.force_encoding("UTF-8")
|
15
|
+
end
|
12
16
|
begin
|
13
17
|
message = message.encode("locale")
|
14
|
-
rescue
|
18
|
+
rescue EncodingError
|
15
19
|
format = _("can't convert to current locale from UTF-8: %s")
|
16
20
|
::STDERR.puts(format % message)
|
17
21
|
end
|
data/lib/rabbit/readme-parser.rb
CHANGED
@@ -31,7 +31,7 @@ module Rabbit
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def parse(path=nil)
|
34
|
-
path ||= Dir.glob("README*")[0]
|
34
|
+
path ||= remove_backup_paths(Dir.glob("README*"))[0]
|
35
35
|
raise _("No README found") if path.nil?
|
36
36
|
|
37
37
|
parse_content(File.read(path))
|
@@ -51,5 +51,11 @@ module Rabbit
|
|
51
51
|
end
|
52
52
|
@description = first_paragraph_blocks.join("\n\n")
|
53
53
|
end
|
54
|
+
|
55
|
+
def remove_backup_paths(paths)
|
56
|
+
paths.reject do |path|
|
57
|
+
path.end_with?("~")
|
58
|
+
end
|
59
|
+
end
|
54
60
|
end
|
55
61
|
end
|
data/lib/rabbit/version.rb
CHANGED
data/rabbit.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rabbit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0
|
4
|
+
version: 2.1.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -1076,7 +1076,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
1076
1076
|
requirements:
|
1077
1077
|
- - ! '>='
|
1078
1078
|
- !ruby/object:Gem::Version
|
1079
|
-
version:
|
1079
|
+
version: 1.9.3
|
1080
1080
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
1081
1081
|
none: false
|
1082
1082
|
requirements:
|