gitswitch 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: d9158f1a5fc0f97b3635cee121ea2302af4666df
4
+ data.tar.gz: 6e6d5254b0fa461ad77ab9177c715024072800ce
5
+ SHA512:
6
+ metadata.gz: 80e0bd6275c0155b078b9934343dc560f1180bc7e57d96aae113639a912fca42e8702a4365df62005f0225532052631754819f09aaa4f536de87bad1a0d53c9f
7
+ data.tar.gz: 06d83533d2329c6342fe5e4c7a309d428759f6f867cacfac5c01139d4b4bb08e63cc37834914d85ab905bc946da5b6fa648b675ec2373159d3fa49c8b056a4ff
@@ -1,9 +1,6 @@
1
- rvm:
2
- - 1.8.7
3
- - 1.9.2
1
+ rvm:
4
2
  - 1.9.3
5
- - jruby-18mode
3
+ - 2.1.7
4
+ - 2.2.3
6
5
  - jruby-19mode
7
- - rbx-18mode
8
- - rbx-19mode
9
- - ruby-head
6
+ - ruby-head
data/Gemfile CHANGED
@@ -1,2 +1,2 @@
1
- source "http://rubygems.org"
1
+ source "https://rubygems.org"
2
2
  gemspec
@@ -1,6 +1,8 @@
1
1
  = gitswitch
2
2
 
3
- Easily set/switch your current git user info for a git repo .git/config or your global ~/.gitconfig file.
3
+ [![Build Status](https://travis-ci.org/joealba/gitswitch.svg?branch=master)](https://travis-ci.org/joealba/gitswitch)
4
+
5
+ Easily set/switch your current git user info for a git repo .git/config or your global ~/.gitconfig file.
4
6
 
5
7
  This gem should come in handy if you have work and personal repositories. It also might help with switching between users while pair programming.
6
8
 
@@ -26,12 +26,10 @@ Gem::Specification.new do |s|
26
26
  s.require_paths = ["lib"]
27
27
 
28
28
  s.rdoc_options = ["--charset=UTF-8"]
29
- s.rubygems_version = %q{1.3.7}
30
-
31
29
 
32
30
  s.add_dependency('rake')
33
31
  s.add_dependency('thor')
34
- s.add_development_dependency(%q<rspec>, [">= 2.5.0"])
32
+ s.add_development_dependency(%q<rspec>, [">= 3.3.0"])
35
33
 
36
34
  end
37
35
 
@@ -1,3 +1,3 @@
1
1
  class Gitswitch
2
- VERSION = "0.4.2"
2
+ VERSION = "0.4.3"
3
3
  end
@@ -1,13 +1,13 @@
1
1
  require 'spec_helper'
2
2
 
3
3
  describe Gitswitch::Git do
4
- it "should find the git executable" do
4
+ it "finds the git executable" do
5
5
  result = %x[#{Gitswitch::Git::GIT_BIN} --version]
6
- $?.exitstatus.should == 0
7
- end
6
+ expect($?.exitstatus).to eq 0
7
+ end
8
8
 
9
- it "should grab the local git version" do
10
- Gitswitch::Git.version.should =~ /^\d+\.+\d+/ # Should start off looking like a version number
9
+ it "grabs the local git version" do
10
+ expect(Gitswitch::Git.version).to match /^\d+\.+\d+/ # Should start off looking like a version number
11
11
  end
12
12
 
13
13
  end
@@ -4,45 +4,45 @@ describe Gitswitch do
4
4
 
5
5
  describe "basics" do
6
6
  it "should have a VERSION" do
7
- Gitswitch::VERSION.should_not == ''
7
+ expect(Gitswitch::VERSION).not_to eq ''
8
8
  end
9
9
  end
10
10
 
11
11
  describe "read-only" do
12
- it "should show the current list of available gitswitch tags" do
13
-
12
+ it "shows the current list of available gitswitch tags" do
13
+ skip
14
14
  end
15
15
  end
16
16
 
17
17
  describe "write methods" do
18
- before :each do
19
- Gitswitch.create_fresh_gitswitch_file
18
+ before :each do
19
+ Gitswitch.create_fresh_gitswitch_file
20
20
  end
21
21
 
22
- it "should allow you to add a new user entry" do
22
+ it "allows you to add a new user entry" do
23
23
  initial_user_count = Gitswitch.users.keys.count
24
24
  set_test_entry
25
- Gitswitch.users.keys.count.should be > initial_user_count
25
+ expect(Gitswitch.users.keys.count > initial_user_count).to eq true
26
26
  end
27
27
 
28
- it "should allow you to update a user entry" do
28
+ it "allows you to update a user entry" do
29
29
  set_test_entry
30
30
  test_entry = get_test_entry
31
31
  Gitswitch.set_gitswitch_entry(test_entry[0], 'testing@test.com', test_entry[2])
32
- Gitswitch.get_user(test_entry[0])[:email].should eq('testing@test.com')
33
- Gitswitch.get_user(test_entry[0])[:name].should eq(test_entry[2])
32
+ expect(Gitswitch.get_user(test_entry[0])[:email]).to eq 'testing@test.com'
33
+ expect(Gitswitch.get_user(test_entry[0])[:name]).to eq test_entry[2]
34
34
  end
35
35
 
36
- it "should allow you to delete a user entry" do
36
+ it "allows you to delete a user entry" do
37
37
  set_test_entry
38
38
  Gitswitch.delete_gitswitch_entry(get_test_entry[0])
39
- Gitswitch.users.keys.count.should == 0
39
+ expect(Gitswitch.users.keys.count).to eq 0
40
40
  end
41
41
 
42
- it "should allow you to overwrite the current .gitswitch file and start fresh" do
42
+ it "allows you to overwrite the current .gitswitch file and start fresh" do
43
43
  set_test_entry
44
- Gitswitch.create_fresh_gitswitch_file
45
- Gitswitch.users.keys.count.should == 0
44
+ Gitswitch.create_fresh_gitswitch_file
45
+ expect(Gitswitch.users.keys.count).to eq 0
46
46
  end
47
47
 
48
48
  end
@@ -50,13 +50,13 @@ describe Gitswitch do
50
50
 
51
51
  describe "weird outlier cases" do
52
52
  it "in a git repo directory with no user info specified, show the global config header and user info" do
53
- pending
53
+ skip
54
54
  end
55
55
  end
56
56
 
57
57
 
58
- it "should show the current git user credentials" do
59
- Gitswitch.current_user_info.should =~ /^Your git user/
58
+ it "shows the current git user credentials" do
59
+ expect(Gitswitch.current_user_info).to match /^Your git user/
60
60
  end
61
61
 
62
62
 
metadata CHANGED
@@ -1,8 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitswitch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
5
- prerelease:
4
+ version: 0.4.3
6
5
  platform: ruby
7
6
  authors:
8
7
  - Joe Alba
@@ -14,51 +13,45 @@ 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: :runtime
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: thor
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: :runtime
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
- version: 2.5.0
47
+ version: 3.3.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
- version: 2.5.0
54
+ version: 3.3.0
62
55
  description: Easily switch your git name/e-mail user info -- Handy for work vs. personal
63
56
  and for pair programming
64
57
  email: joe@joealba.com
@@ -69,12 +62,12 @@ extra_rdoc_files:
69
62
  - LICENSE
70
63
  - README.rdoc
71
64
  files:
72
- - .bundle/config
73
- - .document
74
- - .gemtest
75
- - .gitignore
76
- - .rspec
77
- - .travis.yml
65
+ - ".bundle/config"
66
+ - ".document"
67
+ - ".gemtest"
68
+ - ".gitignore"
69
+ - ".rspec"
70
+ - ".travis.yml"
78
71
  - Gemfile
79
72
  - LICENSE
80
73
  - README.rdoc
@@ -92,28 +85,27 @@ files:
92
85
  - spec/tmp/.gitkeep
93
86
  homepage: http://github.com/joealba/gitswitch
94
87
  licenses: []
88
+ metadata: {}
95
89
  post_install_message:
96
90
  rdoc_options:
97
- - --charset=UTF-8
91
+ - "--charset=UTF-8"
98
92
  require_paths:
99
93
  - lib
100
94
  required_ruby_version: !ruby/object:Gem::Requirement
101
- none: false
102
95
  requirements:
103
- - - ! '>='
96
+ - - ">="
104
97
  - !ruby/object:Gem::Version
105
98
  version: '0'
106
99
  required_rubygems_version: !ruby/object:Gem::Requirement
107
- none: false
108
100
  requirements:
109
- - - ! '>='
101
+ - - ">="
110
102
  - !ruby/object:Gem::Version
111
103
  version: '0'
112
104
  requirements: []
113
105
  rubyforge_project:
114
- rubygems_version: 1.8.23
106
+ rubygems_version: 2.4.8
115
107
  signing_key:
116
- specification_version: 3
108
+ specification_version: 4
117
109
  summary: Easy git user switching
118
110
  test_files:
119
111
  - spec/git_spec.rb