simple-git-pair 0.2.0 → 0.3.0

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: 6367384134c623b2dcfc6d5a575b260ae2a7a0a6
4
+ data.tar.gz: 5832db9e13fdef7e826d252a56b524314f75ef5d
5
+ SHA512:
6
+ metadata.gz: 7a5ca1751ed52ad767493eac5aafa461bc680660e195e37ddc1181fe20dd90b6356a9dcb46fc7bf695454053af3f49507e435ab82e66f2329e54bbae7de536dd
7
+ data.tar.gz: d3e37e11d32f32cf98df55477eb120ef5405350f2dc41b4769d64ba5ab3345ea55b20a64afdb95c1ebddee7bba8a169fbe743533d47ef932606fd80c13f461d2
@@ -1,7 +1,13 @@
1
+ ## 0.3.0
2
+ - Added support ruby-2.0.0 support
3
+ - Added support ruby-2.1.0 support
4
+ - Locked runtime dependencies
5
+ - Thanks to @michaelrkn. Switched to preferred rainbow syntax to fix exceptions and failing specs
6
+
1
7
  ## 0.2.0
2
8
  - New command: git pair delete
3
9
  - New command: git pair list
4
- - Added support ruby-1.9.2 spport
10
+ - Added support ruby-1.9.2 support
5
11
  - Bugfix: `git pair add` doesn't add a same pair
6
12
 
7
13
  ## 0.1.0
@@ -23,4 +29,4 @@
23
29
  - Fixed ugly output if unknown pair is specified
24
30
 
25
31
  ## 0.0.1
26
- - Initial release
32
+ - Initial release
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2012-2013 Alexander Tamoykin
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -6,7 +6,7 @@ Simple way to add your pair to a git commit message.
6
6
 
7
7
  ## Description
8
8
  Unlike many other gems it changes only user.name and does NOT change your email address in git config,
9
- so Github can associate your commit to github account properly.
9
+ so Github can associate your commit to github account properly.
10
10
  This is especially useful for Github graphs and statistics.
11
11
 
12
12
  ## Installation and Usage
@@ -26,9 +26,11 @@ git pair help # display a help page
26
26
  ```
27
27
 
28
28
  ## Supported Rubies
29
+ - 2.1.0
30
+ - 2.0.0
29
31
  - 1.9.3
30
- - 1.9.2
31
- - 1.8.7
32
32
 
33
33
  ## Issues and Contributions
34
- Feel free to submit [issues](https://github.com/fsproru/simple-git-pair/issues), pull requests or [feedback](mailto: a.tamoykin@gmail.com)
34
+ Feel free to submit [issues](https://github.com/fsproru/simple-git-pair/issues), pull requests or [feedback](mailto: a.tamoykin@gmail.com)
35
+
36
+ Copyright (c) 2012-2014 Alexander Tamoykin. Licensed under the [MIT LICENSE](https://github.com/fsproru/simple-git-pair/blob/master/LICENSE)
@@ -30,6 +30,10 @@ When /^I commit some changes$/ do
30
30
  step 'I run `git commit -m "some changes"`'
31
31
  end
32
32
 
33
+ When /^I wait (\d+) seconds$/ do |seconds|
34
+ sleep seconds.to_i
35
+ end
36
+
33
37
  Then /^I should see "(.*?)" on the commit$/ do |username|
34
38
  step 'I run `git --no-pager log`'
35
39
  step %Q{the output should contain "Author: #{username}"}
@@ -4,7 +4,7 @@ PROJECT_ROOT = "#{File.dirname(__FILE__)}/../.."
4
4
  CUKE_TMP_DIR = File.join PROJECT_ROOT, 'features', 'tmp'
5
5
 
6
6
  Before do
7
- @dirs = [CUKE_TMP_DIR]
7
+ @dirs = [CUKE_TMP_DIR] # tell aruba to use tmp directory
8
8
  @real_home = ENV['HOME']
9
9
  ENV['HOME'] = CUKE_TMP_DIR
10
10
  @pairs_file = File.join ENV['HOME'], ".git_pairs"
@@ -29,7 +29,7 @@ module SimpleGitPair
29
29
 
30
30
  pairs[initials] = fullname
31
31
  Helper.save_pairs pairs
32
- puts message.color(:green)
32
+ puts Rainbow(message).green
33
33
  end
34
34
 
35
35
  private
@@ -14,7 +14,7 @@ module SimpleGitPair
14
14
  exit 1
15
15
  end
16
16
 
17
- puts `git config user.name`.chomp.color(:green)
17
+ puts Rainbow(`git config user.name`.chomp).green
18
18
  end
19
19
  end
20
20
  end
@@ -22,7 +22,7 @@ module SimpleGitPair
22
22
  if existing_user
23
23
  pairs.delete initials
24
24
  Helper.save_pairs pairs
25
- puts "Deleted #{initials}: #{existing_user}".color(:green)
25
+ puts Rainbow("Deleted #{initials}: #{existing_user}").green
26
26
  else
27
27
  puts "There is no #{initials}"
28
28
  end
@@ -1,5 +1,5 @@
1
1
  module SimpleGitPair
2
2
  SUMMARY = "Simple way to add your pair to a git commit message"
3
3
  BINARY_NAME = "git pair"
4
- VERSION = '0.2.0'
4
+ VERSION = '0.3.0'
5
5
  end
metadata CHANGED
@@ -1,93 +1,113 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: simple-git-pair
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
5
- prerelease:
4
+ version: 0.3.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Alexander Tamoykin
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2012-09-30 00:00:00.000000000 Z
11
+ date: 2014-02-22 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: commander
16
- requirement: &70223973955700 !ruby/object:Gem::Requirement
17
- none: false
15
+ requirement: !ruby/object:Gem::Requirement
18
16
  requirements:
19
- - - ! '>='
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '0'
19
+ version: 4.1.6
22
20
  type: :runtime
23
21
  prerelease: false
24
- version_requirements: *70223973955700
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 4.1.6
25
27
  - !ruby/object:Gem::Dependency
26
28
  name: rainbow
27
- requirement: &70223973955060 !ruby/object:Gem::Requirement
28
- none: false
29
+ requirement: !ruby/object:Gem::Requirement
29
30
  requirements:
30
- - - ! '>='
31
+ - - "~>"
31
32
  - !ruby/object:Gem::Version
32
- version: '0'
33
+ version: 2.0.0
33
34
  type: :runtime
34
35
  prerelease: false
35
- version_requirements: *70223973955060
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: 2.0.0
36
41
  - !ruby/object:Gem::Dependency
37
42
  name: rspec
38
- requirement: &70223973954620 !ruby/object:Gem::Requirement
39
- none: false
43
+ requirement: !ruby/object:Gem::Requirement
40
44
  requirements:
41
- - - ! '>='
45
+ - - ">="
42
46
  - !ruby/object:Gem::Version
43
47
  version: '0'
44
48
  type: :development
45
49
  prerelease: false
46
- version_requirements: *70223973954620
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ">="
53
+ - !ruby/object:Gem::Version
54
+ version: '0'
47
55
  - !ruby/object:Gem::Dependency
48
56
  name: aruba
49
- requirement: &70223973954040 !ruby/object:Gem::Requirement
50
- none: false
57
+ requirement: !ruby/object:Gem::Requirement
51
58
  requirements:
52
- - - ! '>='
59
+ - - ">="
53
60
  - !ruby/object:Gem::Version
54
61
  version: '0'
55
62
  type: :development
56
63
  prerelease: false
57
- version_requirements: *70223973954040
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
58
69
  - !ruby/object:Gem::Dependency
59
70
  name: cucumber
60
- requirement: &70223973953420 !ruby/object:Gem::Requirement
61
- none: false
71
+ requirement: !ruby/object:Gem::Requirement
62
72
  requirements:
63
- - - ! '>='
73
+ - - ">="
64
74
  - !ruby/object:Gem::Version
65
75
  version: '0'
66
76
  type: :development
67
77
  prerelease: false
68
- version_requirements: *70223973953420
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
69
83
  - !ruby/object:Gem::Dependency
70
84
  name: rake
71
- requirement: &70223973952520 !ruby/object:Gem::Requirement
72
- none: false
85
+ requirement: !ruby/object:Gem::Requirement
73
86
  requirements:
74
- - - ! '>='
87
+ - - ">="
75
88
  - !ruby/object:Gem::Version
76
89
  version: '0'
77
90
  type: :development
78
91
  prerelease: false
79
- version_requirements: *70223973952520
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
80
97
  - !ruby/object:Gem::Dependency
81
98
  name: debugger
82
- requirement: &70223973950980 !ruby/object:Gem::Requirement
83
- none: false
99
+ requirement: !ruby/object:Gem::Requirement
84
100
  requirements:
85
- - - ! '>='
101
+ - - ">="
86
102
  - !ruby/object:Gem::Version
87
103
  version: '0'
88
104
  type: :development
89
105
  prerelease: false
90
- version_requirements: *70223973950980
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
91
111
  description: Simple way to add your pair to a git commit message
92
112
  email:
93
113
  - a.tamoykin@gmail.com
@@ -96,6 +116,13 @@ executables:
96
116
  extensions: []
97
117
  extra_rdoc_files: []
98
118
  files:
119
+ - CHANGELOG.md
120
+ - LICENSE
121
+ - README.md
122
+ - bin/git-pair
123
+ - features/step_definitions/pair_steps.rb
124
+ - features/support/env.rb
125
+ - lib/simple-git-pair.rb
99
126
  - lib/simple-git-pair/command/add.rb
100
127
  - lib/simple-git-pair/command/base.rb
101
128
  - lib/simple-git-pair/command/change.rb
@@ -104,10 +131,6 @@ files:
104
131
  - lib/simple-git-pair/command/list.rb
105
132
  - lib/simple-git-pair/helper.rb
106
133
  - lib/simple-git-pair/version.rb
107
- - lib/simple-git-pair.rb
108
- - bin/git-pair
109
- - CHANGELOG.md
110
- - README.md
111
134
  - spec/lib/simple-git-pair/command/add_spec.rb
112
135
  - spec/lib/simple-git-pair/command/base_spec.rb
113
136
  - spec/lib/simple-git-pair/command/change_spec.rb
@@ -117,31 +140,28 @@ files:
117
140
  - spec/lib/simple-git-pair/helper_spec.rb
118
141
  - spec/spec_helper.rb
119
142
  - spec/support/shared_examples/command_examples.rb
120
- - features/step_definitions/pair_steps.rb
121
- - features/support/env.rb
122
143
  homepage: http://github.com/fsproru/simple-git-pair
123
144
  licenses: []
124
- post_install_message: ! 'Pair up! Run: git pair'
145
+ metadata: {}
146
+ post_install_message: 'Pair up! Run: git pair'
125
147
  rdoc_options: []
126
148
  require_paths:
127
149
  - lib
128
150
  required_ruby_version: !ruby/object:Gem::Requirement
129
- none: false
130
151
  requirements:
131
- - - ! '>='
152
+ - - ">="
132
153
  - !ruby/object:Gem::Version
133
154
  version: '0'
134
155
  required_rubygems_version: !ruby/object:Gem::Requirement
135
- none: false
136
156
  requirements:
137
- - - ! '>='
157
+ - - ">="
138
158
  - !ruby/object:Gem::Version
139
159
  version: '0'
140
160
  requirements: []
141
161
  rubyforge_project:
142
- rubygems_version: 1.8.10
162
+ rubygems_version: 2.2.0
143
163
  signing_key:
144
- specification_version: 3
164
+ specification_version: 4
145
165
  summary: Simple way to add your pair to a git commit message
146
166
  test_files:
147
167
  - spec/lib/simple-git-pair/command/add_spec.rb