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

Uninitialized constant Module::Plausible

Open CucumisSativus opened this issue 4 years ago • 3 comments

Hello!

I installed jekyll-analytics in the version 0.1.14. I followed the readme in order to set up Plausible analytics, but when I tried to build the page I encountered an error:

/usr/local/bundle/gems/jekyll-analytics-0.1.14/lib/jekyll-analytics.rb:8:in `block in inject': uninitialized constant Module::Plausible (NameError)
	from /usr/local/bundle/gems/jekyll-analytics-0.1.14/lib/jekyll-analytics.rb:7:in `each'
	from /usr/local/bundle/gems/jekyll-analytics-0.1.14/lib/jekyll-analytics.rb:7:in `inject'
	from /usr/local/bundle/gems/jekyll-analytics-0.1.14/lib/jekyll-analytics.rb:21:in `block in <top (required)>'

If I understand it correctly, it looks like the latest released version is from June, but the change which introduced Plausible is from October.

Could you please make an release? :) What do you think about auto releasing on merge to master? Could I help with it?

CucumisSativus avatar Nov 28 '20 18:11 CucumisSativus

I'm also running into the same issue as @CucumisSativus.

ogjunkyard avatar Jan 03 '21 22:01 ogjunkyard

Until a new release with these changes is available, you can directly use the merge commit with the Plausible changes using this in your Gemfile:

  gem "jekyll-analytics", "~> 0.1", git: 'https://github.com/hendrikschneider/jekyll-analytics', ref: '40e09570dea80e3a9ecb0ad796aad1c434ff067c'

(See https://github.com/hendrikschneider/jekyll-analytics/commit/40e09570dea80e3a9ecb0ad796aad1c434ff067c for verification)

DavidS avatar Mar 07 '21 16:03 DavidS