Skip to content

Posthog rails generator template#104

Merged
rafaeelaudibert merged 2 commits intomainfrom
cursor/posthog-rails-generator-template-cd0f
Feb 15, 2026
Merged

Posthog rails generator template#104
rafaeelaudibert merged 2 commits intomainfrom
cursor/posthog-rails-generator-template-cd0f

Conversation

@rafaeelaudibert
Copy link
Member

@rafaeelaudibert rafaeelaudibert commented Feb 15, 2026

Move Rails generator template to lib/generators/posthog/templates/ to ensure it's included in the gem package.

The posthog:install generator failed because examples/posthog.rb was not included in the gem due to the gemspec only packaging lib/**/* files. Moving the template to the conventional lib/generators/posthog/templates/ directory resolves this by ensuring it's packaged with the gem.

Closes #103


Slack Thread

Open in Cursor Open in Web

The generator was looking for 'examples/posthog.rb' but the examples
directory was not included in the gem package (gemspec only includes
lib/**/*).

Fixed by moving the template to lib/generators/posthog/templates/
which follows Rails generator conventions and ensures the template
is included in the gem.

Fixes #103

Co-authored-by: Rafael Audibert <rafaeelaudibert@users.noreply.github.com>
@cursor
Copy link

cursor bot commented Feb 15, 2026

Cursor Agent can help with this pull request. Just @cursor in comments and I'll start working on changes in this branch.
Learn more about Cursor Agents

@rafaeelaudibert rafaeelaudibert marked this pull request as ready for review February 15, 2026 05:01
@rafaeelaudibert rafaeelaudibert requested review from a team February 15, 2026 05:02
@rafaeelaudibert
Copy link
Member Author

@cursor add an entry to the changelog like we explain in the README and also bump a patch version with this fix

@cursor
Copy link

cursor bot commented Feb 15, 2026

Done! I've made the following changes:

  • Bumped version from 3.5.3 to 3.5.4 in lib/posthog/version.rb
  • Added changelog entry for version 3.5.4 with today's date (2026-02-15):

    fix: Move Rails generator template to lib/generators/posthog/templates/ to ensure it's included in the gem package (Error generating rails config #103)

The changes have been committed and pushed to the branch.

Open in Cursor Open in Web

- Bump patch version from 3.5.3 to 3.5.4
- Add changelog entry for Rails generator template fix (#103)

Co-authored-by: Rafael Audibert <rafaeelaudibert@users.noreply.github.com>
@rafaeelaudibert rafaeelaudibert merged commit 8047cb0 into main Feb 15, 2026
11 checks passed
@rafaeelaudibert rafaeelaudibert deleted the cursor/posthog-rails-generator-template-cd0f branch February 15, 2026 06:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Error generating rails config

3 participants