lazy_navigator 1.5.0 → 2.0.0

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
  SHA256:
3
- metadata.gz: c24d8de358db52d4b3bfc190c4c70abbbb53d95abcf0b45bb9c329445fc0f873
4
- data.tar.gz: '09dc70376929d43e36c43b50c80d7c54f9ca9f4373f339eed647582d33fa7402'
3
+ metadata.gz: 48a97a0c56673ea2d73fbaa8a98e8f54aa5483637aab2b89887220058aaae3e8
4
+ data.tar.gz: e617246f4d267430ac038eb01a7cb0fb5bb7bbe874866c52cbe5a48c79399481
5
5
  SHA512:
6
- metadata.gz: e4c34605f8dab910af12a1f82f5470a1c7ea28f623ca31d3fe7ddea5ce07a95903ddd1144708df146114085823c2432ba449b1fb8345172843c801fbd5476832
7
- data.tar.gz: 11b55c0585b680ee7707d47e637003d889c1d7cac5a501774baf40a5e1bc5ee04f6e63cab78eb716fb98eb3bcf58bb316f69531fea6be135400995e98257d72f
6
+ metadata.gz: 706f5cbbbecde81c5ae979adcbb51c93fd5cd05f142825ab02c1175bfca65fb2c30787aed8265f43f19a0ec35dbaae59837dc872bed461d5e8decdf55352380a
7
+ data.tar.gz: fb09add55298339879a56889e5bf2fd236b837226224fc94736e20fe0f4476a3b96342800b5e847e84a71e29d32a9f7fff59bb04b0ed90a1300ed1551ffc1897
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lazy_navigator (1.5.0)
4
+ lazy_navigator (2.0.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -1,12 +1,13 @@
1
- [![CircleCI](https://circleci.com/gh/IgorShkidchenko/lazy_navigator/tree/master.svg?style=svg)](https://circleci.com/gh/IgorShkidchenko/lazy_navigator/tree/master) [![Maintainability](https://api.codeclimate.com/v1/badges/25e47f7e18c7de8dffbb/maintainability)](https://codeclimate.com/github/IgorShkidchenko/lazy_navigator/maintainability)
1
+ [![CircleCI](https://circleci.com/gh/IgorShkidchenko/lazy_navigator/tree/master.svg?style=svg)](https://circleci.com/gh/IgorShkidchenko/lazy_navigator/tree/master) [![Maintainability](https://api.codeclimate.com/v1/badges/25e47f7e18c7de8dffbb/maintainability)](https://codeclimate.com/github/IgorShkidchenko/lazy_navigator/maintainability) [![Gem Version](https://badge.fury.io/rb/lazy_navigator.svg)](https://badge.fury.io/rb/lazy_navigator)
2
2
  # LazyNavigator
3
- ###### Gem that generates bash script which opens terminal and your IDE in last project folder(which you point out in constant), and if you want executes some additional bash commands
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 execute bash command in opening terminal
29
- for example: .lead(path: PATH_TO_LAST_PROJECT, command: 'echo hello world')
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).
@@ -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
- \n#IDE = your ide name in bash, for example VSC = code
11
- \nLazyNavigator::Opener.lead(path: PATH_TO_LAST_PROJECT, ide: nil)".freeze
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')
@@ -1,3 +1,3 @@
1
1
  module LazyNavigator
2
- VERSION = '1.5.0'.freeze
2
+ VERSION = '2.0.0'.freeze
3
3
  end
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: 1.5.0
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-29 00:00:00.000000000 Z
11
+ date: 2018-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler