wg 0.1.1 → 0.1.2

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
2
  SHA1:
3
- metadata.gz: 2004573d8227efd2ed6e5c92b6355bf18d548cd8
4
- data.tar.gz: a19ac14f1d12523532bf31bde7136d7f82bc0674
3
+ metadata.gz: 03c119e96ed28af1cedd8cf995870339ea75c46f
4
+ data.tar.gz: ee803bf922e8b980be9925939a964ff8c00249f9
5
5
  SHA512:
6
- metadata.gz: 605222b633f3daf3036152dcf7bdc46a916a3d830a47e8c92390ae4af2ca2e3cd03f44ef01d8a74fe2354cf33ec3646eb785f2f5439f3ba80f141b4fc5df9d97
7
- data.tar.gz: f6e6c1e0ff4b6a810bd6b4dcfa7beb7e72eb511058f75d0c67a0d65993bae8e3379e36dad8784b3e401a201919d396c39e1dc467ff3895c5be63c3a6f8d84933
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. All you have to do is:
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
- `gem install wg` and voila, you have the `wg` command at your disposal.
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
@@ -1,7 +1,7 @@
1
1
  require "wg/version"
2
2
 
3
3
  module Wg
4
- def self.hi(person)
5
- puts "Hello, #{person}!"
4
+ def self.hi()
5
+ puts("lib")
6
6
  end
7
7
  end
@@ -1,3 +1,3 @@
1
1
  module Wg
2
- VERSION = "0.1.1"
2
+ VERSION = "0.1.2"
3
3
  end
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 = "wg"
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.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-05 00:00:00.000000000 Z
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
- - wg
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
data/bin/wg DELETED
@@ -1,5 +0,0 @@
1
- #!/usr/bin/env ruby
2
-
3
- require 'wg'
4
-
5
- puts Wg.hi(ARGV[0])