prj 1.0.2 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +1 -8
- data/Gemfile.lock +36 -20
- data/README.md +8 -2
- data/VERSION +1 -1
- data/bin/prj +0 -1
- data/lib/prj/app.rb +1 -1
- data/lib/prj/fast_traverse.bundle +0 -0
- data/lib/prj/finder.rb +0 -1
- data/spec/spec_helper.rb +0 -1
- metadata +47 -34
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: bba91d576fb7285a7207a033fc1962f244e3862bab830314adf407174d123d2a
|
4
|
+
data.tar.gz: 547c1a5940e7c938efbeeb8ec81611e3d16dc08382f8d4f8dfd323661aaed90e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 995628c465b1768efb679b146b8dbd3bc28a916de98bcc99300b6a9da6608b9936c3a549615549c3d643884a6cfe551cb90ae9d657850cd9a4cbd80ada663a29
|
7
|
+
data.tar.gz: 7ab9c2f19c818ebd8fca562bdd450a0db6933bce61d5e3068e52ae0d7240c9640d4c96f2ef49527f6493053a503f7319b819ba50eee67d442da03f45c80c9470
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,29 +1,45 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
prj (2.0.0)
|
5
|
+
|
1
6
|
GEM
|
2
7
|
remote: https://rubygems.org/
|
3
8
|
specs:
|
4
|
-
diff-lcs (1.
|
5
|
-
|
6
|
-
rake (0.
|
7
|
-
rake-compiler (
|
9
|
+
diff-lcs (1.5.0)
|
10
|
+
docile (1.4.0)
|
11
|
+
rake (13.0.6)
|
12
|
+
rake-compiler (1.2.5)
|
8
13
|
rake
|
9
|
-
rspec (
|
10
|
-
rspec-core (~>
|
11
|
-
rspec-expectations (~>
|
12
|
-
rspec-mocks (~>
|
13
|
-
rspec-core (
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
14
|
+
rspec (3.12.0)
|
15
|
+
rspec-core (~> 3.12.0)
|
16
|
+
rspec-expectations (~> 3.12.0)
|
17
|
+
rspec-mocks (~> 3.12.0)
|
18
|
+
rspec-core (3.12.2)
|
19
|
+
rspec-support (~> 3.12.0)
|
20
|
+
rspec-expectations (3.12.3)
|
21
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
22
|
+
rspec-support (~> 3.12.0)
|
23
|
+
rspec-mocks (3.12.6)
|
24
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
25
|
+
rspec-support (~> 3.12.0)
|
26
|
+
rspec-support (3.12.1)
|
27
|
+
simplecov (0.22.0)
|
28
|
+
docile (~> 1.1)
|
29
|
+
simplecov-html (~> 0.11)
|
30
|
+
simplecov_json_formatter (~> 0.1)
|
31
|
+
simplecov-html (0.12.3)
|
32
|
+
simplecov_json_formatter (0.1.4)
|
21
33
|
|
22
34
|
PLATFORMS
|
23
35
|
ruby
|
24
36
|
|
25
37
|
DEPENDENCIES
|
26
|
-
|
27
|
-
rake
|
28
|
-
|
29
|
-
|
38
|
+
prj!
|
39
|
+
rake (~> 13.0)
|
40
|
+
rake-compiler (~> 1.2)
|
41
|
+
rspec (~> 3.4)
|
42
|
+
simplecov (~> 0.22)
|
43
|
+
|
44
|
+
BUNDLED WITH
|
45
|
+
2.4.10
|
data/README.md
CHANGED
@@ -22,10 +22,16 @@ Installation & Configuration:
|
|
22
22
|
|
23
23
|
```gem install prj```
|
24
24
|
|
25
|
-
|
26
|
-
|
25
|
+
2. Configure your shell:
|
26
|
+
* ([oh-my-zsh](https://github.com/robbyrussell/oh-my-zsh) users) Put [scripts/zsh/prj.plugin.zsh](https://raw.github.com/v-yarotsky/prj/master/scripts/zsh/prj.plugin.zsh) into ``~/.oh-my-zsh/custom/plugins/prj/prj.plugin.zsh``.
|
27
27
|
Don't forget to enable the plugin in ~/.zshrc
|
28
28
|
|
29
|
+
* (bash users) Add the following snippet to your .bash_profile:
|
30
|
+
|
31
|
+
function p() {
|
32
|
+
builtin cd "$(prj $1)"
|
33
|
+
}
|
34
|
+
|
29
35
|
3. Put a project root directory name into ~/.prj.yml, i.e:
|
30
36
|
```
|
31
37
|
projects_root: ~/Projects
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
2.0.0
|
data/bin/prj
CHANGED
data/lib/prj/app.rb
CHANGED
@@ -29,7 +29,7 @@ module Prj
|
|
29
29
|
|
30
30
|
def config
|
31
31
|
@config ||= begin
|
32
|
-
config = File.
|
32
|
+
config = File.exist?(self.class.config_path) ? YAML.load(File.read(self.class.config_path)) : {}
|
33
33
|
default_config.merge(config)
|
34
34
|
end
|
35
35
|
end
|
Binary file
|
data/lib/prj/finder.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,59 +1,73 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prj
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Vladimir Yarotsky
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '3.4'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '3.4'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '0
|
33
|
+
version: '13.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '0
|
40
|
+
version: '13.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake-compiler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.2'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.2'
|
41
55
|
- !ruby/object:Gem::Dependency
|
42
56
|
name: simplecov
|
43
57
|
requirement: !ruby/object:Gem::Requirement
|
44
58
|
requirements:
|
45
|
-
- - ~>
|
59
|
+
- - "~>"
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
61
|
+
version: '0.22'
|
48
62
|
type: :development
|
49
63
|
prerelease: false
|
50
64
|
version_requirements: !ruby/object:Gem::Requirement
|
51
65
|
requirements:
|
52
|
-
- - ~>
|
66
|
+
- - "~>"
|
53
67
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
55
|
-
description:
|
56
|
-
|
68
|
+
version: '0.22'
|
69
|
+
description: " Prj is an utility to quickly go to project directory using fuzzy
|
70
|
+
matching\n"
|
57
71
|
email: vladimir.yarotksy@gmail.com
|
58
72
|
executables:
|
59
73
|
- prj
|
@@ -61,47 +75,46 @@ extensions:
|
|
61
75
|
- ext/prj/extconf.rb
|
62
76
|
extra_rdoc_files: []
|
63
77
|
files:
|
78
|
+
- Gemfile
|
79
|
+
- Gemfile.lock
|
80
|
+
- LICENSE.txt
|
81
|
+
- README.md
|
82
|
+
- Rakefile
|
83
|
+
- VERSION
|
64
84
|
- bin/prj
|
85
|
+
- ext/prj/extconf.rb
|
86
|
+
- ext/prj/fast_traverse.c
|
87
|
+
- lib/prj.rb
|
65
88
|
- lib/prj/app.rb
|
66
89
|
- lib/prj/dir_with_score.rb
|
67
90
|
- lib/prj/fast_traverse.bundle
|
68
91
|
- lib/prj/filter.rb
|
69
92
|
- lib/prj/finder.rb
|
70
|
-
- lib/prj.rb
|
71
|
-
- ext/prj/extconf.rb
|
72
|
-
- ext/prj/fast_traverse.c
|
73
93
|
- spec/acceptance/app_spec.rb
|
74
94
|
- spec/lib/prj/filter_spec.rb
|
75
95
|
- spec/lib/prj/finder_spec.rb
|
76
96
|
- spec/spec_helper.rb
|
77
|
-
- Gemfile
|
78
|
-
- Gemfile.lock
|
79
|
-
- Rakefile
|
80
|
-
- LICENSE.txt
|
81
|
-
- README.md
|
82
|
-
- VERSION
|
83
97
|
homepage: http://github.com/v-yarotsky/prj
|
84
98
|
licenses:
|
85
99
|
- MIT
|
86
100
|
metadata: {}
|
87
|
-
post_install_message:
|
101
|
+
post_install_message:
|
88
102
|
rdoc_options: []
|
89
103
|
require_paths:
|
90
104
|
- lib
|
91
105
|
required_ruby_version: !ruby/object:Gem::Requirement
|
92
106
|
requirements:
|
93
|
-
- -
|
107
|
+
- - ">="
|
94
108
|
- !ruby/object:Gem::Version
|
95
|
-
version:
|
109
|
+
version: 2.2.0
|
96
110
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
111
|
requirements:
|
98
|
-
- -
|
112
|
+
- - ">="
|
99
113
|
- !ruby/object:Gem::Version
|
100
|
-
version:
|
114
|
+
version: '0'
|
101
115
|
requirements: []
|
102
|
-
|
103
|
-
|
104
|
-
signing_key:
|
116
|
+
rubygems_version: 3.4.10
|
117
|
+
signing_key:
|
105
118
|
specification_version: 3
|
106
119
|
summary: Fuzzy-matching project finder
|
107
120
|
test_files: []
|