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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a03150cd244199e4843e871871abb7aae51ead2b
4
- data.tar.gz: 6042edbd40938c98273d56462fa59993da082b9a
3
+ metadata.gz: 0df35720b457bc153c6ce73171b09833632ebe57
4
+ data.tar.gz: 47a5c5c468c155791720fad312044897b78fc92f
5
5
  SHA512:
6
- metadata.gz: b608d9d79057ff6b8934c2ee3821b11dff481d1a397c1c3ec20d489548be3fe476a13b2283328d265cf88dc56fc1d15bdc0a7f93becfe9997ee6f3a325ba8462
7
- data.tar.gz: 86c2eed7559872cc9037991acd2b3d76c97c91b22448bfa9770828ae7440d0a3af28261ee5bb9f1a6f5c64153faccfd96c7dde87302b8bd9e4af72a44bd46fdc
6
+ metadata.gz: b12d87fa3683f4dd3675a0f2aadde684f77ce83a7f16a3cbcea206123ef99c03bae331346ab6be45e452e12ac15d0b3f9b20ddadb6de22fa820267fb476fdc7b
7
+ data.tar.gz: 7b4abfaa46aff7ba1ccd27b5c29ed1689d2ec932bbf97b55fad9b05ab35f294a3b3846398f361bc3fefb5cc8d86cd617f9343ff3296af52c41927a9f4fa7b324
@@ -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
- ChromeManifest.write
36
- say "Chrome Native Messaging Hook installed for Newline Assistant", :green
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",
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module NewlineHw
2
- VERSION = "1.1.4".freeze
2
+ VERSION = "1.1.5".freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: newline_hw
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Russell Osborne