codelation-cli 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fb52626503436cff1d68ee7f0bf6daf85f667f1
4
- data.tar.gz: afd66011de47f69b74a6bbce6658a7b16103b396
3
+ metadata.gz: 2a8fe00c89b47d367f587d2ea5840c0b718a4ade
4
+ data.tar.gz: 93bce19687a6e51988c6d1691ab17816bc340690
5
5
  SHA512:
6
- metadata.gz: c4e28031c763878591f3c28ccdc28451f9abc675fa30b83ee584e8898d3af9917dbe42d7067dfe2c9e5841529b8ed92af9869cf4fed50f1e678dc3edaf8c1625
7
- data.tar.gz: ffe1b6edf1d7fcef678d17399a3a713951b5e8b408036da8bdb501b1e666b8d39aa386f04df42e285cc91a52f834c2fd8ee2799829b93e6fdac2a86179eb170f
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|
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Codelation
6
- VERSION = "0.0.3"
6
+ VERSION = "0.0.4"
7
7
 
8
8
  class Cli < Thor
9
9
  desc "update", "Update codelation-cli to latest version"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: codelation-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison