jekyll_time_since 0.1.1 → 0.1.3

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: f39b0ac3cd92ee81abf584d99a3c7fd75661605f20777d7546353228ca50b9f5
4
- data.tar.gz: f41f56482e2cc35db87baa0d6c13206ce255f00a184b6b6c1f9d7c841f44bd22
3
+ metadata.gz: e920db50f451b9b1633ec109d830d658463a77c205e5de7e5c79f46285b8cfe0
4
+ data.tar.gz: 4fa4443f9d98082b57dd37156d1239885faac75984fc16135c5c2a3d3939a6b7
5
5
  SHA512:
6
- metadata.gz: c78bff5243a2b38c3e0443bca9459537c151678e2ad87083b346660eb84b7682156f53df572f9c49c6b330ca5f254b4e888c596e2a52dee83f68107f80834474
7
- data.tar.gz: 12216708318c4d2c7e421ff9e0a8b967c54ad4492169aa9eed71e9b703738d165791136d26eb0fdf79f2cc557bf81fe5d01cc90f7d060b77b1996876c6672fc7
6
+ metadata.gz: 1db563761c609395688ffda42c028495e48f93008d405929183715065938008f5d592ece80140431602650630b139efa15066f72b7c93cb81832b19d6d9c72ed
7
+ data.tar.gz: e02291e860e2464dd135225a08de0747265cdd5db1a17ee2ce0f033ce43c76d70933d587757475e38049ca5df0f6a0ba8df16a5fc84a5114e5622e9976b5e709
data/.rubocop.yml CHANGED
@@ -1,20 +1,16 @@
1
- require: rubocop-jekyll
2
- inherit_gem:
3
- rubocop-jekyll: .rubocop.yml
4
-
5
1
  AllCops:
6
2
  Exclude:
7
3
  - vendor/**/*
8
4
  - Gemfile*
9
- - '*.gemspec' # This does nothing. Why?
5
+ - '*.gemspec'
10
6
  NewCops: enable
11
7
  TargetRubyVersion: 2.6
12
8
 
13
9
  Layout/LineLength:
14
10
  Max: 150
15
11
 
16
- # Gemspec/RequireMFA:
17
- # Enabled: false
12
+ Style/FrozenStringLiteralComment:
13
+ Enabled: false
18
14
 
19
- Jekyll/NoPutsAllowed:
15
+ Style/MutableConstant:
20
16
  Enabled: false
data/CHANGELOG.md CHANGED
@@ -1,3 +1,10 @@
1
+ ## 0.1.3 / 2023-01-26
2
+ * Fixed registration
3
+ * Improved testing
4
+
5
+ ## 0.1.2 / 2023-01-25
6
+ * Fixed return value
7
+
1
8
  ## 0.1.1 / 2022-04-05
2
9
  * Added weeks_since
3
10
  * Fixed parse error in seconds_since
data/README.md CHANGED
@@ -26,10 +26,6 @@ And then execute:
26
26
 
27
27
  $ bundle install
28
28
 
29
- Or install it yourself as:
30
-
31
- $ gem install jekyll_time_since
32
-
33
29
 
34
30
  ## Usage
35
31
 
@@ -42,40 +38,40 @@ The date and time strings can be surrounded with quotes, double quotes, or not.
42
38
  Time zone can be omitted, or specified as GMT, Z, or +/- HHMM.
43
39
 
44
40
  ```
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' %}
41
+ {{ "1959" | years_since }} {{ '1959' | years_since }}
42
+ {{ "1959-02-03" | years_since }} {{ '1959-02-03' | years_since }}
43
+ {{ "1959-02-03T01:02" | years_since }} {{ '1959-02-03T01:02' | years_since }}
44
+ {{ "1959-02-03T01:02:00Z" | years_since }} {{ "1959-02-03T01:02:00-0400" | years_since }}
45
+
46
+ {{ "1959" | months_since }} {{ months_since '1959' }}
47
+ {{ "1959-02-03" months_since }} {{ '1959-02-03' | months_since }}
48
+ {{ "1959-02-03T01:02" | months_since }} {{ '1959-02-03T01:02' | months_since }}
49
+ {{ "1959-02-03T01:02:00Z" | months_since }} {{ "1959-02-03T01:02:00-0400" | months_since }}
50
+
51
+ {{ "1959" | weeks_since }} {{ '1959' | weeks_since }}
52
+ {{ "1959-02-03" | weeks_since }} {{ '1959-02-03' | weeks_since }}
53
+ {{ "1959-02-03T01:02" | weeks_since }} {{ '1959-02-03T01:02' | weeks_since }}
54
+ {{ "1959-02-03T01:02:00Z" | weeks_since }} {{ "1959-02-03T01:02:00-0400" | weeks_since }}
55
+
56
+ {{ "1959" | days_since }} {{ '1959' | days_since }}
57
+ {{ "1959-02-03" | days_since }} {{ '1959-02-03' | days_since }}
58
+ {{ "1959-02-03T01:02" | days_since }} {{ '1959-02-03T01:02' | days_since }}
59
+ {{ "1959-02-03T01:02:00Z" | days_since }} {{ "1959-02-03T01:02:00-0400" | days_since }}
60
+
61
+ {{ "1959" | hours_since}} {{ '1959' | hours_since }}
62
+ {{ "1959-02-03" | hours_since }} {{ '1959-02-03' | hours_since }}
63
+ {{ "1959-02-03T01:02" | hours_since }} {{ '1959-02-03T01:02' | hours_since }}
64
+ {{ "1959-02-03T01:02:00Z" | hours_since }} {{ "1959-02-03T01:02:00-0400" | hours_since }}
65
+
66
+ {{ "1959" | minutes_since }} {{ '1959' | minutes_since }}
67
+ {{ "1959-02-03" | minutes_since }} {{ '1959-02-03' | minutes_since }}
68
+ {{ "1959-02-03T01:02" | minutes_since }} {{ '1959-02-03T01:02' | minutes_since }}
69
+ {{ "1959-02-03T01:02:00Z" | minutes_since }} {{ "1959-02-03T01:02:00-0400" | minutes_since }}
70
+
71
+ {{ "1959" | seconds_since }} {{ '1959' | seconds_since }}
72
+ {{ "1959-02-03" | seconds_since }} {{ '1959-02-03' | seconds_since }}
73
+ {{ "1959-02-03T01:02" | seconds_since }} {{ '1959-02-03T01:02' | seconds_since }}
74
+ {{ seconds_since "1959-02-03T01:02:00" }} {{ seconds_since '1959-02-03T01:02:00' }}
79
75
  ```
80
76
 
81
77
 
data/Rakefile CHANGED
@@ -1,7 +1,5 @@
1
- # frozen_string_literal: true
2
-
3
1
  require "bundler/gem_tasks"
4
2
  require "rspec/core/rake_task"
5
3
 
6
4
  RSpec::Core::RakeTask.new(:spec)
7
- task :default => :spec
5
+ task default: :spec
@@ -1,44 +1,35 @@
1
- # frozen_string_literal: true
1
+ require_relative 'lib/jekyll_time_since/version'
2
2
 
3
- require_relative "lib/jekyll_time_since/version"
4
-
5
- # rubocop:disable Metrics/BlockLength
6
3
  Gem::Specification.new do |spec|
7
- github = "https://github.com/mslinn/jekyll_time_since"
4
+ github = 'https://github.com/mslinn/jekyll_time_since'
8
5
 
9
- spec.authors = ["Michael Slinn"]
10
- spec.bindir = "exe"
6
+ spec.authors = ['Michael Slinn']
7
+ spec.bindir = 'exe'
11
8
  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.
9
+ 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
10
  END_OF_DESC
14
- spec.email = ["email@email.com"]
11
+ spec.email = ['email@email.com']
15
12
 
16
13
  # Specify which files should be added to the gem when it is released.
17
14
  # 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"]
15
+ spec.files = Dir['.rubocop.yml', 'LICENSE.*', 'Rakefile', '{lib,spec}/**/*', '*.gemspec', '*.md']
19
16
 
20
- spec.homepage = "https://www.mslinn.com/blog/2020/12/30/jekyll-plugin-template-collection.html"
21
- spec.license = "MIT"
17
+ spec.homepage = 'https://www.mslinn.com/blog/2020/12/30/jekyll-plugin-template-collection.html'
18
+ spec.license = 'MIT'
22
19
  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,
20
+ 'allowed_push_host' => 'https://rubygems.org',
21
+ 'bug_tracker_uri' => "#{github}/issues",
22
+ 'changelog_uri' => "#{github}/CHANGELOG.md",
23
+ 'homepage_uri' => spec.homepage,
24
+ 'source_code_uri' => github,
28
25
  }
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."
26
+ spec.name = 'jekyll_time_since'
27
+ spec.require_paths = ['lib']
28
+ spec.required_ruby_version = '>= 2.6.0'
29
+ 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
30
  spec.version = JekyllTimeSinceVersion::VERSION
34
31
 
35
- spec.add_dependency "jekyll", ">= 3.5.0"
36
- spec.add_dependency "jekyll_plugin_logger"
37
-
38
- spec.add_development_dependency "debase"
39
- # spec.add_development_dependency "rubocop-jekyll"
40
- # spec.add_development_dependency "rubocop-rake"
41
- # spec.add_development_dependency "rubocop-rspec"
42
- spec.add_development_dependency "ruby-debug-ide"
32
+ spec.add_dependency 'jekyll', '>= 3.5.0'
33
+ spec.add_dependency 'jekyll_plugin_logger'
43
34
  end
44
35
  # rubocop:enable Metrics/BlockLength
@@ -1,5 +1,3 @@
1
- # frozen_string_literal: true
2
-
3
1
  module JekyllTimeSinceVersion
4
- VERSION = "0.1.1"
2
+ VERSION = '0.1.3'
5
3
  end
@@ -1,116 +1,70 @@
1
- # frozen_string_literal: true
2
-
3
- require "jekyll_plugin_logger"
4
- require "time"
5
- require_relative "jekyll_time_since/version"
1
+ require 'jekyll_plugin_logger'
2
+ require 'time'
3
+ require_relative 'jekyll_time_since/version'
6
4
 
7
5
  module JekyllTimeSinceName
8
- PLUGIN_NAME = "jekyll_time_since"
6
+ PLUGIN_NAME = 'jekyll_time_since'
9
7
  end
10
8
 
11
9
  # These tags all work in a similar manner; they accept one parameter,
12
10
  # which is either a date string (`YYYY-MM-dd`) or an
13
11
  # [ISO 8601-1:2019](https://en.wikipedia.org/wiki/ISO_8601#Combined_date_and_time_representations) datetime string (`YYYY-MM-ddThh:mm`).
12
+ #
14
13
  # Just a year can be specified, which implies Jan 1 at midnight.
15
14
  # 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' %}
15
+ module Jekyll
16
+ # For more information, see https://ruby-doc.org/stdlib-2.7.2/libdoc/time/rdoc/Time.html
17
+ module TimeSince
18
+ @logger = PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
70
19
 
71
- module TimeSince
72
- @logger = PluginMetaLogger.instance.new_logger(self, PluginMetaLogger.instance.config)
20
+ # Filters a string containing a year, date or ISO_8601 datetime.
21
+ # @return [integer] the number of years since the input.
22
+ def years_since(string)
23
+ now = DateTime.now
24
+ string += '-01-01' unless string.include?('-')
25
+ date = Time.parse(string)
26
+ years = now.year - date.year
27
+ years -= 1 if date.month > now.month || (date.month >= now.month && date.day > now.day)
28
+ years
29
+ end
73
30
 
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
31
+ def months_since(string)
32
+ string += '-01-01' unless string.include?('-')
33
+ date1 = Date.parse(string)
84
34
 
85
- def months_since(string)
86
- string += "-01-01" unless string.include?("-")
87
- date1 = Date.parse(string)
35
+ date2 = Time.new.to_date
36
+ months = ((date2 - date1).to_f / 365 * 12).round
37
+ months -= 1 if date2.day > date1.day
38
+ months
39
+ end
88
40
 
89
- date2 = Time.new.to_date
90
- ((date2 - date1).to_f / 365 * 12).round
91
- end
41
+ def weeks_since(string)
42
+ result = days_since(string)
43
+ result.to_i / 7
44
+ end
92
45
 
93
- def weeks_since(string)
94
- days_since(string) / 7
95
- end
46
+ def days_since(string)
47
+ string += '-01-01' unless string.include?('-')
48
+ date1 = Date.parse(string)
96
49
 
97
- def days_since(string)
98
- hours_since(string) / 24
99
- end
50
+ date2 = Time.new.to_date
51
+ (date2 - date1).to_i
52
+ end
100
53
 
101
- def hours_since(string)
102
- minutes_since(string) / 60
103
- end
54
+ def hours_since(string)
55
+ minutes_since(string) / 60
56
+ end
104
57
 
105
- def minutes_since(string)
106
- seconds_since(string) / 60
107
- end
58
+ def minutes_since(string)
59
+ seconds_since(string) / 60
60
+ end
108
61
 
109
- def seconds_since(string)
110
- string += "-01-01" unless string.include?("-")
111
- (Time.new - Time.parse(string)).to_i
62
+ def seconds_since(string)
63
+ string += '-01-01' unless string.include?('-')
64
+ (Time.new - Time.parse(string)).to_i
65
+ end
112
66
  end
113
67
  end
114
68
 
115
69
  PluginMetaLogger.instance.info { "Loaded #{JekyllTimeSinceName::PLUGIN_NAME} v#{JekyllTimeSinceVersion::VERSION} plugin." }
116
- Liquid::Template.register_tag(JekyllTimeSinceName::PLUGIN_NAME, TimeSince)
70
+ Liquid::Template.register_filter(Jekyll::TimeSince)
@@ -1,17 +1,21 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative "../lib/jekyll_time_since"
1
+ require 'date'
2
+ require_relative '../lib/jekyll_time_since'
4
3
 
5
4
  RSpec.describe(TimeSince) do
6
5
  include TimeSince
7
- it "Computes years" do
8
- years_since("1956")
9
- years_since("1956-10-15")
10
6
 
11
- months_since("1956")
12
- months_since("1956-10-15")
7
+ def py_time(unit, date)
8
+ `python3 bin/time_since.py #{unit} #{date}`.strip.to_i
9
+ end
10
+
11
+ it 'computes time since' do
12
+ expect(py_time('year', '1956-01-01')).to eq(years_since('1956'))
13
+ expect(py_time('year', '1956-10-15')).to eq(years_since('1956-10-15'))
14
+
15
+ expect(py_time('month', '1956-01-01')).to eq(months_since('1956'))
16
+ expect(py_time('month', '1956-10-15')).to eq(months_since('1956-10-15'))
13
17
 
14
- weeks_since("1956")
15
- weeks_since("1956-10-15")
18
+ expect(py_time('week', '1956-01-01')).to eq(weeks_since('1956'))
19
+ expect(py_time('week', '1956-10-15')).to eq(weeks_since('1956-10-15'))
16
20
  end
17
21
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jekyll_time_since
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Slinn
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-04-06 00:00:00.000000000 Z
11
+ date: 2023-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: jekyll
@@ -38,38 +38,10 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
- - !ruby/object:Gem::Dependency
42
- name: debase
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '0'
48
- type: :development
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: ruby-debug-ide
57
- requirement: !ruby/object:Gem::Requirement
58
- requirements:
59
- - - ">="
60
- - !ruby/object:Gem::Version
61
- version: '0'
62
- type: :development
63
- prerelease: false
64
- version_requirements: !ruby/object:Gem::Requirement
65
- requirements:
66
- - - ">="
67
- - !ruby/object:Gem::Version
68
- version: '0'
69
41
  description: 'jekyll_time_since is a Jekyll plugin that provides new Liquid tags called
70
42
  years_since, months_since, days_since, hours_since, minutes_since and seconds_since.
71
43
 
72
- '
44
+ '
73
45
  email:
74
46
  - email@email.com
75
47
  executables: []
@@ -86,7 +58,6 @@ files:
86
58
  - lib/jekyll_time_since/version.rb
87
59
  - spec/jekyll_time_since_spec.rb
88
60
  - spec/spec_helper.rb
89
- - spec/status_persistence.txt
90
61
  homepage: https://www.mslinn.com/blog/2020/12/30/jekyll-plugin-template-collection.html
91
62
  licenses:
92
63
  - MIT
@@ -96,7 +67,7 @@ metadata:
96
67
  changelog_uri: https://github.com/mslinn/jekyll_time_since/CHANGELOG.md
97
68
  homepage_uri: https://www.mslinn.com/blog/2020/12/30/jekyll-plugin-template-collection.html
98
69
  source_code_uri: https://github.com/mslinn/jekyll_time_since
99
- post_install_message:
70
+ post_install_message:
100
71
  rdoc_options: []
101
72
  require_paths:
102
73
  - lib
@@ -111,8 +82,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
111
82
  - !ruby/object:Gem::Version
112
83
  version: '0'
113
84
  requirements: []
114
- rubygems_version: 3.1.4
115
- signing_key:
85
+ rubygems_version: 3.3.3
86
+ signing_key:
116
87
  specification_version: 4
117
88
  summary: jekyll_time_since is a Jekyll plugin that provides new Liquid tags called
118
89
  years_since, months_since, days_since, hours_since, minutes_since and seconds_since.
@@ -1,3 +0,0 @@
1
- example_id | status | run_time |
2
- ------------------------------------- | ------ | ------------ |
3
- ./spec/jekyll_time_since_spec.rb[1:1] | passed | 7.26 seconds |