github_fastforward 2.0.2 → 2.1.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 (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/github_fastforward +19 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a300aaffcb29a4894955ef7d0c2db148aef9c91b
4
- data.tar.gz: c7b91d9e88ba0773839fb6e4b2a0e02528f84597
3
+ metadata.gz: ba79be9af2157f4b870aaf7e8b4ec59dbb66d4fb
4
+ data.tar.gz: 3b87ea4b7980c5076d0f02eb5f9ed8c7113b84c0
5
5
  SHA512:
6
- metadata.gz: f83732a23fb33ebcefd034c81972751d3ef56f1cca7e430545c777e74554885bb45c18e082613669febddd8ea8337292f9e2313a9fdcf6c8accbd36bf8ba09e0
7
- data.tar.gz: 5cfc83df5051559e1a447570531046b64579bc3b84d74e53abffceca903d3569281c28cbd3e9c549835d7dcdd73cc7b66ac1bd6aead49d2102f66f82245ee5b3
6
+ metadata.gz: a297c5d81180428ae91377b535d847f8e7fb86aec014cfda3331c749e0a36da89e1148d5deefd74955cbebf7ac4b18222a67a7e97634832b66cad1714d2d20d5
7
+ data.tar.gz: 9b950b2d7b087f4851df6886494046f1b54ad116d1e06d3cc9c42bdd038e485db75deab82b8e29cff77a31c6e9819d51d5f3ad567d33359752b05aa78e54569f
@@ -4,6 +4,25 @@ require "octokit"
4
4
 
5
5
  parent = "upstream"
6
6
 
7
+ if ARGV[0] == "-a"
8
+ print "Username: "
9
+ uname = STDIN.gets.chomp
10
+ print "Password: "
11
+ pword = STDIN.gets.chomp
12
+ end
13
+
14
+ if ARGV[0] == "-u" && ARGV[2] == "-p"
15
+ uname = ARGV[1]
16
+ pword = ARGV[3]
17
+ end
18
+
19
+ if uname != nil && pword != nil
20
+ Octokit.configure do |conf|
21
+ conf.login = uname
22
+ conf.password = pword
23
+ end
24
+ end
25
+
7
26
  unless system "git rev-parse --git-dir > /dev/null 2>&1"
8
27
  puts "Not in a git repo!"
9
28
  exit
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_fastforward
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.2
4
+ version: 2.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Smith