Skip to content

Instantly share code, notes, and snippets.

View ghiculescu's full-sized avatar

Alex Ghiculescu ghiculescu

View GitHub Profile
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails", branch: "main"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails", branch: "main"
# frozen_string_literal: true
require "bundler/inline"
gemfile(true) do
source "https://rubygems.org"
git_source(:github) { |repo| "https://github.com/#{repo}.git" }
gem "rails", github: "rails/rails", branch: "main"
@ghiculescu
ghiculescu / lint_android.yml
Last active September 7, 2022 13:18
Github Actions CI steps for Turbo Android and Turbo iOS apps
name: ktlint
on: [pull_request]
jobs:
ktlint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: ktlint
if defined?(ActiveRecord::Base)
begin
ActiveRecord::Migration.maintain_test_schema!
rescue ActiveRecord::PendingMigrationError => e
puts e.to_s.strip
exit 1
end
end
ActiveSupport.on_load(:active_support_test_case) do
shift = Shift.find(532434)
shift.destroy!
@ghiculescu
ghiculescu / CLAUDE.md
Created May 15, 2025 05:17
Code Review by Claude Code using Cursor Rules

Rails

This is a Ruby on Rails application. It should follow common Rails conventions.

See @.cursor/rules/accepted-patterns.mdc for coding style.

See @.cursor/rules/active-record-performance.mdc for rules around writing performant Ruby.

See @.cursor/rules/security.mdc for rules around writing secure Ruby.