lazy_navigator 1.5.0 → 2.0.0
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/Gemfile.lock +1 -1
- data/README.md +13 -6
- data/lib/entities/generator.rb +2 -2
- data/lib/lazy_navigator/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48a97a0c56673ea2d73fbaa8a98e8f54aa5483637aab2b89887220058aaae3e8
|
4
|
+
data.tar.gz: e617246f4d267430ac038eb01a7cb0fb5bb7bbe874866c52cbe5a48c79399481
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 706f5cbbbecde81c5ae979adcbb51c93fd5cd05f142825ab02c1175bfca65fb2c30787aed8265f43f19a0ec35dbaae59837dc872bed461d5e8decdf55352380a
|
7
|
+
data.tar.gz: fb09add55298339879a56889e5bf2fd236b837226224fc94736e20fe0f4476a3b96342800b5e847e84a71e29d32a9f7fff59bb04b0ed90a1300ed1551ffc1897
|
data/Gemfile.lock
CHANGED
data/README.md
CHANGED
@@ -1,12 +1,13 @@
|
|
1
|
-
[](https://circleci.com/gh/IgorShkidchenko/lazy_navigator/tree/master) [](https://codeclimate.com/github/IgorShkidchenko/lazy_navigator/maintainability)
|
1
|
+
[](https://circleci.com/gh/IgorShkidchenko/lazy_navigator/tree/master) [](https://codeclimate.com/github/IgorShkidchenko/lazy_navigator/maintainability) [](https://badge.fury.io/rb/lazy_navigator)
|
2
2
|
# LazyNavigator
|
3
|
-
###### Gem that generates bash script which opens
|
3
|
+
###### Gem that generates bash script which opens your IDE and terminal in last project folder(which you point out in constant), and if you want executes some additional bash commands, after that script closes old terminal
|
4
4
|
|
5
5
|
## Installation
|
6
|
+
```~$ cd ~```
|
7
|
+
|
6
8
|
``` $ gem install lazy_navigator ```
|
7
9
|
|
8
10
|
##### create scripts files by runnig this commands in your terminal:
|
9
|
-
```~$ cd ~```
|
10
11
|
|
11
12
|
```~$ irb```
|
12
13
|
|
@@ -19,13 +20,19 @@
|
|
19
20
|
##### then edit constants in generated lazy_navigator/last_project.rb file
|
20
21
|
PATH_TO_LAST_PROJECT = 'your last project path'
|
21
22
|
|
22
|
-
IDE = your ide name in bash
|
23
|
+
IDE = your ide name in bash, for example Visual Studio Code = 'code'
|
23
24
|
## Usage
|
24
25
|
|
25
26
|
in your home folder run
|
26
27
|
|
27
28
|
```~$ ./l```
|
28
|
-
##### also you can pass argument command: in lead method which
|
29
|
-
for example:
|
29
|
+
##### also you can pass argument 'command:' in lead method which executes bash command in opening terminal
|
30
|
+
for example:
|
31
|
+
```LazyNavigator::Opener.lead(path: PATH_TO_LAST_PROJECT, ide: IDE, command: 'echo hello world')```
|
32
|
+
|
33
|
+
##### if you want you can add this script to autoload when OS starts up
|
34
|
+
|
35
|
+
https://askubuntu.com/questions/228304/how-do-i-run-a-script-at-start-up
|
36
|
+
|
30
37
|
## License
|
31
38
|
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/lib/entities/generator.rb
CHANGED
@@ -7,8 +7,8 @@ module LazyNavigator
|
|
7
7
|
RUBY_SCRIPT_NAME = 'last_project.rb'.freeze
|
8
8
|
TEXT_FOR_BASH = "#!/bin/bash\nruby lazy_navigator/last_project.rb\nkill -9 $PPID".freeze
|
9
9
|
TEXT_FOR_RUBY = "require 'lazy_navigator'\n\nPATH_TO_LAST_PROJECT = 'RubyGarage/codebreaker <-- change me'
|
10
|
-
\
|
11
|
-
\nLazyNavigator::Opener.lead(path: PATH_TO_LAST_PROJECT, ide:
|
10
|
+
\nIDE = nil # your ide name in bash, for example Visual Studio Code = 'code'
|
11
|
+
\nLazyNavigator::Opener.lead(path: PATH_TO_LAST_PROJECT, ide: IDE)".freeze
|
12
12
|
|
13
13
|
class << self
|
14
14
|
def generate_script(folder = 'lazy_navigator')
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lazy_navigator
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- IgorShkidchenko
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-12-
|
11
|
+
date: 2018-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|