jekyll_test_plugin 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.github/workflows/backport.yml +52 -0
- data/README.md +1 -1
- data/Rakefile +29 -0
- data/jekyll_test_plugin.gemspec +2 -2
- data/lib/jekyll_test_plugin/version.rb +1 -1
- data/lib/jekyll_test_plugin.rb +2 -0
- metadata +16 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 715146aab0706190143196d23646ad885497f5ebd9b887737cd6f7862428fd03
|
4
|
+
data.tar.gz: 3d18de1455b1d2c526c71fe3134015de7912aab7b3631468d6822dffe432a67d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f232fc299594f5768bc532932755f47a825ac07a2d72399dcf2ed4b1c8ad49a4f6d9864f8244af2e6dbb4bfc2a4b26b47d0d4ce9e3577e73cbf28e204c67d8e
|
7
|
+
data.tar.gz: da4d0d9de9f4a42991557dc0fa19b5fdf2841bf4842fba8801909b0b39c26b0ac109606797b468b48e85497b6f8713cc0315c9142c69c1ebdfa644f1347592fb
|
@@ -0,0 +1,52 @@
|
|
1
|
+
name: Release Backport
|
2
|
+
|
3
|
+
on:
|
4
|
+
push:
|
5
|
+
branches:
|
6
|
+
- "*-stable"
|
7
|
+
paths:
|
8
|
+
- "lib/**/version.rb"
|
9
|
+
|
10
|
+
jobs:
|
11
|
+
release:
|
12
|
+
if: "github.repository_owner == 'jekyll'"
|
13
|
+
name: "Release Backport (Ruby ${{ matrix.ruby_version }})"
|
14
|
+
runs-on: "ubuntu-latest"
|
15
|
+
strategy:
|
16
|
+
fail-fast: true
|
17
|
+
matrix:
|
18
|
+
ruby_version:
|
19
|
+
- 2.7
|
20
|
+
steps:
|
21
|
+
- name: Checkout Repository
|
22
|
+
uses: actions/checkout@v2
|
23
|
+
- name: "Set up Ruby ${{ matrix.ruby_version }}"
|
24
|
+
uses: ruby/setup-ruby@v1
|
25
|
+
with:
|
26
|
+
ruby-version: ${{ matrix.ruby_version }}
|
27
|
+
bundler-cache: true
|
28
|
+
- name: Extract Plugin Meta
|
29
|
+
id: plugin-meta
|
30
|
+
run: |
|
31
|
+
echo "::set-output name=tag_version::$(bundle exec rake project:tag_version)"
|
32
|
+
echo "::set-output name=gem_name::$(bundle exec rake project:gem_name)"
|
33
|
+
shell: bash
|
34
|
+
- name: "Build Gem (${{ steps.plugin-meta.outputs.gem_name }})"
|
35
|
+
run: bundle exec rake build
|
36
|
+
- name: Archive gem as artifact
|
37
|
+
uses: actions/upload-artifact@v2
|
38
|
+
with:
|
39
|
+
name: "${{ steps.plugin-meta.outputs.gem_name }}"
|
40
|
+
path: "pkg/${{ steps.plugin-meta.outputs.gem_name }}.gem"
|
41
|
+
retention-days: 5
|
42
|
+
- name: Release Gem via Rubygems.org
|
43
|
+
env:
|
44
|
+
GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }}
|
45
|
+
run: |
|
46
|
+
git config user.name "${{ github.actor }}"
|
47
|
+
git config user.email "${{ github.actor }}@users.noreply.github.com"
|
48
|
+
git tag ${{ steps.plugin-meta.outputs.tag_version }} \
|
49
|
+
-m "Release :gem: ${{ steps.plugin-meta.outputs.tag_version }}" \
|
50
|
+
${{ github.event.head_commit.id }}
|
51
|
+
git push origin ${{ steps.plugin-meta.outputs.tag_version }}
|
52
|
+
gem push pkg/${{ steps.plugin-meta.outputs.gem_name }}.gem
|
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1 +1,30 @@
|
|
1
1
|
require "bundler/gem_tasks"
|
2
|
+
|
3
|
+
namespace :project do
|
4
|
+
require "forwardable"
|
5
|
+
|
6
|
+
module Project
|
7
|
+
class Spec
|
8
|
+
extend Forwardable
|
9
|
+
|
10
|
+
def_delegators :@gemspec, :name, :version
|
11
|
+
|
12
|
+
def initialize(name)
|
13
|
+
gemspec_file = "#{name}.gemspec"
|
14
|
+
@gemspec = Bundler.load_gemspec(gemspec_file)
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
|
19
|
+
spec = Project::Spec.new("jekyll_test_plugin")
|
20
|
+
|
21
|
+
desc "Print basename of built gem."
|
22
|
+
task :gem_name do
|
23
|
+
puts "#{spec.name}-#{spec.version}"
|
24
|
+
end
|
25
|
+
|
26
|
+
desc "Print lib version prefixed with 'v'."
|
27
|
+
task :tag_version do
|
28
|
+
puts "v#{spec.version}"
|
29
|
+
end
|
30
|
+
end
|
data/jekyll_test_plugin.gemspec
CHANGED
@@ -8,7 +8,7 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = JekyllTestPlugin::VERSION
|
9
9
|
spec.authors = ["Parker Moore"]
|
10
10
|
spec.email = ["parkrmoore@gmail.com"]
|
11
|
-
spec.description = %q{A test plugin for Jekyll's
|
11
|
+
spec.description = %q{A test plugin for Jekyll's 'gem' config option}
|
12
12
|
spec.summary = %q{A test Jekyll plugin as a gem}
|
13
13
|
spec.homepage = "https://github.com/parkr/jekyll-test-gem-plugin"
|
14
14
|
spec.license = "MIT"
|
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler"
|
21
|
+
spec.add_development_dependency "bundler"
|
22
22
|
spec.add_development_dependency "rake"
|
23
23
|
spec.add_development_dependency "jekyll"
|
24
24
|
end
|
data/lib/jekyll_test_plugin.rb
CHANGED
metadata
CHANGED
@@ -1,65 +1,66 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jekyll_test_plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Parker Moore
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- -
|
38
|
+
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: jekyll
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- -
|
45
|
+
- - ">="
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '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
54
|
version: '0'
|
55
|
-
description: A test plugin for Jekyll's
|
55
|
+
description: A test plugin for Jekyll's 'gem' config option
|
56
56
|
email:
|
57
57
|
- parkrmoore@gmail.com
|
58
58
|
executables: []
|
59
59
|
extensions: []
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
|
-
- .
|
62
|
+
- ".github/workflows/backport.yml"
|
63
|
+
- ".gitignore"
|
63
64
|
- Gemfile
|
64
65
|
- LICENSE.txt
|
65
66
|
- README.md
|
@@ -77,17 +78,16 @@ require_paths:
|
|
77
78
|
- lib
|
78
79
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
80
|
requirements:
|
80
|
-
- -
|
81
|
+
- - ">="
|
81
82
|
- !ruby/object:Gem::Version
|
82
83
|
version: '0'
|
83
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
84
85
|
requirements:
|
85
|
-
- -
|
86
|
+
- - ">="
|
86
87
|
- !ruby/object:Gem::Version
|
87
88
|
version: '0'
|
88
89
|
requirements: []
|
89
|
-
|
90
|
-
rubygems_version: 2.0.3
|
90
|
+
rubygems_version: 3.1.6
|
91
91
|
signing_key:
|
92
92
|
specification_version: 4
|
93
93
|
summary: A test Jekyll plugin as a gem
|