Commit 0c7eb5e
authored
chore: Remove SQLite and streamline dependencies (#13)
* chore: Remove SQLite and streamline dependencies
Removed unnecessary dependencies for API-only application using Couchbase:
**Removed gems:**
- sqlite3 (not needed - using Couchbase directly)
- capybara (no system testing for API)
- selenium-webdriver (no browser automation needed)
- sprockets-rails (no asset pipeline for API)
- importmap-rails (no JavaScript imports needed)
- turbo-rails (no Hotwire features needed)
- stimulus-rails (no Stimulus controllers needed)
**Configuration changes:**
- Updated config/application.rb to load only required Rails components
- Excluded activerecord/railtie (using Couchbase SDK directly)
- Excluded active_storage/engine and action_cable/railtie (not needed)
- Updated config/database.yml with clear note that it's not used
- Commented out ActiveRecord configurations in spec/rails_helper.rb
- Removed active_storage configuration from config/environments/test.rb
**Removed directories/files:**
- app/javascript/ (unused Stimulus controllers)
- db/ (no migrations with Couchbase)
- config/importmap.rb (not needed)
- config/initializers/assets.rb (no asset pipeline)
**Impact:**
- Reduced gem count and bundle size
- Faster boot time and bundle install
- Clearer developer onboarding (no SQLite confusion)
- All 27 tests passing
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* fix: Comment out active_storage config in all environments
Missed active_storage configuration in development.rb and production.rb
which caused CI failures when the application tried to boot.
Changes:
- Commented out config.active_storage.service in development.rb
- Commented out config.active_storage.service in production.rb
This completes the removal of ActiveStorage dependency.
* fix: Remove app/channels directory
The app/channels directory contains ActionCable boilerplate that references
ActionCable::Channel::Base, but we excluded ActionCable from loading in
config/application.rb.
Since we're not using WebSockets/ActionCable for this JSON API, removing
the entire directory resolves the initialization errors.
Changes:
- Removed app/channels/ directory
This completes the ActionCable removal.
* fix: Comment out asset pipeline config in all environments
Commented out config.assets.* references in development.rb and
production.rb since the asset pipeline was removed. This fixes
NoMethodError for undefined method 'assets' on Rails::Application::Configuration.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* fix: Remove unused application_record.rb file
Removed app/models/application_record.rb since it references
ActiveRecord::Base which is not loaded in this application.
This application uses Couchbase SDK directly with the
CouchbaseConnection module, not ActiveRecord.
This fixes the CI error:
NameError: uninitialized constant ActiveRecord
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <[email protected]>
* fix: Remove unused application_record.rb and streamline CI
- Removed app/models/application_record.rb which referenced
ActiveRecord::Base. This application uses Couchbase SDK directly
with CouchbaseConnection module, not ActiveRecord.
- Updated CI workflow to set DB_* environment variables at job level
so they apply to all steps automatically (cleaner configuration).
- Removed redundant env sections from individual CI steps.
This fixes the CI error:
NameError: uninitialized constant ActiveRecord
All 27 tests pass successfully.
* chore: Trigger CI
---------1 parent 6504da8 commit 0c7eb5e
File tree
12 files changed
+50
-89
lines changed- .github/workflows
- app
- channels/application_cable
- models
- config
- environments
- initializers
- spec
12 files changed
+50
-89
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
21 | 22 | | |
22 | 23 | | |
23 | 24 | | |
| |||
48 | 49 | | |
49 | 50 | | |
50 | 51 | | |
51 | | - | |
52 | | - | |
53 | | - | |
54 | | - | |
55 | 52 | | |
56 | 53 | | |
57 | 54 | | |
| |||
70 | 67 | | |
71 | 68 | | |
72 | 69 | | |
73 | | - | |
74 | | - | |
75 | | - | |
76 | | - | |
77 | | - | |
78 | 70 | | |
79 | 71 | | |
80 | 72 | | |
81 | 73 | | |
82 | 74 | | |
83 | 75 | | |
84 | | - | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | 76 | | |
90 | 77 | | |
91 | 78 | | |
| |||
97 | 84 | | |
98 | 85 | | |
99 | 86 | | |
100 | | - | |
| 87 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
13 | | - | |
14 | 8 | | |
15 | 9 | | |
16 | 10 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | | - | |
26 | 11 | | |
27 | 12 | | |
28 | 13 | | |
| |||
62 | 47 | | |
63 | 48 | | |
64 | 49 | | |
65 | | - | |
66 | | - | |
67 | | - | |
| 50 | + | |
68 | 51 | | |
This file was deleted.
This file was deleted.
This file was deleted.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
4 | 21 | | |
5 | 22 | | |
6 | 23 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
2 | | - | |
3 | | - | |
4 | | - | |
5 | | - | |
| 1 | + | |
| 2 | + | |
| 3 | + | |
6 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
7 | 9 | | |
8 | | - | |
9 | | - | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
14 | | - | |
15 | 14 | | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 15 | | |
20 | 16 | | |
21 | | - | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
25 | | - | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
37 | | - | |
| 37 | + | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
| |||
51 | 51 | | |
52 | 52 | | |
53 | 53 | | |
54 | | - | |
| 54 | + | |
55 | 55 | | |
56 | 56 | | |
57 | | - | |
| 57 | + | |
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
63 | | - | |
| 63 | + | |
64 | 64 | | |
65 | 65 | | |
66 | 66 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
27 | 27 | | |
28 | 28 | | |
29 | 29 | | |
30 | | - | |
| 30 | + | |
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
85 | 85 | | |
86 | 86 | | |
87 | 87 | | |
88 | | - | |
| 88 | + | |
89 | 89 | | |
90 | 90 | | |
91 | 91 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
0 commit comments