learn_create 0.0.11 → 0.0.13

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
  SHA256:
3
- metadata.gz: 634bcd11ebe7876f4cca3c844e93e1f803098cf026ee2892ba51e2f46633e676
4
- data.tar.gz: 0cefdf3d0f75f951c0247cd4434bace17b9c4eb6c24b188b64035f0b52a5fa6d
3
+ metadata.gz: 2817ff2c28fc48a51976633069f4fc96059bd954b111a8b93b39e8f403d8436f
4
+ data.tar.gz: 50a0185e93675d711a3ff3de09a9aa3e526df2be04ace970174b03613f4683ce
5
5
  SHA512:
6
- metadata.gz: b9a6a35717fc86fa2c2aa6e8b0c359f48f436cd506aadfd6818470cfe0563bb45e2bad99202a95a8ef294e73a9065327786f134c29f2d49d7f73ba112ebab802
7
- data.tar.gz: ed48af54801d2a3cf1ed1b74f946140c1653ad908ca331ea788df962f52dacd0f684b3ad55493172131cb0037d5ecd51f9147f505bd277233a760e8906e50208
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
- puts 'I am sorry, something went wrong, please start over'
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
- # must be in a single chain. 'cd' doesn't work the way it would in the shell
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
@@ -2,13 +2,14 @@
2
2
 
3
3
  ## Learning Goals
4
4
 
5
- - SWBATs
5
+ -SWBAT 1
6
+ -SWBAT 2
6
7
 
7
8
  ## Introduction
8
9
 
9
- ### SWBAT 1
10
+ ## SWBAT 1
10
11
 
11
- ### SWBAT 2
12
+ ## SWBAT 2
12
13
 
13
14
  ## Conclusion
14
15
 
@@ -2,6 +2,9 @@
2
2
 
3
3
  ## Learning Goals
4
4
 
5
+ -SWBAT 1
6
+ -SWBAT 2
7
+
5
8
  ## Introduction
6
9
 
7
10
  ## SWBAT 1
@@ -2,14 +2,14 @@
2
2
 
3
3
  ## Learning Goals
4
4
 
5
- - SWBAT 1
6
- - SWBAT 2
5
+ -SWBAT 1
6
+ -SWBAT 2
7
7
 
8
8
  ## Introduction
9
9
 
10
- ### SWBAT 1
10
+ ## SWBAT 1
11
11
 
12
- ### SWBAT 2
12
+ ## SWBAT 2
13
13
 
14
14
  ## Conclusion
15
15
 
@@ -7,9 +7,9 @@
7
7
 
8
8
  ## Introduction
9
9
 
10
- ### SWBAT 1
10
+ ## SWBAT 1
11
11
 
12
- ### SWBAT 2
12
+ ## SWBAT 2
13
13
 
14
14
  ## Conclusion
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn_create
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.11
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - flatironschool