Commit 0c6116e
committed
feat: Major v2 rewrite with modern Ruby architecture and enhanced features
BREAKING CHANGES:
- Complete architectural overhaul from v4.x to v5.0.0
- Replaced entity system with simpler resources pattern
- Restructured client layer from client/ to clients/ directory
- Removed param builders in favor of integrated client logic
- Changed module structure and namespacing
New Features:
- Zeitwerk autoloading for modern Ruby module management
- Smart upload detection with automatic method selection
- Enhanced multipart upload with parallel processing support
- Progress tracking for all upload operations
- Batch upload capabilities with error handling per file
- CDN subdomain support for improved performance
- Comprehensive examples and integration tests
Improvements:
- Modern Ruby 3.0+ architecture with frozen string literals
- Centralized configuration with environment variable support
- Better error handling with ErrorHandler and ThrottleHandler mixins
- Thread-safe upload operations with configurable concurrency
- Extensive VCR test coverage for API operations
- Clean separation between REST and Upload API clients
Ruby 3.4+ Compatibility:
- Added addressable dependency (missing runtime dependency)
- Fixed gemspec require_paths (removed redundant paths)
- Added base64, bigdecimal, mutex_m gems for Ruby 3.4+ stdlib changes
- CI matrix already includes Ruby 3.4 testing
Technical Changes:
- 198 files changed (+11,500 additions, -5,000 deletions)
- Migrated from mimemagic to mime-types for MIME detection
- Replaced parallel/retries with built-in threading
- Removed uploadcare-api_struct dependency
- Added comprehensive YARD documentation structure1 parent ca841a7 commit 0c6116e
File tree
199 files changed
+11534
-4993
lines changed- api_examples/upload_api
- bin
- examples
- lib
- uploadcare
- api
- clients
- client
- conversion
- multipart_upload
- concern
- entity
- conversion
- decorator
- param
- conversion
- document
- video
- upload
- resources
- signed_url_generators
- spec
- fixtures/vcr_cassettes
- Upload_API_Integration
- Complete_Upload_Workflow
- Base_Upload_Store_Retrieve
- Batch_Upload_Verify_All
- Group_Creation_Info_Verify
- Multipart_Upload_Complete_Verify
- URL_Upload_Poll_Complete
- Edge_Cases
- Concurrent_uploads
- Files_with_special_characters
- Metadata
- Very_small_files
- Performance
- Parallel_multipart_upload
- Upload_speed
- Smart_Upload_Detection
- integration
- support
- uploadcare
- api
- clients
- client
- conversion
- multipart_upload
- concerns
- entity
- conversion
- decorator
- features
- param
- conversion
- document
- video
- upload
- resources
- signed_url_generators
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
199 files changed
+11534
-4993
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
21 | 23 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | 3 | | |
| 4 | + | |
4 | 5 | | |
5 | 6 | | |
6 | 7 | | |
| |||
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | | - | |
14 | | - | |
15 | | - | |
16 | | - | |
17 | | - | |
18 | | - | |
19 | 14 | | |
20 | 15 | | |
21 | 16 | | |
22 | 17 | | |
23 | 18 | | |
24 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
25 | 27 | | |
| 28 | + | |
26 | 29 | | |
27 | 30 | | |
| 31 | + | |
28 | 32 | | |
29 | 33 | | |
30 | 34 | | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
31 | 55 | | |
32 | 56 | | |
33 | 57 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
5 | 10 | | |
6 | 11 | | |
7 | 12 | | |
| |||
0 commit comments