Skip to content

Commit 3fc2777

Browse files
committed
first commit
0 parents  commit 3fc2777

39 files changed

+941
-0
lines changed

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: Ruby
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
8+
pull_request:
9+
10+
jobs:
11+
build:
12+
runs-on: ubuntu-latest
13+
name: Ruby ${{ matrix.ruby }}
14+
strategy:
15+
matrix:
16+
ruby:
17+
- '3.2.2'
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- name: Run the default task
27+
run: bundle exec rake

.gitignore

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/.bundle/
2+
/.yardoc
3+
/_yardoc/
4+
/coverage/
5+
/doc/
6+
/pkg/
7+
/spec/reports/
8+
/tmp/
9+
10+
# rspec failure tracking
11+
.rspec_status

.rspec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
--format documentation
2+
--color
3+
--require spec_helper

.rubocop.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
AllCops:
2+
TargetRubyVersion: 3.1
3+
4+
Style/StringLiterals:
5+
EnforcedStyle: double_quotes
6+
7+
Style/StringLiteralsInInterpolation:
8+
EnforcedStyle: double_quotes

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## [Unreleased]
2+
3+
## [0.1.0] - 2025-08-10
4+
5+
- Initial release

Gemfile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
source "https://rubygems.org"
4+
5+
# Specify your gem's dependencies in memory_bank_rails.gemspec
6+
gemspec
7+
8+
gem "rake", "~> 13.0"
9+
10+
gem "rspec", "~> 3.0"
11+
12+
gem "rubocop", "~> 1.21"

Gemfile.lock

Lines changed: 184 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,184 @@
1+
PATH
2+
remote: .
3+
specs:
4+
memory_bank_rails (0.1.0)
5+
railties (>= 7.0)
6+
thor (>= 1.2)
7+
8+
GEM
9+
remote: https://rubygems.org/
10+
specs:
11+
actionpack (8.0.2)
12+
actionview (= 8.0.2)
13+
activesupport (= 8.0.2)
14+
nokogiri (>= 1.8.5)
15+
rack (>= 2.2.4)
16+
rack-session (>= 1.0.1)
17+
rack-test (>= 0.6.3)
18+
rails-dom-testing (~> 2.2)
19+
rails-html-sanitizer (~> 1.6)
20+
useragent (~> 0.16)
21+
actionview (8.0.2)
22+
activesupport (= 8.0.2)
23+
builder (~> 3.1)
24+
erubi (~> 1.11)
25+
rails-dom-testing (~> 2.2)
26+
rails-html-sanitizer (~> 1.6)
27+
activesupport (8.0.2)
28+
base64
29+
benchmark (>= 0.3)
30+
bigdecimal
31+
concurrent-ruby (~> 1.0, >= 1.3.1)
32+
connection_pool (>= 2.2.5)
33+
drb
34+
i18n (>= 1.6, < 2)
35+
logger (>= 1.4.2)
36+
minitest (>= 5.1)
37+
securerandom (>= 0.3)
38+
tzinfo (~> 2.0, >= 2.0.5)
39+
uri (>= 0.13.1)
40+
ast (2.4.3)
41+
base64 (0.3.0)
42+
benchmark (0.4.1)
43+
bigdecimal (3.2.2)
44+
builder (3.3.0)
45+
concurrent-ruby (1.3.5)
46+
connection_pool (2.5.3)
47+
crass (1.0.6)
48+
date (3.4.1)
49+
diff-lcs (1.6.2)
50+
drb (2.2.3)
51+
erb (5.0.2)
52+
erubi (1.13.1)
53+
i18n (1.14.7)
54+
concurrent-ruby (~> 1.0)
55+
io-console (0.8.1)
56+
irb (1.15.2)
57+
pp (>= 0.6.0)
58+
rdoc (>= 4.0.0)
59+
reline (>= 0.4.2)
60+
json (2.13.2)
61+
language_server-protocol (3.17.0.5)
62+
lint_roller (1.1.0)
63+
logger (1.7.0)
64+
loofah (2.24.1)
65+
crass (~> 1.0.2)
66+
nokogiri (>= 1.12.0)
67+
minitest (5.25.5)
68+
nokogiri (1.18.9-aarch64-linux-gnu)
69+
racc (~> 1.4)
70+
nokogiri (1.18.9-aarch64-linux-musl)
71+
racc (~> 1.4)
72+
nokogiri (1.18.9-arm-linux-gnu)
73+
racc (~> 1.4)
74+
nokogiri (1.18.9-arm-linux-musl)
75+
racc (~> 1.4)
76+
nokogiri (1.18.9-arm64-darwin)
77+
racc (~> 1.4)
78+
nokogiri (1.18.9-x86_64-darwin)
79+
racc (~> 1.4)
80+
nokogiri (1.18.9-x86_64-linux-gnu)
81+
racc (~> 1.4)
82+
nokogiri (1.18.9-x86_64-linux-musl)
83+
racc (~> 1.4)
84+
parallel (1.27.0)
85+
parser (3.3.9.0)
86+
ast (~> 2.4.1)
87+
racc
88+
pp (0.6.2)
89+
prettyprint
90+
prettyprint (0.2.0)
91+
prism (1.4.0)
92+
psych (5.2.6)
93+
date
94+
stringio
95+
racc (1.8.1)
96+
rack (3.2.0)
97+
rack-session (2.1.1)
98+
base64 (>= 0.1.0)
99+
rack (>= 3.0.0)
100+
rack-test (2.2.0)
101+
rack (>= 1.3)
102+
rackup (2.2.1)
103+
rack (>= 3)
104+
rails-dom-testing (2.3.0)
105+
activesupport (>= 5.0.0)
106+
minitest
107+
nokogiri (>= 1.6)
108+
rails-html-sanitizer (1.6.2)
109+
loofah (~> 2.21)
110+
nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
111+
railties (8.0.2)
112+
actionpack (= 8.0.2)
113+
activesupport (= 8.0.2)
114+
irb (~> 1.13)
115+
rackup (>= 1.0.0)
116+
rake (>= 12.2)
117+
thor (~> 1.0, >= 1.2.2)
118+
zeitwerk (~> 2.6)
119+
rainbow (3.1.1)
120+
rake (13.3.0)
121+
rdoc (6.14.2)
122+
erb
123+
psych (>= 4.0.0)
124+
regexp_parser (2.11.1)
125+
reline (0.6.2)
126+
io-console (~> 0.5)
127+
rspec (3.13.1)
128+
rspec-core (~> 3.13.0)
129+
rspec-expectations (~> 3.13.0)
130+
rspec-mocks (~> 3.13.0)
131+
rspec-core (3.13.5)
132+
rspec-support (~> 3.13.0)
133+
rspec-expectations (3.13.5)
134+
diff-lcs (>= 1.2.0, < 2.0)
135+
rspec-support (~> 3.13.0)
136+
rspec-mocks (3.13.5)
137+
diff-lcs (>= 1.2.0, < 2.0)
138+
rspec-support (~> 3.13.0)
139+
rspec-support (3.13.4)
140+
rubocop (1.79.2)
141+
json (~> 2.3)
142+
language_server-protocol (~> 3.17.0.2)
143+
lint_roller (~> 1.1.0)
144+
parallel (~> 1.10)
145+
parser (>= 3.3.0.2)
146+
rainbow (>= 2.2.2, < 4.0)
147+
regexp_parser (>= 2.9.3, < 3.0)
148+
rubocop-ast (>= 1.46.0, < 2.0)
149+
ruby-progressbar (~> 1.7)
150+
unicode-display_width (>= 2.4.0, < 4.0)
151+
rubocop-ast (1.46.0)
152+
parser (>= 3.3.7.2)
153+
prism (~> 1.4)
154+
ruby-progressbar (1.13.0)
155+
securerandom (0.4.1)
156+
stringio (3.1.7)
157+
thor (1.4.0)
158+
tzinfo (2.0.6)
159+
concurrent-ruby (~> 1.0)
160+
unicode-display_width (3.1.4)
161+
unicode-emoji (~> 4.0, >= 4.0.4)
162+
unicode-emoji (4.0.4)
163+
uri (1.0.3)
164+
useragent (0.16.11)
165+
zeitwerk (2.7.3)
166+
167+
PLATFORMS
168+
aarch64-linux-gnu
169+
aarch64-linux-musl
170+
arm-linux-gnu
171+
arm-linux-musl
172+
arm64-darwin
173+
x86_64-darwin
174+
x86_64-linux-gnu
175+
x86_64-linux-musl
176+
177+
DEPENDENCIES
178+
memory_bank_rails!
179+
rake (~> 13.0)
180+
rspec (~> 3.0)
181+
rubocop (~> 1.21)
182+
183+
BUNDLED WITH
184+
2.6.2

LICENSE.txt

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2025 puppe1990
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# Memory Bank for Agents (Rails)
2+
3+
A Rails engine that bootstraps AI-ready development docs and project memory for Ruby on Rails teams. It ships generators, rake tasks, and optional IDE rules to keep context consistent across teammates and AI agents.
4+
5+
## Installation
6+
7+
Add to your `Gemfile`:
8+
9+
```ruby
10+
gem "memory_bank_rails"
11+
```
12+
13+
Then:
14+
15+
```bash
16+
bundle install
17+
rails g memory_bank:install
18+
```
19+
20+
One-off (no Gemfile):
21+
22+
```bash
23+
bundle exec rails runner 'MemoryBankRails::CLI.run("init")'
24+
```
25+
26+
## Rake tasks
27+
28+
```bash
29+
rake memory_bank:init GUIDE=rails_web WITH_RULES=true
30+
rake memory_bank:initialize
31+
rake memory_bank:spec:new FEATURE=my-feature
32+
rake memory_bank:check
33+
rake memory_bank:report
34+
```

Rakefile

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# frozen_string_literal: true
2+
3+
require "bundler/gem_tasks"
4+
require "rspec/core/rake_task"
5+
6+
RSpec::Core::RakeTask.new(:spec)
7+
8+
require "rubocop/rake_task"
9+
10+
RuboCop::RakeTask.new
11+
12+
task default: %i[spec rubocop]

0 commit comments

Comments
 (0)