gpr-select 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 2e358acad2b4237df02426109589118768b91158
4
+ data.tar.gz: c9217d9d53dcb736bc7d2920d25e7419ae228028
5
+ SHA512:
6
+ metadata.gz: d50cd9c19b32d017e6352fd8005329fc9c7c14c916d890144143d721459011cbfa4aed2c670f7a94dfebb8d1007954e4ed5b9a2bc42b7f802bb571a230b68655
7
+ data.tar.gz: fbb729597e7389c303ba8a49b234e740350de426a2de8e78f25d643d6c74461922d387eb3e533b92ea745c9b9a349e3d4267a251e0bc0f68bc5269e3f37b5184
@@ -0,0 +1,9 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /Gemfile.lock
4
+ /_yardoc/
5
+ /coverage/
6
+ /doc/
7
+ /pkg/
8
+ /spec/reports/
9
+ /tmp/
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source 'https://rubygems.org'
2
+
3
+ # Specify your gem's dependencies in gpr-select.gemspec
4
+ gemspec
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2015 kaihar4
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
@@ -0,0 +1,36 @@
1
+ # Gpr::Select
2
+
3
+ Gpr plugin to select a repository using the interactive interface.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your gpr's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'gpr-select'
11
+ ```
12
+
13
+ ## Usage
14
+
15
+ ```sh
16
+ $ gpr select
17
+ ```
18
+
19
+ Possible use as this.
20
+
21
+ ![select](http://kaihar4.com/images/github.com/kaihar4/gpr/select.gif)
22
+
23
+ Other benefits is [here](#convenient-aliases).
24
+
25
+ ## Convenient aliases
26
+
27
+ ```sh
28
+ # Change Directory to a directory that you specify
29
+ alias gcd='cd $(gpr select)'
30
+ # Remove a directory that you specify
31
+ alias grm='rm -rf $(gpr select)'
32
+
33
+ # And more...
34
+ alias gcontrib='gpr contrib $(gpr select)' # Require gpr-contrib
35
+ alias gfetch='gpr fetch $(gpr select)' # Require gpr-fetch
36
+ ```
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
@@ -0,0 +1,24 @@
1
+ $LOAD_PATH << File.expand_path('../lib', __FILE__)
2
+ require 'gpr/select/version'
3
+
4
+ Gem::Specification.new do |spec|
5
+ spec.name = 'gpr-select'
6
+ spec.version = Gpr::Select::VERSION
7
+ spec.authors = ['kaihar4']
8
+ spec.email = ['kaihar4@gmail.com']
9
+ spec.summary = 'Gpr plugin to select a repository using the interactive interface'
10
+ spec.description = spec.summary
11
+ spec.homepage = 'https://github.com/kaihar4/gpr-select'
12
+ spec.license = 'MIT'
13
+
14
+ spec.files = `git ls-files -z`.split("\x0")
15
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
16
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
17
+ spec.require_paths = ['lib']
18
+
19
+ spec.add_dependency 'gpr'
20
+ spec.add_dependency 'ifilter'
21
+
22
+ spec.add_development_dependency 'bundler'
23
+ spec.add_development_dependency 'rake'
24
+ end
@@ -0,0 +1,17 @@
1
+ require 'ifilter'
2
+
3
+ module Gpr
4
+ module Commands
5
+ class Select < Base
6
+ def initialize(thor)
7
+ thor.class_eval do
8
+ desc 'select', 'Select a repository using the interactive interface'
9
+ def select
10
+ repositories = repository_list
11
+ puts Ifilter.filtering(repositories)
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,2 @@
1
+ require 'gpr'
2
+ require 'gpr/commands/select'
@@ -0,0 +1,5 @@
1
+ module Gpr
2
+ module Select
3
+ VERSION = '0.1.0'
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,109 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gpr-select
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - kaihar4
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2015-03-26 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: gpr
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: ifilter
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: '0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ description: Gpr plugin to select a repository using the interactive interface
70
+ email:
71
+ - kaihar4@gmail.com
72
+ executables: []
73
+ extensions: []
74
+ extra_rdoc_files: []
75
+ files:
76
+ - ".gitignore"
77
+ - Gemfile
78
+ - LICENSE.txt
79
+ - README.md
80
+ - Rakefile
81
+ - gpr-select.gemspec
82
+ - lib/gpr/commands/select.rb
83
+ - lib/gpr/select.rb
84
+ - lib/gpr/select/version.rb
85
+ homepage: https://github.com/kaihar4/gpr-select
86
+ licenses:
87
+ - MIT
88
+ metadata: {}
89
+ post_install_message:
90
+ rdoc_options: []
91
+ require_paths:
92
+ - lib
93
+ required_ruby_version: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ required_rubygems_version: !ruby/object:Gem::Requirement
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: '0'
103
+ requirements: []
104
+ rubyforge_project:
105
+ rubygems_version: 2.4.5
106
+ signing_key:
107
+ specification_version: 4
108
+ summary: Gpr plugin to select a repository using the interactive interface
109
+ test_files: []