rabbit 3.0.4 → 3.0.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ecf4130109c4471c753600aaa0cefd57b6e580bb654394ccec2b54f3106551e0
4
- data.tar.gz: 95b199c5214eca4206e389a44d001e5e5dc384506f0c3c439b8850a226e187c9
3
+ metadata.gz: 7f3fbfefe40c2abbea3572d6d22aec3ac5d5e3de069f61120cff0d82db031527
4
+ data.tar.gz: 6435432f528d3af5caeae8a8cd112be3f979c03fa2d431249344c08b7afd9810
5
5
  SHA512:
6
- metadata.gz: 1164bcc88e293f8d563d31462b8510427860203335c1ff6cf2f5e04109b7fc678a8b2d684f317349142296f4722c86ec591b410297345aaaeda9c1d3138060ef
7
- data.tar.gz: 06b96aedfdb5b5a187ed858aafcb7f410da39bb6b2d9943e571d00cd9df1a3ecd8c1694e31ac3f0c80164d50cbac5cfa6ee418526b5f8dc546d73b57d682e71b
6
+ metadata.gz: 59f6d1c1f91e68727a981b1170d6d344c55118b140557282c8166cae84c5118364d73da505e9555dc6a44fed9600451c64dda5b3230811722dd6f8de93ddc464
7
+ data.tar.gz: f4f59780a8370a527da3aa6615fdb96003b3a1e1b5925f36269a3af6f174cde58058640900ff11153a49411894f796fc6c2b9ef09d827f574ead743ad56998cf
data/Gemfile CHANGED
@@ -25,6 +25,7 @@ gemspec
25
25
  group :development, :docs, :test do
26
26
  gem "bundler"
27
27
  gem "rake"
28
+ gem "open-uri"
28
29
  end
29
30
 
30
31
  group :docs do
data/Rakefile CHANGED
@@ -17,6 +17,9 @@
17
17
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
18
18
 
19
19
  require "find"
20
+ require "open-uri"
21
+ require "tmpdir"
22
+
20
23
  require "bundler/gem_helper"
21
24
  require "gettext/tools/task"
22
25
 
@@ -186,24 +189,67 @@ EOC
186
189
 
187
190
  namespace :publish do
188
191
  dependencies = ["html:generate"]
189
- rsync_command_line = [
190
- "rsync", "-avz", "--delete",
191
- "--exclude", "*.svn",
192
+ exclude_paths = [
192
193
  "--exclude", "*-raw.png",
193
194
  "--exclude", "*.svg",
194
195
  "--exclude", "*.rab",
195
196
  "--exclude", "/download/",
196
197
  "--exclude", "/samples/",
197
- "doc/_site/",
198
198
  ]
199
199
  desc "publish HTML to remote."
200
- task :remote => dependencies do
201
- sh(*(rsync_command_line + [rsync_base_path]))
200
+ task :remote do
201
+ Dir.mktmpdir do |dir|
202
+ chdir(dir) do
203
+ if (ENV["USE_RELEASE"] || "yes") == "yes"
204
+ url = "https://github.com/rabbit-shocker/rabbit/releases/download/" +
205
+ "#{version}/docs.tar.gz"
206
+ URI.open(url) do |response|
207
+ File.open("docs.tar.gz", "wb") do |output|
208
+ IO.copy_stream(response, output)
209
+ end
210
+ end
211
+ else
212
+ workflow_id = IO.pipe do |input, output|
213
+ sh("gh",
214
+ "run",
215
+ "list",
216
+ "--jq", ".[].databaseId",
217
+ "--json", "databaseId",
218
+ "--limit", "1",
219
+ "--repo", "rabbit-shocker/rabbit",
220
+ "--status", "success",
221
+ "--workflow", "release.yaml",
222
+ out: output)
223
+ output.close
224
+ input.read.chomp
225
+ end
226
+ sh("gh",
227
+ "run",
228
+ "download",
229
+ "--repo", "rabbit-shocker/rabbit",
230
+ workflow_id)
231
+ mv("docs/docs.tar.gz", "./")
232
+ end
233
+ sh("tar", "xf", "docs.tar.gz")
234
+ sh("rsync",
235
+ "-avz",
236
+ # "--delete",
237
+ # "--dry-run",
238
+ *exclude_paths,
239
+ "docs/",
240
+ rsync_base_path)
241
+ end
242
+ end
202
243
  end
203
244
 
204
245
  desc "publish HTML to local."
205
246
  task :local => dependencies do
206
- sh(*(rsync_command_line + [File.expand_path(rsync_local_path)]))
247
+ sh("rsync",
248
+ "-avz",
249
+ "--delete",
250
+ *exclude_paths,
251
+ "doc/_site/",
252
+ File.expand_path(rsync_local_path))
207
253
  end
208
254
  end
209
255
  end
data/doc/_config.yml CHANGED
@@ -1,6 +1,6 @@
1
1
  markdown: kramdown
2
- version: 3.0.3
3
- release_date: 2023-07-02
2
+ version: 3.0.5
3
+ release_date: 2025-03-30
4
4
  rabbiter_version: 2.0.3
5
5
  rabbiter_release_date: 2016-08-21
6
6
  rabbirack_version: 2.0.0
data/doc/en/news.rd CHANGED
@@ -4,11 +4,25 @@ title: News
4
4
  ---
5
5
  {% raw %}
6
6
 
7
+ == 3.0.5: 2025-03-30
8
+
9
+ === Improvements
10
+
11
+ ==== rabbit
12
+
13
+ * Improved source content detection.
14
+ * ((<GH-172|URL:https://github.com/rabbit-shocker/rabbit/issues/172>))
15
+ * Reported by NAITOH Jun
16
+
17
+ === Thanks
18
+
19
+ * NAITOH Jun
20
+
7
21
  == 3.0.4: 2025-03-23
8
22
 
9
23
  === Improvements
10
24
 
11
- ==== ドキュメント
25
+ ==== Documentation
12
26
 
13
27
  * Added metadata for title slide.
14
28
  * ((<GH-165|URL:https://github.com/rabbit-shocker/rabbit/issues/165>))
data/doc/ja/news.rd CHANGED
@@ -5,6 +5,20 @@ apply_data: false
5
5
  ---
6
6
  {% raw %}
7
7
 
8
+ == 3.0.5: 2025-03-30
9
+
10
+ === 改良
11
+
12
+ ==== rabbit
13
+
14
+ * ソースの内容の判別方法を改良。
15
+ * ((<GH-172|URL:https://github.com/rabbit-shocker/rabbit/issues/172>))
16
+ * NAITOH Junさんが報告
17
+
18
+ === Thanks
19
+
20
+ * NAITOH Junさん
21
+
8
22
  == 3.0.4: 2025-03-23
9
23
 
10
24
  === 改良
data/lib/rabbit/parser.rb CHANGED
@@ -14,12 +14,14 @@
14
14
  # with this program; if not, write to the Free Software Foundation, Inc.,
15
15
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
16
 
17
- require "rabbit/parser/image"
18
17
  require "rabbit/parser/markdown"
19
18
  require "rabbit/parser/pdf"
20
19
  require "rabbit/parser/rd"
21
20
  require "rabbit/parser/wiki"
22
21
 
22
+ # Image is fallback
23
+ require "rabbit/parser/image"
24
+
23
25
  module Rabbit
24
26
  module Parser
25
27
  include GetText
@@ -1,4 +1,4 @@
1
- # Copyright (C) 2012-2023 Sutou Kouhei <kou@cozmixng.org>
1
+ # Copyright (C) 2012-2025 Sutou Kouhei <kou@cozmixng.org>
2
2
  #
3
3
  # This program is free software; you can redistribute it and/or modify
4
4
  # it under the terms of the GNU General Public License as published by
@@ -15,5 +15,5 @@
15
15
  # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
16
16
 
17
17
  module Rabbit
18
- VERSION = "3.0.4"
18
+ VERSION = "3.0.5"
19
19
  end
data/po/en/rabbit.edit.po CHANGED
@@ -1233,7 +1233,7 @@ msgstr ""
1233
1233
  msgid "Jump to the %dth slide"
1234
1234
  msgstr ""
1235
1235
 
1236
- #: ../lib/rabbit/parser.rb:31
1236
+ #: ../lib/rabbit/parser.rb:33
1237
1237
  msgid "unsupported format. (supported: %s)"
1238
1238
  msgstr ""
1239
1239
 
data/po/fr/rabbit.edit.po CHANGED
@@ -1232,7 +1232,7 @@ msgstr ""
1232
1232
  msgid "Jump to the %dth slide"
1233
1233
  msgstr ""
1234
1234
 
1235
- #: ../lib/rabbit/parser.rb:31
1235
+ #: ../lib/rabbit/parser.rb:33
1236
1236
  msgid "unsupported format. (supported: %s)"
1237
1237
  msgstr ""
1238
1238
 
data/po/ja/rabbit.edit.po CHANGED
@@ -1258,7 +1258,7 @@ msgstr "UTF-8から現在のロケールに変換できません: %s"
1258
1258
  msgid "Jump to the %dth slide"
1259
1259
  msgstr "%d番目のスライドへジャンプ"
1260
1260
 
1261
- #: ../lib/rabbit/parser.rb:31
1261
+ #: ../lib/rabbit/parser.rb:33
1262
1262
  msgid "unsupported format. (supported: %s)"
1263
1263
  msgstr "サポートしていない形式です。(サポートしている形式: %s)"
1264
1264
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.4
4
+ version: 3.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kouhei Sutou
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-03-23 00:00:00.000000000 Z
10
+ date: 2025-03-30 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: coderay