gitsu 2.0.3 → 2.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +2 -1
- data/Rakefile +5 -1
- data/gitsu.gemspec +1 -0
- data/lib/gitsu/gitsu.rb +2 -1
- data/lib/gitsu/version.rb +1 -1
- data/spec/gitsu/switcher_spec.rb +1 -4
- metadata +17 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 562e4b4ada24919886dc64e68ce0ab474cab7287
|
4
|
+
data.tar.gz: eb205993e9fc72634f3562ce4ead59d5317a5bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 285d5f45cb1b64be26d3ecaa8cb9b407646ed60f36193b5f4707df892a496e18acc48af1d999989d73040eacbc53a31f4f213ab8cfc437936f409a2f3edeb758
|
7
|
+
data.tar.gz: f24c87a0a6905966b4d3ce347ed3513aa652ae55d35452187a014915decdd1b99078291c3f7eb4660a897405ee25c7e1ed865258d57aa27db83fb4c008f6e372
|
data/.travis.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Gitsu
|
2
|
-
# Copyright (C)
|
2
|
+
# Copyright (C) 2014 drrb
|
3
3
|
#
|
4
4
|
# This program is free software: you can redistribute it and/or modify
|
5
5
|
# it under the terms of the GNU General Public License as published by
|
@@ -20,3 +20,4 @@ rvm:
|
|
20
20
|
- "1.9.2"
|
21
21
|
- "1.9.3"
|
22
22
|
- "2.0.0"
|
23
|
+
- "2.1.0"
|
data/Rakefile
CHANGED
@@ -29,7 +29,7 @@ RSpec::Core::RakeTask.new(:spec)
|
|
29
29
|
task :default => [:spec, :features, 'coveralls:push']
|
30
30
|
|
31
31
|
task :verify do
|
32
|
-
system "rvm all do rake"
|
32
|
+
system "rvm all do bundle exec rake" or fail "Some tests failed"
|
33
33
|
end
|
34
34
|
|
35
35
|
task 'push-release' => ['check-license', :verify] do
|
@@ -62,6 +62,10 @@ task 'check-license' do
|
|
62
62
|
end
|
63
63
|
end
|
64
64
|
|
65
|
+
task 'version' do
|
66
|
+
puts GitSu::VERSION
|
67
|
+
end
|
68
|
+
|
65
69
|
def update_version(new_version)
|
66
70
|
system(%q[sed -i '' -E 's/VERSION = ".*"/VERSION = "] + new_version.to_s + %q["/' lib/gitsu/version.rb])
|
67
71
|
GitSu::VERSION.replace new_version.to_s
|
data/gitsu.gemspec
CHANGED
@@ -42,6 +42,7 @@ Gem::Specification.new do |gem|
|
|
42
42
|
gem.add_development_dependency 'rake'
|
43
43
|
gem.add_development_dependency 'coveralls', '>= 0.6.3'
|
44
44
|
gem.add_development_dependency 'json' # Coveralls needs it
|
45
|
+
gem.add_development_dependency "mime-types", "< 2"
|
45
46
|
gem.add_development_dependency 'rspec'
|
46
47
|
gem.add_development_dependency 'cucumber'
|
47
48
|
end
|
data/lib/gitsu/gitsu.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# Gitsu
|
2
|
-
# Copyright (C)
|
2
|
+
# Copyright (C) 2014 drrb
|
3
3
|
#
|
4
4
|
# This program is free software: you can redistribute it and/or modify
|
5
5
|
# it under the terms of the GNU General Public License as published by
|
@@ -26,6 +26,7 @@ module GitSu
|
|
26
26
|
def go(args)
|
27
27
|
options = {}
|
28
28
|
optparse = OptionParser.new do |opts|
|
29
|
+
opts.version = GitSu::VERSION
|
29
30
|
opts.banner = <<-BANNER
|
30
31
|
Gitsu Copyright (C) 2013 drrb
|
31
32
|
This program comes with ABSOLUTELY NO WARRANTY.
|
data/lib/gitsu/version.rb
CHANGED
data/spec/gitsu/switcher_spec.rb
CHANGED
@@ -47,12 +47,9 @@ module GitSu
|
|
47
47
|
git.should_receive(:render).with(combined_user).and_return(combined_user.to_s)
|
48
48
|
output.should_receive(:puts).with("Switched global user to Johnny A, Johnny B and Johnny C <dev+a+b+c@example.com>")
|
49
49
|
|
50
|
-
|
51
|
-
user_list.should_receive(:list).and_return []
|
50
|
+
user_list.should_receive(:list).exactly(3).times.and_return []
|
52
51
|
user_list.should_receive(:add).with User.new("Johnny A", "a@example.com")
|
53
|
-
user_list.should_receive(:list).and_return []
|
54
52
|
user_list.should_receive(:add).with User.new("Johnny B", "b@example.com")
|
55
|
-
user_list.should_receive(:list).and_return []
|
56
53
|
user_list.should_receive(:add).with User.new("Johnny C", "c@example.com")
|
57
54
|
switcher.request(:global, 'Johnny C <c@example.com>', 'Johnny B <b@example.com>', 'Johnny A <a@example.com>')
|
58
55
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gitsu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- drrb
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2014-02-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -66,6 +66,20 @@ dependencies:
|
|
66
66
|
- - '>='
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: mime-types
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - <
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '2'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - <
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '2'
|
69
83
|
- !ruby/object:Gem::Dependency
|
70
84
|
name: rspec
|
71
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -175,7 +189,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
175
189
|
version: '0'
|
176
190
|
requirements: []
|
177
191
|
rubyforge_project:
|
178
|
-
rubygems_version: 2.
|
192
|
+
rubygems_version: 2.2.1
|
179
193
|
signing_key:
|
180
194
|
specification_version: 4
|
181
195
|
summary: Gitsu allows you to quickly configure and switch between Git users, for different
|