run_in_background 0.0.9.b → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/run_in_background/version.rb +1 -1
- metadata +54 -8
- data/ext/run_in_background/mkrf_conf.rb +0 -34
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: run_in_background
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.9
|
5
|
-
prerelease:
|
4
|
+
version: 0.0.9
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Genady Petelko
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-
|
12
|
+
date: 2012-09-13 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: log
|
@@ -43,20 +43,66 @@ dependencies:
|
|
43
43
|
- - ! '>='
|
44
44
|
- !ruby/object:Gem::Version
|
45
45
|
version: '0'
|
46
|
+
- !ruby/object:Gem::Dependency
|
47
|
+
name: daemons
|
48
|
+
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
50
|
+
requirements:
|
51
|
+
- - ! '>='
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ! '>='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
- !ruby/object:Gem::Dependency
|
63
|
+
name: win32-service
|
64
|
+
requirement: !ruby/object:Gem::Requirement
|
65
|
+
none: false
|
66
|
+
requirements:
|
67
|
+
- - ! '>='
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ! '>='
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '0'
|
78
|
+
- !ruby/object:Gem::Dependency
|
79
|
+
name: sys-uname
|
80
|
+
requirement: !ruby/object:Gem::Requirement
|
81
|
+
none: false
|
82
|
+
requirements:
|
83
|
+
- - ! '>='
|
84
|
+
- !ruby/object:Gem::Version
|
85
|
+
version: '0'
|
86
|
+
type: :runtime
|
87
|
+
prerelease: false
|
88
|
+
version_requirements: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '0'
|
46
94
|
description: ! 'This library provides a basic cross-platform functionality to runarbitrary
|
47
95
|
ruby scripts in background and control them.Supported platforms: Windows, Linux,
|
48
96
|
Mac.'
|
49
97
|
email: nukegluk@gmail.com
|
50
98
|
executables: []
|
51
|
-
extensions:
|
52
|
-
- ext/run_in_background/mkrf_conf.rb
|
99
|
+
extensions: []
|
53
100
|
extra_rdoc_files: []
|
54
101
|
files:
|
55
102
|
- lib/run_in_background.rb
|
56
103
|
- lib/run_in_background/version.rb
|
57
104
|
- test/run_in_background/run_in_background_test.rb
|
58
105
|
- test/run_in_background/test_app
|
59
|
-
- ext/run_in_background/mkrf_conf.rb
|
60
106
|
homepage: http://github.com/kolmanv/bbfs
|
61
107
|
licenses: []
|
62
108
|
post_install_message:
|
@@ -72,9 +118,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
73
119
|
none: false
|
74
120
|
requirements:
|
75
|
-
- - ! '
|
121
|
+
- - ! '>='
|
76
122
|
- !ruby/object:Gem::Version
|
77
|
-
version:
|
123
|
+
version: '0'
|
78
124
|
requirements: []
|
79
125
|
rubyforge_project:
|
80
126
|
rubygems_version: 1.8.24
|
@@ -1,34 +0,0 @@
|
|
1
|
-
# This extension used to install platform specific gem dependencies
|
2
|
-
# for more information:
|
3
|
-
# http://stackoverflow.com/questions/4596606/rubygems-how-do-i-add-platform-specific-dependency/10249133#10249133
|
4
|
-
# https://github.com/openshift/os-client-tools/blob/master/express/ext/mkrf_conf.rb
|
5
|
-
|
6
|
-
require 'rubygems'
|
7
|
-
require 'rubygems/command.rb'
|
8
|
-
require 'rubygems/dependency_installer.rb'
|
9
|
-
#begin
|
10
|
-
#Gem::Command.build_args = ARGV
|
11
|
-
#rescue NoMethodError
|
12
|
-
#end
|
13
|
-
inst = Gem::DependencyInstaller.new
|
14
|
-
begin
|
15
|
-
if Gem::win_platform?
|
16
|
-
if Gem::Specification.find_all_by_name('sys-uname').empty?
|
17
|
-
inst.install 'sys-uname'
|
18
|
-
end
|
19
|
-
if Gem::Specification.find_all_by_name('win32-service').empty?
|
20
|
-
inst.install 'win32-service'
|
21
|
-
end
|
22
|
-
else
|
23
|
-
if Gem::Specification.find_all_by_name('daemons').empty?
|
24
|
-
inst.install 'daemons'
|
25
|
-
end
|
26
|
-
end
|
27
|
-
rescue Exception => e
|
28
|
-
puts e.to_s
|
29
|
-
exit(1)
|
30
|
-
end
|
31
|
-
|
32
|
-
f = File.open(File.join(File.dirname(__FILE__), "Rakefile"), "w") # create dummy rakefile to indicate success
|
33
|
-
f.write("task :default\n")
|
34
|
-
f.close
|