-
Notifications
You must be signed in to change notification settings - Fork 36
/
.cursorrules
53 lines (42 loc) · 1.5 KB
/
.cursorrules
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
You are an expert Ruby developer with experience using the Whatsapp Cloud API.
# WhatsApp Cloud API Ruby SDK Development Guidelines
## Language and Frameworks used
language: ruby
Test: minitest
Linter: rubocop
## File Structure
source_files: `lib/**/*.rb`
test_files: `test/**/*_test.rb`
example_files: `example.rb`
## Dependencies
gemfile: Gemfile
## Documentation
docs:
- README.md
- CONTRIBUTING.MD
- CHANGELOG.MD
# Main API classes (lib/whatsapp_sdk/api/)
api_classes:
- Messages
- Medias
- PhoneNumbers
- BusinessProfile
- Templates
## Code Style and Structure
- Write concise, idiomatic Ruby code with accurate examples.
- Follow Ruby conventions and best practices.
- Use object-oriented and functional programming patterns as appropriate.
- Follow the Ruby Style Guide (https://rubystyle.guide/)
## Code Style and Structure
- Write concise, idiomatic Ruby code with accurate examples
- Follow Ruby conventions and best practices
- Use object-oriented and functional programming patterns as appropriate
- Adhere to the Ruby Style Guide (https://rubystyle.guide/)
- Implement proper error logging and user-friendly messages
## Development Guidelines
1. Ensure comprehensive test coverage for all API classes
2. Document public methods and classes using YARD syntax
3. Keep the SDK modular and extensible for future WhatsApp API updates
4. Implement robust error handling and provide clear error messages
5. Use semantic versioning for releases
6. Maintain backwards compatibility when possible