codelation-cli 0.0.27 → 0.0.28

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: 5f605e5e25fcb8f3de0decabbeec7b1275b95a95
4
- data.tar.gz: 2102c2ecf69a6a83d6d1c1d170b9c89ef8463295
3
+ metadata.gz: 64c0fa054c2b453214ee640f16a5d80d1aee3b38
4
+ data.tar.gz: 7bb5fc1cd9d5c6d0e313dcdc3c51216432fecf5f
5
5
  SHA512:
6
- metadata.gz: fe5f68363e2a28dfd6701a7a9fc7261c2d595b5e2d644d999f31ace325ab0d152468e55e64885361d207f9e08c4695834eb423fd7131dc3e53d896294e353b35
7
- data.tar.gz: 877c1d71c60c0c11ba07026bda74619d1675880536618e1b42d2eccaec8449d2deb10222f328f042d76f27c14620aa92bbd7b200636d1766934ea222a2c62071
6
+ metadata.gz: 4539780a4b0125463289440b7d5aea34683179bfe84de7ee12b4b493dc37aace97c00edef6496aa04b7dc6938ef03f7be0b1440dc7a326857a7eee6e63209dd5
7
+ data.tar.gz: fdd88f4a22b256b41318756d1b195a73017f7483e7187182009f6ddc4dab30b43f056186e3cd1729182ae29baad4dc1e92bf4898d94b583d072931b36759f1ab
data/Gemfile CHANGED
@@ -1,4 +1,4 @@
1
1
  source "https://rubygems.org"
2
2
 
3
- # Specify your gem's dependencies in dokku_installer_cli.gemspec
3
+ # Specify your gem's dependencies in codelation_cli.gemspec
4
4
  gemspec
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- codelation-cli (0.0.27)
4
+ codelation-cli (0.0.28)
5
5
  activesupport (~> 4.2)
6
6
  open_uri_redirections (~> 0.2)
7
7
  progressbar (~> 0.21)
@@ -37,4 +37,4 @@ DEPENDENCIES
37
37
  codelation-cli!
38
38
 
39
39
  BUNDLED WITH
40
- 1.11.2
40
+ 1.12.5
@@ -9,5 +9,6 @@ require_relative "codelation/development/postgres"
9
9
  require_relative "codelation/development/psequel"
10
10
  require_relative "codelation/development/ruby"
11
11
  require_relative "codelation/development/sequel_pro"
12
+ require_relative "codelation/get_version"
12
13
  require_relative "codelation/rails/new"
13
14
  require_relative "codelation/version"
@@ -13,7 +13,7 @@ module Codelation
13
13
  exec('ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"')
14
14
  end
15
15
  run_command("brew update")
16
- formulas = %w(bash chruby git heroku-toolbelt imagemagick node openssl ruby-install shellcheck v8 wget)
16
+ formulas = %w(bash chruby diff-so-fancy git heroku-toolbelt imagemagick node openssl ruby-install shellcheck v8 wget)
17
17
  formulas.each do |formula|
18
18
  brew_install(formula)
19
19
  end
@@ -22,6 +22,7 @@ module Codelation
22
22
  `ruby-install ruby #{RUBY_VERSION}`
23
23
 
24
24
  print_heading("Installing Ruby Gems")
25
+ `chruby #{RUBY_VERSION}`
25
26
  install_gems
26
27
  end
27
28
 
@@ -0,0 +1,34 @@
1
+ require "open-uri"
2
+ require "thor"
3
+ require "yajl"
4
+
5
+ module Codelation
6
+ class Cli < Thor
7
+ desc "update", "Update codelation-cli to latest version"
8
+ def update
9
+ command = "gem install codelation-cli"
10
+ puts "Running #{command}..."
11
+ exec(command)
12
+ end
13
+
14
+ desc "version", "Show version information"
15
+ def version
16
+ gem_version = "v#{Codelation::VERSION}"
17
+
18
+ # Grab the latest version of the RubyGem
19
+ rubygems_json = open("https://rubygems.org/api/v1/gems/codelation-cli.json").read
20
+ rubygems_version = "v#{Yajl::Parser.parse(rubygems_json)['version'].strip}"
21
+
22
+ upgrade_message = ""
23
+ if gem_version != rubygems_version
24
+ upgrade_message = " Run `codelation update` to install"
25
+ end
26
+
27
+ puts
28
+ puts "Codelation CLI"
29
+ puts " Installed: #{gem_version}"
30
+ puts " Latest: #{rubygems_version}#{upgrade_message}"
31
+ puts
32
+ end
33
+ end
34
+ end
@@ -1,36 +1,3 @@
1
- require "open-uri"
2
- require "thor"
3
- require "yajl"
4
-
5
1
  module Codelation
6
- VERSION = "0.0.27".freeze
7
-
8
- class Cli < Thor
9
- desc "update", "Update codelation-cli to latest version"
10
- def update
11
- command = "gem install codelation-cli"
12
- puts "Running #{command}..."
13
- exec(command)
14
- end
15
-
16
- desc "version", "Show version information"
17
- def version
18
- gem_version = "v#{Codelation::VERSION}"
19
-
20
- # Grab the latest version of the RubyGem
21
- rubygems_json = open("https://rubygems.org/api/v1/gems/codelation-cli.json").read
22
- rubygems_version = "v#{Yajl::Parser.parse(rubygems_json)['version'].strip}"
23
-
24
- upgrade_message = ""
25
- if gem_version != rubygems_version
26
- upgrade_message = " Run `codelation update` to install"
27
- end
28
-
29
- puts
30
- puts "Codelation CLI"
31
- puts " Installed: #{gem_version}"
32
- puts " Latest: #{rubygems_version}#{upgrade_message}"
33
- puts
34
- end
35
- end
2
+ VERSION = "0.0.28".freeze
36
3
  end
@@ -2,8 +2,12 @@
2
2
  alias desktop="cd ~/Desktop"
3
3
  alias downloads="cd ~/Downloads"
4
4
  alias fixopenwith="/System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill -r -domain local -domain user"
5
+ alias gdif="git diff --color | diff-so-fancy"
6
+ alias gdiff="git diff --color | diff-so-fancy"
5
7
  alias gg="git status -s"
6
8
  alias gitclean='git branch --merged | grep -v "\*" | xargs -n 1 git branch -d'
9
+ alias gitdif="git diff --color | diff-so-fancy"
10
+ alias gitdiff="git diff --color | diff-so-fancy"
7
11
  alias ll="ls -lah"
8
12
  alias railsclean="RAILS_ENV=development rake assets:clean; RAILS_ENV=development rake tmp:clear; RAILS_ENV=test rake assets:clean; RAILS_ENV=test rake tmp:clear"
9
13
  alias ss="bundle exec rake start"
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.27
4
+ version: 0.0.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Pattison
@@ -121,6 +121,7 @@ files:
121
121
  - lib/codelation/development/psequel.rb
122
122
  - lib/codelation/development/ruby.rb
123
123
  - lib/codelation/development/sequel_pro.rb
124
+ - lib/codelation/get_version.rb
124
125
  - lib/codelation/rails/new.rb
125
126
  - lib/codelation/version.rb
126
127
  - lib/progress_bar.rb
@@ -151,9 +152,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
151
152
  version: '0'
152
153
  requirements: []
153
154
  rubyforge_project:
154
- rubygems_version: 2.6.3
155
+ rubygems_version: 2.5.1
155
156
  signing_key:
156
157
  specification_version: 4
157
158
  summary: Command line tool for Codelation tasks
158
159
  test_files: []
159
- has_rdoc: