yahoo_finanza 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2bf5897a7c1dab870202deb24deff1f11ccf4f95
4
- data.tar.gz: e9d1bec7671281e049b3eec56e9e06cbf060d67a
3
+ metadata.gz: 287075a3324c256a999c548a67787f2bb802db11
4
+ data.tar.gz: 2e5bc17087e5eb3215231bb8792c10f9916683ea
5
5
  SHA512:
6
- metadata.gz: e72882fc69bec34b9d0bc566e28296afc789bcb23f15918eb398f2f220fb6490c1b5238bc5e548d97a9eb87e785c86ce44e8c09dce3691084968028fe06dfd70
7
- data.tar.gz: 5c4bbe495075825ea6cd03f1d57a5978ec86da5679311b0e153a730515b7eb5d46027ca0dbe032035b57861209533faf522e661b943579497c8dd711e7debe52
6
+ metadata.gz: eaaffbad09da16a39bf44c53c95ee81d37111af7a3c59e8c9c3d155006ac1125523386e86d1920a94afb78a56aa83986e31c95255c9b104e15af82141f633eb7
7
+ data.tar.gz: 92278d07dde23fff31c06de77a6ed629743362df887a054ab986bbb88e9e5f9bf16eb3d2ee83bd8acfd4453f8fc804395bcbdee290c6a22b8df37ebd42e11625
@@ -1,4 +1,4 @@
1
1
  # Yahoo Finanza Version
2
2
  module YahooFinanza
3
- VERSION = '0.4.0'
3
+ VERSION = '0.4.1'
4
4
  end
@@ -38,9 +38,7 @@ module YahooFinanza
38
38
  end
39
39
 
40
40
  def run
41
- params = { callback: "YAHOO.Finance.SymbolSuggest.ssCallback", query: @key }
42
- response = RestClient.get("#{YahooFinanza::Constants.search_url}" + "#{hash_to_query(params)}")
43
- parse(response)
41
+ (YahooFinanza::Constants.nyse + YahooFinanza::Constants.nasdaq + YahooFinanza::Constants.amex).select { |symbol| symbol.to_s.include? @key.upcase }
44
42
  end
45
43
  end
46
44
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: yahoo_finanza
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eric D. Santos
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-09-30 00:00:00.000000000 Z
12
+ date: 2015-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yql