travis_reprise 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/travis_reprise +3 -2
- data/travis_reprise.gemspec +1 -1
- metadata +2 -2
data/bin/travis_reprise
CHANGED
@@ -15,9 +15,9 @@ unless user && repo && branch
|
|
15
15
|
exit 1
|
16
16
|
end
|
17
17
|
|
18
|
-
cfg_file = File.read(File.expand_path('~/.travis-reprise.json'))
|
19
18
|
begin
|
20
|
-
|
19
|
+
cfg_file = File.expand_path('~/.travis-reprise.json')
|
20
|
+
config = JSON.parse(File.read(cfg_file))
|
21
21
|
rescue Errno::ENOENT
|
22
22
|
$stdout.sync = true
|
23
23
|
print "Github Username: "
|
@@ -30,6 +30,7 @@ rescue Errno::ENOENT
|
|
30
30
|
|
31
31
|
json = `curl -u '#{u}:#{p}' -d '{"scopes":["repo"],"note":"Travis Reprise"}' https://api.github.com/authorizations 2>/dev/null`
|
32
32
|
data = JSON.parse(json)
|
33
|
+
|
33
34
|
if data['token']
|
34
35
|
File.open(cfg_file, 'w') do |f|
|
35
36
|
f << json
|
data/travis_reprise.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: travis_reprise
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-10-
|
12
|
+
date: 2012-10-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: github_api
|