creategem 0.7.1 → 0.7.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/creategem/git.rb +1 -1
- data/lib/creategem/version.rb +1 -1
- data/templates/gem_scaffold/test/test_helper.rb.tt +2 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f709f2e6f9d06dfc9b48cf8b458cb9f4ad39cd
|
4
|
+
data.tar.gz: c3247525228542742ae95d41a7830696a10a2f99
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 059a64c82767fc4bc44797ccd3badb616f933c2f0c71e94aac00627bfe38d942a69a859ca40bb2b29a2a8d6444e9385c34cc867796d4b9be20de51d010d12ade
|
7
|
+
data.tar.gz: 3f7677b4bba514dd5127a277b94505256ebf2eeb7658c4f3989dcca2c91f1801c2bd5338ea8676bb5294c5bd7312f039caa1b0f545e5c028fa4f3eb11c54a80a
|
data/lib/creategem/git.rb
CHANGED
@@ -15,7 +15,7 @@ module Creategem
|
|
15
15
|
say "Create remote #{repository.vendor} repository", :green
|
16
16
|
if repository.github?
|
17
17
|
token = ask("What is yout Github personal access token?")
|
18
|
-
run "curl --request POST --user #{repository.user}:#{token} https://api.github.com/user/repos
|
18
|
+
run "curl --request POST --user #{repository.user}:#{token} https://api.github.com/user/repos -d '{\"name\":\"#{repository.name}\", \"private\":\"#{repository.private}\"}'"
|
19
19
|
else # bitbucket
|
20
20
|
run "curl --request POST --user #{repository.user} https://api.bitbucket.org/1.0/repositories/ --data name=#{repository.name} --data scm=git --data is_private=#{repository.private}"
|
21
21
|
end
|
data/lib/creategem/version.rb
CHANGED