treasurer 0.10.3 → 0.10.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/lib/treasurer/account_choices.rb +2 -1
- data/lib/treasurer/commands.rb +3 -1
- data/treasurer.gemspec +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 48d8bfa323df401bbd38187da11a32d0fc381b88229b1167f6b592e04c5ff2e3
|
4
|
+
data.tar.gz: 001de901ff3f4d1b3dbf5d54edac9bd2c06c6dfc32baef3854e181514723cbe0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 04544adc81ae06172f5d399866e29538609991221a062933b481a4916c6dddfd03dbd3ed7708a0f5b39d4de92d661933447741374c9e5a1b22f0c67c8fee47ba
|
7
|
+
data.tar.gz: 25d9236d5a802016688ea7967c7095ffd971fefa50e2176641fd447bd54af2f98e0f8747aa85792a1ad6664c027c8535e9fa762922263c41a56284e8bbc04c71
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.10.
|
1
|
+
0.10.4
|
@@ -233,11 +233,11 @@ class CodeRunner::Budget
|
|
233
233
|
#choices_hash[data_line] = {external_account: chosen}
|
234
234
|
#end
|
235
235
|
end
|
236
|
+
next if not chosen
|
236
237
|
if ext_account and chosen
|
237
238
|
break
|
238
239
|
end
|
239
240
|
ext_account = chosen
|
240
|
-
next if not chosen
|
241
241
|
chosen = false
|
242
242
|
Hash.phoenix('external_accounts.rb') do |account_hash|
|
243
243
|
#choices = account_arr.size.times.map{|i| [i,account_arr[i][:name]]}
|
@@ -274,6 +274,7 @@ class CodeRunner::Budget
|
|
274
274
|
chosen = name
|
275
275
|
elsif choice == "z"
|
276
276
|
chosen = false
|
277
|
+
ext_account = nil
|
277
278
|
break
|
278
279
|
elsif not choices.keys.include? choice
|
279
280
|
puts "Error: this symbol does not correspond to a sub-account"
|
data/lib/treasurer/commands.rb
CHANGED
@@ -38,7 +38,9 @@ class << self
|
|
38
38
|
crcopts[:O] = 'date'
|
39
39
|
crcopts[:f] = 'not (component_runs and component_runs.size > 0 and component_runs[0].instance_variable_get(:@external_account))'
|
40
40
|
crcopts[:f] = 'not (@external_account and @sub_account)'
|
41
|
-
|
41
|
+
catch (:quit_data_entry) do
|
42
|
+
CodeRunner.run_command('external_account', crcopts)
|
43
|
+
end
|
42
44
|
end
|
43
45
|
def status(copts={})
|
44
46
|
load_treasurer_folder(copts)
|
data/treasurer.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
3
|
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
|
-
# stub: treasurer 0.10.
|
5
|
+
# stub: treasurer 0.10.4 ruby lib
|
6
6
|
|
7
7
|
Gem::Specification.new do |s|
|
8
8
|
s.name = "treasurer".freeze
|
9
|
-
s.version = "0.10.
|
9
|
+
s.version = "0.10.4"
|
10
10
|
|
11
11
|
s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
|
12
12
|
s.require_paths = ["lib".freeze]
|