mineshaft 1.3.0 → 1.3.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b30581057abe984393236748d8117ed139bb0112a0b9b634188aa977a8de1b76
4
- data.tar.gz: 70f6a4ad94881a580d65917bd3efbfd01a36ab8989003581703a350cb5a42574
3
+ metadata.gz: 8b104d3b2def4c4b71268faabd0f7a2028b0b862f3f3bcecb3a32d53315edbdf
4
+ data.tar.gz: 77d103dc0279c2531d14a666340174d6e22d7505594f56b9e88c40e28a4b6211
5
5
  SHA512:
6
- metadata.gz: 7116a66b8da3b4eef585bfe988cf8b5d3c32466b8e20f0d12d8041fc193af7a9278dd09592c428fef708e22a7513b186c0134242dd2f7539d9c0b46e300876ae
7
- data.tar.gz: 4ae161bd910ac9278c0c0cb6e42e413b6990f5373a4892a5ca78b39887df6f25e2ea91e3cf693ab94dd133f195f88ae0505a1e2654e53dd628d431f27c7f1b7d
6
+ metadata.gz: 5b57e354064243ab9c4ff9e0d5025232786b97ef48f09ae5dd14ea1c066ff06ee9471a9716a0be2e7555a8edeea1b27905e826e4a6aa4e26e2d7864d963d1146
7
+ data.tar.gz: a341ea1af7bf02fbdde68ef492942d5fc967fc6ef7d56332ed350f7f5ee1d3fd5108238f1668ff94cd062b7f17a8eecf4f522b1e25fb9d3429db1ee9100ad3ef
data/bin/mineshaft CHANGED
@@ -65,5 +65,5 @@ parser = OptionParser.new do |opts|
65
65
  end
66
66
 
67
67
  parser.parse!
68
- Mineshaft.reload_binaries
68
+ Mineshaft.reload_binaries if reload
69
69
  Mineshaft::Environment.new(new_arg, options).create if new_env
@@ -5,6 +5,7 @@
5
5
  # created:: 2017-10-26 8:46PM
6
6
  #
7
7
  # Copyright (c) 2017-2018 Cameron Testerman
8
+
8
9
  require 'erb'
9
10
 
10
11
  module Mineshaft
@@ -19,13 +20,15 @@ module Mineshaft
19
20
 
20
21
  def create
21
22
  script_path = File.join(@dir, "bin/activate.sh")
22
- File.chmod(0755, script_path)
23
23
  File.truncate(script_path, 0) if File.exist?(script_path)
24
+
24
25
  @template_file.each do |line|
25
26
  File.open(script_path, "a") do |file|
26
27
  file.write(render(line))
27
28
  end
28
29
  end
30
+
31
+ File.chmod(0755, script_path)
29
32
  end
30
33
 
31
34
  private
@@ -85,7 +85,7 @@ module Mineshaft
85
85
  end
86
86
 
87
87
  def configure_options(prefix)
88
- config = "./configure --prefix #{@directory}"
88
+ config = @global ? "./configure --prefix #{@directory}" : "./configure --prefix #{File.expand_path(@directory)}"
89
89
  config << " --with-openssl-dir=#{@options[:openssl_dir]}"
90
90
  end
91
91
 
@@ -7,5 +7,5 @@
7
7
  # Copyright (c) 2017-2018 Cameron Testerman
8
8
 
9
9
  module Mineshaft
10
- VERSION = "1.3.0"
10
+ VERSION = "1.3.1"
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mineshaft
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.0
4
+ version: 1.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cameron Testerman
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-07-03 00:00:00.000000000 Z
11
+ date: 2018-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -64,7 +64,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
64
64
  version: '0'
65
65
  requirements: []
66
66
  rubyforge_project:
67
- rubygems_version: 2.7.6
67
+ rubygems_version: 3.0.0.beta1
68
68
  signing_key:
69
69
  specification_version: 4
70
70
  summary: Ruby virtual environment manager