ledger_get_prices 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/ledger_get_prices.rb +3 -1
- data/lib/ledger_get_prices/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: 41c009059067525d46e9499b59d27afd58c6d5cb
|
4
|
+
data.tar.gz: 50562e2f41338701f426c9b7c73ed7ab2399e924
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e334b3491995b5815d7785648c0e6a676b62272a6d913154482b0f9f7c4b24bd792591b2c563487d4b92bcb5c866b5bcdafa2a7b455e494c96ba191885d7c0c5
|
7
|
+
data.tar.gz: 5d2e26fc192954bbad458f81c1224aa3905f0d6fa56fbfdd1d0a422c48c5ac1077e99934df6d43ec69981aa929fa4174685d329b5272b425831f4efa6ecd0924
|
data/lib/ledger_get_prices.rb
CHANGED
@@ -32,7 +32,7 @@ module LedgerGetPrices
|
|
32
32
|
PRICE_DB_PATH = ENV['LEDGER_PRICE_DB'] || ENV['PRICE_HIST'] # PRICE_HIST is <v3
|
33
33
|
DATE_FORMAT = ENV['LEDGER_PRICE_DATE_FORMAT'] || "%Y/%m/%d"
|
34
34
|
PRICE_FORMAT = "P %{date} %{time} %{symbol} %{price}"
|
35
|
-
COMMODITY_BLACKLIST = (ENV['LEDGER_PRICE_COMMODITY_BLACKLIST'] || '').split(" ")
|
35
|
+
COMMODITY_BLACKLIST = (ENV['LEDGER_PRICE_COMMODITY_BLACKLIST'] || 'BTC').split(" ")
|
36
36
|
|
37
37
|
# With a bang because it does a file write.
|
38
38
|
def run!
|
@@ -65,6 +65,8 @@ module LedgerGetPrices
|
|
65
65
|
if COMMODITY_BLACKLIST.include?(symbol)
|
66
66
|
puts "Skipping #{symbol}: blacklisted."
|
67
67
|
puts "Use `LEDGER_PRICE_COMMODITY_BLACKLIST` to configure the blacklist."
|
68
|
+
puts "BTC is included by default because yahoo doesn't provide a way to " +
|
69
|
+
"get historical data for it."
|
68
70
|
return []
|
69
71
|
end
|
70
72
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ledger_get_prices
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nathan Kot
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|