codelation-cli 0.0.4 → 0.0.5
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9bddb6cd8fef5bf14518f622ad3f75611bd3cdc8
|
4
|
+
data.tar.gz: c55327163203b64136c7d9e13152bb3d3f8de348
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4ef533cba9e812ff0bae1445f27fb52267a0224526f367ed200adff8db7b5bcb2abcbde05fa62fd9d56a4092da3d1249cfe5742b4bbc9a70a2e9761c1662158d
|
7
|
+
data.tar.gz: 2e874de3ded4c2d10205b27748569fdad80b4bc58daedbd7b454fd8b2bee5b59df77f5614ccd434c17dec8df73dd0e1800d6d3b78fc674bbd58ed1ed6b47af65
|
@@ -7,7 +7,7 @@ module Codelation
|
|
7
7
|
# Install dot files and load them into ~/.bash_profile
|
8
8
|
def install_dot_files
|
9
9
|
# Create the directory ~/.codelation/bash if it doesn't exist
|
10
|
-
FileUtils.mkdir_p("~/.codelation/bash")
|
10
|
+
FileUtils.mkdir_p(File.expand_path("~/.codelation/bash"))
|
11
11
|
|
12
12
|
# Copy dot files to ~/.codelation
|
13
13
|
copy_file "dot_files/.codelation.bash", "~/.codelation/bash/.codelation.bash"
|
@@ -36,10 +36,10 @@ module Codelation
|
|
36
36
|
# @param uri [URI] The URI of the file to be saved
|
37
37
|
def write_downloaded_file(uri)
|
38
38
|
# Create the directory ~/.codelation/temp if it doesn't exist
|
39
|
-
FileUtils.mkdir_p("~/.codelation/temp")
|
39
|
+
FileUtils.mkdir_p(File.expand_path("~/.codelation/temp"))
|
40
40
|
|
41
41
|
file_name = File.basename(uri.path)
|
42
|
-
@downloaded_file_path = File.join("~/.codelation", "temp", file_name)
|
42
|
+
@downloaded_file_path = File.expand_path(File.join("~/.codelation", "temp", file_name))
|
43
43
|
open(@downloaded_file_path, "wb") do |file|
|
44
44
|
file.write(@download_uri.read)
|
45
45
|
end
|
@@ -14,7 +14,7 @@ module Codelation
|
|
14
14
|
return if `~/.codelation/ruby/bin/ruby -v`.include?(RUBY_VERSION)
|
15
15
|
|
16
16
|
# Create the directory ~/.codelation/temp if it doesn't exist
|
17
|
-
FileUtils.mkdir_p("~/.codelation/temp")
|
17
|
+
FileUtils.mkdir_p(File.expand_path("~/.codelation/temp"))
|
18
18
|
|
19
19
|
print_command("Installing ruby-install")
|
20
20
|
install_ruby_install
|
@@ -37,11 +37,11 @@ module Codelation
|
|
37
37
|
|
38
38
|
# Install ruby-install from https://github.com/postmodern/ruby-install.
|
39
39
|
def install_ruby_install
|
40
|
-
@downloaded_file_path = File.join("~/.codelation", "temp", "ruby-install.tar.gz")
|
40
|
+
@downloaded_file_path = File.expand_path(File.join("~/.codelation", "temp", "ruby-install.tar.gz"))
|
41
41
|
`curl -L -o #{@downloaded_file_path} #{RUBY_INSTALL_URL}`
|
42
|
-
`tar -xzvf #{@downloaded_file_path} -C #{File.join("~/.codelation", "temp")}`
|
42
|
+
`tar -xzvf #{@downloaded_file_path} -C #{File.expand_path(File.join("~/.codelation", "temp"))}`
|
43
43
|
|
44
|
-
@extracted_path = File.join("~/.codelation", "temp", "ruby-install-#{RUBY_INSTALL_VERSION}")
|
44
|
+
@extracted_path = File.expand_path(File.join("~/.codelation", "temp", "ruby-install-#{RUBY_INSTALL_VERSION}"))
|
45
45
|
`cd #{@extracted_path} && sudo make install`
|
46
46
|
end
|
47
47
|
|
data/lib/codelation/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codelation-cli
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Pattison
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-02-
|
11
|
+
date: 2015-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: open_uri_redirections
|