neri 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.ja.md +4 -3
- data/README.md +4 -3
- data/lib/neri/build.rb +12 -4
- data/lib/neri/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57f66e92c785a8a350a76ae6ac0ca0415da25389a5850033b25ca5635ec3d091
|
4
|
+
data.tar.gz: '08b3a7608a8b5197597940787da7afa75a421bcc5b87503cb309f375e56f8b73'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3fba1fb3e64325fc9469eafcb66816937207d0577aba9a647099b95ad16f98dd138dc14fe5c6294fbfc84425eebaf5e1a6bb7d615d8351334b914c55de0576c8
|
7
|
+
data.tar.gz: 944a9f3570ea0ce11d34194f775e0217932200a3ff420ee7d72996a6aa3b706c210c0bbd0bad333099aa18740ae9193c3d26ca5c4dfa9732abcf64b038b1b3c6
|
data/README.ja.md
CHANGED
@@ -7,7 +7,6 @@ Neri は、Ruby スクリプトを Ruby 未インストール環境の Windows
|
|
7
7
|
- OCRA に比べての長所
|
8
8
|
- 展開しない分、起動が速い。
|
9
9
|
- 実行ファイルを複数作りたいとき、OCRA ではサイズの大きな実行ファイルを複数生成することになってしまうが、Neri ではシステムファイルを共有できるため全体のサイズが大きくならずに済む。
|
10
|
-
- OCRA には「日本語を含むユーザー名の環境では起動できない」という問題があるが、Neri にはない。
|
11
10
|
- OCRA に比べての短所
|
12
11
|
- 基本的に、[Ruby Installer 2](https://rubyinstaller.org/) With Devkit で Ruby をインストールした環境でしか利用できない。(なお、使用前に `ridk enable` を実行してパスを通す必要があります。)
|
13
12
|
|
@@ -84,9 +83,11 @@ Neri はデフォルトでは、enc フォルダ内の文字コードライブ
|
|
84
83
|
|
85
84
|
<dl>
|
86
85
|
<dt>--enable-gems</dt>
|
87
|
-
<
|
86
|
+
<dt>--disable-gems (デフォルト)</dt>
|
87
|
+
<dd>rubygems を使用するかどうかを設定します。--disable-gems の場合も、依存チェック時に使用した gem のファイルは vendor_ruby フォルダ内にコピーされるため、rubygems 無しでも実行できるようになります。</dd>
|
88
88
|
<dt>--enable-did-you-mean</dt>
|
89
|
-
<
|
89
|
+
<dt>--disable-did-you-mean (デフォルト)</dt>
|
90
|
+
<dd>did_you_mean を使用するかどうかを設定します。</dd>
|
90
91
|
<dt>--no-chdir</dt>
|
91
92
|
<dd>Neri で作成した実行ファイルは、デフォルトでは実行時にカレントフォルダを実行ファイルと同じフォルダに設定します。このオプションを使うとカレントフォルダを変更しなくなります。(このオプションを使うと、日本語フォルダ下などではうまく動かなくなる可能性があるので注意してください。)</dd>
|
92
93
|
<dt>--pause-last</dt>
|
data/README.md
CHANGED
@@ -9,7 +9,6 @@ There is a similar gem [OCRA](https://github.com/larsch/ocra), but Neri has the
|
|
9
9
|
- Advantages compared to OCRA
|
10
10
|
- Faster startup due to no expansion.
|
11
11
|
- When you want to create multiple executable files, OCRA generates multiple large executable files, but Neri can share system files, so the overall size is not large.
|
12
|
-
- OCRA has the problem that it cannot be run in environments with user names containing Non-Ascii characters, but Neri does not have this problem.
|
13
12
|
- Disadvantages compared to OCRA
|
14
13
|
- Basically, Neri can be used only in the environment where Ruby is installed by [Ruby Installer 2](https://rubyinstaller.org/) With Devkit. (Also, you need to run `ridk enable` to pass it before use.)
|
15
14
|
|
@@ -84,9 +83,11 @@ By specifying the encoding files to be copied with these options, you can minimi
|
|
84
83
|
#### Setting
|
85
84
|
|
86
85
|
<dl>
|
87
|
-
<dt>--enable-gems</dt>
|
88
|
-
<
|
86
|
+
<dt>--enable-gems (default)</dt>
|
87
|
+
<dt>--disable-gems</dt>
|
88
|
+
<dd>Use rubygems. If you use --disable-gems, the necessary gem files will be copied to the vendor_ruby folder, so that you can run without rubygems.</dd>
|
89
89
|
<dt>--enable-did-you-mean</dt>
|
90
|
+
<dt>--disable-did-you-mean (default)</dt>
|
90
91
|
<dd>use did_you_mean</dd>
|
91
92
|
<dt>--no-chdir</dt>
|
92
93
|
<dd>By default, executables created by Neri will set the current folder to the same folder as the executable at runtime. With this option, the current folder will not be changed. (Please note that this option may not work well under Non-Ascii name folders.)</dd>
|
data/lib/neri/build.rb
CHANGED
@@ -10,12 +10,12 @@ module NeriBuild
|
|
10
10
|
|
11
11
|
external_encoding: nil,
|
12
12
|
|
13
|
-
dlls: [
|
13
|
+
dlls: [],
|
14
14
|
libs: [],
|
15
15
|
gems: [],
|
16
16
|
encoding: "*",
|
17
17
|
|
18
|
-
enable_gems:
|
18
|
+
enable_gems: true,
|
19
19
|
enable_did_you_mean: false,
|
20
20
|
chdir_first: true,
|
21
21
|
pause_last: nil,
|
@@ -116,8 +116,8 @@ options:
|
|
116
116
|
--no-enc
|
117
117
|
--encoding <enc1>,<enc2>,...
|
118
118
|
|
119
|
-
--enable-gems
|
120
|
-
--enable-did-you-mean
|
119
|
+
--enable-gems / --disable-gems
|
120
|
+
--enable-did-you-mean / --disable-did-you-mean
|
121
121
|
--no-chdir
|
122
122
|
--pause-last
|
123
123
|
--no-pause-last
|
@@ -179,8 +179,12 @@ options:
|
|
179
179
|
@options[:encoding] = argv.shift
|
180
180
|
when "--enable-gems"
|
181
181
|
@options[:enable_gems] = true
|
182
|
+
when "--disale-gems"
|
183
|
+
@options[:enable_gems] = false
|
182
184
|
when "--enable-did-you-mean"
|
183
185
|
@options[:enable_did_you_mean] = true
|
186
|
+
when "--disale-did-you-mean"
|
187
|
+
@options[:enable_did_you_mean] = false
|
184
188
|
when "--no-chdir"
|
185
189
|
@options[:chdir_first] = false
|
186
190
|
when "--chdir-first" # deprecated
|
@@ -393,6 +397,7 @@ options:
|
|
393
397
|
|
394
398
|
def additional_dlls_dependencies
|
395
399
|
dependencies = []
|
400
|
+
@options[:dlls].push("*.dll") if RbConfig::CONFIG["arch"].include?("x64")
|
396
401
|
@options[:dlls].each do |dll|
|
397
402
|
dependencies += Dir.glob(File.join(bindir, "**", dll))
|
398
403
|
dependencies += Dir.glob(File.join(bindir, "**", "#{dll}.*"))
|
@@ -497,6 +502,9 @@ options:
|
|
497
502
|
dependencies += encoding_dependencies
|
498
503
|
dependencies = select_dependencies(dependencies)
|
499
504
|
dependencies += gemspec_dependencies(dependencies) if @options[:enable_gems]
|
505
|
+
if dependencies.find { |dep| dep.end_with?("/net/https.rb") }
|
506
|
+
dependencies.push("#{rubydir}ssl/cert.pem")
|
507
|
+
end
|
500
508
|
|
501
509
|
size = dependencies.map { |d| File.size(d) }.inject(&:+)
|
502
510
|
nputs "#{dependencies.size} files, #{size} bytes dependencies."
|
data/lib/neri/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neri
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- nodai2hITC
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-
|
11
|
+
date: 2022-08-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Neri builds Windows batfile or exefile from Ruby script.
|
14
14
|
email:
|
@@ -56,7 +56,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
56
56
|
- !ruby/object:Gem::Version
|
57
57
|
version: '0'
|
58
58
|
requirements: []
|
59
|
-
rubygems_version: 3.
|
59
|
+
rubygems_version: 3.2.30
|
60
60
|
signing_key:
|
61
61
|
specification_version: 4
|
62
62
|
summary: One-Click Ruby Application Builder
|