gboom 0.0.2 → 0.0.3

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 (3) hide show
  1. data/bin/gboom +4 -2
  2. data/lib/gboom/version.rb +1 -1
  3. metadata +1 -1
data/bin/gboom CHANGED
@@ -35,8 +35,10 @@ command :add do |c|
35
35
  end
36
36
 
37
37
  # grab credentials from env or global gitfile
38
- username = ENV['GITHUB_USERNAME'].empty? ? `git config --global --get github.user` : ENV['GITHUB_USERNAME']
39
- password = ENV['GITHUB_PASSWORD'].empty? ? `git config --global --get github.password` : ENV['GITHUB_PASSWORD']
38
+ env_username = ENV['GITHUB_USERNAME']
39
+ env_password = ENV['GITHUB_PASSWORD']
40
+ username = env_username.nil? || env_username.empty? ? `git config --global --get github.user` : env_username
41
+ password = env_password.nil? || env_password.empty ? `git config --global --get github.password` : env_password
40
42
 
41
43
  raise "You probably didn't read the instructions did you? You can't just skip to the good stuff, setup your github credentials. Noob." if username.empty? || password.empty?
42
44
  github = Github.new basic_auth: "#{username.strip}:#{password.strip}"
data/lib/gboom/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module GBoom
2
- VERSION = '0.0.2'
2
+ VERSION = '0.0.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gboom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: