ledger_get_prices 0.0.6 → 0.0.7

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: 1e5ce2966b7c715cce97c872e0e1ea75345ec5e9
4
- data.tar.gz: 217adb96cbfb8dd4c8d85b70604d2b1e6c59adc7
3
+ metadata.gz: 41c009059067525d46e9499b59d27afd58c6d5cb
4
+ data.tar.gz: 50562e2f41338701f426c9b7c73ed7ab2399e924
5
5
  SHA512:
6
- metadata.gz: 8389c66f9674e1ae505867b16261b14de24bd6a28fdaf27592078dc488a6a99ed15a68f8b1936a256e00528ebd92c114ad7d5205771f34aff633236c7baf72bd
7
- data.tar.gz: ba93a69c1f07fb34ab3fc9a14af2266b9a9f5b0ccdc86768d90ad362f6ba688e1267c8b050d2bfc6fae3633269bffe13c1716e58cb412c449226ee9ddca70c82
6
+ metadata.gz: e334b3491995b5815d7785648c0e6a676b62272a6d913154482b0f9f7c4b24bd792591b2c563487d4b92bcb5c866b5bcdafa2a7b455e494c96ba191885d7c0c5
7
+ data.tar.gz: 5d2e26fc192954bbad458f81c1224aa3905f0d6fa56fbfdd1d0a422c48c5ac1077e99934df6d43ec69981aa929fa4174685d329b5272b425831f4efa6ecd0924
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module LedgerGetPrices
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
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.6
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 00:00:00.000000000 Z
11
+ date: 2016-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler