run_in_background 0.0.9 → 0.0.10

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,34 @@
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
@@ -1,5 +1,5 @@
1
1
  module BBFS
2
2
  module RunInBackground
3
- VERSION = "0.0.9"
3
+ VERSION = "0.0.10"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_in_background
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.9
4
+ version: 0.0.10
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-13 00:00:00.000000000 Z
12
+ date: 2012-10-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: log
16
- requirement: !ruby/object:Gem::Requirement
16
+ requirement: &19724160 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,15 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
- requirements:
27
- - - ! '>='
28
- - !ruby/object:Gem::Version
29
- version: '0'
24
+ version_requirements: *19724160
30
25
  - !ruby/object:Gem::Dependency
31
26
  name: params
32
- requirement: !ruby/object:Gem::Requirement
27
+ requirement: &19723740 !ruby/object:Gem::Requirement
33
28
  none: false
34
29
  requirements:
35
30
  - - ! '>='
@@ -37,72 +32,21 @@ dependencies:
37
32
  version: '0'
38
33
  type: :runtime
39
34
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
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'
35
+ version_requirements: *19723740
94
36
  description: ! 'This library provides a basic cross-platform functionality to runarbitrary
95
37
  ruby scripts in background and control them.Supported platforms: Windows, Linux,
96
38
  Mac.'
97
39
  email: nukegluk@gmail.com
98
40
  executables: []
99
- extensions: []
41
+ extensions:
42
+ - ext/run_in_background/mkrf_conf.rb
100
43
  extra_rdoc_files: []
101
44
  files:
102
45
  - lib/run_in_background.rb
103
46
  - lib/run_in_background/version.rb
104
- - test/run_in_background/run_in_background_test.rb
105
47
  - test/run_in_background/test_app
48
+ - test/run_in_background/run_in_background_test.rb
49
+ - ext/run_in_background/mkrf_conf.rb
106
50
  homepage: http://github.com/kolmanv/bbfs
107
51
  licenses: []
108
52
  post_install_message:
@@ -123,10 +67,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
123
67
  version: '0'
124
68
  requirements: []
125
69
  rubyforge_project:
126
- rubygems_version: 1.8.24
70
+ rubygems_version: 1.8.10
127
71
  signing_key:
128
72
  specification_version: 3
129
73
  summary: Cross-platform library for daemons management.
130
74
  test_files:
131
- - test/run_in_background/run_in_background_test.rb
132
75
  - test/run_in_background/test_app
76
+ - test/run_in_background/run_in_background_test.rb