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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8330e16559995af08848eb3450731dc90e504bb8
4
- data.tar.gz: dcd09f3e17d55b02f173aaae738855a289aa0b3b
3
+ metadata.gz: 0f2d38bf57cfd19d8f9368a4d3041860f5314f81
4
+ data.tar.gz: 890b2fb33034803fa44a28179fd70fb98f688bc6
5
5
  SHA512:
6
- metadata.gz: 60a0f7461d3b0a1c2dcb61c17d741125f0463e1052674702458071c12e1e70bd9a35629efe8d2d1eabc96e4e7c26ada9d5ff11fbeacb5232ffe5bd23a17ade5b
7
- data.tar.gz: d976e3bb09c9ec963c8e95c42c3d48a1c8bbed0a217fdaa32af89e08e8f8e5a2ae94d02865126a39f0548ce3202ae2c1bea2075e6488602b52cf0699102a178a
6
+ metadata.gz: 9b1dbab078ee6235fe0368d5e0d11dc8d5cc54eb2137271fe44132b592f68eedc7decb59b70cb7faf82adbd9223c21888d792b2fb5ebb24d59c8a95747f72d59
7
+ data.tar.gz: 3d4bdcea064415aac0a6e4afc5a2ff00883a7739b582e489f1b200d96d5d8e51a26ede6cf2e5369d9464a0f4644576e3cb7b36ae299edec9f5505dfa0ba48931
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- osrcry (0.2.1)
4
+ osrcry (0.2.2)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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"))
@@ -1,3 +1,3 @@
1
1
  module Osrcry
2
- VERSION = "0.2.1"
2
+ VERSION = "0.2.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: osrcry
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus