![Oracle Drags Its Feet in the JavaScript Trademark Dispute](https://cdn.sanity.io/images/cgdhsj6q/production/919c3b22c24f93884c548d60cbb338e819ff2435-1024x1024.webp?w=400&fit=max&auto=format)
Security News
Oracle Drags Its Feet in the JavaScript Trademark Dispute
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Keep track of activities in a Rails app.
I use it to store activities; both for auditing in case someone does something bad, and for showing folks what's buzzing over here.
I looked at Public Activity but when I saw it doesn't work on Rails 5 and has a bunch of open issues, I just went ahead and created something similar.
Add this line to your application's Gemfile:
gem 'timeliner'
And then execute:
$ bundle
Or install it yourself as:
$ gem install timeliner
Copy the included migrations to your main app:
bin/rails timeliner:install:migrations
A TrackingConcern
injects itself into ActionController::Base, which makes it
globally available. Track a thing in a controller like so:
track @course, 'course.created'
You are not meant to track the person, because we figure out who the current user is automatically. You're meant to track the thing that's changed.
To track something outside of a controller, use this:
Timeliner.track @course, 'course.created'
This will not figure out the current user though. To keep record of whodunnit, pass them as the third parameter:
Timeliner.track @course, 'course.created', current_user
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and tags, and push the .gem
file to rubygems.org.
Bug reports and pull requests are welcome on GitHub at https://github.com/spacebabies/timeliner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.
The gem is available as open source under the terms of the MIT License.
Everyone interacting in the Timeliner project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.
FAQs
Unknown package
We found that timeliner 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
Oracle seeks to dismiss fraud claims in the JavaScript trademark dispute, delaying the case and avoiding questions about its right to the name.
Security News
The Linux Foundation is warning open source developers that compliance with global sanctions is mandatory, highlighting legal risks and restrictions on contributions.
Security News
Maven Central now validates Sigstore signatures, making it easier for developers to verify the provenance of Java packages.