kramdown-amp 0.0.1 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +23 -0
- data/Gemfile +6 -2
- data/LICENSE.txt +1 -1
- data/README.md +14 -12
- data/bin/console +1 -1
- data/kramdown-amp.gemspec +9 -9
- data/lib/kramdown/amp/version.rb +3 -1
- data/lib/kramdown/converter/amp.rb +2 -0
- data/lib/kramdown-amp.rb +2 -0
- metadata +16 -55
- data/.travis.yml +0 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff83de923098f59dfa8f203c21e5498399d336e431dd8df71b6c0f9cb517f314
|
4
|
+
data.tar.gz: 58b13adc868e794bc13affe7049f2339ca8eeaf16ad40d456431a132f35ef555
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eebe65d0ae457ca66548880e6fb441ebf024fd03cb19e39e84ee34fdc819dc404c1b3f085f47ff8196b8e2d6cebe396832489672fc566bb4649988dcc995118f
|
7
|
+
data.tar.gz: 5fb75a96dde0f5a110916ab34db473366695bc5f1fd47f1e22bebceaf6211b5a3cdbb8ae83ec0c377e0f52a0149f54b1f35654c2793bb0e5bc2a27eaeb58b1f7
|
@@ -0,0 +1,23 @@
|
|
1
|
+
name: CI
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- main
|
7
|
+
pull_request:
|
8
|
+
|
9
|
+
jobs:
|
10
|
+
test:
|
11
|
+
strategy:
|
12
|
+
matrix:
|
13
|
+
ruby: ['2.7', '3.0', '3.1', '3.2']
|
14
|
+
runs-on: ubuntu-latest
|
15
|
+
steps:
|
16
|
+
- uses: actions/checkout@v3
|
17
|
+
- name: Set up Ruby ${{ matrix.ruby }}
|
18
|
+
uses: ruby/setup-ruby@v1
|
19
|
+
with:
|
20
|
+
ruby-version: ${{ matrix.ruby }}
|
21
|
+
bundler-cache: true
|
22
|
+
- name: Run Test
|
23
|
+
run: bundle exec rake
|
data/Gemfile
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
|
1
|
+
# frozen_string_literal: true
|
2
2
|
|
3
|
-
|
3
|
+
source "https://rubygems.org"
|
4
4
|
|
5
5
|
# Specify your gem's dependencies in kramdown-amp.gemspec
|
6
6
|
gemspec
|
7
|
+
|
8
|
+
gem "bundler"
|
9
|
+
gem "rake"
|
10
|
+
gem "minitest"
|
data/LICENSE.txt
CHANGED
data/README.md
CHANGED
@@ -1,22 +1,24 @@
|
|
1
|
-
|
1
|
+
[![CI](https://github.com/toshimaru/kramdown-amp/actions/workflows/ci.yml/badge.svg)](https://github.com/toshimaru/kramdown-amp/actions/workflows/ci.yml)
|
2
2
|
|
3
|
-
|
3
|
+
# kramdown-amp
|
4
4
|
|
5
|
-
|
5
|
+
kramdown-amp is [kramdown](https://kramdown.gettalong.org) converter for [AMP](https://amp.dev/). It works as a [Jekyll](https://jekyllrb.com)-plugin.
|
6
|
+
|
7
|
+
## Installation for Jekyll
|
6
8
|
|
7
9
|
Add this line to your application's Gemfile:
|
8
10
|
|
9
|
-
```
|
11
|
+
```rb
|
10
12
|
gem 'kramdown-amp'
|
11
13
|
```
|
12
14
|
|
13
|
-
|
14
|
-
|
15
|
-
$ bundle
|
15
|
+
Then, add it to plugins list in `_config.yml`.
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
```yml
|
18
|
+
plugins:
|
19
|
+
- ...
|
20
|
+
- kramdown-amp
|
21
|
+
```
|
20
22
|
|
21
23
|
## How it works
|
22
24
|
|
@@ -38,7 +40,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
|
|
38
40
|
|
39
41
|
## Contributing
|
40
42
|
|
41
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
43
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/toshimaru/kramdown-amp. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
42
44
|
|
43
45
|
## License
|
44
46
|
|
@@ -46,4 +48,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
|
|
46
48
|
|
47
49
|
## Code of Conduct
|
48
50
|
|
49
|
-
Everyone interacting in the Kramdown::Amp project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/
|
51
|
+
Everyone interacting in the Kramdown::Amp project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/toshimaru/kramdown-amp/blob/master/CODE_OF_CONDUCT.md).
|
data/bin/console
CHANGED
data/kramdown-amp.gemspec
CHANGED
@@ -1,7 +1,6 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
|
-
|
3
|
-
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
-
require "kramdown/amp/version"
|
3
|
+
require_relative 'lib/kramdown/amp/version'
|
5
4
|
|
6
5
|
Gem::Specification.new do |spec|
|
7
6
|
spec.name = "kramdown-amp"
|
@@ -10,9 +9,10 @@ Gem::Specification.new do |spec|
|
|
10
9
|
spec.email = ["me@toshimaru.net"]
|
11
10
|
|
12
11
|
spec.summary = %q{Kramdown AMP Converter}
|
13
|
-
spec.description = %q{Kramdown AMP Converter}
|
12
|
+
spec.description = %q{Kramdown AMP Converter: kramdown-amp is kramdown converter for AMP. It works as a Jekyll-plugin.}
|
14
13
|
spec.homepage = "https://github.com/toshimaru/kramdown-amp"
|
15
14
|
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = '>= 2.7.0'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
18
|
f.match(%r{^(test|spec|features)/})
|
@@ -21,10 +21,10 @@ Gem::Specification.new do |spec|
|
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
22
|
spec.require_paths = ["lib"]
|
23
23
|
|
24
|
-
spec.
|
25
|
-
spec.
|
24
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
25
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
26
|
+
spec.metadata["changelog_uri"] = "https://github.com/toshimaru/kramdown-amp/releases"
|
26
27
|
|
27
|
-
spec.
|
28
|
-
spec.
|
29
|
-
spec.add_development_dependency "minitest", "~> 5.0"
|
28
|
+
spec.add_dependency 'fastimage'
|
29
|
+
spec.add_dependency 'kramdown'
|
30
30
|
end
|
data/lib/kramdown/amp/version.rb
CHANGED
data/lib/kramdown-amp.rb
CHANGED
metadata
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kramdown-amp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toshimaru
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-01-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: fastimage
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
@@ -25,7 +25,7 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: kramdown
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - ">="
|
@@ -38,57 +38,16 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
-
-
|
42
|
-
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.16'
|
48
|
-
type: :development
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '1.16'
|
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.0'
|
62
|
-
type: :development
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '10.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: minitest
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '5.0'
|
76
|
-
type: :development
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '5.0'
|
83
|
-
description: Kramdown AMP Converter
|
41
|
+
description: 'Kramdown AMP Converter: kramdown-amp is kramdown converter for AMP.
|
42
|
+
It works as a Jekyll-plugin.'
|
84
43
|
email:
|
85
44
|
- me@toshimaru.net
|
86
45
|
executables: []
|
87
46
|
extensions: []
|
88
47
|
extra_rdoc_files: []
|
89
48
|
files:
|
49
|
+
- ".github/workflows/ci.yml"
|
90
50
|
- ".gitignore"
|
91
|
-
- ".travis.yml"
|
92
51
|
- CODE_OF_CONDUCT.md
|
93
52
|
- Gemfile
|
94
53
|
- LICENSE.txt
|
@@ -103,8 +62,11 @@ files:
|
|
103
62
|
homepage: https://github.com/toshimaru/kramdown-amp
|
104
63
|
licenses:
|
105
64
|
- MIT
|
106
|
-
metadata:
|
107
|
-
|
65
|
+
metadata:
|
66
|
+
homepage_uri: https://github.com/toshimaru/kramdown-amp
|
67
|
+
source_code_uri: https://github.com/toshimaru/kramdown-amp
|
68
|
+
changelog_uri: https://github.com/toshimaru/kramdown-amp/releases
|
69
|
+
post_install_message:
|
108
70
|
rdoc_options: []
|
109
71
|
require_paths:
|
110
72
|
- lib
|
@@ -112,16 +74,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
74
|
requirements:
|
113
75
|
- - ">="
|
114
76
|
- !ruby/object:Gem::Version
|
115
|
-
version:
|
77
|
+
version: 2.7.0
|
116
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
79
|
requirements:
|
118
80
|
- - ">="
|
119
81
|
- !ruby/object:Gem::Version
|
120
82
|
version: '0'
|
121
83
|
requirements: []
|
122
|
-
|
123
|
-
|
124
|
-
signing_key:
|
84
|
+
rubygems_version: 3.4.1
|
85
|
+
signing_key:
|
125
86
|
specification_version: 4
|
126
87
|
summary: Kramdown AMP Converter
|
127
88
|
test_files: []
|