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.
Provides Holder.js to render image placeholders entirely on the client side.
Add to your Gemfile:
gem 'holder_rails'
and run:
bundle install
Add to your JavaScript manifest file:
//= require holder
For versions less than 2.3.2, if you're using turbolinks
don't forget to run Holder
after page:change
event:
$(document).bind 'page:change', ->
Holder.run()
You can use holder_tag
helper in your views:
holder_tag 100
# => <img data-src="holder.js/100x100?" src="" />
holder_tag '200x300'
# => <img data-src="holder.js/200x300?" src="" />
holder_tag '200x300', 'Lorem ipsum'
# => <img data-src="holder.js/200x300?text=Lorem ipsum" src="" />
holder_tag '200x300', 'Lorem ipsum', 'social'
# => <img data-src="holder.js/200x300?text=Lorem ipsum&theme=social" src="" />
holder_tag '500x800', 'Example text', 'gray', id: 'new', class: 'special'
# => <img class="special" data-src="holder.js/500x800?text=Example text&theme=gray" id="new" src="" />
holder_tag '500x800', 'Example text', 'gray', { id: 'new', class: 'special' }, { font: 'Helvetica' }
# => <img class="special" data-src="holder.js/500x800?font=Helvetica&text=Example text&theme=gray" id="new" src="" />
For more information, check out holder readme.
holder_rails X.Y.Z == Holder.js X.Y.Z
Released under the BSD 2-clause license. See LICENSE.txt for details.
FAQs
Unknown package
We found that holder_rails 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.