hem 1.0.1.beta3 → 1.0.1.beta4
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.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/hem/version.rb +1 -1
- data/lib/hem.rb +0 -1
- metadata +1 -2
- data/lib/hem/lib/host_check/ruby.rb +0 -53
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a8a0d2321381353eb8669c12174ae9cb85452e8f
|
|
4
|
+
data.tar.gz: eb2a214c9b48bf643e44cada533ca050b1c2b679
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e0c8293b22d916be773aee652d1e65c0d2efbe55b821ba72bfa24c5e3170319527bfe78989bf8dd03b95b9bdcf743341fc6f9b7509e26069e02b8a6606c2be49
|
|
7
|
+
data.tar.gz: 2a144ebfad25614d238f115853448c5f0c0c229420a8c6e900152dea8aab76dfb3669ac9c7b927e482c3545b1916319cbb88c8bc459b4a2a1828f00ad0306b53
|
data/Gemfile.lock
CHANGED
data/lib/hem/version.rb
CHANGED
data/lib/hem.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hem
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.0.1.
|
|
4
|
+
version: 1.0.1.beta4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Simons
|
|
@@ -217,7 +217,6 @@ files:
|
|
|
217
217
|
- lib/hem/lib/host_check.rb
|
|
218
218
|
- lib/hem/lib/host_check/deps.rb
|
|
219
219
|
- lib/hem/lib/host_check/git.rb
|
|
220
|
-
- lib/hem/lib/host_check/ruby.rb
|
|
221
220
|
- lib/hem/lib/host_check/vagrant.rb
|
|
222
221
|
- lib/hem/lib/local/command.rb
|
|
223
222
|
- lib/hem/lib/s3/local/file.rb
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
module Hem
|
|
2
|
-
module Lib
|
|
3
|
-
module HostCheck
|
|
4
|
-
def not_using_system_ruby opts
|
|
5
|
-
return if Hem.windows?
|
|
6
|
-
advice = <<-EOF
|
|
7
|
-
You're using a system ruby install which can cause issues with installing Gems and running some older projects.
|
|
8
|
-
|
|
9
|
-
rbenv is HIGHLY recommended.
|
|
10
|
-
|
|
11
|
-
You can install it with the following command:
|
|
12
|
-
curl https://raw.github.com/fesplugas/rbenv-installer/master/bin/rbenv-installer | bash
|
|
13
|
-
|
|
14
|
-
Once installed, run the following to set it as the default ruby and re-install hem-inviqa:
|
|
15
|
-
rbenv install 1.9.3-p448 && rbenv global 1.9.3-448 && gem install hem-inviqa
|
|
16
|
-
EOF
|
|
17
|
-
require "rbconfig"
|
|
18
|
-
which = File.join(RbConfig::CONFIG["bindir"], RbConfig::CONFIG["ruby_install_name"])
|
|
19
|
-
unless which =~ /\.rbenv|\.rvm|jruby/
|
|
20
|
-
raise Hem::HostCheckError.new("Hem is running under a system ruby", advice)
|
|
21
|
-
end
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
def system_paths_for_ruby opts
|
|
25
|
-
return if Hem.windows?
|
|
26
|
-
|
|
27
|
-
advice = <<-EOF
|
|
28
|
-
The ordering of your system paths may cause a problem with Gems.
|
|
29
|
-
|
|
30
|
-
Unfortunately we can't automatically fix this for you at this time.
|
|
31
|
-
|
|
32
|
-
Please seek assistance.
|
|
33
|
-
|
|
34
|
-
Your paths were detected as:
|
|
35
|
-
|
|
36
|
-
#{ENV['PATH'].split(':').join("\n")}
|
|
37
|
-
EOF
|
|
38
|
-
|
|
39
|
-
paths = ENV['PATH'].split(':')
|
|
40
|
-
system_path_found = false
|
|
41
|
-
ruby_path_found = false
|
|
42
|
-
paths.each do |path|
|
|
43
|
-
system_before_ruby = system_path_found && !ruby_path_found
|
|
44
|
-
ruby_after_system = path =~ /\.rbenv|\.rvm/ && system_path_found
|
|
45
|
-
raise Hem::HostCheckError.new("System paths appear to be mis-ordered", advice) if system_before_ruby or ruby_after_system
|
|
46
|
-
|
|
47
|
-
ruby_path_found = true if path =~ /\.rbenv|\.rvm/
|
|
48
|
-
system_path_found = true if path =~ /\/usr\/bin|\/usr\/local\/bin/
|
|
49
|
-
end
|
|
50
|
-
end
|
|
51
|
-
end
|
|
52
|
-
end
|
|
53
|
-
end
|