dia 1.2.pre → 1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. data/NEWS.md +1 -1
  2. data/README.md +11 -3
  3. data/TODO.md +0 -8
  4. data/lib/dia.rb +1 -1
  5. data/lib/dia/sandbox.rb +1 -1
  6. metadata +5 -5
data/NEWS.md CHANGED
@@ -1,5 +1,5 @@
1
1
  ## NEWS
2
- ### 1.2.pre
2
+ ### 1.2
3
3
  * I've decided to use Dia::Sandbox instead of Dia::SandBox but it won't be removed until 1.3 .. (Deprecated for 1.2)
4
4
  * I've decided to remove the explicit exit() call in a sandbox spawned with run\_with\_block .. (Introduced in 1.1 Final)
5
5
  * Added Dia::Sandbox#terminate for terminating a sandbox.
data/README.md CHANGED
@@ -18,7 +18,7 @@ FFI, and the C header "sandbox.h" (found on OSX).
18
18
  require 'rubygems'
19
19
  require 'dia'
20
20
 
21
- sandbox = Dia::SandBox.new("/Applications/Firefox.app/Contents/MacOS/firefox-bin", Dia::Profiles::NO_INTERNET)
21
+ sandbox = Dia::Sandbox.new("/Applications/Firefox.app/Contents/MacOS/firefox-bin", Dia::Profiles::NO_INTERNET)
22
22
  sandbox.run
23
23
  puts "Launched #{sandbox.app_path} with a pid of #{sandbox.pid} using the profile #{sandbox.profile}"
24
24
 
@@ -28,12 +28,20 @@ FFI, and the C header "sandbox.h" (found on OSX).
28
28
  require 'dia'
29
29
  require 'open-uri'
30
30
 
31
- sandbox = Dia::SandBox.new(Dia::Profiles::NO_OS_SERVICES)
31
+ sandbox = Dia::Sandbox.new(Dia::Profiles::NO_OS_SERVICES)
32
32
  sandbox.run_with_block do
33
33
  open(URI.parse('http://www.google.com')).read
34
- exit!
35
34
  end
36
35
 
36
+ ## Example 3 (Terminating a sandbox)
37
+
38
+ require 'rubygems'
39
+ require 'dia'
40
+ sandbox = Dia::Sandbox.new("/Applications/Firefox.app/Contents/MacOS/firefox-bin", Dia::Profiles::NO_INTERNET)
41
+ sandbox.run
42
+ sleep(5)
43
+ sandbox.terminate
44
+
37
45
  ## Install?
38
46
 
39
47
  It's on gemcutter.
data/TODO.md CHANGED
@@ -2,11 +2,3 @@
2
2
 
3
3
  ### 1.3
4
4
  * Deprecate and remove Dia::SandBox in favor of Dia::Sandbox ..
5
-
6
- ### 1.2
7
-
8
- * Remove link to the experimental branch in the gem spec before release.
9
-
10
- ### 1.2.pre
11
-
12
- ..
data/lib/dia.rb CHANGED
@@ -5,7 +5,7 @@ require File.join(File.dirname(__FILE__), 'dia/commonapi.rb')
5
5
  require File.join(File.dirname(__FILE__), 'dia/sandbox.rb')
6
6
 
7
7
  module Dia
8
- VERSION = '1.2.pre'
8
+ VERSION = '1.2'
9
9
  class SandBoxException < StandardError; end
10
10
  end
11
11
 
@@ -19,7 +19,7 @@ module Dia
19
19
  @profile = profile
20
20
  end
21
21
 
22
- # The run method will spawn a child process and run the supplied application in a sandbox.
22
+ # The run method will spawn a child process and run the application supplied in the constructer under a sandbox.
23
23
  #
24
24
  # @raise [ArgumentError] Will raise an ArgumentError if an application has not been supplied to
25
25
  # the constructer.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dia
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.pre
4
+ version: "1.2"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Robert Gleeson
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-02-19 00:00:00 +00:00
12
+ date: 2010-02-20 00:00:00 +00:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -53,7 +53,7 @@ has_rdoc: true
53
53
  homepage:
54
54
  licenses: []
55
55
 
56
- post_install_message: " ********************************************************************\n Thanks for installing Dia! (1.2.pre)\n \n Don't forget to check NEWS.md for what has changed in this release:\n http://github.com/robgleeson/Dia/blob/experimental/NEWS.md\n \n You can chat with us at irc.freenode.net / #flowof.info if you have\n any problems. Feel free to join us!\n ********************************************************************\n"
56
+ post_install_message: " ********************************************************************\n Thanks for installing Dia! (1.2)\n \n Don't forget to check NEWS.md for what has changed in this release:\n http://github.com/robgleeson/Dia/blob/master/NEWS.md\n \n You can chat with us at irc.freenode.net / #flowof.info if you have\n any problems. Feel free to join us!\n ********************************************************************\n"
57
57
  rdoc_options: []
58
58
 
59
59
  require_paths:
@@ -66,9 +66,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
66
66
  version:
67
67
  required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - ">"
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
- version: 1.3.1
71
+ version: "0"
72
72
  version:
73
73
  requirements: []
74
74