Skip to content

Commit

Permalink
v.1.0.3 (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
pentzzsolt authored Nov 18, 2017
1 parent 7edc7fb commit 123fb21
Show file tree
Hide file tree
Showing 5 changed files with 55 additions and 20 deletions.
2 changes: 0 additions & 2 deletions .gitignore

This file was deleted.

35 changes: 35 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# Changelog
All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/) and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## 1.0.3 - 2017-11-18

### Added
- Related keywords to [package.json](package.json) file to make the project more discoverable on [npm](https://www.npmjs.com/).
- [CHANGELOG.md](CHANGELOG.md) file.
- Acknowledge [PurpleBooth](https://github.com/PurpleBooth) for [this README template](https://gist.github.com/PurpleBooth/109311bb0361f32d87a2) in [README.md](README.md) file.

### Changed
- Converted tabs to four spaces in [_is-int.scss](_is-int.scss) file for better display online.

### Removed
- Unnecessary .gitignore file.
- Unnecessary `main` and `scripts` keys from [package.json](package.json) file.

## 1.0.2 - 2017-11-04

### Fixed
- Broken links in [README.md](README.md) file.
- Confusing phrasing in [README.md](README.md) file.

## 1.0.1 - 2017-11-04

### Added
- [README.md](README.md) file.

## 1.0.0 - 2017-11-04

### Added
- `is-int()` function.
- [package.json](package.json) file for [npm](https://www.npmjs.com/).
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -394,4 +394,5 @@ This project is licensed under the MIT License - see the [LICENSE](LICENSE) file

## Acknowledgments

* Big thank you to [PurpleBooth](https://github.com/PurpleBooth) for [this lovely README template](https://gist.github.com/PurpleBooth/109311bb0361f32d87a2)!
* [Legends tell](https://stackoverflow.com/questions/10669351/test-if-value-is-an-integer-in-sass) that the wonderful [Chris Eppstein](https://twitter.com/chriseppstein) is the original author of this solution. He's awesome and you should follow him on Twitter.
24 changes: 12 additions & 12 deletions _is-int.scss
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
@function is-int($value) {
@if type-of($value) != number {
@warn '`#{$value}` is not a valid number!';
@return null;
}
@else {
@if round($value) == $value {
@return true;
}
@else {
@return false;
}
}
@if type-of($value) != number {
@warn '`#{$value}` is not a valid number!';
@return null;
}
@else {
@if round($value) == $value {
@return true;
}
@else {
@return false;
}
}
}
13 changes: 7 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
{
"name": "sass-is-int",
"version": "1.0.2",
"version": "1.0.3",
"description": "A lightweight Sass function that determines whether a number is integer or not.",
"main": "_is-int.scss",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"repository": {
"type": "git",
"url": "git+https://github.com/pentzzsolt/sass-is-int.git"
},
"keywords": [
"Sass"
"sass",
"sass-functions",
"sass-function",
"scss",
"scss-functions",
"scss-function"
],
"author": "Zsolt Pentz <pentzzsolt@gmail.com> (https://pentzzsolt.github.io)",
"license": "MIT",
Expand Down

0 comments on commit 123fb21

Please sign in to comment.