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 CHANGED
@@ -1,6 +1,6 @@
1
1
  markdown: kramdown
2
2
  pygments: true
3
- version: 2.0.9
3
+ version: 2.1.0
4
4
  release_date: 2013-06-16
5
5
  rabbiter_version: 2.0.0
6
6
  rabbiter_release_date: 2012-08-29
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のエンコーディング変換機
@@ -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 Encoding::Error
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
@@ -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
@@ -15,5 +15,5 @@
15
15
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
16
 
17
17
  module Rabbit
18
- VERSION = "2.0.9"
18
+ VERSION = "2.1.0"
19
19
  end
data/rabbit.gemspec CHANGED
@@ -43,6 +43,8 @@ Gem::Specification.new do |spec|
43
43
  spec.executables = Dir.glob("*")
44
44
  end
45
45
 
46
+ spec.required_ruby_version = ">= 1.9.3"
47
+
46
48
  spec.add_runtime_dependency("gtk2")
47
49
  spec.add_runtime_dependency("rsvg2")
48
50
  spec.add_runtime_dependency("poppler")
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.9
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: '0'
1079
+ version: 1.9.3
1080
1080
  required_rubygems_version: !ruby/object:Gem::Requirement
1081
1081
  none: false
1082
1082
  requirements: