
Security News
Follow-up and Clarification on Recent Malicious Ruby Gems Campaign
A clarification on our recent research investigating 60 malicious Ruby gems.
This library comprises the following pieces:
var parser = new TimeParser()
parser.to_minutes("1:27") // returns 87
Input | Output in minutes | |
---|---|---|
1:00 | 1 hour | 60 |
0:45 | Forty-five minutes | 45 |
:45 | Forty-five minutes | 45 |
45 | Forty-five minutes | 45 |
1.5 | One and a half hours | 90 |
.5 | Half an hour | 30 |
1h30m | 1 hour, 30 minutes | 90 |
1h | 1 hour | 60 |
20m | 20 minutes | 20 |
To use one of the other formats, just pass it in the constructor, e.g. new TimeParser('hm')
You can also pass custom formats either as a string or a function. This feature is still in development.
Apply the jQuery plugin to the elements:
$('.timeinput').timeinput();
Add this line to your application's Gemfile:
gem "clockpunch"
Add to your application.js
//= require clockpunch
Add to your application.scss
//= require clockpunch
Copy app/assets/javascripts/clockpunch.js
and app/assets/stylesheets/clockpunch.css
into your
application and include them using <script src="clockpunch.js"></script>
and <style>@import url(clockpunch.css)</style>
From the /source
directory, run ./build.sh
. This will generate the files in app/assets
.
TODO: node, npm installation of coffeescript, sass installation
FAQs
Unknown package
We found that clockpunch 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
A clarification on our recent research investigating 60 malicious Ruby gems.
Security News
ESLint now supports parallel linting with a new --concurrency flag, delivering major speed gains and closing a 10-year-old feature request.
Research
/Security News
A malicious Go module posing as an SSH brute forcer exfiltrates stolen credentials to a Telegram bot controlled by a Russian-speaking threat actor.