asciidoctor-instant-articles 0.1.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/asciidoctor-instant-articles.gemspec +34 -0
- data/bin/asciidoctor-instant-articles +1 -0
- data/lib/asciidoctor-instant-articles/converter.rb +11 -0
- data/lib/asciidoctor-instant-articles/version.rb +5 -0
- data/lib/asciidoctor-instant-articles.rb +3 -0
- data/templates/erb/document.html.erb +20 -0
- metadata +107 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a51dafca152e733173c513ee3eba7e7e3fc14417
|
4
|
+
data.tar.gz: aab9a73d128d59a89590893c20a94411948170ff
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 7e1113d592c14827f94eb512a7793d4510b788d5734e1ce6efd8a987ff1cf9aea905374200d513c74bdd1cd14252561d06746392d65ce4c3ded84d6f2444cc82
|
7
|
+
data.tar.gz: 0fd23ea49b13806da6010a04fa65083277b46249a25ad59960f7700109f3709eb6262e4984b2f78789fa8b3679554b74db76c34a1bbf92cabe5fe92fa2e74b2c
|
@@ -0,0 +1,34 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path '../lib/asciidoctor-instant-articles/version', __FILE__
|
3
|
+
|
4
|
+
Gem::Specification.new do |s|
|
5
|
+
s.name = 'asciidoctor-instant-articles'
|
6
|
+
s.version = Asciidoctor::InstantArticles::VERSION
|
7
|
+
s.authors = ['Fritz Lee']
|
8
|
+
s.email = ['askagirl@gmail.com']
|
9
|
+
s.homepage = 'https://github.com/askagirl/asciidoctor-instant-articles'
|
10
|
+
s.summary = 'Converts AsciiDoc to HTML for an Instant Articles'
|
11
|
+
s.description = 'Instant Articles back-end for Asciidoctor.'
|
12
|
+
s.license = 'MIT'
|
13
|
+
s.required_ruby_version = '>= 1.9.3'
|
14
|
+
s.date = '2017-03-05'
|
15
|
+
|
16
|
+
files = begin
|
17
|
+
(result = Open3.popen3('git ls-files -z') {|_, out| out.read }.split %(\0)).empty? ? Dir['**/*'] : result
|
18
|
+
rescue
|
19
|
+
Dir['**/*']
|
20
|
+
end
|
21
|
+
s.files = files.grep %r/^(?:(?:lib|templates)\/.+|Gemfile|Rakefile|(?:CHANGELOG|LICENSE|README)\.adoc|#{s.name}\.gemspec)$/
|
22
|
+
|
23
|
+
|
24
|
+
s.executables = ['asciidoctor-instant-articles']
|
25
|
+
s.extra_rdoc_files = Dir['README.adoc', 'LICENSE.adoc', 'HACKING.adoc']
|
26
|
+
s.require_paths = ['lib']
|
27
|
+
|
28
|
+
s.add_runtime_dependency 'asciidoctor', '~> 1.5.4'
|
29
|
+
s.add_runtime_dependency 'slim', '~> 3.0.6'
|
30
|
+
s.add_runtime_dependency 'thread_safe', '~> 0.3.5'
|
31
|
+
|
32
|
+
s.add_development_dependency 'rake', '~> 10.4.2'
|
33
|
+
end
|
34
|
+
|
@@ -0,0 +1 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
@@ -0,0 +1,11 @@
|
|
1
|
+
require 'asciidoctor/converter/html5'
|
2
|
+
require 'asciidoctor/converter/composite'
|
3
|
+
require 'asciidoctor/converter/template'
|
4
|
+
|
5
|
+
module Asciidoctor
|
6
|
+
module InstantArticles
|
7
|
+
class Converter < ::Asciidoctor::Converter::CompositeConverter
|
8
|
+
register_for 'instant-articles'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<%#encoding:UTF-8%><!DOCTYPE html>
|
2
|
+
<html lang="en" prefix=("op: http://media.facebook.com/op#")>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<link href="https://fb.cloudhomez.com/articles/#{article.id}" rel="canonical" />
|
6
|
+
<title>article.title</title>
|
7
|
+
<meta content="default" property="fb:article_style" />
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
<article>
|
11
|
+
<header>
|
12
|
+
== article.header
|
13
|
+
</header>
|
14
|
+
== article.main
|
15
|
+
<footer>
|
16
|
+
== article.footer
|
17
|
+
</footer>
|
18
|
+
</article>
|
19
|
+
</body>
|
20
|
+
</html>
|
metadata
ADDED
@@ -0,0 +1,107 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: asciidoctor-instant-articles
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.pre
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Fritz Lee
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-03-05 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: asciidoctor
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 1.5.4
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 1.5.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: slim
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 3.0.6
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 3.0.6
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: thread_safe
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 0.3.5
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 0.3.5
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 10.4.2
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 10.4.2
|
69
|
+
description: Instant Articles back-end for Asciidoctor.
|
70
|
+
email:
|
71
|
+
- askagirl@gmail.com
|
72
|
+
executables:
|
73
|
+
- asciidoctor-instant-articles
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- asciidoctor-instant-articles.gemspec
|
78
|
+
- bin/asciidoctor-instant-articles
|
79
|
+
- lib/asciidoctor-instant-articles.rb
|
80
|
+
- lib/asciidoctor-instant-articles/converter.rb
|
81
|
+
- lib/asciidoctor-instant-articles/version.rb
|
82
|
+
- templates/erb/document.html.erb
|
83
|
+
homepage: https://github.com/askagirl/asciidoctor-instant-articles
|
84
|
+
licenses:
|
85
|
+
- MIT
|
86
|
+
metadata: {}
|
87
|
+
post_install_message:
|
88
|
+
rdoc_options: []
|
89
|
+
require_paths:
|
90
|
+
- lib
|
91
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
92
|
+
requirements:
|
93
|
+
- - ">="
|
94
|
+
- !ruby/object:Gem::Version
|
95
|
+
version: 1.9.3
|
96
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
97
|
+
requirements:
|
98
|
+
- - ">"
|
99
|
+
- !ruby/object:Gem::Version
|
100
|
+
version: 1.3.1
|
101
|
+
requirements: []
|
102
|
+
rubyforge_project:
|
103
|
+
rubygems_version: 2.6.10
|
104
|
+
signing_key:
|
105
|
+
specification_version: 4
|
106
|
+
summary: Converts AsciiDoc to HTML for an Instant Articles
|
107
|
+
test_files: []
|