kramdown-amp 0.0.1 → 0.2.0

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
  SHA256:
3
- metadata.gz: fe7a9591a68849156474a2e01d2a1746ff8decd4a1abe7f7023bfc2614bdbe12
4
- data.tar.gz: 734092e8b277996e1e76a66ef44cd3833229785a91c71dd5803039623b09dbe4
3
+ metadata.gz: ff83de923098f59dfa8f203c21e5498399d336e431dd8df71b6c0f9cb517f314
4
+ data.tar.gz: 58b13adc868e794bc13affe7049f2339ca8eeaf16ad40d456431a132f35ef555
5
5
  SHA512:
6
- metadata.gz: 9881a3cfef5ecc4614cbf7644ca8282e649e2cb9ad9193578dcd733283eb7a20f95693c80164e39b4833e753ab9dfe1056e251de3a6ce8b0b286b4a791284ead
7
- data.tar.gz: fad7cc6fc793f580ee17768d539028d01ab60eee4e54c190e735ae81ca3ca9ec16a845370d081b1a973b34fa79e6da20eae37d75e1cdb5c02e58c3a302750707
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
- source "https://rubygems.org"
1
+ # frozen_string_literal: true
2
2
 
3
- git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
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
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2018 toshimaru
3
+ Copyright (c) 2018-2023 toshimaru
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -1,22 +1,24 @@
1
- # Kramdown Converter for Amp
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
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/kramdown/amp`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ # kramdown-amp
4
4
 
5
- ## Installation
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
- ```ruby
11
+ ```rb
10
12
  gem 'kramdown-amp'
11
13
  ```
12
14
 
13
- And then execute:
14
-
15
- $ bundle
15
+ Then, add it to plugins list in `_config.yml`.
16
16
 
17
- Or install it yourself as:
18
-
19
- $ gem install kramdown-amp
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/[USERNAME]/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.
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/[USERNAME]/kramdown-amp/blob/master/CODE_OF_CONDUCT.md).
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
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require "bundler/setup"
4
- require "kramdown/amp"
4
+ require "kramdown-amp"
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
data/kramdown-amp.gemspec CHANGED
@@ -1,7 +1,6 @@
1
+ # frozen_string_literal: true
1
2
 
2
- lib = File.expand_path("../lib", __FILE__)
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.add_dependency "kramdown"
25
- spec.add_dependency "fastimage"
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.add_development_dependency "bundler", "~> 1.16"
28
- spec.add_development_dependency "rake", "~> 10.0"
29
- spec.add_development_dependency "minitest", "~> 5.0"
28
+ spec.add_dependency 'fastimage'
29
+ spec.add_dependency 'kramdown'
30
30
  end
@@ -1,5 +1,7 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Kramdown
2
4
  module Amp
3
- VERSION = "0.0.1"
5
+ VERSION = '0.2.0'
4
6
  end
5
7
  end
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  module Kramdown
2
4
  module Converter
3
5
  module Amp
data/lib/kramdown-amp.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'fastimage'
2
4
  require 'kramdown/converter/html'
3
5
  require 'kramdown/converter/amp'
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.1
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: 2018-06-02 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: kramdown
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: fastimage
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
- - !ruby/object:Gem::Dependency
42
- name: bundler
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
- post_install_message:
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: '0'
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
- rubyforge_project:
123
- rubygems_version: 2.7.3
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: []
data/.travis.yml DELETED
@@ -1,5 +0,0 @@
1
- sudo: false
2
- language: ruby
3
- rvm:
4
- - 2.5.0
5
- before_install: gem install bundler -v 1.16.1