codelation-cli 0.0.12 → 0.0.13

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: 45829fe7d3c931eef9c0faa5ca5998c8c0f6a20f
4
- data.tar.gz: 9252f0b455554abf4ca0e543335f5b5dad1b2cf5
3
+ metadata.gz: 6f4a47316b7a32f60a296a082369e980e3788abc
4
+ data.tar.gz: d99111e1990861713209e28e081e2d13be3cd6ce
5
5
  SHA512:
6
- metadata.gz: 5917e2aca28fc81f4f5777bee73e7146d0e338873268684d132fc2a368ca5895e39446f78a94b37772daf913a38d7fb7b8791b5ca57ce0af7c3c5fb94aae8ab4
7
- data.tar.gz: 42b413d5e8299f08065ba56f80316de5a27e9876b96c87ea4d89b1c45f4edb5bc1839924bb4b129ea0ff12af9b2824de98d39b4cf0330fc6222b2f98ae363890
6
+ metadata.gz: e37f9db03eb74087d7e107e5dc674dd4a4dd711aa16645642fb63174a285711fd1c2f75b8c610574c55e2e79fa420219968d3dd52e6eb4a1024c1d5ba91fd6ff
7
+ data.tar.gz: bddeda0aae64fafb29ce262a8f1a7b54fe663c5f4a3a3c14cc885a364bb86225f3120b7f1a2944c34aa7be52a99d75a5917a26a95f91bfdfcc8d3ea6915896a3
data/bin/codelation CHANGED
@@ -5,25 +5,6 @@ require_relative "../lib/codelation"
5
5
 
6
6
  module Codelation
7
7
  class Cli < Thor
8
- include Thor::Actions
9
- # Add the ablitity to run commands like:
10
- # `heroku config:set`
11
- # This would run the defined method:
12
- # `config_set`
13
- def method_missing(method, *args, &block)
14
- if method.to_s.split(":").length >= 2
15
- self.send(method.to_s.gsub(":", "_"), *args)
16
- elsif method == :run
17
- self.walk(*args)
18
- else
19
- super
20
- end
21
- end
22
-
23
- # This is the directory where your templates should be placed.
24
- def self.source_root
25
- File.expand_path("../../resources", __FILE__)
26
- end
27
8
  end
28
9
  end
29
10
 
@@ -4,6 +4,40 @@ require "thor"
4
4
 
5
5
  module Codelation
6
6
  class Cli < Thor
7
+ include Thor::Actions
8
+ # Add the ablitity to print help for commands like:
9
+ # `codelation help development:install`
10
+ # This would print help for the method:
11
+ # `development_install`
12
+ # @param method [String]
13
+ def help(method = nil)
14
+ if method.to_s.split(":").length >= 2
15
+ method = method.to_s.gsub(":", "_")
16
+ elsif method.to_s == "run"
17
+ method = "walk"
18
+ end
19
+ super
20
+ end
21
+
22
+ # Add the ablitity to run commands like:
23
+ # `codelation development:install`
24
+ # This would run the defined method:
25
+ # `development_install`
26
+ def method_missing(method, *args, &block)
27
+ if method.to_s.split(":").length >= 2
28
+ self.send(method.to_s.gsub(":", "_"), *args)
29
+ elsif method.to_s == "run"
30
+ self.walk(*args)
31
+ else
32
+ super
33
+ end
34
+ end
35
+
36
+ # This is the directory where your templates should be placed.
37
+ def self.source_root
38
+ File.expand_path("../../../resources", __FILE__)
39
+ end
40
+
7
41
  private
8
42
 
9
43
  # Print a heading to the terminal for commands that are going to be run.
@@ -3,6 +3,16 @@ require "thor"
3
3
  module Codelation
4
4
  class Cli < Thor
5
5
  desc "development:install", "Install the development tools used by Codelation"
6
+ long_desc <<-LONGDESC
7
+ Installs the following development tools:\r\n
8
+ - Atom.app (https://atom.io)\n
9
+ - Atom Packages: erb-snippets, linter, linter-csslint, linter-erb, linter-jshint,
10
+ linter-php, linter-rubocop, linter-ruby, linter-scss-lint, remote-atom\n
11
+ - Postgres.app (http://postgresapp.com)\n
12
+ - Ruby (https://www.ruby-lang.org)\n
13
+ - Ruby Gems: bundler, rubocop, scss-lint\n
14
+ - Sequel Pro.app (http://www.sequelpro.com)
15
+ LONGDESC
6
16
  def development_install
7
17
  print_heading("Installing Dependencies")
8
18
  install_dependencies
@@ -18,7 +18,6 @@ module Codelation
18
18
  # Install Atom.app Packages
19
19
  def install_atom_packages
20
20
  packages = %w(
21
- color-picker
22
21
  erb-snippets
23
22
  linter
24
23
  linter-csslint
@@ -28,6 +27,7 @@ module Codelation
28
27
  linter-rubocop
29
28
  linter-ruby
30
29
  linter-scss-lint
30
+ linter-shellcheck
31
31
  remote-atom
32
32
  )
33
33
  packages.each do |package|
@@ -17,6 +17,7 @@ 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 shellcheck")
20
21
  run_command("brew install v8")
21
22
  run_command("brew install wget")
22
23
  end
@@ -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.0"
8
+ RUBY_VERSION = "2.2.1"
9
9
 
10
10
  private
11
11
 
@@ -3,7 +3,7 @@ require "open-uri"
3
3
  require "thor"
4
4
 
5
5
  module Codelation
6
- VERSION = "0.0.12"
6
+ VERSION = "0.0.13"
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.12
4
+ version: 0.0.13
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-24 00:00:00.000000000 Z
11
+ date: 2015-03-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: open_uri_redirections