rupi 0.2.2 → 0.2.3

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/bin/rupi_service CHANGED
@@ -33,7 +33,7 @@ if ARGV[0] == 'install'
33
33
  config.write(YAML::dump('path' => file_name))
34
34
  end
35
35
 
36
- system('rvm wrapper 1.9.3 init rupi_service')
36
+ system("rvm wrapper #{Rupi::RUBY_VERSION} init rupi_service")
37
37
  system('mv `which init_rupi_service` /etc/init.d/rupi_service')
38
38
  system('update-rc.d rupi_service defaults')
39
39
  system('/etc/init.d/rupi_service restart')
data/lib/rupi/sprinkle.rb CHANGED
@@ -1,3 +1,5 @@
1
+ require 'rupi/version'
2
+
1
3
  Sprinkle::Installers::Apt.class_eval do
2
4
  alias_method :install_commands_original, :install_commands
3
5
 
@@ -26,19 +28,19 @@ package :ruby_dependencies do
26
28
  end
27
29
 
28
30
  package :ruby do
29
- description 'Ruby 1.9.3'
30
- version 'ruby-1.9.3-p194'
31
+ description Rupi::RUBY_VERSION
32
+ version Rupi::RUBY_VERSION
31
33
  requires :rvm
32
34
  requires :ruby_dependencies
33
35
 
34
36
  noop do
35
- pre :install, "sudo #{RVM_EXECUTABLE} mount -r https://s3.amazonaws.com/rvm-pi/debian/wheezy_sid/armv6l/ruby-1.9.3-p194.tar.bz2 --verify-downloads 1"
36
- # pre :install, "sudo #{RVM_EXECUTABLE} install ruby-1.9.3-p194 --trace"
37
- post :install, "#{RVM_EXECUTABLE} use ruby-1.9.3-p194 --default"
37
+ pre :install, "sudo #{RVM_EXECUTABLE} mount -r https://s3.amazonaws.com/rvm-pi/debian/wheezy_sid/armv6l/#{Rupi::RUBY_VERSION}.tar.bz2 --verify-downloads 1"
38
+ # pre :install, "sudo #{RVM_EXECUTABLE} install #{Rupi::RUBY_VERSION} --trace"
39
+ post :install, "#{RVM_EXECUTABLE} use #{Rupi::RUBY_VERSION} --default"
38
40
  end
39
41
 
40
42
  verify do
41
- has_executable "#{RVM_PATH}/rubies/ruby-1.9.3-p194/bin/ruby"
43
+ has_executable "#{RVM_PATH}/rubies/#{Rupi::RUBY_VERSION}/bin/ruby"
42
44
  end
43
45
  end
44
46
 
@@ -50,11 +52,11 @@ package :rupi do
50
52
  apt 'uvccapture'
51
53
 
52
54
  noop do
53
- pre :install, "#{RVM_PATH}/bin/gem-ruby-1.9.3-p194 install rupi --no-rdoc --no-ri"
55
+ pre :install, "#{RVM_PATH}/bin/gem-#{Rupi::RUBY_VERSION} install rupi --no-rdoc --no-ri"
54
56
  end
55
57
 
56
58
  verify do
57
- has_executable "#{RVM_PATH}/gems/ruby-1.9.3-p194/bin/rupi"
59
+ has_executable "#{RVM_PATH}/gems/#{Rupi::RUBY_VERSION}/bin/rupi"
58
60
  has_executable 'uvccapture'
59
61
  end
60
62
  end
data/lib/rupi/version.rb CHANGED
@@ -1,3 +1,4 @@
1
1
  module Rupi
2
- VERSION = "0.2.2"
2
+ VERSION = '0.2.3'
3
+ RUBY_VERSION = 'ruby-1.9.3-p194'
3
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rupi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.2
4
+ version: 0.2.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: -3759034288693267139
93
+ hash: 3664424623779642478
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements:
@@ -99,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
99
99
  version: '0'
100
100
  segments:
101
101
  - 0
102
- hash: -3759034288693267139
102
+ hash: 3664424623779642478
103
103
  requirements: []
104
104
  rubyforge_project:
105
105
  rubygems_version: 1.8.24