devel/rubygem-active_hash 4.1.0 FreeBSD
Include the ability to specify data using hashes, yml files or JSON files
- System
- FreeBSD
- Repository
- FreeBSD ports
- Maintainer
- [email protected]
- License
- MIT
- Categories
- devel, rubygems
- Package size
- 23.7 KiB, 84.8 KiB installed
Description
ActiveHash is a simple base class that allows you to use a ruby hash as a readonly datasource for an ActiveRecord-like model.
ActiveHash assumes that every hash has an :id key, which is what you would probably store in a database. This allows you to seamlessly upgrade from ActiveHash objects to full ActiveRecord objects without having to change any code in your app, or any foreign keys in your database.
It also allows you to use #has_many and #belongs_to (via belongs_to_active_hash) in your AR objects.
ActiveHash can also be useful to create simple test classes that run without a database - ideal for testing plugins or gems that rely on simple AR behavior, but don't want to deal with databases or migrations for the spec suite.
ActiveHash also ships with:
- ActiveFile: a base class that you can use to create file data sources
- ActiveYaml: a base class that will turn YAML into a hash and load the data into an ActiveHash object
In the other systems
| System | Port | Version |
|---|---|---|
| FreeBSD | devel/rubygem-active_hash | 4.1.0 |
| DragonFly | devel/rubygem-active_hash | 3.3.1 |
Install
Binary package:
pkg install rubygem-active_hash
From the ports tree:
cd /usr/ports/devel/rubygem-active_hash/ && make install clean
To depend on this port in another port's Makefile:
RUN_DEPENDS= rubygem-active_hash>0:devel/rubygem-active_hash
Packages
The version each package repository carries. “-” means the repository builds no package of it, “n/a” that there is no such repository.
| Repository | aarch64 | amd64 | armv6 | armv7 | i386 |
|---|---|---|---|---|---|
| FreeBSD:14:latest | 4.1.0 | 4.1.0 | - | 3.3.1 | 4.1.0 |
| FreeBSD:14:quarterly | 4.1.0 | 4.1.0 | n/a | 3.3.1 | 4.1.0 |
| FreeBSD:15:latest | 4.1.0 | 4.1.0 | n/a | 3.3.1 | 3.3.1 |
| FreeBSD:15:quarterly | 4.1.0 | 4.1.0 | n/a | n/a | n/a |
| FreeBSD:16:latest | 4.1.0 | 4.1.0 | n/a | n/a | n/a |
| FreeBSD:16:quarterly | n/a | n/a | n/a | n/a | n/a |
Dependencies
As this port's Makefile names them.
Runtime 1
rubygem-activesupport80>=6.1.0: devel/rubygem-activesupport80
The full lists below include those, and their dependencies in turn.
Build dependencies 6
Run dependencies 19
- benchmarks/rubygem-benchmark
- converters/rubygem-base64
- devel/libffi
- devel/libunwind
- devel/ruby-gems
- devel/rubygem-activesupport80
- devel/rubygem-concurrent-ruby
- devel/rubygem-drb
- devel/rubygem-i18n
- devel/rubygem-logger
- devel/rubygem-minitest
- devel/rubygem-tzinfo
- lang/ruby34
- math/rubygem-bigdecimal
- net/rubygem-connection_pool
- net/rubygem-uri
- print/indexinfo
- security/rubygem-securerandom
- textproc/libyaml
Required by 2
Configuration
No options to configure.
- USES
- gem
- Service scripts
- none
Files
distinfo 1
| File | Size | SHA256 |
|---|---|---|
| rubygem/active_hash-4.1.0.gem | 27648 | 388c8d14c20e7e38602a47c19f4d958605217dd3d7ce57c7d45e7b65cea3c61b |
Master sites 1
- RG
Commit history 0
No commits in the history this site was built from.