newline_hw 1.1.4 → 1.1.5
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 +4 -4
- data/lib/newline_hw/cli.rb +9 -2
- data/lib/newline_hw/shell/run.rb +2 -0
- data/lib/newline_hw/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0df35720b457bc153c6ce73171b09833632ebe57
|
4
|
+
data.tar.gz: 47a5c5c468c155791720fad312044897b78fc92f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b12d87fa3683f4dd3675a0f2aadde684f77ce83a7f16a3cbcea206123ef99c03bae331346ab6be45e452e12ac15d0b3f9b20ddadb6de22fa820267fb476fdc7b
|
7
|
+
data.tar.gz: 7b4abfaa46aff7ba1ccd27b5c29ed1689d2ec932bbf97b55fad9b05ab35f294a3b3846398f361bc3fefb5cc8d86cd617f9343ff3296af52c41927a9f4fa7b324
|
data/lib/newline_hw/cli.rb
CHANGED
@@ -32,8 +32,15 @@ module NewlineHw
|
|
32
32
|
"will setup a logging file and a chrome manifest to allow this app to be communicated to by the newline-assistant chrome extension."
|
33
33
|
def install_chrome_hook
|
34
34
|
NewlineHw.make_log_directory
|
35
|
-
|
36
|
-
|
35
|
+
begin
|
36
|
+
ChromeManifest.write
|
37
|
+
say "Chrome Native Messaging Hook installed for Newline Assistant", :green
|
38
|
+
rescue Errno::EACCES => e
|
39
|
+
path = "~/Library/Application Support/Google/Chrome/NativeMessagingHosts/com.theironyard.newlinecli.hw.json"
|
40
|
+
say "Could NOT add chrome native messaging hook please check permissions for #{path} and that containing folder exists with 0600 permissions.", :red
|
41
|
+
say "*" * 80
|
42
|
+
say "Error Message: #{e.message}"
|
43
|
+
end
|
37
44
|
end
|
38
45
|
|
39
46
|
desc "remove chrome adaptor, and log files",
|
data/lib/newline_hw/shell/run.rb
CHANGED
@@ -6,6 +6,8 @@ module NewlineHw
|
|
6
6
|
module Shell
|
7
7
|
##
|
8
8
|
# Generate a series of language specfic commands to start a project up
|
9
|
+
# This command will only be generated if the setup commands exectueded succesfully.
|
10
|
+
# It is safe to assume all files and folders are present a time of execution.
|
9
11
|
class Run
|
10
12
|
attr_reader :pwd, :config
|
11
13
|
def initialize(pwd, config)
|
data/lib/newline_hw/version.rb
CHANGED