learn-config 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/learn_config/setup.rb +2 -2
- data/lib/learn_config/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f41a17e707614260329d7a1cfc5789f5bed709e1
|
4
|
+
data.tar.gz: 1029e5fac27a15068ea4a19328fbe1ba6ab88e50
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 81e590aa8a3f503c07da5c9a0eda7f60062b0482ded6094781c83f8ed86a84c98517945e813380c1417d8444526099eaf61c1d9af08377d7804277f12bfee169
|
7
|
+
data.tar.gz: 398291f096fc655664223f65949c9dc996b04b4d50128158e0dcef7dcc3b8f6dca5b803fdeeb6c85e579d16f7541e4f612eb086610594ff3e85b739959d87e82
|
data/lib/learn_config/setup.rb
CHANGED
@@ -178,7 +178,7 @@ module LearnConfig
|
|
178
178
|
end
|
179
179
|
|
180
180
|
def write_default_config!
|
181
|
-
learn_dir = File.expand_path('~/Development/code')
|
181
|
+
learn_dir = on_a_mac? ? File.expand_path('~/Development/code') : File.expand_path('~/code')
|
182
182
|
config_path = File.expand_path('~/.learn-config')
|
183
183
|
|
184
184
|
ensure_default_dir_exists!(learn_dir)
|
@@ -213,7 +213,7 @@ module LearnConfig
|
|
213
213
|
if (!login || !password) || !LearnWeb::Client.new(token: password, silent_output: true).valid_token?
|
214
214
|
github_username, _uid = netrc.read(machine: 'flatiron-push')
|
215
215
|
oauth_token = LearnConfig::CLI.new(github_username).ask_for_oauth_token
|
216
|
-
netrc.write(new_login:
|
216
|
+
netrc.write(new_login: 'learn', new_password: oauth_token)
|
217
217
|
end
|
218
218
|
end
|
219
219
|
|
data/lib/learn_config/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn-config
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flatiron School
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-06-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|