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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 5d755efc6530adac2bdda8cde66a08fcf8ec3024
4
- data.tar.gz: 93dd041d8360989d8478756a04775cba78e6d2f2
2
+ SHA256:
3
+ metadata.gz: bba91d576fb7285a7207a033fc1962f244e3862bab830314adf407174d123d2a
4
+ data.tar.gz: 547c1a5940e7c938efbeeb8ec81611e3d16dc08382f8d4f8dfd323661aaed90e
5
5
  SHA512:
6
- metadata.gz: 5cbd2335708ecdee9c2345724bcdbdb0a331ff01ceb34337e5db3cbfbcfcedd35278b237c12eb56ea2160b0eeafb48bc5db4d59c1adecb19adbcf62673f16273
7
- data.tar.gz: b6ddc26391eeb07e758334d4b0f072d1819139e90d13a7a0f3a88154d0f6af47f717a839434ec9d0617a2551e400c565266838594abcbe7de7afe59d9ee464e0
6
+ metadata.gz: 995628c465b1768efb679b146b8dbd3bc28a916de98bcc99300b6a9da6608b9936c3a549615549c3d643884a6cfe551cb90ae9d657850cd9a4cbd80ada663a29
7
+ data.tar.gz: 7ab9c2f19c818ebd8fca562bdd450a0db6933bce61d5e3068e52ae0d7240c9640d4c96f2ef49527f6493053a503f7319b819ba50eee67d442da03f45c80c9470
data/Gemfile CHANGED
@@ -1,10 +1,3 @@
1
1
  source 'https://rubygems.org'
2
2
 
3
- group :development do
4
- gem "rspec", "~> 2.11"
5
- gem "rake", "~> 0.9"
6
- gem 'simplecov', "~> 0.6", :require => false
7
- gem "rake-compiler"
8
- end
9
-
10
-
3
+ gemspec
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.1.3)
5
- multi_json (1.3.7)
6
- rake (0.9.5)
7
- rake-compiler (0.8.3)
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 (2.12.0)
10
- rspec-core (~> 2.12.0)
11
- rspec-expectations (~> 2.12.0)
12
- rspec-mocks (~> 2.12.0)
13
- rspec-core (2.12.0)
14
- rspec-expectations (2.12.0)
15
- diff-lcs (~> 1.1.3)
16
- rspec-mocks (2.12.0)
17
- simplecov (0.7.1)
18
- multi_json (~> 1.0)
19
- simplecov-html (~> 0.7.1)
20
- simplecov-html (0.7.1)
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
- rake (~> 0.9)
27
- rake-compiler
28
- rspec (~> 2.11)
29
- simplecov (~> 0.6)
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
- ([RVM](http://rvm.io) users) check out [this blog post](http://blog.yarotsky.me/2012-12-15-faster-ruby-scripts-startup)
26
- 2. ([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``.
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.0.2
1
+ 2.0.0
data/bin/prj CHANGED
@@ -13,4 +13,3 @@ Signal.trap("SIGINT") do
13
13
  end
14
14
 
15
15
  exit App.new(STDOUT, ARGV).run
16
-
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.exists?(self.class.config_path) ? YAML.load(File.read(self.class.config_path)) : {}
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
@@ -31,4 +31,3 @@ module Prj
31
31
  end
32
32
 
33
33
  end
34
-
data/spec/spec_helper.rb CHANGED
@@ -13,7 +13,6 @@ if ENV['COVERAGE']
13
13
  end
14
14
 
15
15
  require 'rspec'
16
- require 'rspec/autorun'
17
16
 
18
17
  $:.unshift File.expand_path('../../lib', __FILE__)
19
18
 
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: 1.0.2
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: 2013-06-24 00:00:00.000000000 Z
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: '2.11'
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: '2.11'
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.9'
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.9'
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.6'
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.6'
55
- description: |2
56
- Prj is an utility to quickly go to project directory using fuzzy matching
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: '0'
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: 1.3.6
114
+ version: '0'
101
115
  requirements: []
102
- rubyforge_project:
103
- rubygems_version: 2.0.3
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: []