ocran 1.3.12 → 1.3.13

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/bin/ocran +11 -0
  3. data/lib/ocran/version.rb +5 -0
  4. data/lib/ocran.rb +5 -2
  5. metadata +12 -6
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3a58068c425f2d336d76700e029910fb63f307f43a3323e72ccf3f6f80cc575
4
- data.tar.gz: 9876cc77dbccd0ce1f0278f326e381d78656fc75417be8693d6218af0073cbd7
3
+ metadata.gz: b7de27881bd34052b90faa5618a30c4da84182ff53a5edc1adfc32db052e2aa1
4
+ data.tar.gz: 16f25058a7a72073ade7050625a66bc2d41044db1cb704ad540210dcce1791b0
5
5
  SHA512:
6
- metadata.gz: ab3b92cd5d2a1e93a09bcfd99d9992e48c110b38e775d68a1ee5104f0601eb11ba13b428b447831bb771330c300c719b633413d4350d01205bd8700423408fc8
7
- data.tar.gz: 4dc1c362a1f6589c1cf5df5ba10211c00f7e6b792f380c58da3cc987e02758152b5c410671e43f5c099943ced230328e7be6cd0fa65f9f16d0a4e6b0c3584a46
6
+ metadata.gz: 1b389b0744a54767cb7ba5187bfa3ce645dc2c71ce25adb6ce85bec94a7afa01f01ed4e055dec6df68818f7718d0418bd4b1bca5a151343bb624ab8126488744
7
+ data.tar.gz: 35a2a1197eabcc3a28483101583729c8e905982153c028576a09a605a2e195b8b01949d2e90988e31cd0077a3fc96e469fb121a8e1d1744e8b28e597a3edf5b4
data/bin/ocran CHANGED
@@ -121,6 +121,7 @@ module Ocran
121
121
  def basename; Pathname.new(File.basename(@path)); end
122
122
  def expand(dir = nil); Pathname.new(File.expand_path(@path, dir && Ocran.Pathname(dir))); end
123
123
  def size; File.size(@path); end
124
+ def encode(e); to_posix.encode(e); end # called when creating an installer with innosetup
124
125
 
125
126
  alias to_s to_posix
126
127
  alias to_str to_posix
@@ -972,6 +973,11 @@ EOF
972
973
  sb.createfile(path, target)
973
974
  end
974
975
 
976
+ # Workaround: RubyInstaller cannot find the msys folder if ../msys64/usr/bin/msys-2.0.dll is not present (since RubyInstaller-2.4.1 rubyinstaller 2 issue 23)
977
+ # Add an empty file to /msys64/usr/bin/msys-2.0.dll if the dll was not required otherwise
978
+ require 'tempfile'
979
+ sb.createfile((Tempfile.new("msys-2.0.dll")).path.to_s, 'msys64/usr/bin/msys-2.0.dll') unless sb.files.keys.any? { |entry| entry.to_s.include?("msys-2.0.dll") }
980
+
975
981
  # Set environment variable
976
982
  sb.setenv("RUBYOPT", ENV["RUBYOPT"] || "")
977
983
  sb.setenv("RUBYLIB", load_path.map { |path| path.to_native }.uniq.join(";"))
@@ -1082,6 +1088,8 @@ EOF
1082
1088
  OP_ENABLE_DEBUG_MODE = 7
1083
1089
  OP_CREATE_INST_DIRECTORY = 8
1084
1090
 
1091
+ attr_reader :files
1092
+
1085
1093
  def initialize(path, windowed)
1086
1094
  @paths = {}
1087
1095
  @files = {}
@@ -1230,6 +1238,9 @@ EOF
1230
1238
  end
1231
1239
  end
1232
1240
 
1241
+ def hasFile?(src)
1242
+ end
1243
+
1233
1244
  def createprocess(image, cmdline)
1234
1245
  Ocran.verbose_msg "l #{showtempdir image} #{showtempdir cmdline}"
1235
1246
  @of << [OP_CREATE_PROCESS, image.to_native, cmdline].pack("VZ*Z*")
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Ocran
4
+ VERSION = "1.3.13"
5
+ end
data/lib/ocran.rb CHANGED
@@ -1,3 +1,6 @@
1
- class Ocran
2
- VERSION = '1.3.12
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "ocran/version"
4
+
5
+ module Ocran
3
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocran
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.12
4
+ version: 1.3.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andi Idogawa
@@ -9,12 +9,17 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2023-05-16 00:00:00.000000000 Z
12
+ date: 2023-05-17 00:00:00.000000000 Z
13
13
  dependencies: []
14
- description: OCRAN (One-Click Ruby Application Next) builds Windows executables from
15
- Ruby source code. The executable is a self-extracting, self-running executable that
16
- contains the Ruby interpreter, your source code and any additionally needed ruby
17
- libraries or DLL.
14
+ description: "OCRAN (One-Click Ruby Application Next) builds Windows executables from
15
+ Ruby source code. \n The executable is a self-extracting, self-running executable
16
+ that contains the Ruby interpreter, your source code and any additionally needed
17
+ ruby libraries or DLL.\n \n This is a fork of OCRA that is compatible with ruby
18
+ version after 2.6. \n Migration guide: make sure to write ocran instead of ocra
19
+ in your code. For instance: OCRAN_EXECUTABLE\n\n usage: \n ocra helloworld.rb\n
20
+ \ helloworld.exe\n\n See readme at https://github.com/largo/ocran\n Report problems
21
+ in the github issues. Contributions welcome.\n This gem contains executables. We
22
+ plan to build them on github actions for security.\n "
18
23
  email:
19
24
  - andi@idogawa.com
20
25
  executables:
@@ -24,6 +29,7 @@ extra_rdoc_files: []
24
29
  files:
25
30
  - bin/ocran
26
31
  - lib/ocran.rb
32
+ - lib/ocran/version.rb
27
33
  - share/ocran/edicon.exe
28
34
  - share/ocran/lzma.exe
29
35
  - share/ocran/stub.exe