priceMarkup 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +9 -9
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f089b6327f8edc82babba45e7c458970694033f7
4
- data.tar.gz: 93f8094bf2d6b87a531f282e17770d2e0ccef31a
3
+ metadata.gz: 30e6422b5e9db4f74c9b1e8a20a48dc023491d90
4
+ data.tar.gz: 511ce7f1d995c9b231b93ca60bf5a3da075204c6
5
5
  SHA512:
6
- metadata.gz: 4bedec74aef3fe0876b7b9507d9344608234b031c8b75534e0792b3eac8d57298ddc24a17eebd57d750c732d547e733c2218c9cd814ff815c859eef5d763fdb0
7
- data.tar.gz: c9d603d8ff54040fbbf1da7c83e42154135500ecc7cb51b5770428a0e5ef47442c39fcf06e2af5d18681b13b53a07bd5f82c47e4f6d56d0c6cee5f0daa222284
6
+ metadata.gz: cc23bd9fe2426d70abf453a84d1353504002e4b800d42e95040f9b1023cccb2e4e5aab2166ed20eb38007dd92b14d6faf3dbde5105277bb9830ac6c21ed26632
7
+ data.tar.gz: 25e0d078143dbc0b8b5bdc05e7c51753bad6d03b0506883c1fb3489577cef01c6947bf300e438a5f61b73ec820af59a1afb0b5deca8b1c676953e54a28cae87f
data/README.md CHANGED
@@ -1,11 +1,11 @@
1
1
  # Price Markup
2
+ [![Gem Version](https://badge.fury.io/rb/priceMarkup.png)](http://badge.fury.io/rb/priceMarkup)
2
3
 
3
- This gem allows the selling price be calculated based on a markup value
4
+ **priceMarkup** allows the selling price to be calculated from the cost price based on a markup value
4
5
 
5
- The default markup is 0.25
6
+ The default markup is 0.25 (25%)
6
7
 
7
8
  The number of figures after the decimal point may be specified.
8
-
9
9
  The default is zero if the first argument is an integer but two otherwise.
10
10
 
11
11
  ## Installation
@@ -25,17 +25,17 @@ Or install it yourself as:
25
25
  ## Usage
26
26
  > **Dowstore.priceMarkup( *price*, *markup*, *decimal\_places*)**
27
27
 
28
- > Dowstore.priceMarkup(100) => "125"
28
+ > `Dowstore.priceMarkup(100) => "125"`
29
29
 
30
- > Dowstore.priceMarkup(100, 2) => "300"
30
+ > `Dowstore.priceMarkup(100, 2) => "300"`
31
31
 
32
- > Dowstore.priceMarkup(100, 2, 3) => "300.000"
32
+ > `Dowstore.priceMarkup(100, 2, 3) => "300.000"`
33
33
 
34
- > Dowstore.priceMarkup(100, 2.5556, 1) => "355.6"
34
+ > `Dowstore.priceMarkup(100, 2.5556, 1) => "355.6"`
35
35
 
36
- > Dowstore.priceMarkup(100.75, 2.5, 4) => "352.6250"
36
+ > `Dowstore.priceMarkup(100.75, 2.5, 4) => "352.6250"`
37
37
 
38
- > Dowstore.priceMarkup(100.75, 2.5, 0) => "353"
38
+ > `Dowstore.priceMarkup(100.75, 2.5, 0) => "353"`
39
39
 
40
40
  ## Contributing
41
41
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: priceMarkup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - tomgdow