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 +4 -4
- data/README.markdown +1 -0
- data/lib/rising_sun/fiscali.rb +1 -1
- data/lib/rising_sun/version.rb +1 -1
- data/spec/fiscali_spec.rb +11 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4147bd764bf1f5688c196dc868493a058499ec09
|
4
|
+
data.tar.gz: ba52f5ea40bde306a76aaa67d5290fff3dc7405c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e41fd5a92e55d3493bc329a7237c8030fc87f10203f4f427aeb2442299da2d8b1a3422bc65d74d42603e6b968a0580322c939aff963c9e7adaeae0138690da40
|
7
|
+
data.tar.gz: 1463b2a377b8817a6c794201aea66a14515816089e316ab16c6a5bd175ceb07dac2e70f242f63d38a8146850f6d17b710e62a5083ff604d7b042d12de672f606
|
data/README.markdown
CHANGED
@@ -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)
|
data/lib/rising_sun/fiscali.rb
CHANGED
@@ -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
|
data/lib/rising_sun/version.rb
CHANGED
data/spec/fiscali_spec.rb
CHANGED
@@ -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.
|
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:
|
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.
|
97
|
+
rubygems_version: 2.4.8
|
98
98
|
signing_key:
|
99
99
|
specification_version: 4
|
100
100
|
summary: Fiscal Year Date Functions
|