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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: fd05904eb77ee8419f4311983b4631cc04b6f804
4
- data.tar.gz: e8c052df70e33c9d51c8b26cc08f0c6edd0b42bc
2
+ SHA256:
3
+ metadata.gz: 715146aab0706190143196d23646ad885497f5ebd9b887737cd6f7862428fd03
4
+ data.tar.gz: 3d18de1455b1d2c526c71fe3134015de7912aab7b3631468d6822dffe432a67d
5
5
  SHA512:
6
- metadata.gz: 4a4d2e1f4b78ec88bb2be8a180cc6b29ff016ac8ce88a6d96ab593820c302127958abf48da74dc2413d366e4748b3e5c42f7487521d119195738ea086cb84838
7
- data.tar.gz: fb74c6f3e32a3f0568dbc4bffcbe0e7acd408639b5e0e0ce001ad0bfdf5f99ba4cefe80f14c37b045eebce56dc6279617badb351c98c024130072fdf6ff24df2
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
@@ -1,7 +1,7 @@
1
1
  # JekyllTestPlugin
2
2
 
3
3
  Testing Jekyll's `gem` configuration option, which allows the straight
4
- inclusion of plguins as rubygems into Jekyll instead of just `.rb`
4
+ inclusion of plugins as rubygems into Jekyll instead of just `.rb`
5
5
  files.
6
6
 
7
7
  ## Installation
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
@@ -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 proposed new 'gem' config option}
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", "~> 1.3"
21
+ spec.add_development_dependency "bundler"
22
22
  spec.add_development_dependency "rake"
23
23
  spec.add_development_dependency "jekyll"
24
24
  end
@@ -1,3 +1,3 @@
1
1
  module JekyllTestPlugin
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -15,6 +15,8 @@ module JekyllTestPlugin
15
15
  end
16
16
 
17
17
  class TestGenerator < Jekyll::Generator
18
+ safe true
19
+
18
20
  def generate(site)
19
21
  site.pages << TestPage.new(site, site.source, '', 'test.txt')
20
22
  end
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.1
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: 2013-10-04 00:00:00.000000000 Z
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: '1.3'
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: '1.3'
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 proposed new 'gem' config option
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
- - .gitignore
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
- rubyforge_project:
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