tigefa 1.1.1 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb2c5b0a2191c20ec3c1b6b2b4f5a56eb5a31ec7
4
- data.tar.gz: 667f281f26d0024146be627133f2ec5b79fb613b
3
+ metadata.gz: f57331b1db378c3cc4e6ba0e683cbce9bd95f1bd
4
+ data.tar.gz: b2f4a0d9c6792ff0d489c7968da1fb07ff1a5d51
5
5
  SHA512:
6
- metadata.gz: 976c3391905027724fd82901dc3da470034e7aaed23ddc4075578d45533fab304e01a475545154085900c13a9efb70eba5ef132bd22a9fe6f39c2f7fe27f517d
7
- data.tar.gz: 88d067bd4013e45686ecc2bc5948a0ad087b5a0d886f8a14c4c04e8a1eb2b96dbc57cbb347a27b534206c76452c06ab58f7f240ea401410272d83cc9290651d5
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
- Jekyll::Deprecator.process(ARGV)
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
- Jekyll.logger.abort_with "Invalid command. Use --help for more information"
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 = 'jekyll new PATH'
58
- c.description = 'Creates a new Jekyll site scaffold in PATH'
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
- Jekyll::Commands::New.process(args, options.__hash__)
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
- Jekyll::Commands::Doctor.process(options)
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#{Jekyll::VERSION}"
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 = Jekyll.configuration(options.merge!({
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
- Jekyll::Commands::Import.process(args.first, options)
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 Jekyll
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
- Jekyll.logger.info "Server address:", "http://#{s.config[:BindAddress]}:#{s.config[:Port]}"
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
- Jekyll.logger.info "Server detatched with pid '#{pid}'.", "Run `kill -9 #{pid}' to stop the server."
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 { Jekyll.logger.info "Server running...", "press ctrl-c to stop." }
55
+ Proc.new { Tigefa.logger.info "Server running...", "press ctrl-c to stop." }
56
56
  end
57
57
  end
58
58
 
@@ -1,7 +1,7 @@
1
1
  require 'uri'
2
2
  require 'json'
3
3
 
4
- module TigefaTigefa
4
+ module Tigefa
5
5
  module Filters
6
6
  # Convert a Textile string into HTML output.
7
7
  #
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
- Jekyll::RelatedPosts.new(self).build
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
- Jekyll::Excerpt.new(self)
302
+ Tigefa::Excerpt.new(self)
303
303
  else
304
304
  ""
305
305
  end
@@ -45,4 +45,4 @@ eos
45
45
  end
46
46
  end
47
47
 
48
- Liquid::Template.register_tag('gist', Jekyll::GistTag)
48
+ Liquid::Template.register_tag('gist', Tigefa::GistTag)
@@ -82,4 +82,4 @@ eos
82
82
  end
83
83
  end
84
84
 
85
- Liquid::Template.register_tag('highlight', Jekyll::Tags::HighlightBlock)
85
+ Liquid::Template.register_tag('highlight', Tigefa::Tags::HighlightBlock)
@@ -131,4 +131,4 @@ eos
131
131
  end
132
132
  end
133
133
 
134
- Liquid::Template.register_tag('include', Jekyll::Tags::IncludeTag)
134
+ Liquid::Template.register_tag('include', Tigefa::Tags::IncludeTag)
@@ -1,4 +1,4 @@
1
- module TigefaTigefa
1
+ module Tigefa
2
2
  module Tags
3
3
  class PostComparer
4
4
  MATCHER = /^(.+\/)*(\d+-\d+-\d+)-(.*)$/
data/lib/tigefa.rb CHANGED
@@ -62,7 +62,7 @@ require_all 'tigefa/tags'
62
62
 
63
63
  SafeYAML::OPTIONS[:suppress_warnings] = true
64
64
 
65
- module Jekyll
65
+ module Tigefa
66
66
  VERSION = '1.1.1'
67
67
 
68
68
  # Public: Generate a Jekyll configuration Hash by merging the default
data/tigefa.gemspec CHANGED
@@ -4,7 +4,7 @@ Gem::Specification.new do |s|
4
4
  s.rubygems_version = '1.3.5'
5
5
 
6
6
  s.name = 'tigefa'
7
- s.version = '1.1.1'
7
+ s.version = '1.1.2'
8
8
  s.license = 'MIT'
9
9
  s.date = '2014-02-03'
10
10
  s.rubyforge_project = 'tigefa'
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.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.1
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: