learn_create 0.0.17 → 0.0.18
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/learn_create.rb +28 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5a397ec4099b22f865a2e96de78304c280016072ee317ae6ce96f6c24572e31
|
4
|
+
data.tar.gz: b12771873be24cfdacc0fdd7dac21889d94ffbe27c2649c4e1def3ac815b7438
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b88452442387e3bf66e7d7c4af2bfae8ddd579a35efc835fd1c2506d6871f9def23bcf6d990ed1a6f66bd3f06a1ab99532f5e0265ecc5f67c0cfc5feefd320f
|
7
|
+
data.tar.gz: 4a34c211543744f0393621d68c96349515f2e54b219911b630cdc00df0fee1d62c4623a6af1d88ef84d90c19d11c1901dfb0ea3442b6a4cafb0a26fd731ab538
|
data/lib/learn_create.rb
CHANGED
@@ -89,6 +89,7 @@ class LearnCreate
|
|
89
89
|
|
90
90
|
copy_template(template_path)
|
91
91
|
create_dot_learn_file(type, language)
|
92
|
+
create_dot_gitignore_file()
|
92
93
|
end
|
93
94
|
|
94
95
|
def copy_template(template_path)
|
@@ -108,6 +109,33 @@ languages:
|
|
108
109
|
`
|
109
110
|
end
|
110
111
|
|
112
|
+
def create_dot_gitignore_file
|
113
|
+
`
|
114
|
+
cd #{@repo_name}
|
115
|
+
cat > .gitignore <<EOL
|
116
|
+
.DS_Store
|
117
|
+
logs
|
118
|
+
*.log
|
119
|
+
npm-debug.log*
|
120
|
+
pids
|
121
|
+
*.pid
|
122
|
+
*.seed
|
123
|
+
lib-cov
|
124
|
+
build/Release
|
125
|
+
node_modules
|
126
|
+
jspm_packages
|
127
|
+
.npm
|
128
|
+
.node_repl_history
|
129
|
+
.results.json
|
130
|
+
/.bundle
|
131
|
+
/db/*.sqlite3
|
132
|
+
/db/*.sqlite3-journal
|
133
|
+
/log/*
|
134
|
+
!/log/.keep
|
135
|
+
/tmp
|
136
|
+
`
|
137
|
+
end
|
138
|
+
|
111
139
|
def cd_into_and(command)
|
112
140
|
"cd #{@repo_name} && #{command}"
|
113
141
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn_create
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.18
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- flatironschool
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-11-
|
11
|
+
date: 2018-11-20 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description:
|
14
14
|
email: maxwell@flatironschool.com
|