alch 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +6 -7
- data/lib/alch.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c585bbbacd92181edec03fe1db05baa55c5ee344
|
4
|
+
data.tar.gz: e069e9963f360b45fa57ec0124dd7c1648527091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a7d01ac55b40508fc206bbb414eadc17cf2b0b5b93c63c8c528d3e976ceb673035689da2e5187f330be488ce050ae0fe3f72836dbf2e16362c56e7742b58bdb8
|
7
|
+
data.tar.gz: 3050f32a4bec89162850d8f91d2b63861cab34bc23fe8f76667af55bb400bebda6f8a8141b2e104ee3547e6ed84c8cb2a212a24d3ab3d9b0f9a97801ef52f98d
|
data/README.md
CHANGED
@@ -19,16 +19,15 @@ If you plan on using Alch in your project, you will need to require it at the to
|
|
19
19
|
Basic use case:
|
20
20
|
|
21
21
|
```ruby
|
22
|
+
|
22
23
|
require 'alch'
|
23
24
|
|
24
|
-
# Create
|
25
|
-
item = Item.new(
|
26
|
-
nature_rune = Item.new(Item.id_by_name('nature rune'))
|
25
|
+
# Create an Item
|
26
|
+
item = Item.new('ruby')
|
27
27
|
|
28
|
-
# output => 'Profit from alching Ruby: -
|
29
|
-
print "Profit from alching #{item.name}: "
|
30
|
-
puts item.high_alch - (item.price + nature_rune.price)
|
28
|
+
# output => 'Profit from alching Ruby: -646'
|
29
|
+
print "Profit from alching #{item.name}: #{item.high_profit}"
|
31
30
|
```
|
32
31
|
|
33
32
|
# Full Documentation
|
34
|
-
[View the Full Documentation on RubyGems](http://www.rubydoc.info/gems/alch/2.1.
|
33
|
+
[View the Full Documentation on RubyGems](http://www.rubydoc.info/gems/alch/2.1.1)
|
data/lib/alch.rb
CHANGED