newline_hw 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/newline_hw/chrome_manifest.rb +5 -0
- data/lib/newline_hw/cli.rb +14 -0
- data/lib/newline_hw/version.rb +1 -1
- data/lib/newline_hw.rb +5 -0
- data/newline_hw.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a12b7454cc2d57fdb167c98c6178ee4536725be3
|
4
|
+
data.tar.gz: 1ba05bc62d6a5b05b8258e2c9c70ecf72aff7626
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f4a98c75fd429f4f5d2500bb5c407dd7caee0dedc6fdbd9f125e27f08129653fea8241ea2d098e7715fa72c9e20ba688183c39aa348e7d100a54bc6437f1e17
|
7
|
+
data.tar.gz: 39c939422e2d3e6bb83ad04413fd51765a2e4298005684211cfcb815c5bccb79126e7afedaf81563df0344c00a7ef9e3f2c05a1672ca7754346e6393f338708a
|
data/README.md
CHANGED
@@ -34,6 +34,11 @@ module NewlineHw
|
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
|
+
def remove
|
38
|
+
return unless File.file?(native_messaging_manifest_path)
|
39
|
+
FileUtils.rm native_messaging_manifest_path
|
40
|
+
end
|
41
|
+
|
37
42
|
private def create_native_messaging_manifest_directory
|
38
43
|
return if Dir.exist?(File.dirname(native_messaging_manifest_path))
|
39
44
|
Dir.mkdir(File.dirname(native_messaging_manifest_path))
|
data/lib/newline_hw/cli.rb
CHANGED
@@ -31,6 +31,20 @@ module NewlineHw
|
|
31
31
|
say "Chrome Native Messaging Hook installed for Newline Assistant", :green
|
32
32
|
end
|
33
33
|
|
34
|
+
desc "remove chrome adaptor, and log files",
|
35
|
+
"purge related files "
|
36
|
+
def uninstall
|
37
|
+
NewlineHw.remove_log_directory
|
38
|
+
say "Chrome Messaging Logs REMOVED", :green
|
39
|
+
ChromeManifest.remove
|
40
|
+
say "Chrome Native Messaging Hook REMOVED", :green
|
41
|
+
say "Finish uninstall with these commands"
|
42
|
+
say ""
|
43
|
+
say " rm #{NewlineHw::Config::CONFIG_PATH}"
|
44
|
+
say " gem uninstall newline_hw --executables"
|
45
|
+
say ""
|
46
|
+
end
|
47
|
+
|
34
48
|
desc "setup SUBMISSION_ID",
|
35
49
|
"generate a shell command to clone and setup a given SUBMISSION_ID"
|
36
50
|
option :editor
|
data/lib/newline_hw/version.rb
CHANGED
data/lib/newline_hw.rb
CHANGED
@@ -31,4 +31,9 @@ module NewlineHw
|
|
31
31
|
return if Dir.exist?(File.dirname(NewlineHw.logfile))
|
32
32
|
Dir.mkdir(File.dirname(NewlineHw.logfile))
|
33
33
|
end
|
34
|
+
|
35
|
+
def remove_log_directory
|
36
|
+
return unless Dir.exist?(File.dirname(NewlineHw.logfile))
|
37
|
+
FileUtils.remove_dir(File.dirname(NewlineHw.logfile))
|
38
|
+
end
|
34
39
|
end
|
data/newline_hw.gemspec
CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
|
|
29
29
|
spec.add_dependency "activesupport"
|
30
30
|
spec.add_dependency "json"
|
31
31
|
spec.add_dependency "thor", "~> 0.19.1"
|
32
|
-
spec.add_dependency "newline_cli", "
|
32
|
+
spec.add_dependency "newline_cli", ">= 0.2.5"
|
33
33
|
|
34
34
|
spec.add_development_dependency "bundler", "~> 1.11"
|
35
35
|
spec.add_development_dependency "rake", "~> 10.0"
|
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
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Osborne
|
@@ -56,16 +56,16 @@ dependencies:
|
|
56
56
|
name: newline_cli
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version:
|
61
|
+
version: 0.2.5
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version:
|
68
|
+
version: 0.2.5
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: bundler
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|