newline_hw 1.1.3 → 1.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/newline_hw/cli.rb +7 -2
- data/lib/newline_hw/stream_command_handler.rb +4 -3
- data/lib/newline_hw/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a03150cd244199e4843e871871abb7aae51ead2b
|
4
|
+
data.tar.gz: 6042edbd40938c98273d56462fa59993da082b9a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b608d9d79057ff6b8934c2ee3821b11dff481d1a397c1c3ec20d489548be3fe476a13b2283328d265cf88dc56fc1d15bdc0a7f93becfe9997ee6f3a325ba8462
|
7
|
+
data.tar.gz: 86c2eed7559872cc9037991acd2b3d76c97c91b22448bfa9770828ae7440d0a3af28261ee5bb9f1a6f5c64153faccfd96c7dde87302b8bd9e4af72a44bd46fdc
|
data/lib/newline_hw/cli.rb
CHANGED
@@ -16,16 +16,21 @@ module NewlineHw
|
|
16
16
|
def install
|
17
17
|
NewlineHw::Config.install_default
|
18
18
|
say "Installed a config file to `#{NewlineHw::Config::CONFIG_PATH}`"
|
19
|
-
|
19
|
+
install_chrome_hook
|
20
20
|
say ""
|
21
21
|
say ("*" * 30) + " YOU MUST!! Add this line to your shell profile " + ("*" * 30), :red
|
22
22
|
say '$ eval "$(newline_hw init)"'
|
23
23
|
say ("*" * 30), :red
|
24
24
|
end
|
25
25
|
|
26
|
+
desc "update related code", "it runs gem install and updates the chrome hook"
|
27
|
+
def update
|
28
|
+
`gem install newline_hw && newline_hw install_chrome_hook`
|
29
|
+
end
|
30
|
+
|
26
31
|
desc "install chrome adapter",
|
27
32
|
"will setup a logging file and a chrome manifest to allow this app to be communicated to by the newline-assistant chrome extension."
|
28
|
-
def
|
33
|
+
def install_chrome_hook
|
29
34
|
NewlineHw.make_log_directory
|
30
35
|
ChromeManifest.write
|
31
36
|
say "Chrome Native Messaging Hook installed for Newline Assistant", :green
|
@@ -34,11 +34,12 @@ module NewlineHw
|
|
34
34
|
status: :ok,
|
35
35
|
message_at: message_at,
|
36
36
|
data: {
|
37
|
-
|
37
|
+
newline_hw_version: NewlineHw::VERSION,
|
38
38
|
newline_cli_version: NewlineCli::VERSION,
|
39
39
|
ruby_version: RUBY_VERSION,
|
40
|
-
|
41
|
-
|
40
|
+
newline_hw_config_path: Config::CONFIG_PATH,
|
41
|
+
newline_hw_path: NewlineHw.root_path,
|
42
|
+
newline_hw_config: Config.new.config
|
42
43
|
}
|
43
44
|
}
|
44
45
|
end
|
data/lib/newline_hw/version.rb
CHANGED
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.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Russell Osborne
|
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
182
182
|
version: '0'
|
183
183
|
requirements: []
|
184
184
|
rubyforge_project:
|
185
|
-
rubygems_version: 2.
|
185
|
+
rubygems_version: 2.5.2
|
186
186
|
signing_key:
|
187
187
|
specification_version: 4
|
188
188
|
summary: Quickly Clone and setup basic ruby and JS projects.
|