hitch 1.0.4 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +4 -0
  3. data/bin/hitch +9 -0
  4. data/hitch.gemspec +1 -1
  5. data/lib/hitch.rb +1 -1
  6. metadata +3 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: e31466745b18c78b3065e2ce0fb9ef2ac902f1fe
4
- data.tar.gz: 161bd434fdcd957688805804e6a8d2b64498e96e
2
+ SHA256:
3
+ metadata.gz: 20bc5d40136d3ffac05ece3f289a26164e3bd58a7cf1bd5d56dfae08a3c8e87f
4
+ data.tar.gz: 3a9c51a664410842fe49dc4b8b7939884251ca70c117526a0ccbf79b417acf15
5
5
  SHA512:
6
- metadata.gz: b1fbfe1d1ec0f90441f444ae85f66d7fe2e595841258dcdec552ddb7c45373213df446020996a95f5ac7f533718acf349b07933a11c8f7f433d59cc1888f84e5
7
- data.tar.gz: 348ad63679b1173ff0a0418b091d666deca5efe9fdf3019ed64e4f43c5c7c9efe70077a0348233691560e30af386cdabba3a2eeaceebb9bb456aae68dd155b61
6
+ metadata.gz: '0057847311584554b993a099a32957d41f105357abc32d5ff0cf4d53bbfdf6817807f2a11def531a6a79f5badbb5f2701de6002118539f72ecae6ff152095d43'
7
+ data.tar.gz: 89a8521926bb95ecc330da3e0c23e84e4666ddbab8a17efa7bb595e3ae1f3c60ec0fcb35039168d616f3c476cf90d93043f7efe2ae22b9ef692c8bd7ef15f686
data/README.md CHANGED
@@ -21,6 +21,8 @@ Synopsis:
21
21
 
22
22
  - For leela and fry to pair:
23
23
  - hitch leela fry
24
+ - To override group email:
25
+ - hitch leela fry -g dev@hashrocket.com
24
26
  - To clear pair info:
25
27
  - hitch -u
26
28
  - For a complete list of features:
@@ -33,6 +35,8 @@ Install:
33
35
  -------
34
36
 
35
37
  * gem install hitch
38
+ * chruby users run this:
39
+ <pre><code>for x in $(chruby | cut -c 3- | awk '{print $1}'); do chruby $x && gem install hitch; done</code></pre>
36
40
  * rvm users run this:
37
41
  <pre><code>for x in $(rvm list strings); do rvm use $x@global && gem install hitch; done</code></pre>
38
42
  * rbenv users run this:
data/bin/hitch CHANGED
@@ -17,6 +17,9 @@ opts = OptionParser.new do |opts|
17
17
  opts.on("-e N", "--expire N", Integer, "Expire pair information in N hours.") do |n|
18
18
  options = [:expire, n]
19
19
  end
20
+ opts.on("-g G", "--group G", "Set group email to G.") do |g|
21
+ options = [:group_email, g]
22
+ end
20
23
  opts.on("-u", "--unhitch", "Clear pair information") do
21
24
  options = [:unhitch]
22
25
  end
@@ -33,9 +36,15 @@ end
33
36
 
34
37
  if args.any?
35
38
  opts.parse!(args)
39
+
36
40
  if options.delete(:expire)
37
41
  system(Hitch.expire_command(options.pop))
38
42
  end
43
+
44
+ if options.delete(:group_email)
45
+ Hitch.group_email = options.pop
46
+ end
47
+
39
48
  options = [:export, args] if options.empty?
40
49
  else
41
50
  options = [:print_info]
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
6
6
 
7
7
  s.license = "MIT"
8
8
  s.name = %q{hitch}
9
- s.version = '1.0.4'
9
+ s.version = '1.1.0'
10
10
  s.date = Time.now.strftime('%F')
11
11
 
12
12
  s.description = %q{Git author attribution helper for pair programmers.}
@@ -6,7 +6,7 @@ require File.expand_path(File.join(File.dirname(__FILE__), %w[.. lib hitch ui]))
6
6
 
7
7
  module Hitch
8
8
 
9
- VERSION = '1.0.4'
9
+ VERSION = '1.1.0'
10
10
 
11
11
  def self.print_info
12
12
  if Hitch.pairing? && STDOUT.tty?
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rogelio J. Samour
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-20 00:00:00.000000000 Z
11
+ date: 2020-04-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -84,8 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  - !ruby/object:Gem::Version
85
85
  version: '0'
86
86
  requirements: []
87
- rubyforge_project:
88
- rubygems_version: 2.4.5
87
+ rubygems_version: 3.0.3
89
88
  signing_key:
90
89
  specification_version: 3
91
90
  summary: Hitch allows developers to be properly credited when Pair Programming and
@@ -96,4 +95,3 @@ test_files:
96
95
  - spec/hitch/ui_spec.rb
97
96
  - spec/hitch_spec.rb
98
97
  - spec/spec_helper.rb
99
- has_rdoc: