site_hook 0.6.13 → 0.6.14

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
  SHA256:
3
- metadata.gz: 2b094a4d2df8500ca9cac6e24adb7b8256499c15a55c6bdf09aab56703723aa4
4
- data.tar.gz: 0a4a1802ca27976283c64cc1d9914ecffe740caa9e4d2700e4f5f1224065657c
3
+ metadata.gz: a9a0cba780dec9c1f24c5630394f9530b8ba1e569a6de2655155b668ca06ac74
4
+ data.tar.gz: d60729521016fd6907a5817b9858762bf8439ee4c691015b7a089fd88873b9de
5
5
  SHA512:
6
- metadata.gz: fd126ea6a728400f2435cee622504e9e0b1157cad3832ff2deec28d9be586beeca69154768202dccdffbf4c7e5cf6f18f8c4ba616f88b56d6365245518786f29
7
- data.tar.gz: 101e8d79277e36abc8aebf8115fc47949bb077e8b46864ffa5965175da6440572fa5f80432ca234621cf8a6924041ae746c0628dbb8b5f5480558d1d544bb51a
6
+ metadata.gz: 9e42da73a8b61e113fe27393c721fa4d45637e391add76cef670985597a2f674ad824cb691f1fc94c68a3650d4055b1731c150ce0bdfe6310ed94f5d73ad06a8
7
+ data.tar.gz: c46d11af103ec67ea91ce964fc0a20e78d51eea0fa0e12bf3ae9208d59338a8df0e24d56e298c8a3269e4b497d55f6be0343d9337ff9efbbcbc0fc6bb83ba95d
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- site_hook (0.6.12)
4
+ site_hook (0.6.13)
5
5
  activesupport (~> 5.1)
6
6
  git (~> 1.3)
7
7
  haml (~> 5.0)
@@ -1,6 +1,7 @@
1
1
  require 'thor'
2
2
  require 'site_hook/config_class'
3
3
  require 'site_hook/server_class'
4
+ #require 'site_hook/debug_class'
4
5
  module SiteHook
5
6
  class CLI < Thor
6
7
  map %w[--version -v] => :__print_version
@@ -24,7 +25,8 @@ module SiteHook
24
25
  subcommand('config', SiteHook::ConfigClass)
25
26
  desc 'server SUBCOMMAND [OPTIONS]', 'Start the server'
26
27
  subcommand('server', SiteHook::ServerClass)
27
-
28
+ #desc 'debug SUBCOMMAND [OPTIONS]', 'Debug the Gem'
29
+ #subcommand('debug', SiteHook::DebugClass)
28
30
 
29
31
  end
30
32
  end
@@ -3,6 +3,7 @@ require 'highline'
3
3
  require 'random_password'
4
4
  require 'yaml'
5
5
  require 'recursive-open-struct'
6
+ require 'pry'
6
7
  module SiteHook
7
8
  class FileExistsError < Exception
8
9
  end
@@ -0,0 +1,28 @@
1
+ ##########
2
+ # -> File: /home/ken/RubymineProjects/site_hook/lib/site_hook/debug_class.rb
3
+ # -> Project: site_hook
4
+ # -> Author: Ken Spencer <me@iotaspencer.me>
5
+ # -> Last Modified: 6/10/2018 13:14:51
6
+ # -> Copyright (c) 2018 Ken Spencer
7
+ # -> License: MIT
8
+ ##########
9
+ require 'thor'
10
+
11
+ module SiteHook
12
+ class FileExistsError < Exception
13
+ end
14
+
15
+ # *DebugClass*
16
+ #
17
+ # Holds all of the commands for the config subcommand
18
+ class DebugClass < Thor
19
+
20
+ desc 'paths [options]', "Return current paths for running site_hook"
21
+ def paths
22
+ home_gem_path = ENV['GEM_HOME']
23
+ puts home_gem_path
24
+ puts Pathname(::Gem.default_path.first).join('lib', 'site_hook')
25
+ puts .exist?
26
+ end
27
+ end
28
+ end
@@ -17,5 +17,8 @@ module SiteHook
17
17
  def self.logs
18
18
  Pathname(Dir.home).join('.jph', 'logs')
19
19
  end
20
+ def self.lib_dir
21
+ Pathname(::Gem.user_dir).join('gems', "site_hook-#{SiteHook::VERSION}", 'lib')
22
+ end
20
23
  end
21
24
  end
@@ -1,3 +1,3 @@
1
1
  module SiteHook
2
- VERSION = "0.6.13"
2
+ VERSION = "0.6.14"
3
3
  end
@@ -21,8 +21,8 @@ module SiteHook
21
21
  set server: %w[thin]
22
22
  set quiet: true
23
23
  set raise_errors: true
24
- set views: Pathname(app_file).dirname.join('site_hook', 'views')
25
- set :public_folder, Pathname(app_file).dirname.join('site_hook', 'static')
24
+ set views: Pathname(SiteHook::Paths.lib_dir).dirname.join('site_hook', 'views')
25
+ set :public_folder, Pathname(SiteHook::Paths.lib_dir).dirname.join('site_hook', 'static')
26
26
  use SassHandler
27
27
  use CoffeeHandler
28
28
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: site_hook
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.13
4
+ version: 0.6.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-10-02 00:00:00.000000000 Z
11
+ date: 2018-10-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -290,6 +290,7 @@ files:
290
290
  - lib/site_hook.rb
291
291
  - lib/site_hook/cli.rb
292
292
  - lib/site_hook/config_class.rb
293
+ - lib/site_hook/debug_class.rb
293
294
  - lib/site_hook/gem.rb
294
295
  - lib/site_hook/log.rb
295
296
  - lib/site_hook/logger.rb