github_fastforward 2.1.2 → 2.2.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 +8 -0
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5b5a5afb0175f0aac3caa350a20f7f0da10bf83
4
- data.tar.gz: 415f869c3ff5f22a2eda0d05b6a2958167939812
3
+ metadata.gz: c1b61e029b9b32abc68eb228ab9adb02ed19b4ad
4
+ data.tar.gz: 7f6f0de9501ae39b1a0ce74c24329fc026ebe908
5
5
  SHA512:
6
- metadata.gz: a5ca406457cd7ec704cb1d3fcfca031cf443c0c978d7500e72cafcad7e8d3c2642d75a7a6618db7ccb910f63c83b6fcceb4966993f32d52396ca551909e7c52d
7
- data.tar.gz: 368f5ad3c37570d9d2d5e559db77408744454bd47f7964097caf5d9e9bba6bb1790bc2d36e2ba6711eb5211e0dac0b070f8bca98bc997a665201363f5681272b
6
+ metadata.gz: d4586dc57c3fd436fa482d8994f1940b4b7e7bf4e249afaab9084930b7a55a2c4be0073b8e62fb2ca34d8aef073b5d2853bde22ea6cb2a9729add061250ffe0a
7
+ data.tar.gz: d0774713b20cae970e0d2957b548c76608f6471904def489734c30c33af8915707d4e4c8edc8559b9f7e0125194f44b9a58e6cd60426103cf9346f8981d29941
@@ -16,6 +16,8 @@ if ARGV[0] == '-u' && ARGV[2] == '-p'
16
16
  pword = ARGV[3]
17
17
  end
18
18
 
19
+ token = ARGV[1] if ARGV[0] == '-t'
20
+
19
21
  unless uname.nil? || pword.nil?
20
22
  Octokit.configure do |conf|
21
23
  conf.login = uname
@@ -23,6 +25,12 @@ unless uname.nil? || pword.nil?
23
25
  end
24
26
  end
25
27
 
28
+ unless token.nil?
29
+ Octokit.configure do |conf|
30
+ conf.access_token = token
31
+ end
32
+ end
33
+
26
34
  unless system 'git rev-parse --git-dir > /dev/null 2>&1'
27
35
  puts 'Not in a git repo!'
28
36
  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.1.2
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Caleb Smith