tigefa 1.1.1 → 1.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/tigefa +9 -9
- data/lib/tigefa/commands/serve.rb +4 -4
- data/lib/tigefa/filters.rb +1 -1
- data/lib/tigefa/post.rb +2 -2
- data/lib/tigefa/tags/gist.rb +1 -1
- data/lib/tigefa/tags/highlight.rb +1 -1
- data/lib/tigefa/tags/include.rb +1 -1
- data/lib/tigefa/tags/post_url.rb +1 -1
- data/lib/tigefa.rb +1 -1
- data/tigefa.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f57331b1db378c3cc4e6ba0e683cbce9bd95f1bd
|
4
|
+
data.tar.gz: b2f4a0d9c6792ff0d489c7968da1fb07ff1a5d51
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c9d05edf9e30a706f2d6e47c19b6d5c5297c04634a4203d10ba7149796ff26e268b4d083ad6f18ec9ec7b504eca429a5ece24e0e524f8dd80e4e8a9aae89054a
|
7
|
+
data.tar.gz: 86ab6f8e9f503c7183f746224d26d13c72eafed7573dac0634546f702afd4f619e19310d81e950c7c0030037c76e076e6a26cb1cfbcb1a77ae2384d52d3f0502
|
data/bin/tigefa
CHANGED
@@ -6,7 +6,7 @@ $:.unshift File.join(File.dirname(__FILE__), *%w{ .. lib })
|
|
6
6
|
require 'commander/import'
|
7
7
|
require 'tigefa'
|
8
8
|
|
9
|
-
|
9
|
+
Tigefa::Deprecator.process(ARGV)
|
10
10
|
|
11
11
|
program :name, 'tigefa'
|
12
12
|
program :version, Tigefa::VERSION
|
@@ -48,20 +48,20 @@ command :default do |c|
|
|
48
48
|
if args.empty?
|
49
49
|
command(:help).run
|
50
50
|
else
|
51
|
-
|
51
|
+
Tigefa.logger.abort_with "Invalid command. Use --help for more information"
|
52
52
|
end
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
56
|
command :new do |c|
|
57
|
-
c.syntax =
|
58
|
-
c.description = 'Creates a new
|
57
|
+
c.syntax = tigefa new PATH'
|
58
|
+
c.description = 'Creates a new tigefa site scaffold in PATH'
|
59
59
|
|
60
60
|
c.option '--force', 'Force creation even if PATH already exists'
|
61
61
|
c.option '--blank', 'Creates scaffolding but with empty files'
|
62
62
|
|
63
63
|
c.action do |args, options|
|
64
|
-
|
64
|
+
Tigefa::Commands::New.process(args, options.__hash__)
|
65
65
|
end
|
66
66
|
end
|
67
67
|
|
@@ -109,21 +109,21 @@ command :doctor do |c|
|
|
109
109
|
c.action do |args, options|
|
110
110
|
options = normalize_options(options.__hash__)
|
111
111
|
options = Tigefa.configuration(options)
|
112
|
-
|
112
|
+
Tigefa::Commands::Doctor.process(options)
|
113
113
|
end
|
114
114
|
end
|
115
115
|
alias_command :hyde, :doctor
|
116
116
|
|
117
117
|
command :docs do |c|
|
118
118
|
c.syntax = 'tigefa docs'
|
119
|
-
c.description = "Launch local server with docs for Jekyll v#{
|
119
|
+
c.description = "Launch local server with docs for Jekyll v#{Tigefa::VERSION}"
|
120
120
|
|
121
121
|
c.option '-p', '--port [PORT]', 'Port to listen on'
|
122
122
|
c.option '-u', '--host [HOST]', 'Host to bind to'
|
123
123
|
|
124
124
|
c.action do |args, options|
|
125
125
|
options = normalize_options(options.__hash__)
|
126
|
-
options =
|
126
|
+
options = Tigefa.configuration(options.merge!({
|
127
127
|
'source' => File.expand_path("../site", File.dirname(__FILE__)),
|
128
128
|
'destination' => File.expand_path("../site/_site", File.dirname(__FILE__))
|
129
129
|
}))
|
@@ -153,6 +153,6 @@ command :import do |c|
|
|
153
153
|
msg += "* Please see the documentation at http://jekyllrb.com/docs/migrations/ for instructions.\n"
|
154
154
|
abort msg
|
155
155
|
end
|
156
|
-
|
156
|
+
Tigefa::Commands::Import.process(args.first, options)
|
157
157
|
end
|
158
158
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
-
module
|
2
|
+
module Tigefa
|
3
3
|
module Commands
|
4
4
|
class Serve < Command
|
5
5
|
def self.process(options)
|
@@ -18,12 +18,12 @@ module Jekyll
|
|
18
18
|
|
19
19
|
s.mount(options['baseurl'], HTTPServlet::FileHandler, destination, fh_option)
|
20
20
|
|
21
|
-
|
21
|
+
Tigefa.logger.info "Server address:", "http://#{s.config[:BindAddress]}:#{s.config[:Port]}"
|
22
22
|
|
23
23
|
if options['detach'] # detach the server
|
24
24
|
pid = Process.fork { s.start }
|
25
25
|
Process.detach(pid)
|
26
|
-
|
26
|
+
Tigefa.logger.info "Server detatched with pid '#{pid}'.", "Run `kill -9 #{pid}' to stop the server."
|
27
27
|
else # create a new server thread, then join it with current terminal
|
28
28
|
t = Thread.new { s.start }
|
29
29
|
trap("INT") { s.shutdown }
|
@@ -52,7 +52,7 @@ module Jekyll
|
|
52
52
|
|
53
53
|
def self.start_callback(detached)
|
54
54
|
unless detached
|
55
|
-
Proc.new {
|
55
|
+
Proc.new { Tigefa.logger.info "Server running...", "press ctrl-c to stop." }
|
56
56
|
end
|
57
57
|
end
|
58
58
|
|
data/lib/tigefa/filters.rb
CHANGED
data/lib/tigefa/post.rb
CHANGED
@@ -236,7 +236,7 @@ module Tigefa
|
|
236
236
|
#
|
237
237
|
# Returns an Array of related Posts.
|
238
238
|
def related_posts(posts)
|
239
|
-
|
239
|
+
Tigefa::RelatedPosts.new(self).build
|
240
240
|
end
|
241
241
|
|
242
242
|
# Add any necessary layouts to this post.
|
@@ -299,7 +299,7 @@ module Tigefa
|
|
299
299
|
|
300
300
|
def extract_excerpt
|
301
301
|
if generate_excerpt?
|
302
|
-
|
302
|
+
Tigefa::Excerpt.new(self)
|
303
303
|
else
|
304
304
|
""
|
305
305
|
end
|
data/lib/tigefa/tags/gist.rb
CHANGED
data/lib/tigefa/tags/include.rb
CHANGED
data/lib/tigefa/tags/post_url.rb
CHANGED
data/lib/tigefa.rb
CHANGED
data/tigefa.gemspec
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tigefa
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- sugeng tigefa
|
@@ -650,7 +650,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
650
650
|
version: '0'
|
651
651
|
requirements: []
|
652
652
|
rubyforge_project: tigefa
|
653
|
-
rubygems_version: 2.2.
|
653
|
+
rubygems_version: 2.2.0
|
654
654
|
signing_key:
|
655
655
|
specification_version: 2
|
656
656
|
summary: A simple, blog aware, static site generator.
|
@@ -675,3 +675,4 @@ test_files:
|
|
675
675
|
- test/test_site.rb
|
676
676
|
- test/test_tags.rb
|
677
677
|
- test/test_url.rb
|
678
|
+
has_rdoc:
|