learn_create 0.0.11 → 0.0.13
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/learn_create.rb +4 -6
- data/lib/templates/javascript_lab_template/README.md +4 -3
- data/lib/templates/react-lab-template/README.md +3 -0
- data/lib/templates/readme_template/README.md +4 -4
- data/lib/templates/ruby_lab_template/README.md +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2817ff2c28fc48a51976633069f4fc96059bd954b111a8b93b39e8f403d8436f
|
4
|
+
data.tar.gz: 50a0185e93675d711a3ff3de09a9aa3e526df2be04ace970174b03613f4683ce
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5d54b57d558c7284db80f07989248e3ca83cff1fa6ba2e0c67da5b5bc605b986ce87d8b49f3f8936b690e26dd51a3729270164c7001ba9ba4283513011b8a320
|
7
|
+
data.tar.gz: a9e906915fd4511287e918c6827e39a6f8db5b228845dbd9b14fe2a913550f1b26d4b039d148e8cd4e8c2a7618e438c6a91c4fea8f2f44dedcc3e0a8025d8c54
|
data/README.md
CHANGED
@@ -18,7 +18,7 @@ repository on learn-co-curriculum. In the shell:
|
|
18
18
|
- Run `hub create learn-co-curriculum/<whatever name you've chosen>`
|
19
19
|
- You should be prompted to sign into GitHub
|
20
20
|
- If everything works as expected you should now have an empty
|
21
|
-
learn-co-curriculum repo
|
21
|
+
learn-co-curriculum repo on GitHub
|
22
22
|
- Delete the repo. Everything should be set up now.
|
23
23
|
|
24
24
|
Install the `learn_create` gem:
|
data/lib/learn_create.rb
CHANGED
@@ -30,6 +30,7 @@ class LearnCreate
|
|
30
30
|
puts 'Is this a Readme? (y/n)'
|
31
31
|
readme = gets.chomp.downcase
|
32
32
|
break if readme =~ /^(y|n)/
|
33
|
+
break if reamde = ''
|
33
34
|
puts 'Please enter yes or no'
|
34
35
|
puts ''
|
35
36
|
end
|
@@ -44,13 +45,10 @@ class LearnCreate
|
|
44
45
|
create_local_lesson('lab', 'Ruby')
|
45
46
|
when /^j/
|
46
47
|
create_local_lesson('lab', 'JavaScript')
|
47
|
-
|
48
48
|
when /^re/
|
49
49
|
create_local_lesson('lab', 'React')
|
50
|
-
|
51
50
|
else
|
52
|
-
|
53
|
-
|
51
|
+
create_local_lesson('readme')
|
54
52
|
end
|
55
53
|
|
56
54
|
else
|
@@ -61,7 +59,7 @@ class LearnCreate
|
|
61
59
|
|
62
60
|
create_new_repo
|
63
61
|
puts ''
|
64
|
-
puts "Repository created. Navigate into #{@repo_name} or open https://github.com/learn-co-curriculum/#{@repo_name} to get started
|
62
|
+
puts "Repository created. Navigate into #{@repo_name} or open https://github.com/learn-co-curriculum/#{@repo_name} to get started"
|
65
63
|
end
|
66
64
|
|
67
65
|
private
|
@@ -146,7 +144,7 @@ languages:
|
|
146
144
|
end
|
147
145
|
|
148
146
|
def create_new_repo
|
149
|
-
#
|
147
|
+
# 'cd' doesn't work the way it would in the shell, must be used before every command
|
150
148
|
puts ''
|
151
149
|
puts 'Initializing git repository'
|
152
150
|
git_init
|