gli 2.18.1 → 2.18.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/features/gli_init.feature +1 -0
- data/lib/gli/commands/scaffold.rb +9 -0
- data/lib/gli/version.rb +1 -1
- 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: 5ce48a9dbc23454ebd42678e837bab21aab64a6d9e9bc1713d3ce57ddd8a802a
|
4
|
+
data.tar.gz: 74e014e219d5ade2ff39bdf8ad69c0a19a258bc2208566438f3b3f87fbf98d2e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 326911ec59ad5867f0a9acc3fac254258d59514b0efb99327834a6c2f79941f505f5cae9d284d330f4f32a80f4f9bea07146f48009940a7848a047899f8fcc71
|
7
|
+
data.tar.gz: '0585ba1acb20eb2f9a743a4e5c3e715f3a10a0d9cc60b6ba2003f4034cd9c75c9347f0c91894fc0535bc32d32871a63cb7418d326d23ab732fbd7141eec4b462'
|
data/features/gli_init.feature
CHANGED
@@ -31,6 +31,7 @@ module GLI
|
|
31
31
|
end
|
32
32
|
puts "Created #{rvmrc}"
|
33
33
|
end
|
34
|
+
init_git(root_dir, project_name)
|
34
35
|
end
|
35
36
|
end
|
36
37
|
|
@@ -369,6 +370,14 @@ EOS
|
|
369
370
|
true
|
370
371
|
end
|
371
372
|
|
373
|
+
def self.init_git(root_dir, project_name)
|
374
|
+
project_dir = "#{root_dir}/#{project_name}"
|
375
|
+
|
376
|
+
unless system("git", "init", "--quiet", project_dir)
|
377
|
+
puts "There was a problem initializing Git. Your gemspec may not work until you have done a successful `git init`"
|
378
|
+
end
|
379
|
+
end
|
380
|
+
|
372
381
|
def self.mkdirs(dirs,force,dry_run)
|
373
382
|
exists = false
|
374
383
|
if !force
|
data/lib/gli/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.18.
|
4
|
+
version: 2.18.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Copeland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-08-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|