mineshaft 1.1.0 → 1.1.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
  SHA1:
3
- metadata.gz: 3ba4556a8921cc75e09cbaccf0d8aa5d9159861a
4
- data.tar.gz: 96243ff6d1ee7ba0333a1a8627fd69f3709bcf62
3
+ metadata.gz: 5498a42fdca3c2ac587f7753adad5e4c306ed106
4
+ data.tar.gz: 616ffcfbce71339a756201864aad4d6846ecab8b
5
5
  SHA512:
6
- metadata.gz: f9d91dc8878d550169934585bc9ecb5079ac9cc09cead3e98a34dec5c2d77bc31aaa5685e45265f3703cb8e77a33cdd1d0e6f9198b67085a95cbb4e3afe27b09
7
- data.tar.gz: 7e945bd43f5f1125d68cd8c1e8e57004d05248f070f52a103078268891a76fe5458d1f67663f097693e52ea3116755788dc8c97f6dbdca19b88716bc4673245b
6
+ metadata.gz: d6e65df8eb91306b285311d5c0ddf388f47c8099083d9eafd50f585372d0551d201848dbbb1397918fa5e8b7c2791abbe0a244f42a72d2cf56d33f23c288d4e9
7
+ data.tar.gz: 6a64e4ca4f08fde622e8afde7521d587aadeb3e2a8899308e2b59d87446e93cc27c820de51cd2f2f7d141fb2557f9ed6d254a5de75787c36c2fdbf8530288605
@@ -19,13 +19,13 @@ module Mineshaft
19
19
 
20
20
  def create
21
21
  script_path = File.join(@dir, "bin/activate.sh")
22
- script_path.chmod(0755)
23
22
  File.truncate(script_path, 0) if File.exist?(script_path)
24
23
  @template_file.each do |line|
25
24
  File.open(script_path, "a") do |file|
26
25
  file.write(render(line))
27
26
  end
28
27
  end
28
+ File.chmod(0755, script_path)
29
29
  end
30
30
 
31
31
  private
@@ -0,0 +1,7 @@
1
+ module Mineshaft
2
+ module Date
3
+ def self.prepend_zero(number)
4
+ "%02d" % number
5
+ end
6
+ end
7
+ end
@@ -7,6 +7,7 @@
7
7
  # Copyright (c) 2017 Cameron Testerman
8
8
 
9
9
  require 'fileutils'
10
+ require 'yaml'
10
11
 
11
12
  module Mineshaft
12
13
  class Environment
@@ -7,5 +7,5 @@
7
7
  # Copyright (c) 2017 Cameron Testerman
8
8
 
9
9
  module Mineshaft
10
- VERSION = "1.1.0"
10
+ VERSION = "1.1.1"
11
11
  end
@@ -5,4 +5,22 @@
5
5
  2.4.2: https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.2.tar.gz
6
6
  2.4.1: https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.1.tar.gz
7
7
  2.4.0: https://cache.ruby-lang.org/pub/ruby/2.4/ruby-2.4.0.tar.gz
8
+ 2.3.6: https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.6.tar.gz
8
9
  2.3.5: https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.5.tar.gz
10
+ 2.3.3: https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.3.tar.gz
11
+ 2.3.2: https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.2.tar.gz
12
+ 2.3.1: https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.1.tar.gz
13
+ 2.3.0: https://cache.ruby-lang.org/pub/ruby/2.3/ruby-2.3.0.tar.gz
14
+ 2.2.9: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.9.tar.gz
15
+ 2.2.8: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.8.tar.gz
16
+ 2.2.7: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.7.tar.gz
17
+ 2.2.6: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.6.tar.gz
18
+ 2.2.5: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.5.tar.gz
19
+ 2.2.4: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.4.tar.gz
20
+ 2.2.3: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.3.tar.gz
21
+ 2.2.2: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.2.tar.gz
22
+ 2.2.1: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.1.tar.gz
23
+ 2.2.0: https://cache.ruby-lang.org/pub/ruby/2.2/ruby-2.2.0.tar.gz
24
+ 2.1.10: https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.10.tar.gz
25
+ 2.1.9: https://cache.ruby-lang.org/pub/ruby/2.1/ruby-2.1.9.tar.gz
26
+
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.1.0
4
+ version: 1.1.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: 2017-12-25 00:00:00.000000000 Z
11
+ date: 2018-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -35,6 +35,7 @@ files:
35
35
  - environment/activate.sh.erb
36
36
  - lib/mineshaft.rb
37
37
  - lib/mineshaft/activate.rb
38
+ - lib/mineshaft/date.rb
38
39
  - lib/mineshaft/environment.rb
39
40
  - lib/mineshaft/installer.rb
40
41
  - lib/mineshaft/shell.rb