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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/learn_create.rb +28 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6281e8950aaa1cc0475036ea1b56ed36c1ea23bfed2dd84992d3f0fccac74c2f
4
- data.tar.gz: 1620b577bdb404aa2d0a03c008d77ac5435f0d5cda2ce8b075bc809b6426065b
3
+ metadata.gz: e5a397ec4099b22f865a2e96de78304c280016072ee317ae6ce96f6c24572e31
4
+ data.tar.gz: b12771873be24cfdacc0fdd7dac21889d94ffbe27c2649c4e1def3ac815b7438
5
5
  SHA512:
6
- metadata.gz: c4c9855a14de130217b029fb7bdbd30491b5c3dc50f922b032f49202479609bc2629ea018a0581c4af125a80657f9daaac2ba1761b4c8ed37b7671e2b3aa3017
7
- data.tar.gz: 5a7b299693260a753839f17c7b95938d8f19d67e0b3a2533823eac00e21bf4c2d797ea1be8c9589c85be12221a20f06a78823edba44cc634fb3b6d4f33eeab47
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.17
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-08 00:00:00.000000000 Z
11
+ date: 2018-11-20 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: maxwell@flatironschool.com