osrcry 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/osrcry/contributors.rb +6 -1
- data/lib/osrcry/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0f2d38bf57cfd19d8f9368a4d3041860f5314f81
|
4
|
+
data.tar.gz: 890b2fb33034803fa44a28179fd70fb98f688bc6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9b1dbab078ee6235fe0368d5e0d11dc8d5cc54eb2137271fe44132b592f68eedc7decb59b70cb7faf82adbd9223c21888d792b2fb5ebb24d59c8a95747f72d59
|
7
|
+
data.tar.gz: 3d4bdcea064415aac0a6e4afc5a2ff00883a7739b582e489f1b200d96d5d8e51a26ede6cf2e5369d9464a0f4644576e3cb7b36ae299edec9f5505dfa0ba48931
|
data/Gemfile.lock
CHANGED
data/lib/osrcry/contributors.rb
CHANGED
@@ -1,7 +1,12 @@
|
|
1
1
|
module Osrcry
|
2
2
|
class Contributors
|
3
3
|
def self.execute
|
4
|
-
collaborators = `git log --pretty=format:"* %an <%ae>"`.split("\n").uniq.sort
|
4
|
+
collaborators = `git log --pretty=format:"* %an <%ae>" 2>&1`.split("\n").uniq.sort
|
5
|
+
|
6
|
+
if collaborators.first == "fatal: your current branch 'master' does not have any commits yet"
|
7
|
+
puts "Unable to create CONTRIBUTORS.md as there are no git commits.\nPlease add git commits and try again."
|
8
|
+
return
|
9
|
+
end
|
5
10
|
|
6
11
|
File.open('CONTRIBUTORS.md', 'w') do |file|
|
7
12
|
file.write(collaborators.join("\n"))
|
data/lib/osrcry/version.rb
CHANGED