brm_finance 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/.DS_Store +0 -0
- data/lib/brm_finance/stock.rb +3 -1
- data/lib/brm_finance/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ac7b1e200722d4e1e48c75c332cfe845b341deda
|
4
|
+
data.tar.gz: 52e8290d8b50bd55bf90ed766afc58644fccc7be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b4df41e0719b028d790817b53892f0392903e5fa8feb0d4c7e5c5617a156fba62e252ad0142bd7a600fb3fe96feffc9fe6cc8f640529b7c4678a146a3a076a0e
|
7
|
+
data.tar.gz: e0b43e391930114fc1ce939dd20a11b403f083982e8553f386fa5d744c060111181892e5da257dc22ff08dcf5e8741e1687ab70d60701342ca8691df4acd3559
|
data/lib/.DS_Store
CHANGED
Binary file
|
data/lib/brm_finance/stock.rb
CHANGED
@@ -139,7 +139,9 @@ module BrmFinance
|
|
139
139
|
series = []
|
140
140
|
(start_date.to_date..end_date.to_date+1.year).step(365) do |date|
|
141
141
|
break if date > Date.today
|
142
|
-
|
142
|
+
new_series = self.quote(sym, (date).strftime('%Y-%m-%d'), (date + 1.year - 1.day).strftime('%Y-%m-%d'))
|
143
|
+
|
144
|
+
series += new_series if new_series.is_a?(Array)
|
143
145
|
end
|
144
146
|
|
145
147
|
{'Symbol' => sym, 'Series' => series.uniq}
|
data/lib/brm_finance/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brm_finance
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alex Adamson, Ty Rauber
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|