wg 0.1.2 → 0.1.3
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 +1 -1
- data/bin/wg_r +19 -0
- data/lib/wg/version.rb +1 -1
- data/wg.gemspec +1 -1
- metadata +4 -4
- data/bin/rwg +0 -29
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 629f6a0801b56d96079c654dc043f30513d191e4
|
4
|
+
data.tar.gz: c5adefac513a028846e6f44cc23712454c144b80
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 12b93ad313a30fdc184dd6fd424f6786d9f8a2c4bbd31ba8bc141af8cb3608d65ce1b2f7b3e317eb3d3dcee07073a1405ffd54bfb482d4f504eb519c516d3fd1
|
7
|
+
data.tar.gz: 443456b1942ae7a0ddae710c06eab6fa8b27dcc669460b3e21347d6079ff55d70af70f7cc23c684d830f7fb748520d11629c3fcfd7a47293186bfb7a2d2da80e
|
data/README.md
CHANGED
@@ -10,7 +10,7 @@ wg is packaged as a ruby gem, but due to the limitations of the shell, you also
|
|
10
10
|
|
11
11
|
First, install wg with: `gem install wg`
|
12
12
|
|
13
|
-
Then, add ```function wg { cd `wg`; }``` to your `.bashrc` file (or whatever shell's rc file you use).
|
13
|
+
Then, add ```function wg { cd `wg`; }``` to your `.bashrc` file (or whatever shell's rc file you use (`.zshrc`, etc...)).
|
14
14
|
|
15
15
|
Happy wg'ing!
|
16
16
|
|
data/bin/wg_r
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'wg'
|
4
|
+
require 'optparse'
|
5
|
+
|
6
|
+
options = {}
|
7
|
+
|
8
|
+
OptionParser.new do |parser|
|
9
|
+
parser.on("-n", "--name NAME", "The name of the person to greet.") do |v|
|
10
|
+
options[:name] = v
|
11
|
+
end
|
12
|
+
|
13
|
+
parser.on("-h", "--help", "Prints this help dialog.") do
|
14
|
+
puts parser
|
15
|
+
exit
|
16
|
+
end
|
17
|
+
end.parse!
|
18
|
+
|
19
|
+
puts "!./lib" if options[:name]
|
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 = "wg_r"
|
26
26
|
spec.require_paths = ["lib"]
|
27
27
|
|
28
28
|
spec.add_development_dependency "bundler", "~> 1.12"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
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.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sam Ginn
|
@@ -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
|
+
- wg_r
|
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
|
73
72
|
- bin/setup
|
73
|
+
- bin/wg_r
|
74
74
|
- lib/wg.rb
|
75
75
|
- lib/wg/version.rb
|
76
76
|
- wg.gemspec
|
@@ -95,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
95
95
|
version: '0'
|
96
96
|
requirements: []
|
97
97
|
rubyforge_project:
|
98
|
-
rubygems_version: 2.
|
98
|
+
rubygems_version: 2.5.1
|
99
99
|
signing_key:
|
100
100
|
specification_version: 4
|
101
101
|
summary: simple git(hub|lab) command line tool
|
data/bin/rwg
DELETED
@@ -1,29 +0,0 @@
|
|
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]
|