pax_global_header00006660000000000000000000000064141374721560014524gustar00rootroot0000000000000052 comment=4b87d048d95366c2ffc370f8ae12c8a00da9fad7 jekyll-test-gem-plugin-0.2.0/000077500000000000000000000000001413747215600160345ustar00rootroot00000000000000jekyll-test-gem-plugin-0.2.0/.github/000077500000000000000000000000001413747215600173745ustar00rootroot00000000000000jekyll-test-gem-plugin-0.2.0/.github/workflows/000077500000000000000000000000001413747215600214315ustar00rootroot00000000000000jekyll-test-gem-plugin-0.2.0/.github/workflows/gem.yml000066400000000000000000000014601413747215600227250ustar00rootroot00000000000000name: Release Gem on: push: branches: - master paths: - "lib/**/version.rb" jobs: release: if: "github.repository_owner == 'jekyll'" name: "Release Gem (Ruby ${{ matrix.ruby_version }})" runs-on: "ubuntu-latest" strategy: fail-fast: true matrix: ruby_version: - 2.7 steps: - name: Checkout Repository uses: actions/checkout@v2 - name: "Set up Ruby ${{ matrix.ruby_version }}" uses: ruby/setup-ruby@v1 with: ruby-version: ${{ matrix.ruby_version }} bundler-cache: true - name: Build and Publish Gem uses: ashmaroli/release-gem@dist with: gemspec_name: jekyll_test_plugin env: GEM_HOST_API_KEY: ${{ secrets.RUBYGEMS_GEM_PUSH_API_KEY }} jekyll-test-gem-plugin-0.2.0/.gitignore000066400000000000000000000000151413747215600200200ustar00rootroot00000000000000Gemfile.lock jekyll-test-gem-plugin-0.2.0/Gemfile000066400000000000000000000000461413747215600173270ustar00rootroot00000000000000source 'https://rubygems.org' gemspec jekyll-test-gem-plugin-0.2.0/History.markdown000066400000000000000000000001401413747215600212340ustar00rootroot00000000000000## 0.1.1 / 2021-10-07 ### Development Fixes * Add workflow to build gem via GH Actions (#2) jekyll-test-gem-plugin-0.2.0/LICENSE.txt000066400000000000000000000020551413747215600176610ustar00rootroot00000000000000Copyright (c) 2013 Parker Moore MIT License Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions: The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software. THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. jekyll-test-gem-plugin-0.2.0/README.md000066400000000000000000000012101413747215600173050ustar00rootroot00000000000000# JekyllTestPlugin Testing Jekyll's `gem` configuration option, which allows the straight inclusion of plugins as rubygems into Jekyll instead of just `.rb` files. ## Installation Add this line to your application's Gemfile: gem 'jekyll_test_plugin' And then execute: $ bundle Or install it yourself as: $ gem install jekyll_test_plugin ## Usage DON'T USE THIS IT'S JUST FOR TESTING. :) ## Contributing 1. Fork it 2. Create your feature branch (`git checkout -b my-new-feature`) 3. Commit your changes (`git commit -am 'Add some feature'`) 4. Push to the branch (`git push origin my-new-feature`) 5. Create new Pull Request jekyll-test-gem-plugin-0.2.0/Rakefile000066400000000000000000000011201413747215600174730ustar00rootroot00000000000000require "bundler/gem_tasks" namespace :project do require "forwardable" module Project class Spec extend Forwardable def_delegators :@gemspec, :name, :version def initialize(name) gemspec_file = "#{name}.gemspec" @gemspec = Bundler.load_gemspec(gemspec_file) end end end spec = Project::Spec.new("jekyll_test_plugin") desc "Print basename of built gem." task :gem_name do puts "#{spec.name}-#{spec.version}" end desc "Print lib version prefixed with 'v'." task :tag_version do puts "v#{spec.version}" end end jekyll-test-gem-plugin-0.2.0/jekyll_test_plugin.gemspec000066400000000000000000000016731413747215600233170ustar00rootroot00000000000000# coding: utf-8 lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'jekyll_test_plugin/version' Gem::Specification.new do |spec| spec.name = "jekyll_test_plugin" spec.version = JekyllTestPlugin::VERSION spec.authors = ["Parker Moore"] spec.email = ["parkrmoore@gmail.com"] spec.description = %q{A test plugin for Jekyll's 'gem' config option} spec.summary = %q{A test Jekyll plugin as a gem} spec.homepage = "https://github.com/parkr/jekyll-test-gem-plugin" spec.license = "MIT" spec.files = `git ls-files`.split($/) spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.test_files = spec.files.grep(%r{^(test|spec|features)/}) spec.require_paths = ["lib"] spec.add_development_dependency "bundler" spec.add_development_dependency "rake" spec.add_development_dependency "jekyll" end jekyll-test-gem-plugin-0.2.0/lib/000077500000000000000000000000001413747215600166025ustar00rootroot00000000000000jekyll-test-gem-plugin-0.2.0/lib/jekyll_test_plugin.rb000066400000000000000000000007551413747215600230450ustar00rootroot00000000000000require "jekyll_test_plugin/version" require "jekyll" module JekyllTestPlugin class TestPage < Jekyll::Page def initialize(site, base, dir, name) @site = site @base = base @dir = dir @name = name self.process(name) self.content = "this is a test" self.data = {} end end class TestGenerator < Jekyll::Generator safe true def generate(site) site.pages << TestPage.new(site, site.source, '', 'test.txt') end end end jekyll-test-gem-plugin-0.2.0/lib/jekyll_test_plugin/000077500000000000000000000000001413747215600225115ustar00rootroot00000000000000jekyll-test-gem-plugin-0.2.0/lib/jekyll_test_plugin/version.rb000066400000000000000000000000601413747215600245170ustar00rootroot00000000000000module JekyllTestPlugin VERSION = "0.2.0" end