codelation-cli 0.0.3 → 0.0.4
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 +4 -4
- data/lib/codelation/development/install_methods.rb +3 -0
- data/lib/codelation/version.rb +1 -1
- 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: 2a8fe00c89b47d367f587d2ea5840c0b718a4ade
|
4
|
+
data.tar.gz: 93bce19687a6e51988c6d1691ab17816bc340690
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1c6264604e06e583cc18e909b5866b6265caf7ec5820353fe5bc29ea47e8508b9069e4e17f3723c488934705b4fba1580c97d33e8369256fa896e05f4700d6a1
|
7
|
+
data.tar.gz: 14026e2f9ad583292b69ce8302400eda36c709c138da130bfaaede82a56f9c60f3d2f63e2ab7f679ac47227414838f432acdd38a803f9eca5860093021ccd980
|
@@ -35,6 +35,9 @@ module Codelation
|
|
35
35
|
# Save the file downloaded with #download_file to ~/.codelation/temp.
|
36
36
|
# @param uri [URI] The URI of the file to be saved
|
37
37
|
def write_downloaded_file(uri)
|
38
|
+
# Create the directory ~/.codelation/temp if it doesn't exist
|
39
|
+
FileUtils.mkdir_p("~/.codelation/temp")
|
40
|
+
|
38
41
|
file_name = File.basename(uri.path)
|
39
42
|
@downloaded_file_path = File.join("~/.codelation", "temp", file_name)
|
40
43
|
open(@downloaded_file_path, "wb") do |file|
|
data/lib/codelation/version.rb
CHANGED