abemedia / jekyll-pdf

Create PDFs from Jekyll pages & documents.
http://abemedia.co.uk/jekyll-pdf/
GNU General Public License v3.0
104 stars 35 forks source link

Could not find a valid gem 'digest' #27

Open MrHinsh opened 1 year ago

MrHinsh commented 1 year ago

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
jonsnowseven commented 10 months ago

Any updates?

MrHinsh commented 10 months ago

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

I think I cleared out the build cach with bundle command

jonsnowseven commented 10 months ago

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

jonsnowseven commented 10 months ago

What Jekyll version are you using, @MrHinsh?

MrHinsh commented 10 months ago

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

MrHinsh commented 8 months ago

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

MrHinsh commented 8 months ago

@tynn ?

abemedia commented 8 months ago

Hi,

Will try to find the time this weekend.

sepulworld commented 8 months ago

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.
MrHinsh commented 8 months ago

digest no longer exists!

earonesty commented 6 months ago

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

MrHinsh commented 6 months ago

🤷‍♂️ 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.

sepulworld commented 6 months ago

Looks like we can use older versions:

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

MrHinsh commented 6 months ago

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?