middleman-hikidoc 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: aa93477d02018fd578f085718b05ae232bc1d254
4
+ data.tar.gz: 8570517185e4c7f93f41ae608591b4597fc65c8e
5
+ SHA512:
6
+ metadata.gz: c753b431783063ffaf453dc530834bf89a02b238f041876a99e68df5373eae5122dcf939b09bdb7032debba867f823b4b3c9089be29f25573dd7ed14e21519d9
7
+ data.tar.gz: ee5a36ea38e4fc6368a94c8c0a5d35c3aea62625a3da26ea1ae7fde66f264715e7ae0417aad2aad04bca0b62bc2b725bfe5c36641a6fcb1986e367f40286c52c
data/Gemfile ADDED
@@ -0,0 +1,2 @@
1
+ source 'https://rubygems.org'
2
+ gemspec
@@ -0,0 +1,46 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ middleman-hikidoc (0.0.1)
5
+
6
+ GEM
7
+ remote: https://rubygems.org/
8
+ specs:
9
+ activesupport (3.2.15)
10
+ i18n (~> 0.6, >= 0.6.4)
11
+ multi_json (~> 1.0)
12
+ ffi (1.9.0)
13
+ hikidoc (0.0.6)
14
+ i18n (0.6.5)
15
+ listen (1.3.1)
16
+ rb-fsevent (>= 0.9.3)
17
+ rb-inotify (>= 0.9)
18
+ rb-kqueue (>= 0.2)
19
+ middleman-core (3.1.6)
20
+ activesupport (~> 3.2.6)
21
+ bundler (~> 1.1)
22
+ i18n (~> 0.6.1)
23
+ listen (~> 1.1)
24
+ rack (>= 1.4.5)
25
+ rack-test (~> 0.6.1)
26
+ thor (>= 0.15.2, < 2.0)
27
+ tilt (~> 1.3.6)
28
+ multi_json (1.8.2)
29
+ rack (1.5.2)
30
+ rack-test (0.6.2)
31
+ rack (>= 1.0)
32
+ rb-fsevent (0.9.3)
33
+ rb-inotify (0.9.2)
34
+ ffi (>= 0.5.0)
35
+ rb-kqueue (0.2.0)
36
+ ffi (>= 0.5.0)
37
+ thor (0.18.1)
38
+ tilt (1.3.7)
39
+
40
+ PLATFORMS
41
+ ruby
42
+
43
+ DEPENDENCIES
44
+ hikidoc (~> 0.0.6)
45
+ middleman-core (~> 3.1.0)
46
+ middleman-hikidoc!
@@ -0,0 +1,18 @@
1
+ # middleman-hikidoc
2
+
3
+ Middleman plugin for [HikiDoc](http://projects.netlab.jp/hikidoc/?FrontPage.ja),
4
+ a text format used by Wiki Engine [Hiki](http://hikiwiki.org/ja/).
5
+
6
+ ## Installation
7
+
8
+ Add this to Gemfile and run `bundle install`
9
+
10
+ gem 'middleman-hikidoc', git: 'https://github.com/yhara/middleman-hikidoc.git'
11
+
12
+ Then add this to config.rb
13
+
14
+ activate :hikidoc
15
+
16
+ ## License
17
+
18
+ MIT
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,42 @@
1
+ require 'middleman-core'
2
+
3
+ require 'hikidoc'
4
+ require 'middleman-hikidoc/version'
5
+
6
+ module Middleman
7
+ module Renderers
8
+ class Hikidoc < Middleman::Extension
9
+ def after_configuration
10
+ app.template_extensions :hd => :html
11
+ end
12
+
13
+ class HikidocTemplate < ::Tilt::Template
14
+ def self.engine_initialized?
15
+ defined? ::HikiDoc
16
+ end
17
+
18
+ def initialize_engine
19
+ require_template_library 'hikidoc'
20
+ end
21
+
22
+ def prepare
23
+ @output = nil
24
+ end
25
+
26
+ def evaluate(scope, locals, &block)
27
+ @output ||= HikiDoc.to_xhtml(data)
28
+ end
29
+
30
+ def allows_script?
31
+ false
32
+ end
33
+ end
34
+
35
+ ::Tilt.register HikidocTemplate, 'hd'
36
+ end
37
+ end
38
+ end
39
+
40
+
41
+ ::Middleman::Extensions.register(:hikidoc, Middleman::Renderers::Hikidoc)
42
+
@@ -0,0 +1,5 @@
1
+ module Middleman
2
+ class Hikidoc
3
+ VERSION = "0.0.1"
4
+ end
5
+ end
@@ -0,0 +1 @@
1
+ require 'middleman-hikidoc'
@@ -0,0 +1,23 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'middleman-hikidoc/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "middleman-hikidoc"
8
+ spec.version = Middleman::Hikidoc::VERSION
9
+ spec.authors = ["yhara"]
10
+ spec.email = ["yutaka.hara.gmail.com"]
11
+ spec.description = %q{Add HikiDoc support for middleman (converts *.hd to *.html)}
12
+ spec.summary = %q{Add HikiDoc support for middleman}
13
+ spec.homepage = "https://github.com/yhara/middleman-hikidoc"
14
+ spec.license = "MIT"
15
+
16
+ spec.files = `git ls-files`.split($/)
17
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
18
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
+ spec.require_paths = ["lib"]
20
+
21
+ spec.add_runtime_dependency "hikidoc", "~> 0.0.6"
22
+ spec.add_development_dependency "middleman-core", "~> 3.1.0"
23
+ end
metadata ADDED
@@ -0,0 +1,80 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: middleman-hikidoc
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - yhara
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-11 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: hikidoc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ~>
18
+ - !ruby/object:Gem::Version
19
+ version: 0.0.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ version: 0.0.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: middleman-core
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 3.1.0
41
+ description: Add HikiDoc support for middleman (converts *.hd to *.html)
42
+ email:
43
+ - yutaka.hara.gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - Gemfile
49
+ - Gemfile.lock
50
+ - README.md
51
+ - Rakefile
52
+ - lib/middleman-hikidoc.rb
53
+ - lib/middleman-hikidoc/version.rb
54
+ - lib/middleman_extension.rb
55
+ - middleman-hikidoc.gemspec
56
+ homepage: https://github.com/yhara/middleman-hikidoc
57
+ licenses:
58
+ - MIT
59
+ metadata: {}
60
+ post_install_message:
61
+ rdoc_options: []
62
+ require_paths:
63
+ - lib
64
+ required_ruby_version: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - '>='
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ required_rubygems_version: !ruby/object:Gem::Requirement
70
+ requirements:
71
+ - - '>='
72
+ - !ruby/object:Gem::Version
73
+ version: '0'
74
+ requirements: []
75
+ rubyforge_project:
76
+ rubygems_version: 2.0.14
77
+ signing_key:
78
+ specification_version: 4
79
+ summary: Add HikiDoc support for middleman
80
+ test_files: []