lifer 0.15.0 → 0.15.2

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: 3c77559664e99b814d3c3bd2b34926662fc12f89965e1b51677abb7a616fd254
4
- data.tar.gz: 1e75c5a25907dd5308331f5b443d8c4a1c2dc9ca5585a835347942e34fc8c79f
3
+ metadata.gz: 70bf9c30dec3267f8b8ce42371948ccaff2056e8b2dd6a4996ed38d9e185fc24
4
+ data.tar.gz: 8a55c2b4bbf0381532e921ea1ae3640c010c68cde03ce4ab678b003c767957bc
5
5
  SHA512:
6
- metadata.gz: 7bb00955fd017e0608f4c937750cefc746f657c38676e4b9c8493475caee85a39100b2964a30a8310ffd005252366830e18c6a9ac5efd2aefb2a6c1bbd9093a3
7
- data.tar.gz: 34055e44ec3254f7415bf3d9c306c6be450c4a9bccb6b28b41f3424c56a72821ea23887024fdfa6c3cd5a6e03e82fa64b584d5abde29d72ea023e1d8bdb72f2f
6
+ metadata.gz: 85ed87342a2ba06437c7aa956015aaa4db7e2dc73cfe046a1ee39a21ebd64877dc7790f7cd527ae8d1a6331f314fb94e105348fe90a84c41cf973b3534a19442
7
+ data.tar.gz: ca16cf17c957b89798f5019a2bb5ef0d4ef1200200005326b6fdabfe6b475572dd176664611cf50935bbb618b7611e65b15372c30ed5cccd447703f9accd2eac
data/CHANGELOG.md CHANGED
@@ -1,4 +1,20 @@
1
1
  ## Next
2
+ ## v0.15.2
3
+
4
+ I created this release to deal with a `gem build` warning:
5
+
6
+ WARNING: open-ended dependency on base64 (>= 0) is not recommended
7
+ use a bounded requirement, such as "~> x.y"
8
+
9
+ ## v0.15.1
10
+
11
+ In this release:
12
+
13
+ - Entry IDs and permalinks are no longer equivalent. This helps us build out
14
+ entries (or something with the same interface as entries) that aren't
15
+ represented by a file on disk.
16
+ - The `node_modules` directory is now ignored at build time.
17
+
2
18
  ## v0.15.0
3
19
 
4
20
  The theme for this release is improved error messaging
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lifer (0.15.0)
5
- base64
4
+ lifer (0.15.2)
5
+ base64 (<= 1)
6
6
  i18n (< 2)
7
7
  kramdown (~> 2.4)
8
8
  liquid (~> 5.6, < 6)
@@ -117,7 +117,7 @@ class Lifer::Builder
117
117
  # by the end of this procedure.
118
118
  def json_feed_entry(feed_object, lifer_entry, lifer_collection)
119
119
  feed_item_object = {
120
- id: lifer_entry.permalink,
120
+ id: lifer_entry.identifier,
121
121
  url: lifer_entry.permalink,
122
122
  external_url: lifer_entry.frontmatter[:external_url],
123
123
  title: lifer_entry.title,
@@ -216,7 +216,7 @@ class Lifer::Builder::RSS < Lifer::Builder
216
216
  if (authors = lifer_entry.authors).any?
217
217
  rss_feed_item.author = authors.join(", ")
218
218
  end
219
- rss_feed_item.id = lifer_entry.permalink
219
+ rss_feed_item.id = lifer_entry.identifier
220
220
  rss_feed_item.link = lifer_entry.permalink
221
221
  rss_feed_item.title = lifer_entry.title
222
222
  rss_feed_item.summary = lifer_entry.summary
data/lib/lifer/entry.rb CHANGED
@@ -205,6 +205,12 @@ module Lifer
205
205
  @full_text ||= File.readlines(file).join if file
206
206
  end
207
207
 
208
+ # A unique identifier for the current entry. For all entry types (so far)
209
+ # it makes sense to use the permalink.
210
+ #
211
+ # @return [String] The permalink (using the defafult global host argument).
212
+ def identifier = permalink
213
+
208
214
  # The file extension to be used when at the entry's build time. For
209
215
  # example, a Markdown file should be built to HTML.
210
216
  #
data/lib/lifer/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Lifer
2
- VERSION = "0.15.0"
2
+ VERSION = "0.15.2"
3
3
  end
data/lib/lifer.rb CHANGED
@@ -13,6 +13,7 @@ module Lifer
13
13
  IGNORE_DIRECTORIES = [
14
14
  "assets",
15
15
  "bin",
16
+ "node_modules",
16
17
  "vendor"
17
18
  ]
18
19
 
data/lifer.gemspec CHANGED
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
36
36
  spec.files.grep(%r{\Abin/}) { |bin_file| File.basename(bin_file) }
37
37
  spec.require_paths = ["lib"]
38
38
 
39
- spec.add_dependency "base64"
39
+ spec.add_dependency "base64", "<= 1"
40
40
  spec.add_dependency "i18n", "< 2"
41
41
  spec.add_dependency "kramdown", "~> 2.4"
42
42
  spec.add_dependency "liquid", ["~> 5.6", "< 6"]
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lifer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 0.15.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - benjamin wil
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-07-03 00:00:00.000000000 Z
11
+ date: 2026-08-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: base64
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - "<="
18
18
  - !ruby/object:Gem::Version
19
- version: '0'
19
+ version: '1'
20
20
  type: :runtime
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: '0'
26
+ version: '1'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: i18n
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -229,8 +229,8 @@ licenses:
229
229
  - MIT
230
230
  metadata:
231
231
  allowed_push_host: https://rubygems.org
232
- homepage_uri: https://github.com/benjaminwil/lifer/blob/v0.15.0/README.md
233
- source_code_uri: https://github.com/benjaminwil/lifer/tree/v0.15.0
232
+ homepage_uri: https://github.com/benjaminwil/lifer/blob/v0.15.2/README.md
233
+ source_code_uri: https://github.com/benjaminwil/lifer/tree/v0.15.2
234
234
  changelog_uri: https://github.com/benjaminwil/lifer/blob/main/CHANGELOG.md
235
235
  post_install_message:
236
236
  rdoc_options: []