fiscali 2.4.2 → 2.4.3

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: 668e7b14a08a01a3a0ccd9ade61bbfa89d8230ef
4
- data.tar.gz: c3f349a09a79887b01faeaa00b004249d9574fff
3
+ metadata.gz: 4147bd764bf1f5688c196dc868493a058499ec09
4
+ data.tar.gz: ba52f5ea40bde306a76aaa67d5290fff3dc7405c
5
5
  SHA512:
6
- metadata.gz: 2ff65d864bce592b41bc12e17e1ebd2550d096bb403ddd32631237416019fc9f6f4992b9e408ba7475cb00db65705a3ae4193b7aed6185b03e4060d3890df2bb
7
- data.tar.gz: ab80fa725440ab431b915cf49efda63491abdcbffcb0db72261b7e905794012b41c70839b4bd5f5ede15eae5d13e5a5fbfce46799c5b552fa6a6e8660451e2b8
6
+ metadata.gz: e41fd5a92e55d3493bc329a7237c8030fc87f10203f4f427aeb2442299da2d8b1a3422bc65d74d42603e6b968a0580322c939aff963c9e7adaeae0138690da40
7
+ data.tar.gz: 1463b2a377b8817a6c794201aea66a14515816089e316ab16c6a5bd175ceb07dac2e70f242f63d38a8146850f6d17b710e62a5083ff604d7b042d12de672f606
@@ -213,6 +213,7 @@ Since 1st Jan 2009 in India falls in the 2008-09 financial year
213
213
 
214
214
  ## Contributors
215
215
 
216
+ * [@mxie](https://github.com/mxie)
216
217
  * [@moubry](https://github.com/moubry)
217
218
  * [@reed](https://github.com/reed)
218
219
  * [@chiperific](https://github.com/chiperific)
@@ -61,7 +61,7 @@ module RisingSun
61
61
  end
62
62
 
63
63
  def beginning_of_financial_year
64
- change(:year => year_of_financial_year_beginning, :month => start_month).beginning_of_month
64
+ change(:year => year_of_financial_year_beginning, :month => start_month, :day => 1).beginning_of_month
65
65
  end
66
66
 
67
67
  def end_of_financial_year
@@ -1,5 +1,5 @@
1
1
  module RisingSun
2
2
  module Fiscali
3
- VERSION = "2.4.2"
3
+ VERSION = "2.4.3"
4
4
  end
5
5
  end
@@ -124,7 +124,18 @@ describe "fiscali" do
124
124
  expect(Date.new(2009,6,1).previous_financial_half).to eql(Date.new(2008,10,1))
125
125
  expect(Date.new(2009,10,30).previous_financial_quarter).to eql(Date.new(2009,7,1))
126
126
  end
127
+ end
128
+
129
+ context 'when date is end of month' do
130
+ before do
131
+ Date.fiscal_zone = :india
132
+ @d = Date.new(2009, 3, 31)
133
+ end
127
134
 
135
+ it "should report correct beginning and of financial year" do
136
+ expect(@d.beginning_of_financial_year).to eql(Date.new(2008,4,1))
137
+ expect(@d.end_of_financial_year).to eql(Date.new(2009,3,31))
138
+ end
128
139
  end
129
140
 
130
141
  context "should report correct timestamp" do
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fiscali
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.2
4
+ version: 2.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditya Sanghi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-10 00:00:00.000000000 Z
11
+ date: 2016-03-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -94,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
94
  version: '0'
95
95
  requirements: []
96
96
  rubyforge_project:
97
- rubygems_version: 2.4.5.1
97
+ rubygems_version: 2.4.8
98
98
  signing_key:
99
99
  specification_version: 4
100
100
  summary: Fiscal Year Date Functions