https://github.com/rails-api/case_transform
Extraction of the key_transform abilities of ActiveModelSerializers
https://github.com/rails-api/case_transform
Last synced: about 22 hours ago
JSON representation
Repository metadata
Extraction of the key_transform abilities of ActiveModelSerializers
- Host: GitHub
- URL: https://github.com/rails-api/case_transform
- Owner: rails-api
- License: mit
- Created: 2016-09-15T18:14:48.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2021-11-06T12:14:33.000Z (over 4 years ago)
- Last Synced: 2026-02-06T07:56:00.471Z (25 days ago)
- Language: Ruby
- Size: 24.4 KB
- Stars: 16
- Watchers: 1
- Forks: 6
- Open Issues: 7
- Releases: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
README.md
case_transform
Extraction of the key_transform abilities of ActiveModelSerializers
Install
gem 'case_transform'
or
gem install case_transform
And for faster performance, checkout Case Transform with Native Extensions
Usage
require 'case_transform'
CaseTransform.camel_lower(value)
value can be any of Array, Hash, Symbol, or String.
Any other object type will just be returned.
Transforms
| Description | |
|---|---|
| camel | PascalCase |
| camel_lower | camelCase |
| dash | dash-case |
| underscore | under_score |
| unaltered | pass through |
Owner metadata
- Name: rails-api
- Login: rails-api
- Email:
- Kind: organization
- Description:
- Website:
- Location:
- Twitter:
- Company:
- Icon url: https://avatars.githubusercontent.com/u/2820360?v=4
- Repositories: 6
- Last ynced at: 2024-03-25T21:10:33.730Z
- Profile URL: https://github.com/rails-api
GitHub Events
Total
Last Year
Committers metadata
Last synced: 1 day ago
Total Commits: 14
Total Committers: 1
Avg Commits per committer: 14.0
Development Distribution Score (DDS): 0.0
Commits in past year: 0
Committers in past year: 0
Avg Commits per committer in past year: 0.0
Development Distribution Score (DDS) in past year: 0.0
| Name | Commits | |
|---|---|---|
| L. Preston Sego III | L****v@g****m | 14 |
Issue and Pull Request metadata
Last synced: 2 days ago
Total issues: 1
Total pull requests: 14
Average time to close issues: 7 days
Average time to close pull requests: 12 months
Total issue authors: 1
Total pull request authors: 7
Average comments per issue: 1.0
Average comments per pull request: 0.86
Merged pull request: 1
Bot issues: 0
Bot pull requests: 4
Past year issues: 0
Past year pull requests: 0
Past year average time to close issues: N/A
Past year average time to close pull requests: N/A
Past year issue authors: 0
Past year pull request authors: 0
Past year average comments per issue: 0
Past year average comments per pull request: 0
Past year merged pull request: 0
Past year bot issues: 0
Past year bot pull requests: 0
Top Issue Authors
- NullVoxPopuli (1)
Top Pull Request Authors
- NullVoxPopuli (4)
- dependabot[bot] (4)
- saiqulhaq (2)
- johnstoecker (1)
- d-unseductable (1)
- DTrierweiler (1)
- bf4 (1)
Top Issue Labels
Top Pull Request Labels
- dependencies (4)
Dependencies
- activesupport 5.0.0.1
- ast 2.3.0
- awesome_print 1.7.0
- byebug 9.0.5
- case_transform 0.2
- codeclimate-test-reporter 0.6.0
- coderay 1.1.1
- concurrent-ruby 1.0.2
- docile 1.1.5
- i18n 0.7.0
- json 2.0.2
- method_source 0.8.2
- minitest 5.9.0
- parser 2.3.1.2
- powerpack 0.1.1
- pry 0.10.4
- pry-byebug 3.4.0
- rainbow 2.1.0
- rake 11.2.2
- rubocop 0.42.0
- ruby-progressbar 1.8.1
- simplecov 0.12.0
- simplecov-html 0.10.0
- slop 3.6.0
- thread_safe 0.3.5
- tzinfo 1.2.2
- unicode-display_width 1.1.1
- awesome_print >= 0 development
- codeclimate-test-reporter >= 0 development
- minitest >= 0 development
- pry-byebug >= 0 development
- rake >= 0 development
- rubocop >= 0 development
- activesupport >= 0
Score: 3.1354942159291497