codelation-cli 0.0.17 → 0.0.18

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: fe65fce958694970a06d48aea03316e6a14ac345
4
- data.tar.gz: c9fbccf55925287fe96ae0ff0feb8edc13ea30b9
3
+ metadata.gz: 88c68352a6c757b857570b9ac03d6914559d9fe9
4
+ data.tar.gz: 95afa4fca2b0402442831ddcb8457398c1c6da93
5
5
  SHA512:
6
- metadata.gz: 2955dcf4879c58c29b6520b917ff166cc7cdd0f124274ea9e729827139753fb78b075c51416195e48dca8d16e8608542f8627c9ab3d40c1c5c955d9420b4c4dd
7
- data.tar.gz: c95d2e65f80e0e2bc10104e8353ca33e0e047347c9ded9f356a59821f87f63ab72474c003444a76f9e767205d46d80a9535c08f4ce5b26d0deca565ef1bd3d6c
6
+ metadata.gz: 6da286e77d1fb884ad6b6e3292821179169201feb7ef546dcd0ccb75163adace82b40e3e1f740c37b6c25e2117b95edd971a3a208372542bb641ff6e63a3846d
7
+ data.tar.gz: 91db2e5eaa471bb29fdc2b33780cd448f3b1820b2b2802dae57ad9d5a9656d27e5ae483b6451fa9d21d6b145693c074223d25bd0644eb53e81cd90c678dfae43
@@ -17,23 +17,29 @@ module Codelation
17
17
  print_heading("Installing Dependencies")
18
18
  install_dependencies
19
19
 
20
- print_heading("Installing Atom.app")
21
- install_atom
20
+ unless Dir.exist?("/Applications/Atom.app")
21
+ print_heading("Installing Atom.app")
22
+ install_atom
22
23
 
23
- print_heading("Installing Atom Packages")
24
- install_atom_packages
24
+ print_heading("Installing Atom Packages")
25
+ install_atom_packages
26
+ end
25
27
 
26
28
  print_heading("Installing Dot Files")
27
29
  install_dot_files
28
30
 
29
- print_heading("Installing Postgres.app")
30
- install_postgres
31
+ unless Dir.exist?("/Applications/Postgres.app")
32
+ print_heading("Installing Postgres.app")
33
+ install_postgres
34
+ end
31
35
 
32
36
  print_heading("Installing Ruby")
33
37
  install_ruby
34
38
 
35
- print_heading("Installing Sequel Pro.app")
36
- install_sequel_pro
39
+ unless Dir.exist?("/Applications/Sequel Pro.app")
40
+ print_heading("Installing Sequel Pro.app")
41
+ install_sequel_pro
42
+ end
37
43
 
38
44
  `source ~/.bash_profile`
39
45
  end
@@ -17,7 +17,6 @@ module Codelation
17
17
  run_command("brew install git")
18
18
  run_command("brew install imagemagick")
19
19
  run_command("brew install openssl")
20
- run_command("brew install phantomjs")
21
20
  run_command("brew install shellcheck")
22
21
  run_command("brew install v8")
23
22
  run_command("brew install wget")
@@ -5,7 +5,7 @@ module Codelation
5
5
  class Cli < Thor
6
6
  RUBY_INSTALL_VERSION = "0.5.0"
7
7
  RUBY_INSTALL_URL = "https://github.com/postmodern/ruby-install/archive/v#{RUBY_INSTALL_VERSION}.tar.gz"
8
- RUBY_VERSION = "2.2.1"
8
+ RUBY_VERSION = "2.2.2"
9
9
 
10
10
  private
11
11
 
@@ -13,6 +13,10 @@ module Codelation
13
13
  def install_ruby
14
14
  return if `~/.codelation/ruby/bin/ruby -v`.include?(RUBY_VERSION)
15
15
 
16
+ # Remove existing Ruby install from older version
17
+ ruby_directory = File.expand_path("~/.codelation/ruby")
18
+ FileUtils.rm_rf(ruby_directory) if Dir.exist?(ruby_directory)
19
+
16
20
  # Create the directory ~/.codelation/temp if it doesn't exist
17
21
  FileUtils.mkdir_p(File.expand_path("~/.codelation/temp"))
18
22
 
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Codelation
6
- VERSION = "0.0.17"
6
+ VERSION = "0.0.18"
7
7
 
8
8
  class Cli < Thor
9
9
  desc "update", "Update codelation-cli to latest version"
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.17
4
+ version: 0.0.18
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-03-24 00:00:00.000000000 Z
11
+ date: 2015-05-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open_uri_redirections
@@ -126,4 +126,3 @@ signing_key:
126
126
  specification_version: 4
127
127
  summary: Command line tool for Codelation tasks
128
128
  test_files: []
129
- has_rdoc: