lib/stew.rb in stew-0.5.2 vs lib/stew.rb in stew-0.5.3

- old
+ new

@@ -20,14 +20,17 @@ require 'stew/community/profile_game' require 'stew/community/profile_games' require 'stew/store/web_client' require 'stew/store/store_client' +require 'stew/store/sales_client' require 'stew/store/app' require 'stew/store/app_offers' require 'stew/store/app_offer' require 'stew/store/app_offer_sale' +require 'stew/store/sales' +require 'stew/store/sale' module Stew Money.assume_from_symbol = true @config = { @@ -47,15 +50,15 @@ def self.config @config end def self.money(price) - if price.include?("€") + if price.nil? == false && price.include?("€") Money.parse(price[-1,1]+price[0..-2]) else Money.parse price end end #Base error class StewError < StandardError; end -end \ No newline at end of file +end