learn-config 1.0.2 → 1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6ae056b0a8c37d5d1169543cad800be9e8f8d0ae
4
- data.tar.gz: e70383dd09d4dfa0713e0875c30b979406e3c0d5
3
+ metadata.gz: f41a17e707614260329d7a1cfc5789f5bed709e1
4
+ data.tar.gz: 1029e5fac27a15068ea4a19328fbe1ba6ab88e50
5
5
  SHA512:
6
- metadata.gz: 3bdf8e974d71f123400beb25e25529b635731643234b53ebe7f74b04eb31669e9b55dffb0db5c837cb1b6a3415359d817b6fee1c89f0cb8e4726517a37870f3a
7
- data.tar.gz: 86aa68aa63680565341c8d14c5ae06ffd93899a19d50e524ae4fea22be951bad532f0a1f031e1126042b6fe4547de4cd9c39679f103a22ff69bbed1a7b8d69c5
6
+ metadata.gz: 81e590aa8a3f503c07da5c9a0eda7f60062b0482ded6094781c83f8ed86a84c98517945e813380c1417d8444526099eaf61c1d9af08377d7804277f12bfee169
7
+ data.tar.gz: 398291f096fc655664223f65949c9dc996b04b4d50128158e0dcef7dcc3b8f6dca5b803fdeeb6c85e579d16f7541e4f612eb086610594ff3e85b739959d87e82
@@ -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: github_username, new_password: oauth_token)
216
+ netrc.write(new_login: 'learn', new_password: oauth_token)
217
217
  end
218
218
  end
219
219
 
@@ -1,3 +1,3 @@
1
1
  module LearnConfig
2
- VERSION = "1.0.2"
2
+ VERSION = "1.0.3"
3
3
  end
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.2
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-05-29 00:00:00.000000000 Z
11
+ date: 2015-06-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler