wowecon 0.2.3 → 0.2.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.
- data/lib/wowecon.rb +2 -0
- data/lib/wowecon/currency_helpers.rb +1 -1
- data/spec/wowecon_spec.rb +2 -2
- metadata +2 -2
data/lib/wowecon.rb
CHANGED
@@ -4,6 +4,8 @@ require 'wowecon/currency_helpers.rb'
|
|
4
4
|
require 'wowecon/currency.rb'
|
5
5
|
|
6
6
|
module Wowecon
|
7
|
+
VERSION = '0.2.4'
|
8
|
+
|
7
9
|
def self.price(item_name, opts={})
|
8
10
|
request_url = "http://data.wowecon.com/?type=price&item_name=#{uri_escape(item_name)}"
|
9
11
|
opts.each_pair {|name, value| request_url += "&#{name.to_s}=#{uri_escape(value)}" }
|
data/spec/wowecon_spec.rb
CHANGED
@@ -24,9 +24,9 @@ describe Wowecon do
|
|
24
24
|
|
25
25
|
# use http://data.wowecon.com/?type=price&item_name=Rock%20Furrow%20Boots to confirm
|
26
26
|
describe "With known market data" do
|
27
|
-
it "should return a value of
|
27
|
+
it "should return a value of 60000000 for this item" do
|
28
28
|
price = Wowecon.price("Rock Furrow Boots")
|
29
|
-
price.should == {:value =>
|
29
|
+
price.should == {:value => 60000000}
|
30
30
|
end
|
31
31
|
end
|
32
32
|
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: wowecon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.2.
|
5
|
+
version: 0.2.4
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Ben Darlow
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-07-
|
13
|
+
date: 2011-07-16 00:00:00 +01:00
|
14
14
|
default_executable:
|
15
15
|
dependencies:
|
16
16
|
- !ruby/object:Gem::Dependency
|