mudrat_projector 0.9.6 → 0.9.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: 3bf2f1f03b4a07d34561f98dcce3c8d0c595de72
4
- data.tar.gz: 3cba29707ac266cfbc55e58a24fb8a580cd9a380
3
+ metadata.gz: 22bbbd46167f4233cee6d7d66e0d27981fd2ec37
4
+ data.tar.gz: 6889680517e59605686eec56110fb17aa7dd0d7d
5
5
  SHA512:
6
- metadata.gz: dab5b6d8e424a2c9da76cf39417facd82e14673e2807e4b55ac12a60e87e953972e2e44720d8ce255687a6d5d4d9aaa41130309154a9ed61674d56ed75526377
7
- data.tar.gz: 6ed8d35b56f5d68f5158a62df9f7d9741715cab811864c0ff41a1bf97678a73d40c47d7380d0f1dbdb66aae8420ddfef6f93e5a8a8335f00b8b463410b19f98a
6
+ metadata.gz: 319cae04c37547d85279b54af9bf1916946afefefe77ab10028eb6d96f1295a37fa8270c7e6f9c2846e054d86220232e84e2b4c0c5232001b27a7fa7df18ee77
7
+ data.tar.gz: 5ec7b8b16f5a393c924255bb0b922bfab91f69d80ca6bd5a9e21ac0be29848afbc4e7d3b2c82f113db5b33fa47c02c903f98c6c25c75e373ea68635e483c49ef
@@ -22,12 +22,6 @@ module MudratProjector
22
22
  raise Projector::InvalidAccount, "Account #{account_id.inspect} has "\
23
23
  "invalid type #{params[:type].inspect}"
24
24
  end
25
- if params.has_key?(:open_date) && params[:open_date] > projector.from
26
- if params.has_key? :opening_balance
27
- raise Projector::InvalidAccount, "Account #{account_id.inspect} opens "\
28
- "after projector, but has an opening balance"
29
- end
30
- end
31
25
  end
32
26
 
33
27
  def validate_transaction! transaction
@@ -1,3 +1,3 @@
1
1
  module MudratProjector
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
@@ -72,15 +72,6 @@ class ProjectorAccountsTest < Minitest::Test
72
72
  )
73
73
  refute_equal 0, @projector.balance
74
74
 
75
- assert_raises Projector::InvalidAccount do
76
- @projector.add_account(
77
- :savings,
78
- open_date: jan_2_2000,
79
- opening_balance: 500,
80
- type: :asset,
81
- )
82
- end
83
-
84
75
  @projector.add_account(
85
76
  :estate,
86
77
  open_date: jan_1_2000,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mudrat_projector
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - ntl