repla 0.5.2 → 0.5.3
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a1ac050b69b5ac0a389d55366947857892851e87
|
4
|
+
data.tar.gz: ccd633bb48af7e3100da72aeb567f7d14e90b01c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326637f60cdee716c288e96afe72a3794a86307b86bec8c83498d1e4a13db804b48426fdc3e5c6f08b9745860efece0886d8e37bc144fbc3e0c79a0f5db832dc
|
7
|
+
data.tar.gz: 2ac6e794f86622719f65375e14f38a9ade05b29109099b578864086669560fc2752cb2045fbd670b3b0cf57759a7d8f983715a0bfb7af4ec3c9f924ea49bef37
|
@@ -20,7 +20,7 @@ module Repla
|
|
20
20
|
@view.add_missing_dependency(name, type, installation_instructions)
|
21
21
|
end
|
22
22
|
|
23
|
-
# TODO: `self.
|
23
|
+
# TODO: `self.string_for_type` should be private but now all of a sudden
|
24
24
|
# instances method can't call private class methods?
|
25
25
|
def self.string_for_type(type)
|
26
26
|
case type
|
@@ -11,8 +11,8 @@ module Repla
|
|
11
11
|
|
12
12
|
require 'shellwords'
|
13
13
|
|
14
|
-
# TODO: `self.
|
15
|
-
# instances method can't call private class methods?
|
14
|
+
# TODO: `self.check_shell_command` should be private but now all of a
|
15
|
+
# sudden instances method can't call private class methods?
|
16
16
|
def self.check_shell_command(name)
|
17
17
|
command = "type -a #{Shellwords.escape(name)} > /dev/null 2>&1"
|
18
18
|
system(command)
|
data/lib/repla/lib/module.rb
CHANGED
@@ -5,6 +5,11 @@ require_relative 'escape'
|
|
5
5
|
module Repla
|
6
6
|
using Escape
|
7
7
|
|
8
|
+
@debug = false
|
9
|
+
class << self
|
10
|
+
attr_accessor :debug
|
11
|
+
end
|
12
|
+
|
8
13
|
LOAD_PLUGIN_SCRIPT = File.join(APPLESCRIPT_DIRECTORY, 'load_plugin.scpt')
|
9
14
|
def self.load_plugin(path)
|
10
15
|
run_applescript(LOAD_PLUGIN_SCRIPT, [path])
|
@@ -82,6 +87,7 @@ module Repla
|
|
82
87
|
end.join(' ')
|
83
88
|
end
|
84
89
|
|
90
|
+
puts command if @debug
|
85
91
|
result = `#{command}`
|
86
92
|
|
87
93
|
result.chomp!
|
data/lib/repla/logger.rb
CHANGED
@@ -58,7 +58,8 @@ module Repla
|
|
58
58
|
|
59
59
|
private
|
60
60
|
|
61
|
-
READ_FROM_STANDARD_INPUT_SCRIPT = File.join(APPLESCRIPT_DIRECTORY
|
61
|
+
READ_FROM_STANDARD_INPUT_SCRIPT = File.join(APPLESCRIPT_DIRECTORY,
|
62
|
+
'read_from_standard_input.scpt')
|
62
63
|
def log_message(message)
|
63
64
|
message.rstrip!
|
64
65
|
message += "\n"
|