Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Hypostasis::Object is an OODB-style layer for FoundationDB and is part of the broader Hypostasis project. The Hypostasis project aims to provide a collection of data models for Ruby, built on top of FoundationDB.
Add this line to your application's Gemfile:
gem 'hypostasis-object'
And then execute:
$ bundle
Or install it yourself as:
$ gem install hypostasis-object
require 'hypostasis/object'
class Employee
include Hypostasis::Object
attr_accessor :name, :title, :salary
end
john = Employee.new
john.name = 'John Doe'
john.title = 'Patent Clerk'
john.salary = 42000
john.persist
The above example is a simple demonstration of working with Hypostasis::Object.
Hypostasis::Object adds two public methods for handling persistence: persist
and persist!
. The latter raises an error when certain kinds of things go
wrong. Behind the scenes Hypostasis::Object gathers the state of the object and
atomically commits it to FoundationDB. In the process, it will also generate a
unique id for the object, accessible via the id
attribute. This is the most
basic example of working with Hypostasis::Object. Please refer to the Wiki for
more detailed examples and other feature details.
git checkout -b my-new-feature
)git commit -am 'Add some feature'
)git push origin my-new-feature
)FAQs
Unknown package
We found that hypostasis-object demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.