Permalink
Browse files

Fixed all Bloomberg parts

  • Loading branch information...
1 parent 09c296c commit 7c8ff41d672eaff6cb99d77e0665ab9f1f805f49 @brymck committed Feb 19, 2012
Showing with 9 additions and 9 deletions.
  1. +8 −8 lib/rupee/source/bloomberg.rb
  2. +1 −1 lib/rupee/version.rb
@@ -8,13 +8,13 @@ class Source
:pct_chg => /trending_[^>]+>[0-9NA.,-]+\s+<span>([0-9,.NA-]+)/,
:date => /"date">(.*?)</,
:time => /"time">(.*?)</,
- :bid => /Bid<\/td>\n<td class[^>]+>([0-9.,NA-]{1,})/,
- :ask => /Ask<\/td>\n<td class[^>]+>([0-9.,NA-]{1,})/,
- :open => /Open<\/td>\n<td class[^>]+>([0-9.,NA-]{1,})/,
- :high => /High<\/td>\n<td class[^>]+>([0-9.,NA-]{1,})/,
- :low => /Low<\/td>\n<td class[^>]+>([0-9.,NA-]{1,})/,
- :volume => /Volume<\/td>\n<td class[^>]+>([0-9.,NA-]{1,})/,
- :mkt_cap => /Market Cap[^<]+<\/td>\n<td class[^>]+">([0-9.,NA-]{1,})/,
- :p_e => /Price\/Earnings[^<]+<\/td>\n<td class[^>]+>([0-9.,NA-]{1,})/)
+ :bid => /Bid:<\/th>\n\s*<td[^>]*>([0-9.,NA-]{1,})/,
+ :ask => /Ask:<\/th>\n\s*<td[^>]*>([0-9.,NA-]{1,})/,
+ :open => /Open:<\/th>\n\s*<td[^>]*>([0-9.,NA-]{1,})/,
+ :high => /Day's Range:<\/th>\n\s*<td>[0-9.,NA-]{1,} - ([0-9.,NA-]{1,})/,
+ :low => /Day's Range:<\/th>\n\s*<td>([0-9.,NA-]{1,})/,
+ :volume => /Volume:<\/th>\n\s*<td class[^>]+>([0-9.,NA-]{1,})/,
+ :mkt_cap => /Market Cap[^<]+<\/th>\n\s*<td[^>]*">([0-9.,NA-]{1,})/,
+ :p_e => /Current P\/E[^<]+<\/th>\n\s*<td[^>]*>([0-9.,NA-]{1,})/)
end
end
@@ -1,4 +1,4 @@
module Rupee
# The current version
- VERSION = "0.2.9.1"
+ VERSION = "0.2.9.2"
end

0 comments on commit 7c8ff41

Please sign in to comment.