jekyll-pdf icon indicating copy to clipboard operation
jekyll-pdf copied to clipboard

Could not find a valid gem 'digest'

Open MrHinsh opened this issue 1 year ago • 14 comments

Is there something that I am missing?

gem install jekyll-pdf
ERROR:  Could not find a valid gem 'digest' (~> 0) (required by 'jekyll-pdf' (>= 0)) in any repository
ERROR:  Possible alternatives: acts_as_digested_on, application_digester, attr_digest, cache_digests, carrierwave-digest, digest, digest-base32, digest-blake2b, digest-blake3, digest-cmac

MrHinsh avatar Apr 04 '23 08:04 MrHinsh

Any updates?

jonsnowseven avatar Oct 01 '23 11:10 jonsnowseven

I got past it, but no idea what I did!

I think I cleared out the build cach with bundle command

MrHinsh avatar Oct 01 '23 11:10 MrHinsh

Thanks @MrHinsh. And everything works? Can you show me how a page with pdf: true looks like?

jonsnowseven avatar Oct 01 '23 12:10 jonsnowseven

What Jekyll version are you using, @MrHinsh?

jonsnowseven avatar Oct 02 '23 07:10 jonsnowseven

Don't know, it was 6 months ago. Whatever the latest was when I posted I guess.

MrHinsh avatar Oct 02 '23 21:10 MrHinsh

Hey @abemedia any chance that you can update this dependency and release?

MrHinsh avatar Nov 09 '23 14:11 MrHinsh

@tynn ?

MrHinsh avatar Nov 09 '23 14:11 MrHinsh

Hi,

Will try to find the time this weekend.

abemedia avatar Nov 10 '23 08:11 abemedia

Same issue on Ruby 3.2.2

Fetching gem metadata from https://rubygems.org/.........
Resolving dependencies...
Could not find compatible versions

Because every version of jekyll-pdf depends on digest ~> 0
  and digest >= 0, < 1.A could not be found in rubygems repository https://rubygems.org/ or installed locally,
  jekyll-pdf cannot be used.
So, because Gemfile depends on jekyll-pdf >= 0,
  version solving has failed.

sepulworld avatar Nov 16 '23 08:11 sepulworld

digest no longer exists!

MrHinsh avatar Nov 16 '23 10:11 MrHinsh

digest comes with ruby. it exists. i think maybe an older ruby might work.

earonesty avatar Jan 07 '24 00:01 earonesty

🤷‍♂️ I'm not using an older Ruby! I'm using whatever the latest version is.

Digest is no longer a Ruby gem and is no longer available at all. Even manually searching on the gems provider provides no results.

If you can provide the specific version of Ruby it works in ill be able to see if the great of the stuff works as well.

MrHinsh avatar Jan 07 '24 17:01 MrHinsh

Looks like we can use older versions:

https://github.com/abemedia/jekyll-pdf/blob/master/.travis.yml#L7C1-L12C1

sepulworld avatar Jan 08 '24 05:01 sepulworld

The latest version of Ruby (Ruby 2.3) supported in the Travis file is over 9 years old and is not only out of support (2018) but also no longer receives security updates (2019).

The minimum version supported is 3.0 that was shipped in 2020.

Would it be possible to update this package to support Ruby 3.2 to give it the longest viable life?

MrHinsh avatar Jan 08 '24 09:01 MrHinsh