codelation-cli 0.0.27 → 0.0.28
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -1
- data/Gemfile.lock +2 -2
- data/lib/codelation.rb +1 -0
- data/lib/codelation/development/dependencies.rb +1 -1
- data/lib/codelation/development/ruby.rb +1 -0
- data/lib/codelation/get_version.rb +34 -0
- data/lib/codelation/version.rb +1 -34
- data/resources/dot_files/.codelation.bash +4 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 64c0fa054c2b453214ee640f16a5d80d1aee3b38
|
4
|
+
data.tar.gz: 7bb5fc1cd9d5c6d0e313dcdc3c51216432fecf5f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4539780a4b0125463289440b7d5aea34683179bfe84de7ee12b4b493dc37aace97c00edef6496aa04b7dc6938ef03f7be0b1440dc7a326857a7eee6e63209dd5
|
7
|
+
data.tar.gz: fdd88f4a22b256b41318756d1b195a73017f7483e7187182009f6ddc4dab30b43f056186e3cd1729182ae29baad4dc1e92bf4898d94b583d072931b36759f1ab
|
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
data/lib/codelation.rb
CHANGED
@@ -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
|
@@ -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
|
data/lib/codelation/version.rb
CHANGED
@@ -1,36 +1,3 @@
|
|
1
|
-
require "open-uri"
|
2
|
-
require "thor"
|
3
|
-
require "yajl"
|
4
|
-
|
5
1
|
module Codelation
|
6
|
-
VERSION = "0.0.
|
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.
|
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.
|
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:
|