Add Python/Ruby code pieces and fix template loading performance
- Add Python code execution piece with subprocess-based runner - Add Ruby code execution piece with subprocess-based runner - Fix template loading: fetch individual templates from cloud for community edition - Add piece name aliasing for renamed pieces (piece-text-ai → piece-ai, etc.) - Add dev pieces caching to avoid disk reads on every request (60s TTL) - Add Python and Ruby logos to Django static files 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
import { createPiece, PieceAuth } from '@activepieces/pieces-framework';
|
||||
import { PieceCategory } from '@activepieces/shared';
|
||||
import { runRubyCode } from './lib/run-ruby-code';
|
||||
|
||||
// Ruby logo - hosted on Django backend
|
||||
const RUBY_LOGO = 'http://lvh.me:8000/static/images/ruby-logo.svg';
|
||||
|
||||
export const rubyCode = createPiece({
|
||||
displayName: 'Ruby Code',
|
||||
description: 'Execute Ruby code in your automations',
|
||||
auth: PieceAuth.None(),
|
||||
minimumSupportedRelease: '0.36.1',
|
||||
logoUrl: RUBY_LOGO,
|
||||
categories: [PieceCategory.CORE, PieceCategory.DEVELOPER_TOOLS],
|
||||
authors: ['smoothschedule'],
|
||||
actions: [runRubyCode],
|
||||
triggers: [],
|
||||
});
|
||||
Reference in New Issue
Block a user