dia 1.4.pre → 1.4.pre.2
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.
- data/NEWS.md +2 -0
- data/lib/dia.rb +1 -1
- data/lib/dia/commonapi.rb +1 -1
- data/lib/dia/profiles.rb +1 -1
- data/lib/dia/sandbox.rb +2 -2
- metadata +3 -2
data/NEWS.md
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
## NEWS
|
2
2
|
|
3
|
+
* Mac OSX 10.5 reported as working! (Bug fix)
|
4
|
+
Many thanks to Josh Creek for reporting and helping me debug this bug.
|
3
5
|
* Use ffi\_lib() to explicitly load the dynamic library "sandbox", or "System"
|
4
6
|
* Depend explicitly on FFI v0.6.2
|
5
7
|
* Dia::Sandbox#run accepts a variable amount of arguments that will be passed onto the block supplied to the constructer.
|
data/lib/dia.rb
CHANGED
data/lib/dia/commonapi.rb
CHANGED
data/lib/dia/profiles.rb
CHANGED
@@ -2,7 +2,7 @@ module Dia
|
|
2
2
|
|
3
3
|
module Profiles
|
4
4
|
extend FFI::Library
|
5
|
-
ffi_lib(%w(sandbox
|
5
|
+
ffi_lib(%w(sandbox system libSystem.B.dylib))
|
6
6
|
|
7
7
|
NO_INTERNET = attach_variable(:kSBXProfileNoInternet, :string).read_string
|
8
8
|
NO_NETWORKING = attach_variable(:kSBXProfileNoNetwork, :string).read_string
|
data/lib/dia/sandbox.rb
CHANGED
@@ -56,8 +56,8 @@ module Dia
|
|
56
56
|
def run(*args)
|
57
57
|
|
58
58
|
@pid = fork do
|
59
|
-
if
|
60
|
-
raise Dia::SandboxException, "Failed to initialize sandbox (#{
|
59
|
+
if sandbox_init(FFI::MemoryPointer.from_string(@profile), 0x0001, err = FFI::MemoryPointer.new(:pointer)) == -1
|
60
|
+
raise Dia::SandboxException, "Failed to initialize sandbox (#{err.read_pointer.read_string}"
|
61
61
|
end
|
62
62
|
|
63
63
|
if @app_path
|
metadata
CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
|
|
6
6
|
- 1
|
7
7
|
- 4
|
8
8
|
- pre
|
9
|
-
|
9
|
+
- 2
|
10
|
+
version: 1.4.pre.2
|
10
11
|
platform: ruby
|
11
12
|
authors:
|
12
13
|
- Robert Gleeson
|
@@ -67,7 +68,7 @@ has_rdoc: yard
|
|
67
68
|
homepage:
|
68
69
|
licenses: []
|
69
70
|
|
70
|
-
post_install_message: " ********************************************************************\n
|
71
|
+
post_install_message: " ********************************************************************\n Dia (1.4.pre.2)\n \n The Mac OSX 10.5 bug has been reported as fixed! \n Many thanks to \"Josh Creek\" for reporting, and helping me debug the\n problem until we solved it.\n ********************************************************************\n"
|
71
72
|
rdoc_options: []
|
72
73
|
|
73
74
|
require_paths:
|