Skip to content

Commit

Permalink
Dist for v0.4.1.
Browse files Browse the repository at this point in the history
  • Loading branch information
gavinballard committed Aug 16, 2016
1 parent b4b6ad5 commit 8448b4f
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 12 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@
All notable changes to this project will be documented in this file.

## Unreleased
No unreleased changes.

## 0.4.1 - 2016-08-16
### Added
- New Rivets formatters: `times`, `divided_by`, `modulo`

### Changed
- Fix issue with unnecessary line item properties being added with form submit

Expand Down
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "shopify-cartjs",
"version": "0.4.0",
"version": "0.4.1",
"authors": [
"Gavin Ballard <gavin@gavinballard.com>"
],
Expand Down
11 changes: 10 additions & 1 deletion dist/cart.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/cart.min.js

Large diffs are not rendered by default.

13 changes: 11 additions & 2 deletions dist/rivets-cart.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
// Cart.js
// version: 0.4.0
// version: 0.4.1
// author: Gavin Ballard
// license: MIT
(function() {
Expand Down Expand Up @@ -2103,7 +2103,7 @@
return id = item.value;
} else if (item.name === 'quantity') {
return quantity = item.value;
} else {
} else if (item.name.match(/^properties\[\w+\]$/)) {
return properties[item.name] = item.value;
}
});
Expand Down Expand Up @@ -2187,6 +2187,15 @@
rivets.formatters.minus = function(a, b) {
return parseInt(a) - parseInt(b);
};
rivets.formatters.times = function(a, b) {
return a * b;
};
rivets.formatters.divided_by = function(a, b) {
return a / b;
};
rivets.formatters.modulo = function(a, b) {
return a % b;
};
rivets.formatters.prepend = function(a, b) {
return b + a;
};
Expand Down
4 changes: 2 additions & 2 deletions dist/rivets-cart.min.js

Large diffs are not rendered by default.

Binary file modified docs/theme/assets/cartjs.zip
Binary file not shown.
4 changes: 2 additions & 2 deletions docs/theme/assets/rivets-cart.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion docs/theme/snippets/variables.liquid
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{% assign version = '0.4.0' %}
{% assign version = '0.4.1' %}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "shopify-cartjs",
"description": "A Javascript library to power cart management for Shopify themes.",
"version": "0.4.0",
"version": "0.4.1",
"author": "Gavin Ballard",
"url": "https://cartjs.org",
"main": "./dist/cart.js",
Expand Down

0 comments on commit 8448b4f

Please sign in to comment.