treasurer 0.10.3 → 0.10.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 530bccfe411d881237a70e7108ebc999b11401e6961a439b55c5efa8886be585
4
- data.tar.gz: e4039efc362d99ba686675a04b7a3fe33e01498f8b3129840f588e2fada30790
3
+ metadata.gz: 48d8bfa323df401bbd38187da11a32d0fc381b88229b1167f6b592e04c5ff2e3
4
+ data.tar.gz: 001de901ff3f4d1b3dbf5d54edac9bd2c06c6dfc32baef3854e181514723cbe0
5
5
  SHA512:
6
- metadata.gz: f16b0b2b1be1402f91d5b37bd764f9bd9c8763f3e99933d87bf7baa4decd989abdec961c9abc2c74072ce38fd8b9803ac1c9c0bb4aacfb2b4a93e5c0e33a2acb
7
- data.tar.gz: 5a05d1f79c0138cb8f4f289bd8647c0a8c1deb8fa8a56e1c84c6adc0f8752e15daaace29d74fa65192726242ccf32c4f8fdeac64c89a717615439177ee60c372
6
+ metadata.gz: 04544adc81ae06172f5d399866e29538609991221a062933b481a4916c6dddfd03dbd3ed7708a0f5b39d4de92d661933447741374c9e5a1b22f0c67c8fee47ba
7
+ data.tar.gz: 25d9236d5a802016688ea7967c7095ffd971fefa50e2176641fd447bd54af2f98e0f8747aa85792a1ad6664c027c8535e9fa762922263c41a56284e8bbc04c71
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.10.3
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"
@@ -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
- CodeRunner.run_command('external_account', crcopts)
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.3 ruby lib
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.3"
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]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: treasurer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.3
4
+ version: 0.10.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edmund Highcock