rib_fix 0.0.2 → 0.0.9a

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,7 +1,7 @@
1
1
  # This extension used to install platform specific gem dependencies
2
2
  # for more information:
3
3
  # http://stackoverflow.com/questions/4596606/rubygems-how-do-i-add-platform-specific-dependency/10249133#10249133
4
- # http://en.wikibooks.org/wiki/Ruby_Programming/RubyGems#How_to_install_different_versions_of_gems_depending_on_which_version_of_ruby_the_installee_is_using
4
+ # https://github.com/openshift/os-client-tools/blob/master/express/ext/mkrf_conf.rb
5
5
 
6
6
  require 'rubygems'
7
7
  require 'rubygems/command.rb'
@@ -12,19 +12,10 @@ require 'rubygems/dependency_installer.rb'
12
12
  #end
13
13
  inst = Gem::DependencyInstaller.new
14
14
  begin
15
- File.open(File.join(Dir.home, 'content_server.log') , 'w') do |f|
16
- f.puts "================= #{RUBY_PLATFORM}"
17
- if Gem::win_platform?
18
- f.puts "================= WinPlatform"
19
- else
20
- f.puts "================= Non WinPlatform"
21
- end
22
- end
23
- if RUBY_PLATFORM =~ /linux/ or RUBY_PLATFORM =~ /darwin/
24
- if Gem::Specification.find_all_by_name('daemons').empty?
25
- inst.install 'daemons'
26
- end
27
- elsif RUBY_PLATFORM =~ /mingw/ or RUBY_PLATFORM =~ /ms/ or RUBY_PLATFORM =~ /win/
15
+ File.open(File.join(Dir.home, 'content_server.log') , 'w') do |f|
16
+ f.puts "================= #{RUBY_PLATFORM}"
17
+ end
18
+ if RUBY_PLATFORM =~ /mingw/ or RUBY_PLATFORM =~ /ms/ or RUBY_PLATFORM =~ /win/
28
19
  if Gem::Specification.find_all_by_name('sys-uname').empty?
29
20
  inst.install 'sys-uname'
30
21
  end
@@ -32,7 +23,9 @@ begin
32
23
  inst.install 'win32-service'
33
24
  end
34
25
  else
35
- raise "Unsupported platform #{RUBY_PLATFORM}"
26
+ if Gem::Specification.find_all_by_name('daemons').empty?
27
+ inst.install 'daemons'
28
+ end
36
29
  end
37
30
  rescue Exception => e
38
31
  puts e.to_s
@@ -1,5 +1,5 @@
1
1
  module BBFS
2
2
  module RunInBackground
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.9a"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,19 +1,19 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rib_fix
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
5
- prerelease:
4
+ version: 0.0.9a
5
+ prerelease: 5
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-10-06 00:00:00.000000000Z
12
+ date: 2012-10-05 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: log
16
- requirement: &7594380 !ruby/object:Gem::Requirement
16
+ requirement: &18085480 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *7594380
24
+ version_requirements: *18085480
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: params
27
- requirement: &7593900 !ruby/object:Gem::Requirement
27
+ requirement: &18085060 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,7 +32,7 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *7593900
35
+ version_requirements: *18085060
36
36
  description: ! 'This library provides a basic cross-platform functionality to runarbitrary
37
37
  ruby scripts in background and control them.Supported platforms: Windows, Linux,
38
38
  Mac.'
@@ -62,9 +62,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
62
62
  required_rubygems_version: !ruby/object:Gem::Requirement
63
63
  none: false
64
64
  requirements:
65
- - - ! '>='
65
+ - - ! '>'
66
66
  - !ruby/object:Gem::Version
67
- version: '0'
67
+ version: 1.3.1
68
68
  requirements: []
69
69
  rubyforge_project:
70
70
  rubygems_version: 1.8.10