gas 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +7 -2
- data/bin/gas +3 -3
- data/lib/gas/version.rb +2 -2
- data/spec/integration/gas_spec.rb +2 -2
- data/spec/unit/users_spec.rb +4 -4
- metadata +16 -32
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 2728823da05ed3b4878e1b8a4b3a96c1b6cb5c6d
|
4
|
+
data.tar.gz: 9bb7834d2d0c8d4da1a4a6716c83c50f647f7238
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d330587d9b63c18432ab7f8078d7ae56d7e3291bfe814bb7e6076f2f8e4eadc4a16214f546e7874974f3b7b3467f5550b509d84ee66cc7abae23b935998eb5d4
|
7
|
+
data.tar.gz: 12e83e74ad7afdfab9aba97cbd1b48ab9abe0b45093900647ebc92c116e487afbc001dc9c87975a8f32143bb4bf13de3210db9d8065e601b93e4399aa811e10b
|
data/README.md
CHANGED
@@ -15,6 +15,11 @@
|
|
15
15
|
|
16
16
|
<br />
|
17
17
|
|
18
|
+
Gas helps you manage your git authors. Do you have a personal and a work email and use the same computer to commit. Try gas to help you switch between the two.
|
19
|
+
Do you pair program and want to reflect that it's not only you writing the code, try gas to switch between your pair user and your regular.
|
20
|
+
|
21
|
+
Gas is extensible and it's easy to extend with any functionality you may want.
|
22
|
+
|
18
23
|
<a name="get_it"></a>
|
19
24
|
## Get it
|
20
25
|
|
@@ -102,8 +107,8 @@ Adds ssh support for gas.
|
|
102
107
|
|
103
108
|
Work in progress right now.
|
104
109
|
|
105
|
-
Code: https://github.com/TheNotary/
|
110
|
+
Code: https://github.com/TheNotary/gas_ssh
|
106
111
|
|
107
112
|
Installation: $ gem install gas_ssh
|
108
113
|
|
109
|
-
Author: [TheNotary](https://github.com/TheNotary)
|
114
|
+
Author: [TheNotary](https://github.com/TheNotary)
|
data/bin/gas
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
|
+
require 'shellwords'
|
2
3
|
|
3
4
|
$LOAD_PATH.unshift(File.expand_path(File.dirname(__FILE__)) + '/../lib/')
|
4
5
|
|
@@ -73,9 +74,8 @@ elsif command == 'plugins'
|
|
73
74
|
end
|
74
75
|
|
75
76
|
bin = "gas-#{command}"
|
76
|
-
|
77
77
|
if which(bin)
|
78
|
-
system "#{bin} #{arguments.
|
78
|
+
system "#{bin} #{arguments.shelljoin}"
|
79
79
|
|
80
80
|
plugins.each do |plugin|
|
81
81
|
plugin_bin = "gas-#{plugin}-#{command}"
|
@@ -85,4 +85,4 @@ if which(bin)
|
|
85
85
|
end
|
86
86
|
else
|
87
87
|
Gas.print_usage
|
88
|
-
end
|
88
|
+
end
|
data/lib/gas/version.rb
CHANGED
@@ -20,7 +20,7 @@ describe Gas do
|
|
20
20
|
|
21
21
|
it 'should return if correct number of params is supplied' do
|
22
22
|
mock(ARGV).length { 3 }
|
23
|
-
lambda { Gas.check_parameters( 3, 'Nope') }.should_not raise_error
|
23
|
+
lambda { Gas.check_parameters( 3, 'Nope') }.should_not raise_error
|
24
24
|
end
|
25
25
|
|
26
26
|
it 'should exit if incorrect number of params is supplied' do
|
@@ -115,4 +115,4 @@ describe Gas do
|
|
115
115
|
output.should == "No current user to import\n"
|
116
116
|
end
|
117
117
|
|
118
|
-
end
|
118
|
+
end
|
data/spec/unit/users_spec.rb
CHANGED
@@ -32,9 +32,9 @@ describe Gas::Users do
|
|
32
32
|
end
|
33
33
|
|
34
34
|
it 'should be able to tell if a nickname exists' do
|
35
|
-
@users.exists?('walle').should
|
36
|
-
@users.exists?('foo').should
|
37
|
-
@users.exists?('user2').should
|
35
|
+
@users.exists?('walle').should be_truthy
|
36
|
+
@users.exists?('foo').should be_falsey
|
37
|
+
@users.exists?('user2').should be_truthy
|
38
38
|
end
|
39
39
|
|
40
40
|
it 'should be able to get a user from a nickname' do
|
@@ -68,4 +68,4 @@ describe Gas::Users do
|
|
68
68
|
@users.delete 'user2'
|
69
69
|
@users.users.count.should be 0
|
70
70
|
end
|
71
|
-
end
|
71
|
+
end
|
metadata
CHANGED
@@ -1,78 +1,69 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.3
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Fredrik Wallgren
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rake
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '0'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '>='
|
28
25
|
- !ruby/object:Gem::Version
|
29
26
|
version: '0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: bundler
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - '>='
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - '>='
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: rspec
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- -
|
45
|
+
- - '>='
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '0'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- -
|
52
|
+
- - '>='
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '0'
|
62
55
|
- !ruby/object:Gem::Dependency
|
63
56
|
name: rr
|
64
57
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
58
|
requirements:
|
67
|
-
- -
|
59
|
+
- - '>='
|
68
60
|
- !ruby/object:Gem::Version
|
69
61
|
version: '0'
|
70
62
|
type: :development
|
71
63
|
prerelease: false
|
72
64
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
65
|
requirements:
|
75
|
-
- -
|
66
|
+
- - '>='
|
76
67
|
- !ruby/object:Gem::Version
|
77
68
|
version: '0'
|
78
69
|
description: Gas is a utility to keep track of your git authors. Add them to gas and
|
@@ -112,36 +103,29 @@ files:
|
|
112
103
|
- spec/unit/users_spec.rb
|
113
104
|
- LICENSE
|
114
105
|
- README.md
|
115
|
-
homepage:
|
106
|
+
homepage: http://walle.github.com/gas
|
116
107
|
licenses: []
|
108
|
+
metadata: {}
|
117
109
|
post_install_message:
|
118
110
|
rdoc_options:
|
119
111
|
- --charset=UTF-8
|
120
112
|
require_paths:
|
121
113
|
- - lib
|
122
114
|
required_ruby_version: !ruby/object:Gem::Requirement
|
123
|
-
none: false
|
124
115
|
requirements:
|
125
|
-
- -
|
116
|
+
- - '>='
|
126
117
|
- !ruby/object:Gem::Version
|
127
118
|
version: '0'
|
128
|
-
segments:
|
129
|
-
- 0
|
130
|
-
hash: 2171514938214725266
|
131
119
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
132
|
-
none: false
|
133
120
|
requirements:
|
134
|
-
- -
|
121
|
+
- - '>='
|
135
122
|
- !ruby/object:Gem::Version
|
136
123
|
version: '0'
|
137
|
-
segments:
|
138
|
-
- 0
|
139
|
-
hash: 2171514938214725266
|
140
124
|
requirements: []
|
141
125
|
rubyforge_project: gas
|
142
|
-
rubygems_version:
|
126
|
+
rubygems_version: 2.0.14
|
143
127
|
signing_key:
|
144
|
-
specification_version:
|
128
|
+
specification_version: 4
|
145
129
|
summary: Manage your git author accounts
|
146
130
|
test_files: []
|
147
131
|
has_rdoc:
|