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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 006d1fcbcffa671ac54794cdedb9df83e7b59aa6
4
- data.tar.gz: 45198d4a1e3f9d9b7537a5c8e3a9f94b9fcf699f
3
+ metadata.gz: a12b7454cc2d57fdb167c98c6178ee4536725be3
4
+ data.tar.gz: 1ba05bc62d6a5b05b8258e2c9c70ecf72aff7626
5
5
  SHA512:
6
- metadata.gz: 5d6293df57b622eb50fa4d32a01b729361278faad0ad4b4180fbe20f9f153e92d8ca054de3f3e48bc34adeeff5ebaae5176c5dae6493fcbb58e09f34690e07dc
7
- data.tar.gz: 17777115ba1343f504f73bfebf19ff44bd85d691a4e89f26b21b81aab445c203e9615044749af2747b91505f270e6162e69f421e74f8ea6fde9476afe1e59877
6
+ metadata.gz: 7f4a98c75fd429f4f5d2500bb5c407dd7caee0dedc6fdbd9f125e27f08129653fea8241ea2d098e7715fa72c9e20ba688183c39aa348e7d100a54bc6437f1e17
7
+ data.tar.gz: 39c939422e2d3e6bb83ad04413fd51765a2e4298005684211cfcb815c5bccb79126e7afedaf81563df0344c00a7ef9e3f2c05a1672ca7754346e6393f338708a
data/README.md CHANGED
@@ -24,7 +24,7 @@ Once the the eval code has been added to your bash or zsh profile you will have
24
24
 
25
25
  `$ hw GIT_REPO`
26
26
 
27
- ### Examples
27
+ ### Examples
28
28
 
29
29
  Newline Assignment Submission ID
30
30
 
@@ -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))
@@ -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
@@ -1,3 +1,3 @@
1
1
  module NewlineHw
2
- VERSION = "1.1.1".freeze
2
+ VERSION = "1.1.2".freeze
3
3
  end
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", "~> 0.2"
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.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: '0.2'
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: '0.2'
68
+ version: 0.2.5
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
71
  requirement: !ruby/object:Gem::Requirement