learn-config 1.0.74 → 1.0.78

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 2325b66e62d3e2083532c539e73d8e90b8ca467d
4
- data.tar.gz: 2f266a3e889204ef654e3853f63f0549130b2988
2
+ SHA256:
3
+ metadata.gz: c7f9f1090847b744e95e97e224901beb780c8197c0ebc4a55912300e45d84558
4
+ data.tar.gz: 239f5ea00eec27655b29fba09fd80d612a048e55b6103b618832c16f6983e51f
5
5
  SHA512:
6
- metadata.gz: 54148747024c815ea7bde958d88ce745bb18b6ea488fc4be67b68522812e6a97f6f30e1a2bfa0e58e09c3dda480af1fa5e12077422dbc3b4d9694249a9d61150
7
- data.tar.gz: 6187461a29f1342cfea31f939de642f9e4edffb379a927ead7284d3c4832cb445fceebf67bff4340bd25bc8658def1cd58c1cbd722bb33749cdbfbc9eaad6594
6
+ metadata.gz: 14a5dfdb449de9ada428c7b4bccdfe3769f13969348e721ca022ec5d1da1182faa1e5a548284e5741d2f2cfa22dd3d6ab25de210506cd1ae9fa1f56f54c57e65
7
+ data.tar.gz: 82b52a9551c533b77df686f22bcad9e67808688e4aab44f05e2dd23c85107be6567db4bde182e014d6462ddea9e69c8fc9177d4aa069a25df262b9029f8c80b4
data/learn-config.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
9
9
  spec.authors = ["Flatiron School"]
10
10
  spec.email = ["learn@flatironschool.com"]
11
11
  spec.summary = %q{Configure the Learn gem}
12
- spec.homepage = "https://learn.co"
12
+ spec.homepage = "https://github.com/learn-co/learn-config"
13
13
  spec.license = "MIT"
14
14
 
15
15
  spec.files = `git ls-files -z`.split("\x0")
@@ -21,5 +21,5 @@ Gem::Specification.new do |spec|
21
21
  spec.add_development_dependency "rake", "~> 10.0"
22
22
 
23
23
  spec.add_runtime_dependency "netrc"
24
- spec.add_runtime_dependency "learn-web", ">= 1.1.0"
24
+ spec.add_runtime_dependency "learn-web", ">= 1.5.0"
25
25
  end
@@ -10,9 +10,9 @@ module LearnConfig
10
10
  def ask_for_oauth_token(short_text: false, retries_remaining: 5)
11
11
  if !short_text
12
12
  puts <<-LONG
13
- To connect with the Learn web application, you will need to configure
14
- the Learn gem with an OAuth token. You can find yours at the bottom of your profile
15
- page at: https://learn.co/#{github_username ? github_username : 'your-github-username'}.
13
+ In order to receive credit for your work, you will need to configure
14
+ the Learn gem with an OAuth token. You can find yours in Base at:
15
+ https://base.flatironschool.com/account/manage
16
16
 
17
17
  LONG
18
18
 
@@ -28,7 +28,7 @@ module LearnConfig
28
28
  private
29
29
 
30
30
  def ensure_proper_permissions!
31
- system('chmod 0600 ~/.netrc')
31
+ system('chmod 0600 ~/.netrc &>/dev/null')
32
32
  end
33
33
  end
34
34
  end
@@ -72,13 +72,13 @@ module LearnConfig
72
72
  path = ''
73
73
 
74
74
  while !path.start_with?('/')
75
- print "Enter the directory in which to store Learn lessons (/Users/#{ENV['USER']}/Development/code): "
75
+ print "Enter the directory in which to store Learn lessons (#{ENV['HOME']}/Development/code): "
76
76
  path = gets.chomp
77
77
 
78
78
  if path.start_with?('~')
79
79
  path = File.expand_path(path)
80
80
  elsif path == ''
81
- path = "/Users/#{ENV['USER']}/Development/code"
81
+ path = "#{ENV['HOME']}/Development/code"
82
82
  elsif !path.start_with?('/')
83
83
  puts "Absolute paths only, please!"
84
84
  end
@@ -241,8 +241,8 @@ module LearnConfig
241
241
 
242
242
  netrc.write(
243
243
  machine: 'flatiron-push',
244
- new_login: github_username,
245
- new_password: github_user_id
244
+ new_login: github_username || 'learn',
245
+ new_password: github_user_id || 'learn'
246
246
  )
247
247
  end
248
248
  end
@@ -1,3 +1,3 @@
1
1
  module LearnConfig
2
- VERSION = '1.0.74'
2
+ VERSION = '1.0.78'
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.74
4
+ version: 1.0.78
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-07-01 00:00:00.000000000 Z
11
+ date: 2021-10-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -58,15 +58,15 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.1.0
61
+ version: 1.5.0
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.1.0
69
- description:
68
+ version: 1.5.0
69
+ description:
70
70
  email:
71
71
  - learn@flatironschool.com
72
72
  executables:
@@ -86,11 +86,11 @@ files:
86
86
  - lib/learn_config/netrc_interactor.rb
87
87
  - lib/learn_config/setup.rb
88
88
  - lib/learn_config/version.rb
89
- homepage: https://learn.co
89
+ homepage: https://github.com/learn-co/learn-config
90
90
  licenses:
91
91
  - MIT
92
92
  metadata: {}
93
- post_install_message:
93
+ post_install_message:
94
94
  rdoc_options: []
95
95
  require_paths:
96
96
  - lib
@@ -106,9 +106,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
106
106
  - !ruby/object:Gem::Version
107
107
  version: '0'
108
108
  requirements: []
109
- rubyforge_project:
110
- rubygems_version: 2.4.8
111
- signing_key:
109
+ rubygems_version: 3.0.6
110
+ signing_key:
112
111
  specification_version: 4
113
112
  summary: Configure the Learn gem
114
113
  test_files: []