jekyll_time_since 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.rubocop.yml +20 -0
- data/CHANGELOG.md +2 -0
- data/LICENSE.txt +21 -0
- data/README.md +140 -0
- data/Rakefile +7 -0
- data/jekyll_time_since.gemspec +49 -0
- data/lib/jekyll_time_since/version.rb +5 -0
- data/lib/jekyll_time_since.rb +111 -0
- data/spec/jekyll_time_since_spec.rb +9 -0
- data/spec/spec_helper.rb +19 -0
- metadata +188 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 49deda1c8fd804d1f221b26b8b2770a136681c4fdd0d295e5d33207e2f649184
|
4
|
+
data.tar.gz: f63928489b58a6e4add3eb192f76b89e26699808ec3bcb0786563fb90fa24a96
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e3b7381753f3c08e6c0b031de19612e5c0d000ccc4223f3a34dff7fe4e469ad42ffc1f28a7121f8daf8f28252a2a4dd1758142e2ae80a7be45b4a0876fc253b1
|
7
|
+
data.tar.gz: e33a448a3d7c99e6508e16443073b237c03a207951cc8374b72e7cd8973a7190b77076a3eeeb79bbee665c00884d7285c28c9fa77ae35f15daea348e8ad9d15f
|
data/.rubocop.yml
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
require: rubocop-jekyll
|
2
|
+
inherit_gem:
|
3
|
+
rubocop-jekyll: .rubocop.yml
|
4
|
+
|
5
|
+
AllCops:
|
6
|
+
Exclude:
|
7
|
+
- vendor/**/*
|
8
|
+
- Gemfile*
|
9
|
+
- '*.gemspec' # This does nothing. Why?
|
10
|
+
NewCops: enable
|
11
|
+
TargetRubyVersion: 2.6
|
12
|
+
|
13
|
+
Layout/LineLength:
|
14
|
+
Max: 150
|
15
|
+
|
16
|
+
# Gemspec/RequireMFA:
|
17
|
+
# Enabled: false
|
18
|
+
|
19
|
+
Jekyll/NoPutsAllowed:
|
20
|
+
Enabled: false
|
data/CHANGELOG.md
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2022 COPYRIGHT_OWNER
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,140 @@
|
|
1
|
+
`jekyll_time_since`
|
2
|
+
[![Gem Version](https://badge.fury.io/rb/jekyll_time_since.svg)](https://badge.fury.io/rb/jekyll_time_since)
|
3
|
+
===========
|
4
|
+
|
5
|
+
`jekyll_time_since` is a Jekyll plugin that provides new Liquid tags called
|
6
|
+
`years_since`, `months_since`, `days_since`, `hours_since`, `minutes_since` and `seconds_since`.
|
7
|
+
The plugin is packaged as a Ruby gem.
|
8
|
+
|
9
|
+
|
10
|
+
## Additional Information
|
11
|
+
More information is available on Mike Slinn's web site about
|
12
|
+
[Jekyll plugins](https://www.mslinn.com/blog/index.html#Jekyll).
|
13
|
+
|
14
|
+
|
15
|
+
## Installation
|
16
|
+
|
17
|
+
Add this line to your application's Gemfile:
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
group :jekyll_plugins do
|
21
|
+
gem 'jekyll_time_since'
|
22
|
+
end
|
23
|
+
```
|
24
|
+
|
25
|
+
And then execute:
|
26
|
+
|
27
|
+
$ bundle install
|
28
|
+
|
29
|
+
Or install it yourself as:
|
30
|
+
|
31
|
+
$ gem install jekyll_time_since
|
32
|
+
|
33
|
+
|
34
|
+
## Usage
|
35
|
+
|
36
|
+
These tags all work in a similar manner; they accept one parameter,
|
37
|
+
which is either a date string (`YYYY-MM-dd`) or an
|
38
|
+
[ISO 8601-1:2019](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) datetime string (`YYYY-MM-ddThh:mm`).
|
39
|
+
Just a year can be specified, which implies Jan 1 at midnight.
|
40
|
+
|
41
|
+
The date and time strings can be surrounded with quotes, double quotes, or not.
|
42
|
+
Time zone can be omitted, or specified as GMT, Z, or +/- HHMM.
|
43
|
+
|
44
|
+
```
|
45
|
+
{% "1959" | years_since %} {% '1959' | years_since %}
|
46
|
+
{% "1959-02-03" | years_since %} {% '1959-02-03' | years_since %}
|
47
|
+
{% "1959-02-03T01:02" | years_since %} {% '1959-02-03T01:02' | years_since %}
|
48
|
+
{% "1959-02-03T01:02:00Z" | years_since %} {% "1959-02-03T01:02:00-0400" | years_since %}
|
49
|
+
|
50
|
+
{% "1959" | months_since %} {% months_since '1959' %}
|
51
|
+
{% "1959-02-03" months_since %} {% '1959-02-03' | months_since %}
|
52
|
+
{% "1959-02-03T01:02" | months_since %} {% '1959-02-03T01:02' | months_since %}
|
53
|
+
{% "1959-02-03T01:02:00Z" | months_since %} {% "1959-02-03T01:02:00-0400" | months_since %}
|
54
|
+
|
55
|
+
{% "1959" | weeks_since %} {% '1959' | weeks_since %}
|
56
|
+
{% "1959-02-03" | weeks_since %} {% '1959-02-03' | weeks_since %}
|
57
|
+
{% "1959-02-03T01:02" | weeks_since %} {% '1959-02-03T01:02' | weeks_since %}
|
58
|
+
{% "1959-02-03T01:02:00Z" | weeks_since %} {% "1959-02-03T01:02:00-0400" | weeks_since %}
|
59
|
+
|
60
|
+
{% "1959" | days_since %} {% '1959' | days_since %}
|
61
|
+
{% "1959-02-03" | days_since %} {% '1959-02-03' | days_since %}
|
62
|
+
{% "1959-02-03T01:02" | days_since %} {% '1959-02-03T01:02' | days_since %}
|
63
|
+
{% "1959-02-03T01:02:00Z" | days_since %} {% "1959-02-03T01:02:00-0400" | days_since %}
|
64
|
+
|
65
|
+
{% "1959" | hours_since%} {% '1959' | hours_since %}
|
66
|
+
{% "1959-02-03" | hours_since %} {% '1959-02-03' | hours_since %}
|
67
|
+
{% "1959-02-03T01:02" | hours_since %} {% '1959-02-03T01:02' | hours_since %}
|
68
|
+
{% "1959-02-03T01:02:00Z" | hours_since %} {% "1959-02-03T01:02:00-0400" | hours_since %}
|
69
|
+
|
70
|
+
{% "1959" | minutes_since %} {% '1959' | minutes_since %}
|
71
|
+
{% "1959-02-03" | minutes_since %} {% '1959-02-03' | minutes_since %}
|
72
|
+
{% "1959-02-03T01:02" | minutes_since %} {% '1959-02-03T01:02' | minutes_since %}
|
73
|
+
{% "1959-02-03T01:02:00Z" | minutes_since %} {% "1959-02-03T01:02:00-0400" | minutes_since %}
|
74
|
+
|
75
|
+
{% "1959" | seconds_since %} {% '1959' | seconds_since %}
|
76
|
+
{% "1959-02-03" | seconds_since %} {% '1959-02-03' | seconds_since %}
|
77
|
+
{% "1959-02-03T01:02" | seconds_since %} {% '1959-02-03T01:02' | seconds_since %}
|
78
|
+
{% seconds_since "1959-02-03T01:02:00" %} {% seconds_since '1959-02-03T01:02:00' %}
|
79
|
+
```
|
80
|
+
|
81
|
+
|
82
|
+
## Development
|
83
|
+
|
84
|
+
After checking out the repo, run `bin/setup` to install dependencies.
|
85
|
+
|
86
|
+
You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
87
|
+
|
88
|
+
|
89
|
+
### Build and Install Locally
|
90
|
+
To build and install this gem onto your local machine, run:
|
91
|
+
```shell
|
92
|
+
$ rake install:local
|
93
|
+
```
|
94
|
+
|
95
|
+
The following also does the same thing:
|
96
|
+
```shell
|
97
|
+
$ bundle exec rake install
|
98
|
+
jekyll_time_since 0.1.0 built to pkg/jekyll_time_since-0.1.0.gem.
|
99
|
+
jekyll_time_since (0.1.0) installed.
|
100
|
+
```
|
101
|
+
|
102
|
+
Examine the newly built gem:
|
103
|
+
```shell
|
104
|
+
$ gem info jekyll_time_since
|
105
|
+
|
106
|
+
*** LOCAL GEMS ***
|
107
|
+
|
108
|
+
jekyll_time_since (0.1.0)
|
109
|
+
Author: Michael Slinn
|
110
|
+
Homepage: https://github.com/mslinn/jekyll_time_since
|
111
|
+
License: MIT
|
112
|
+
Installed at: /home/mslinn/.gems
|
113
|
+
|
114
|
+
A Jekyll plugin that provides new Liquid tags called years_since, months_since, days_since, hours_since, minutes_since and seconds_since.
|
115
|
+
```
|
116
|
+
|
117
|
+
|
118
|
+
### Build and Push to RubyGems
|
119
|
+
To release a new version,
|
120
|
+
1. Update the version number in `version.rb`.
|
121
|
+
2. Commit all changes to git; if you don't the next step might fail with an unexplainable error message.
|
122
|
+
3. Run the following:
|
123
|
+
```shell
|
124
|
+
$ bundle exec rake release
|
125
|
+
```
|
126
|
+
The above creates a git tag for the version, commits the created tag,
|
127
|
+
and pushes the new `.gem` file to [RubyGems.org](https://rubygems.org).
|
128
|
+
|
129
|
+
|
130
|
+
## Contributing
|
131
|
+
|
132
|
+
1. Fork the project
|
133
|
+
2. Create a descriptively named feature branch
|
134
|
+
3. Add your feature
|
135
|
+
4. Submit a pull request
|
136
|
+
|
137
|
+
|
138
|
+
## License
|
139
|
+
|
140
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require_relative "lib/jekyll_time_since/version"
|
4
|
+
|
5
|
+
# rubocop:disable Metrics/BlockLength
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
github = "https://github.com/mslinn/jekyll_time_since"
|
8
|
+
|
9
|
+
spec.authors = ["Michael Slinn"]
|
10
|
+
spec.bindir = "exe"
|
11
|
+
spec.description = <<~END_OF_DESC
|
12
|
+
jekyll_time_since is a Jekyll plugin that provides new Liquid tags called years_since, months_since, days_since, hours_since, minutes_since and seconds_since.
|
13
|
+
END_OF_DESC
|
14
|
+
spec.email = ["email@email.com"]
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir[".rubocop.yml", "LICENSE.*", "Rakefile", "{lib,spec}/**/*", "*.gemspec", "*.md"]
|
19
|
+
|
20
|
+
spec.homepage = "https://www.mslinn.com/blog/2020/12/30/jekyll-plugin-template-collection.html"
|
21
|
+
spec.license = "MIT"
|
22
|
+
spec.metadata = {
|
23
|
+
"allowed_push_host" => "https://rubygems.org",
|
24
|
+
"bug_tracker_uri" => "#{github}/issues",
|
25
|
+
"changelog_uri" => "#{github}/CHANGELOG.md",
|
26
|
+
"homepage_uri" => spec.homepage,
|
27
|
+
"source_code_uri" => github,
|
28
|
+
}
|
29
|
+
spec.name = "jekyll_time_since"
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
spec.required_ruby_version = ">= 2.6.0"
|
32
|
+
spec.summary = "jekyll_time_since is a Jekyll plugin that provides new Liquid tags called years_since, months_since, days_since, hours_since, minutes_since and seconds_since."
|
33
|
+
spec.version = JekyllTimeSinceVersion::VERSION
|
34
|
+
|
35
|
+
spec.add_dependency "jekyll", ">= 3.5.0"
|
36
|
+
spec.add_dependency "jekyll_plugin_logger"
|
37
|
+
spec.add_dependency "key-value-parser"
|
38
|
+
spec.add_dependency "git"
|
39
|
+
spec.add_dependency "os"
|
40
|
+
spec.add_dependency "shellwords"
|
41
|
+
spec.add_dependency "tty-prompt"
|
42
|
+
|
43
|
+
spec.add_development_dependency "debase"
|
44
|
+
# spec.add_development_dependency "rubocop-jekyll"
|
45
|
+
# spec.add_development_dependency "rubocop-rake"
|
46
|
+
# spec.add_development_dependency "rubocop-rspec"
|
47
|
+
spec.add_development_dependency "ruby-debug-ide"
|
48
|
+
end
|
49
|
+
# rubocop:enable Metrics/BlockLength
|
@@ -0,0 +1,111 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "jekyll_plugin_logger"
|
4
|
+
require "time"
|
5
|
+
require_relative "jekyll_time_since/version"
|
6
|
+
|
7
|
+
module JekyllTimeSinceName
|
8
|
+
PLUGIN_NAME = "block_tag_template"
|
9
|
+
end
|
10
|
+
|
11
|
+
# These tags all work in a similar manner; they accept one parameter,
|
12
|
+
# which is either a date string (`YYYY-MM-dd`) or an
|
13
|
+
# [ISO 8601-1:2019](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) datetime string (`YYYY-MM-ddThh:mm`).
|
14
|
+
# Just a year can be specified, which implies Jan 1 at midnight.
|
15
|
+
# You can specify a time zone
|
16
|
+
# For more information, see https://ruby-doc.org/stdlib-2.7.2/libdoc/time/rdoc/Time.html
|
17
|
+
#
|
18
|
+
# The date and time strings can be surrounded with quotes, double quotes, or not.
|
19
|
+
# The following examples compute elapsed time since "the day the music died" (1959-02-03).
|
20
|
+
# See https://en.wikipedia.org/wiki/The_Day_the_Music_Died
|
21
|
+
#
|
22
|
+
# @example years_since
|
23
|
+
# Computes years since the date specified
|
24
|
+
# {% "1959" | years_since %} {% '1959' | years_since %}
|
25
|
+
# {% "1959-02-03" | years_since %} {% '1959-02-03' | years_since %}
|
26
|
+
# {% "1959-02-03T01:02:00" | years_since %} {% '1959-02-03T01:02:00' | years_since %}
|
27
|
+
# {% "1959-02-03T01:02:00Z" | years_since %} {% "1959-02-03T01:02:00-0400" | years_since %}
|
28
|
+
#
|
29
|
+
# @example months_since
|
30
|
+
# Computes months since the date specified
|
31
|
+
# {% "1959" | months_since %} {% months_since '1959' %}
|
32
|
+
# {% "1959-02-03" months_since %} {% '1959-02-03' | months_since %}
|
33
|
+
# {% "1959-02-03T01:02" | months_since %} {% '1959-02-03T01:02' | months_since %}
|
34
|
+
# {% "1959-02-03T01:02:00Z" | months_since %} {% "1959-02-03T01:02:00-0400" | months_since %}
|
35
|
+
#
|
36
|
+
# @example weeks_since
|
37
|
+
# Computes weeks since the date specified
|
38
|
+
# {% "1959" | weeks_since %} {% '1959' | weeks_since %}
|
39
|
+
# {% "1959-02-03" | weeks_since %} {% '1959-02-03' | weeks_since %}
|
40
|
+
# {% "1959-02-03T01:02:00" | weeks_since %} {% '1959-02-03T01:02:00' | weeks_since %}
|
41
|
+
# {% "1959-02-03T01:02:00Z" | weeks_since %} {% "1959-02-03T01:02:00-0400" | weeks_since %}
|
42
|
+
#
|
43
|
+
# @example days_since
|
44
|
+
# Computes days since the date specified
|
45
|
+
# {% "1959" | days_since %} {% '1959' | days_since %}
|
46
|
+
# {% "1959-02-03" | days_since %} {% '1959-02-03' | days_since %}
|
47
|
+
# {% "1959-02-03T01:02" | days_since %} {% '1959-02-03T01:02' | days_since %}
|
48
|
+
# {% "1959-02-03T01:02:00Z" | days_since %} {% "1959-02-03T01:02:00-0400" | days_since %}
|
49
|
+
#
|
50
|
+
# @example hours_since
|
51
|
+
# Computes hours since the date and time specified
|
52
|
+
# {% "1959" | hours_since%} {% '1959' | hours_since %}
|
53
|
+
# {% "1959-02-03" | hours_since %} {% '1959-02-03' | hours_since %}
|
54
|
+
# {% "1959-02-03T01:02" | hours_since %} {% '1959-02-03T01:02' | hours_since %}
|
55
|
+
# {% "1959-02-03T01:02:00Z" | hours_since %} {% "1959-02-03T01:02:00-0400" | hours_since %}
|
56
|
+
#
|
57
|
+
# @example minutes_since
|
58
|
+
# Computes minutes since the date and time specified
|
59
|
+
# {% "1959" | minutes_since %} {% '1959' | minutes_since %}
|
60
|
+
# {% "1959-02-03" | minutes_since %} {% '1959-02-03' | minutes_since %}
|
61
|
+
# {% "1959-02-03T01:02" | minutes_since %} {% '1959-02-03T01:02' | minutes_since %}
|
62
|
+
# {% "1959-02-03T01:02:00Z" | minutes_since %} {% "1959-02-03T01:02:00-0400" | minutes_since %}
|
63
|
+
#
|
64
|
+
# @example seconds_since
|
65
|
+
# Computes seconds since the date and time specified
|
66
|
+
# {% "1959" | seconds_since %} {% '1959' | seconds_since %}
|
67
|
+
# {% "1959-02-03" | seconds_since %} {% '1959-02-03' | seconds_since %}
|
68
|
+
# {% "1959-02-03T01:02" | seconds_since %} {% '1959-02-03T01:02' | seconds_since %}
|
69
|
+
# {% seconds_since "1959-02-03T01:02:00" %} {% seconds_since '1959-02-03T01:02:00' %}
|
70
|
+
|
71
|
+
module TimeSince
|
72
|
+
@logger = PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
|
73
|
+
|
74
|
+
# Filters a string containing a year, date or ISO_8601 datetime.
|
75
|
+
# @return [integer] the number of years since the input.
|
76
|
+
def years_since(string)
|
77
|
+
now = DateTime.now
|
78
|
+
string += "-01-01" unless string.include?("-")
|
79
|
+
date = Time.parse(string)
|
80
|
+
years = now.year - date.year
|
81
|
+
years -= 1 if date.month > now.month || (date.month >= now.month && date.day > now.day)
|
82
|
+
years
|
83
|
+
end
|
84
|
+
|
85
|
+
def months_since(string)
|
86
|
+
string += "-01-01" unless string.include?("-")
|
87
|
+
date1 = Date.parse(string)
|
88
|
+
|
89
|
+
date2 = Time.new.to_date
|
90
|
+
((date2 - date1).to_f / 365 * 12).round
|
91
|
+
end
|
92
|
+
|
93
|
+
def days_since(string)
|
94
|
+
hours_since(string) / 24
|
95
|
+
end
|
96
|
+
|
97
|
+
def hours_since(string)
|
98
|
+
minutes_since(string) / 60
|
99
|
+
end
|
100
|
+
|
101
|
+
def minutes_since(string)
|
102
|
+
seconds_since(string) / 60
|
103
|
+
end
|
104
|
+
|
105
|
+
def seconds_since(string)
|
106
|
+
(Time.new - Time.parse(string)).to_i
|
107
|
+
end
|
108
|
+
end
|
109
|
+
|
110
|
+
PluginMetaLogger.instance.info { "Loaded #{JekyllTimeSinceName::PLUGIN_NAME} v#{JekyllTimeSinceVersion::VERSION} plugin." }
|
111
|
+
Liquid::Template.register_tag(JekyllTimeSinceName::PLUGIN_NAME, Jekyll::TimeSince)
|
data/spec/spec_helper.rb
ADDED
@@ -0,0 +1,19 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "jekyll"
|
4
|
+
require "fileutils"
|
5
|
+
require "key_value_parser"
|
6
|
+
require "shellwords"
|
7
|
+
|
8
|
+
require_relative "../lib/jekyll_time_since"
|
9
|
+
|
10
|
+
Jekyll.logger.log_level = :info
|
11
|
+
|
12
|
+
RSpec.configure do |config|
|
13
|
+
config.filter_run :focus
|
14
|
+
config.order = "random"
|
15
|
+
config.run_all_when_everything_filtered = true
|
16
|
+
|
17
|
+
# See https://relishapp.com/rspec/rspec-core/docs/command-line/only-failures
|
18
|
+
config.example_status_persistence_file_path = "spec/status_persistence.txt"
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,188 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: jekyll_time_since
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Michael Slinn
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2022-04-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: jekyll
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.5.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.5.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jekyll_plugin_logger
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: key-value-parser
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: git
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: os
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: shellwords
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: tty-prompt
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: debase
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: ruby-debug-ide
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: 'jekyll_time_since is a Jekyll plugin that provides new Liquid tags called
|
140
|
+
years_since, months_since, days_since, hours_since, minutes_since and seconds_since.
|
141
|
+
|
142
|
+
'
|
143
|
+
email:
|
144
|
+
- email@email.com
|
145
|
+
executables: []
|
146
|
+
extensions: []
|
147
|
+
extra_rdoc_files: []
|
148
|
+
files:
|
149
|
+
- ".rubocop.yml"
|
150
|
+
- CHANGELOG.md
|
151
|
+
- LICENSE.txt
|
152
|
+
- README.md
|
153
|
+
- Rakefile
|
154
|
+
- jekyll_time_since.gemspec
|
155
|
+
- lib/jekyll_time_since.rb
|
156
|
+
- lib/jekyll_time_since/version.rb
|
157
|
+
- spec/jekyll_time_since_spec.rb
|
158
|
+
- spec/spec_helper.rb
|
159
|
+
homepage: https://www.mslinn.com/blog/2020/12/30/jekyll-plugin-template-collection.html
|
160
|
+
licenses:
|
161
|
+
- MIT
|
162
|
+
metadata:
|
163
|
+
allowed_push_host: https://rubygems.org
|
164
|
+
bug_tracker_uri: https://github.com/mslinn/jekyll_time_since/issues
|
165
|
+
changelog_uri: https://github.com/mslinn/jekyll_time_since/CHANGELOG.md
|
166
|
+
homepage_uri: https://www.mslinn.com/blog/2020/12/30/jekyll-plugin-template-collection.html
|
167
|
+
source_code_uri: https://github.com/mslinn/jekyll_time_since
|
168
|
+
post_install_message:
|
169
|
+
rdoc_options: []
|
170
|
+
require_paths:
|
171
|
+
- lib
|
172
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
173
|
+
requirements:
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 2.6.0
|
177
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
178
|
+
requirements:
|
179
|
+
- - ">="
|
180
|
+
- !ruby/object:Gem::Version
|
181
|
+
version: '0'
|
182
|
+
requirements: []
|
183
|
+
rubygems_version: 3.1.4
|
184
|
+
signing_key:
|
185
|
+
specification_version: 4
|
186
|
+
summary: jekyll_time_since is a Jekyll plugin that provides new Liquid tags called
|
187
|
+
years_since, months_since, days_since, hours_since, minutes_since and seconds_since.
|
188
|
+
test_files: []
|