![PyPI Now Supports iOS and Android Wheels for Mobile Python Development](https://cdn.sanity.io/images/cgdhsj6q/production/96416c872705517a6a65ad9646ce3e7caef623a0-1024x1024.webp?w=400&fit=max&auto=format)
Security News
PyPI Now Supports iOS and Android Wheels for Mobile Python Development
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Smurf is a Rails plugin that does Javascript and CSS minification the way you would expect. See, with Rails 2.x
we got this cool new :cache
option on javascript_include_tag
and stylesheet_link_tag
, but no option for minifying the cached file(s).
Smurf ends that. Smurf - if installed and when caching is enabled for the environment - will nab the concatenated file content from Rails just before it saves it and minifies the content using either JSmin or a custom CSS compressor.
Some cool things about Smurf, which also allude to the reasons I wrote it:
Smurf will work with any version of Rails 2.x
; including Rails 2.2.2
.
It's really an adaptation of Uladzislau Latynski's jsmin.rb port of Douglas Crockford's jsmin.c library.
The following are the rules I applied, gathered from various perusals around the Internets
/* ... */
- this could be a problem (esp. for CSS hacks);
, :
, and ,
characters./script/plugin install git://github.com/thumblemonks/smurf.git
Then, wherever you define javascript_include_tag
or stylesheet_link_tag
, make sure to add the standard :cache => true
or :cache => 'some_bundle'
options.
Also make sure to at least have this setting in your production.rb:
config.action_controller.perform_caching = true
If you want to test Smurf and you don't want to test with the latest version of Rails as of this writing (2.2.2), then do something like the following:
rake RAILS_GEM_VERSION=2.1.2
This is the mechanism I used for testing that Smurf works for all versions:
rake && rake RAILS_GEM_VERSION=2.1.2
Author: Justin Knowlden gus@thumblemonks.com
Contributions from: Lance Ivy, Scott White, Daniel Schierbeck
See MIT-LICENSE for licensing information
FAQs
Unknown package
We found that perfectline-smurf 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
PyPI now supports iOS and Android wheels, making it easier for Python developers to distribute mobile packages.
Security News
Create React App is officially deprecated due to React 19 issues and lack of maintenance—developers should switch to Vite or other modern alternatives.
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.