alch 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -1
  3. data/lib/alch.rb +1 -1
  4. data/lib/item.rb +2 -2
  5. data/lib/osrs.rb +1 -0
  6. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c585bbbacd92181edec03fe1db05baa55c5ee344
4
- data.tar.gz: e069e9963f360b45fa57ec0124dd7c1648527091
3
+ metadata.gz: 023d7fa1d8f2090a253de6320240b5b33c92a636
4
+ data.tar.gz: fa49ed6a67b5e836dd9100a9ad95c3de8912fa80
5
5
  SHA512:
6
- metadata.gz: a7d01ac55b40508fc206bbb414eadc17cf2b0b5b93c63c8c528d3e976ceb673035689da2e5187f330be488ce050ae0fe3f72836dbf2e16362c56e7742b58bdb8
7
- data.tar.gz: 3050f32a4bec89162850d8f91d2b63861cab34bc23fe8f76667af55bb400bebda6f8a8141b2e104ee3547e6ed84c8cb2a212a24d3ab3d9b0f9a97801ef52f98d
6
+ metadata.gz: ad539f5da7cb6ce9171f986ec890c9d0ed322901c6e9023524cf1c4ffb9e3a2f2b8755389a9c076d9d4cfe73ba6c37b6d3902fe554c31baf834ebdf1faf129bf
7
+ data.tar.gz: ef26c67c822d182b399777d343cae7f765824d73387c7f3066fe2c6e8a761de753c49ae804cc3b0de352cc93177eb5e5aa29899aab1988d84716ed218eab7f52
data/README.md CHANGED
@@ -30,4 +30,4 @@ print "Profit from alching #{item.name}: #{item.high_profit}"
30
30
  ```
31
31
 
32
32
  # Full Documentation
33
- [View the Full Documentation on RubyGems](http://www.rubydoc.info/gems/alch/2.1.1)
33
+ [View the Full Documentation on RubyGems](http://www.rubydoc.info/gems/alch/2.1.2)
@@ -2,6 +2,6 @@
2
2
  # Released under the MIT License agreement
3
3
 
4
4
  # @author Marcello A. Sabino
5
- # @version 2.1.1
5
+ # @version 2.1.2
6
6
  require_relative 'item'
7
7
  require_relative 'osrs'
@@ -93,14 +93,14 @@ class Item
93
93
  end
94
94
 
95
95
  # @example Profit from high alching a Rune Dagger
96
- # Item.new('rune dagger').high_alch #=> 26
96
+ # Item.new('rune dagger').high_profit #=> 26
97
97
  # @return the total profit from high alching this Item
98
98
  def high_profit
99
99
  high_alch - (self + Item.new(561))
100
100
  end
101
101
 
102
102
  # @example Profit from low alching a Rune Dagger
103
- # Item.new('rune dagger').low_price #=> -1574
103
+ # Item.new('rune dagger').low_profit #=> -1574
104
104
  # @return the total profit from low alching this Item
105
105
  def low_profit
106
106
  low_alch - (self + Item.new(561))
@@ -9,5 +9,6 @@ module OSRS
9
9
  # Link to Store JSON
10
10
  STORE_JSON = 'http://marchy.me/data/shop.json'.freeze
11
11
  # Store data
12
+ # @since 2.1.0
12
13
  STORE_DATA = JSON.parse(open(STORE_JSON, &:read)).freeze
13
14
  end
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.1
4
+ version: 2.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marcello A. Sabino