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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/site_hook/cli.rb +3 -1
- data/lib/site_hook/config_class.rb +1 -0
- data/lib/site_hook/debug_class.rb +28 -0
- data/lib/site_hook/paths.rb +3 -0
- data/lib/site_hook/version.rb +1 -1
- data/lib/site_hook/webhook.rb +2 -2
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a9a0cba780dec9c1f24c5630394f9530b8ba1e569a6de2655155b668ca06ac74
|
4
|
+
data.tar.gz: d60729521016fd6907a5817b9858762bf8439ee4c691015b7a089fd88873b9de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e42da73a8b61e113fe27393c721fa4d45637e391add76cef670985597a2f674ad824cb691f1fc94c68a3650d4055b1731c150ce0bdfe6310ed94f5d73ad06a8
|
7
|
+
data.tar.gz: c46d11af103ec67ea91ce964fc0a20e78d51eea0fa0e12bf3ae9208d59338a8df0e24d56e298c8a3269e4b497d55f6be0343d9337ff9efbbcbc0fc6bb83ba95d
|
data/Gemfile.lock
CHANGED
data/lib/site_hook/cli.rb
CHANGED
@@ -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
|
@@ -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
|
data/lib/site_hook/paths.rb
CHANGED
data/lib/site_hook/version.rb
CHANGED
data/lib/site_hook/webhook.rb
CHANGED
@@ -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(
|
25
|
-
set :public_folder, Pathname(
|
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.
|
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-
|
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
|