phut 0.6.10 → 0.6.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 95b1022634196b51441c74b2b389adbfb5993a28
4
- data.tar.gz: a0e03c0b2f250b3011d44fae5c00179aae2c9b0d
3
+ metadata.gz: 5e5e604f7bc0d9963062f263ad70e787deecffbb
4
+ data.tar.gz: 9833f795bbfebd0d68dab1965573732b6dae5185
5
5
  SHA512:
6
- metadata.gz: 6a29919f40669d78c970d6c27c08cd252076f9ed4c5455ef926b574e6f9c04c05bd7dc1f07cbd7bccefdb017c79b42d73b52d6cb4706c616aa571d5780030da6
7
- data.tar.gz: 58e9368f5fe1a43d78a48409c0128dfe23263836529cbdea03911a2bd73feb0b1321ca92762f667f47fe02ae43501c17f83f048f248846eb4a28cb4b6956e979
6
+ metadata.gz: 1d6cd03b04fb8e68d211d99f26c315311bead73316c99824537570799a99930e75c72cfa58b03496c71a0675e41a05fb97873cb2d8c5d161658a47733c3a541b
7
+ data.tar.gz: 853ecb0045dce1c0784b7d1b53c42863650dd501793d1679e4053399134639712324d3d56e4549f7bdbd72a08f60aadf5babf48da448d5b88b57659bf1e889b0
@@ -3,6 +3,11 @@
3
3
  ## develop (unreleased)
4
4
 
5
5
 
6
+ ## 0.6.11 (9/29/2015)
7
+ ### Changes
8
+ * [#30](https://github.com/trema/phut/issues/30): Support apt-installed rubies.
9
+
10
+
6
11
  ## 0.6.10 (9/16/2015)
7
12
  ### Changes
8
13
  * Pio 0.27.0.
data/bin/phut CHANGED
@@ -1,5 +1,9 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ Bundler.setup :default
6
+
3
7
  require 'gli'
4
8
  require 'logger'
5
9
  require 'phut'
data/bin/vhost CHANGED
@@ -1,5 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
- $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
2
+
3
+ require 'rubygems'
4
+ require 'bundler'
5
+ Bundler.setup :default
3
6
 
4
7
  require 'gli'
5
8
  require 'phut'
@@ -1,4 +1,4 @@
1
1
  # Base module.
2
2
  module Phut
3
- VERSION = '0.6.10'
3
+ VERSION = '0.6.11'
4
4
  end
@@ -31,7 +31,12 @@ module Phut
31
31
 
32
32
  def run(all_hosts = [])
33
33
  @all_hosts ||= all_hosts
34
- sh "rvmsudo vhost run #{run_options}"
34
+ if ENV['rvm_path']
35
+ sh "rvmsudo vhost run #{run_options}"
36
+ else
37
+ vhost = File.join(__dir__, '..', '..', 'bin', 'vhost')
38
+ sh "bundle exec sudo #{vhost} run #{run_options}"
39
+ end
35
40
  end
36
41
 
37
42
  def stop
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: phut
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.10
4
+ version: 0.6.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Yasuhito Takamiya
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-09-16 00:00:00.000000000 Z
11
+ date: 2015-09-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gli
@@ -403,7 +403,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
403
403
  version: '0'
404
404
  requirements: []
405
405
  rubyforge_project:
406
- rubygems_version: 2.4.7
406
+ rubygems_version: 2.0.14
407
407
  signing_key:
408
408
  specification_version: 4
409
409
  summary: Virtual network in seconds.