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: fce4585c0bf4fe1f49d30702d96da1fb76a635ed
4
- data.tar.gz: 0acefe84b92101c0ae53e1721de5895957a2aa0b
3
+ metadata.gz: a1ac050b69b5ac0a389d55366947857892851e87
4
+ data.tar.gz: ccd633bb48af7e3100da72aeb567f7d14e90b01c
5
5
  SHA512:
6
- metadata.gz: 73157fb5db609f26e479bc27ad2f0f39fe789aafb90485e3d162d69e3f1cd7d4d57195d2335f99b9dd9696df6e0fc1c8beb4b05e3107252d486dbaa6ca01a9b2
7
- data.tar.gz: 80668100c8d0729972e531314c11bb8f6bbf0fc7ee97dabec6b305617b698ebac78692e2fb60a16a222bddd140dfb07af29026e59bf35558b0320d34f1e9730c
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.run_applescript` should be private but now all of a sudden
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.run_applescript` should be private but now all of a sudden
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)
@@ -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!
@@ -1,6 +1,6 @@
1
1
  require 'shellwords'
2
2
 
3
- require_relative 'lib/test_requires.rb'
3
+ require_relative 'lib/test_setup'
4
4
 
5
5
  task default: ['logger:tests']
6
6
 
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"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: repla
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roben Kleene