gitsu 1.0.0 → 2.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (52) hide show
  1. checksums.yaml +7 -0
  2. data/.licenseignore +2 -0
  3. data/.simplecov +16 -0
  4. data/.travis.yml +19 -2
  5. data/Gemfile +17 -1
  6. data/README.md +36 -7
  7. data/Rakefile +37 -3
  8. data/TODO +4 -2
  9. data/bin/git-su +15 -0
  10. data/bin/git-whoami +15 -0
  11. data/features/add_user.feature +16 -0
  12. data/features/change_user_in_different_scopes.feature +16 -0
  13. data/features/clear_user.feature +16 -0
  14. data/features/configure_default_scope.feature +22 -2
  15. data/features/edit_config.feature +16 -0
  16. data/features/list_users.feature +16 -0
  17. data/features/print_current_user.feature +16 -0
  18. data/features/print_options.feature +16 -0
  19. data/features/step_definitions/gitsu_steps.rb +33 -12
  20. data/features/support/env.rb +16 -0
  21. data/features/switch_to_fully_qualified_user.feature +21 -0
  22. data/features/switch_to_multiple_users.feature +64 -0
  23. data/features/switch_to_stored_user.feature +16 -0
  24. data/gitsu.gemspec +20 -3
  25. data/lib/gitsu.rb +17 -0
  26. data/lib/gitsu/array.rb +31 -0
  27. data/lib/gitsu/config_repository.rb +49 -0
  28. data/lib/gitsu/factory.rb +26 -3
  29. data/lib/gitsu/git.rb +44 -35
  30. data/lib/gitsu/gitsu.rb +27 -3
  31. data/lib/gitsu/runner.rb +16 -0
  32. data/lib/gitsu/shell.rb +17 -2
  33. data/lib/gitsu/switcher.rb +68 -30
  34. data/lib/gitsu/user.rb +80 -11
  35. data/lib/gitsu/user_file.rb +18 -2
  36. data/lib/gitsu/user_list.rb +68 -12
  37. data/lib/gitsu/version.rb +17 -1
  38. data/man/git-su.1.ronn +36 -4
  39. data/spec/gitsu/array_spec.rb +71 -0
  40. data/spec/gitsu/bin_spec.rb +16 -0
  41. data/spec/gitsu/config_repository_spec.rb +67 -0
  42. data/spec/gitsu/git_spec.rb +36 -15
  43. data/spec/gitsu/gitsu_spec.rb +41 -18
  44. data/spec/gitsu/runner_spec.rb +16 -0
  45. data/spec/gitsu/shell_spec.rb +55 -0
  46. data/spec/gitsu/switcher_spec.rb +53 -13
  47. data/spec/gitsu/user_file_spec.rb +91 -0
  48. data/spec/gitsu/user_list_spec.rb +112 -41
  49. data/spec/gitsu/user_spec.rb +97 -0
  50. data/spec/gitsu/version_spec.rb +16 -0
  51. data/spec/spec_helper.rb +16 -0
  52. metadata +45 -28
@@ -1,3 +1,19 @@
1
+ # Gitsu
2
+ # Copyright (C) 2013 drrb
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+
1
17
  require 'spec_helper'
2
18
 
3
19
  module GitSu
@@ -1,3 +1,19 @@
1
+ # Gitsu
2
+ # Copyright (C) 2013 drrb
3
+ #
4
+ # This program is free software: you can redistribute it and/or modify
5
+ # it under the terms of the GNU General Public License as published by
6
+ # the Free Software Foundation, either version 3 of the License, or
7
+ # (at your option) any later version.
8
+ #
9
+ # This program is distributed in the hope that it will be useful,
10
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
11
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
+ # GNU General Public License for more details.
13
+ #
14
+ # You should have received a copy of the GNU General Public License
15
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
16
+
1
17
  require 'simplecov'
2
18
 
3
19
  require 'gitsu'
metadata CHANGED
@@ -1,83 +1,88 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitsu
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
5
- prerelease:
4
+ version: 2.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - drrb
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-04-02 00:00:00.000000000 Z
11
+ date: 2013-04-20 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: coveralls
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.6.3
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.6.3
27
+ - !ruby/object:Gem::Dependency
28
+ name: json
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - '>='
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
30
41
  - !ruby/object:Gem::Dependency
31
42
  name: rake
32
43
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
44
  requirements:
35
- - - ! '>='
45
+ - - '>='
36
46
  - !ruby/object:Gem::Version
37
47
  version: '0'
38
48
  type: :development
39
49
  prerelease: false
40
50
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
51
  requirements:
43
- - - ! '>='
52
+ - - '>='
44
53
  - !ruby/object:Gem::Version
45
54
  version: '0'
46
55
  - !ruby/object:Gem::Dependency
47
56
  name: rspec
48
57
  requirement: !ruby/object:Gem::Requirement
49
- none: false
50
58
  requirements:
51
- - - ! '>='
59
+ - - '>='
52
60
  - !ruby/object:Gem::Version
53
61
  version: '0'
54
62
  type: :development
55
63
  prerelease: false
56
64
  version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
65
  requirements:
59
- - - ! '>='
66
+ - - '>='
60
67
  - !ruby/object:Gem::Version
61
68
  version: '0'
62
69
  - !ruby/object:Gem::Dependency
63
70
  name: cucumber
64
71
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
72
  requirements:
67
- - - ! '>='
73
+ - - '>='
68
74
  - !ruby/object:Gem::Version
69
75
  version: '0'
70
76
  type: :development
71
77
  prerelease: false
72
78
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
79
  requirements:
75
- - - ! '>='
80
+ - - '>='
76
81
  - !ruby/object:Gem::Version
77
82
  version: '0'
78
83
  description: Manage your Git users
79
84
  email:
80
- - drrb@github.com
85
+ - drrrrrrrrrrrb@gmail.com
81
86
  executables:
82
87
  - git-su
83
88
  - git-whoami
@@ -85,6 +90,7 @@ extensions: []
85
90
  extra_rdoc_files: []
86
91
  files:
87
92
  - .gitignore
93
+ - .licenseignore
88
94
  - .simplecov
89
95
  - .travis.yml
90
96
  - Gemfile
@@ -105,9 +111,12 @@ files:
105
111
  - features/step_definitions/gitsu_steps.rb
106
112
  - features/support/env.rb
107
113
  - features/switch_to_fully_qualified_user.feature
114
+ - features/switch_to_multiple_users.feature
108
115
  - features/switch_to_stored_user.feature
109
116
  - gitsu.gemspec
110
117
  - lib/gitsu.rb
118
+ - lib/gitsu/array.rb
119
+ - lib/gitsu/config_repository.rb
111
120
  - lib/gitsu/factory.rb
112
121
  - lib/gitsu/git.rb
113
122
  - lib/gitsu/gitsu.rb
@@ -119,41 +128,44 @@ files:
119
128
  - lib/gitsu/user_list.rb
120
129
  - lib/gitsu/version.rb
121
130
  - man/git-su.1.ronn
131
+ - spec/gitsu/array_spec.rb
122
132
  - spec/gitsu/bin_spec.rb
133
+ - spec/gitsu/config_repository_spec.rb
123
134
  - spec/gitsu/git_spec.rb
124
135
  - spec/gitsu/gitsu_spec.rb
125
136
  - spec/gitsu/runner_spec.rb
137
+ - spec/gitsu/shell_spec.rb
126
138
  - spec/gitsu/switcher_spec.rb
139
+ - spec/gitsu/user_file_spec.rb
127
140
  - spec/gitsu/user_list_spec.rb
128
141
  - spec/gitsu/user_spec.rb
129
142
  - spec/gitsu/version_spec.rb
130
143
  - spec/spec_helper.rb
131
- homepage: http://drrb.github.com/gitsu
144
+ homepage: http://drrb.github.io/gitsu
132
145
  licenses:
133
146
  - GPL-3
147
+ metadata: {}
134
148
  post_install_message:
135
149
  rdoc_options: []
136
150
  require_paths:
137
151
  - lib
138
152
  required_ruby_version: !ruby/object:Gem::Requirement
139
- none: false
140
153
  requirements:
141
- - - ! '>='
154
+ - - '>='
142
155
  - !ruby/object:Gem::Version
143
156
  version: '0'
144
157
  required_rubygems_version: !ruby/object:Gem::Requirement
145
- none: false
146
158
  requirements:
147
- - - ! '>='
159
+ - - '>='
148
160
  - !ruby/object:Gem::Version
149
161
  version: '0'
150
162
  requirements: []
151
163
  rubyforge_project:
152
- rubygems_version: 1.8.23
164
+ rubygems_version: 2.0.3
153
165
  signing_key:
154
- specification_version: 3
166
+ specification_version: 4
155
167
  summary: Gitsu allows you to quickly configure and switch between Git users, for different
156
- projects and contexts
168
+ projects and contexts, and pair programming.
157
169
  test_files:
158
170
  - features/add_user.feature
159
171
  - features/change_user_in_different_scopes.feature
@@ -166,12 +178,17 @@ test_files:
166
178
  - features/step_definitions/gitsu_steps.rb
167
179
  - features/support/env.rb
168
180
  - features/switch_to_fully_qualified_user.feature
181
+ - features/switch_to_multiple_users.feature
169
182
  - features/switch_to_stored_user.feature
183
+ - spec/gitsu/array_spec.rb
170
184
  - spec/gitsu/bin_spec.rb
185
+ - spec/gitsu/config_repository_spec.rb
171
186
  - spec/gitsu/git_spec.rb
172
187
  - spec/gitsu/gitsu_spec.rb
173
188
  - spec/gitsu/runner_spec.rb
189
+ - spec/gitsu/shell_spec.rb
174
190
  - spec/gitsu/switcher_spec.rb
191
+ - spec/gitsu/user_file_spec.rb
175
192
  - spec/gitsu/user_list_spec.rb
176
193
  - spec/gitsu/user_spec.rb
177
194
  - spec/gitsu/version_spec.rb