alch 2.1.0 → 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +6 -7
  3. data/lib/alch.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0421dd1fabbd36b971e6828a591e9c554d95fec9
4
- data.tar.gz: c123074c01000c9baa261464c56ec1f6578fb50e
3
+ metadata.gz: c585bbbacd92181edec03fe1db05baa55c5ee344
4
+ data.tar.gz: e069e9963f360b45fa57ec0124dd7c1648527091
5
5
  SHA512:
6
- metadata.gz: 4ce6b1c8257fc877390039b1c6de64d5a2161be73e63bf296e86bec2986c6812b441d30529873276e4e47b331d3c0fceff29a8b46934539a47d6107097830d7b
7
- data.tar.gz: bb050fe0c9dace8e2038a4370d1204f18aaa733ab585d4849054902e13de31ff9ae403257eb486c40b2e8e058332a50a1d523e3ebcf9cdd2b03ccfbfa27d0280
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 ruby and nature rune items
25
- item = Item.new(1603)
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: -692'
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.0)
33
+ [View the Full Documentation on RubyGems](http://www.rubydoc.info/gems/alch/2.1.1)
@@ -2,6 +2,6 @@
2
2
  # Released under the MIT License agreement
3
3
 
4
4
  # @author Marcello A. Sabino
5
- # @version 2.1.0
5
+ # @version 2.1.1
6
6
  require_relative 'item'
7
7
  require_relative 'osrs'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alch
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcello A. Sabino