wowecon 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -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)}" }
@@ -27,7 +27,7 @@ module Wowecon
27
27
  end
28
28
 
29
29
  if output == ""
30
- "0"
30
+ ""
31
31
  else
32
32
  output.strip
33
33
  end
@@ -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 62000100 for this item" do
27
+ it "should return a value of 60000000 for this item" do
28
28
  price = Wowecon.price("Rock Furrow Boots")
29
- price.should == {:value => 62000100}
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.3
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-06 00:00:00 +01:00
13
+ date: 2011-07-16 00:00:00 +01:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency