makit 0.0.95 → 0.0.96

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: 552cf59eddccc29f5a6d77359a4699d10013f2c257d1779086222ab55d289723
4
- data.tar.gz: 8b6ca8107161627550181ac1c02ea80c63fda86fac03d9286fb16bd8ddbcb5b2
3
+ metadata.gz: c9775b6642c6ed49251d59f851963b4a9c2e8937e633a489b796cdb4a486bc98
4
+ data.tar.gz: 26a9502f348ef578282c93252d8be6ac6e77b4a5b2702881601fd9c05811b6d3
5
5
  SHA512:
6
- metadata.gz: f29f599b6dce86cbb74609e46b6136ad688389cc2b16c45326d8daa6fa9b781aad2464b667a3b43e9924117b9a1fd38c4e12dabe7117c14b0a9b2e67478d6b0d
7
- data.tar.gz: 2d971a04a07a21aaa6582c7c6bb38565955035002eb9fc2a3a48d0acd1107474ec82fd36f5cd917cafdf9547f8c2cfe713e07c9ee341f0a6648a4fbe957584fc
6
+ metadata.gz: 33182df26b92ce8f6e41d756423597f3f9596bf684c4e87ddc599f019eb1d849785f54ad591efb6df8016d4148eb0aa86931404f1370391fa6a13cb338a97298
7
+ data.tar.gz: cf58650edf4c8340429bb11a6719f04a6a3e550aab086018611e855c928a95a143610b51732f25d9f58caca96a745b57a62d6aa643a3755885cae60c30ff0833
@@ -66,26 +66,26 @@ class String
66
66
  end
67
67
  end
68
68
  def log(filename)
69
- puts "Logging to file: #{filename}"
69
+ #puts "Logging to file: #{filename}"
70
70
  # does the filename have a directory?
71
- if self.include?("/")
71
+ if filename.include?("/")
72
72
  # get the directory
73
- directory = self.split("/")[0..-2].join("/")
73
+ directory = File.dirname(filename)
74
74
  # create the directory
75
- puts "Creating directory: #{directory}"
75
+ #puts "Creating directory: #{directory}"
76
76
  FileUtils.mkdir_p(directory)
77
77
  end
78
78
  command = self
79
79
 
80
80
  cmd = Makit::RUNNER.run(Makit::RUNNER::parse_command_request(command))
81
81
  # write the cmd output and error to the file
82
- puts "Writing to file: #{filename}"
82
+ #puts "Writing to file: #{filename}"
83
83
  File.write(filename, cmd.output + cmd.error)
84
84
 
85
85
  # display the summary of the command
86
- puts "Command: #{command}"
87
- puts "Output: #{cmd.output}"
88
- puts "Error: #{cmd.error}"
86
+ #puts "Command: #{command}"
87
+ #puts "Output: #{cmd.output}"
88
+ #puts "Error: #{cmd.error}"
89
89
  Makit::RUNNER.show_command(cmd)
90
90
  end
91
91
 
data/lib/makit/version.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Makit
4
- VERSION = "0.0.95"
4
+ VERSION = "0.0.96"
5
5
 
6
6
  class Version
7
7
  # given an array of version strings, return the highest version
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: makit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.95
4
+ version: 0.0.96
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lou Parslow