kramdown-amp 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -1
- data/README.md +13 -11
- data/bin/console +1 -1
- data/kramdown-amp.gemspec +6 -3
- data/lib/kramdown-amp.rb +2 -0
- data/lib/kramdown/amp/version.rb +3 -1
- data/lib/kramdown/converter/amp.rb +2 -0
- metadata +16 -17
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 331897bc7ed6d6b29186e3a811f604574ae9d2f90c704d61653b3ac2892be245
|
4
|
+
data.tar.gz: d8ac631f9e973e82306e45114ade5222c03a50207461b55183f47a5598003766
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 959c5529e1b75218ec86b269d8227e2859459698adc450f1a2ef011799694453046a2428b6059bf95927d1b0de733da01bcdfc8f520e83b5c6c65dd4f764fe50
|
7
|
+
data.tar.gz: 340b2effecd110c6e11e4226c39d95277798cd0ef05d62ffe9aeafd8f9f98c30415119aa91ec8e23522bf9e14eeed1cf428bf09dd522161fb2dac36566cefe21
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -1,8 +1,10 @@
|
|
1
|
-
|
1
|
+
[![Build Status](https://travis-ci.com/toshimaru/kramdown-amp.svg?branch=master)](https://travis-ci.com/toshimaru/kramdown-amp)
|
2
2
|
|
3
|
-
|
3
|
+
# kramdown-amp(Kramdown Converter for 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
|
|
@@ -10,13 +12,13 @@ Add this line to your application's Gemfile:
|
|
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,3 +1,4 @@
|
|
1
|
+
# frozen_string_literal: true
|
1
2
|
|
2
3
|
lib = File.expand_path("../lib", __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
@@ -21,10 +22,12 @@ Gem::Specification.new do |spec|
|
|
21
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
23
|
spec.require_paths = ["lib"]
|
23
24
|
|
25
|
+
spec.required_ruby_version = '>= 2.4'
|
26
|
+
|
24
27
|
spec.add_dependency "kramdown"
|
25
28
|
spec.add_dependency "fastimage"
|
26
29
|
|
27
|
-
spec.add_development_dependency "bundler", "
|
28
|
-
spec.add_development_dependency "rake"
|
29
|
-
spec.add_development_dependency "minitest"
|
30
|
+
spec.add_development_dependency "bundler", ">= 2.0"
|
31
|
+
spec.add_development_dependency "rake"
|
32
|
+
spec.add_development_dependency "minitest"
|
30
33
|
end
|
data/lib/kramdown-amp.rb
CHANGED
data/lib/kramdown/amp/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- toshimaru
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-08-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: kramdown
|
@@ -42,44 +42,44 @@ dependencies:
|
|
42
42
|
name: bundler
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - "
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '2.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - "
|
52
|
+
- - ">="
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '2.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rake
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - "
|
59
|
+
- - ">="
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
61
|
+
version: '0'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
|
-
- - "
|
66
|
+
- - ">="
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
68
|
+
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: minitest
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
|
-
- - "
|
73
|
+
- - ">="
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
75
|
+
version: '0'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
|
-
- - "
|
80
|
+
- - ">="
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
82
|
+
version: '0'
|
83
83
|
description: Kramdown AMP Converter
|
84
84
|
email:
|
85
85
|
- me@toshimaru.net
|
@@ -112,15 +112,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
112
112
|
requirements:
|
113
113
|
- - ">="
|
114
114
|
- !ruby/object:Gem::Version
|
115
|
-
version: '
|
115
|
+
version: '2.4'
|
116
116
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
117
117
|
requirements:
|
118
118
|
- - ">="
|
119
119
|
- !ruby/object:Gem::Version
|
120
120
|
version: '0'
|
121
121
|
requirements: []
|
122
|
-
|
123
|
-
rubygems_version: 2.7.3
|
122
|
+
rubygems_version: 3.0.3
|
124
123
|
signing_key:
|
125
124
|
specification_version: 4
|
126
125
|
summary: Kramdown AMP Converter
|