wg 0.1.1 → 0.1.2
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/README.md +7 -3
- data/bin/rwg +29 -0
- data/lib/wg.rb +2 -2
- data/lib/wg/version.rb +1 -1
- data/wg.gemspec +1 -1
- metadata +4 -4
- data/bin/wg +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03c119e96ed28af1cedd8cf995870339ea75c46f
|
4
|
+
data.tar.gz: ee803bf922e8b980be9925939a964ff8c00249f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 44ff323d0fa1c24de6994a731aeb7ddfaabbe96dadd8ccd8d0f3871d5a0d48690308a5d1ef658d42072a40c8a6f22442ef45c2f7772ca16fabb6368eae48834a
|
7
|
+
data.tar.gz: c16f3348e8fd2b09a1e53dc164d3a505947c318948c419ff6b2ed6b3284e4cba0805909a0d3b75de05ef9867646a523094ba41ea3e156752e65284e2f082d4ec
|
data/README.md
CHANGED
@@ -1,14 +1,18 @@
|
|
1
1
|
# wg
|
2
2
|
|
3
|
-
wg is a neat little command line tool to manage git(hub|lab) projects locally.
|
3
|
+
wg is a neat little command line tool to manage your workspace. It allows you to easily manage git(hub|lab) projects locally.
|
4
4
|
|
5
5
|
It is inspired by [Jeff Dickey's gh tool](https://github.com/dickeyxxx/gh).
|
6
6
|
|
7
7
|
## Installation
|
8
8
|
|
9
|
-
wg is packaged as a ruby gem
|
9
|
+
wg is packaged as a ruby gem, but due to the limitations of the shell, you also need to add an alias to your shell's config.
|
10
10
|
|
11
|
-
|
11
|
+
First, install wg with: `gem install wg`
|
12
|
+
|
13
|
+
Then, add ```function wg { cd `wg`; }``` to your `.bashrc` file (or whatever shell's rc file you use).
|
14
|
+
|
15
|
+
Happy wg'ing!
|
12
16
|
|
13
17
|
## Usage
|
14
18
|
|
data/bin/rwg
ADDED
@@ -0,0 +1,29 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'wg'
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
Options = Struct.new(:name)
|
7
|
+
|
8
|
+
class Parser
|
9
|
+
def self.parse(options)
|
10
|
+
args = Options.new("world")
|
11
|
+
|
12
|
+
opt_parser = OptionParser.new do |opts|
|
13
|
+
opts.banner = "Usage: wg USERNAME/REPO [options]"
|
14
|
+
|
15
|
+
opts.on("-l", "--lab", "Use gitlab ") do |n|
|
16
|
+
args.name = n
|
17
|
+
end
|
18
|
+
|
19
|
+
opts.on("-h", "--help", "Prints this help") do
|
20
|
+
puts opts
|
21
|
+
exit
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
opt_parser.parse!(options)
|
26
|
+
return args
|
27
|
+
end
|
28
|
+
end
|
29
|
+
options = Parser.parse %w[--help]
|
data/lib/wg.rb
CHANGED
data/lib/wg/version.rb
CHANGED
data/wg.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |spec|
|
|
22
22
|
|
23
23
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
24
24
|
spec.bindir = "bin"
|
25
|
-
spec.executables = "
|
25
|
+
spec.executables = "rwg"
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.12"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ginn
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -57,7 +57,7 @@ description: wg is a simple git(hub|lab) command line tool to manage git project
|
|
57
57
|
email:
|
58
58
|
- sam@samginn.com
|
59
59
|
executables:
|
60
|
-
-
|
60
|
+
- rwg
|
61
61
|
extensions: []
|
62
62
|
extra_rdoc_files: []
|
63
63
|
files:
|
@@ -69,8 +69,8 @@ files:
|
|
69
69
|
- README.md
|
70
70
|
- Rakefile
|
71
71
|
- bin/console
|
72
|
+
- bin/rwg
|
72
73
|
- bin/setup
|
73
|
-
- bin/wg
|
74
74
|
- lib/wg.rb
|
75
75
|
- lib/wg/version.rb
|
76
76
|
- wg.gemspec
|