asanghi-fiscali 1.2.2 → 1.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.2.2
1
+ 1.2.3
data/fiscali.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{fiscali}
5
- s.version = "1.2.2"
5
+ s.version = "1.2.3"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Aditya Sanghi"]
@@ -117,6 +117,14 @@ module RisingSun
117
117
  beginning_of_financial_half.months_ago(6)
118
118
  end
119
119
 
120
+ def financial_month_of(month)
121
+ if month < start_month
122
+ Date.new(year+1,month,1)
123
+ else
124
+ Date.new(year,month,1)
125
+ end
126
+ end
127
+
120
128
  private
121
129
 
122
130
  def months_between
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: asanghi-fiscali
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditya Sanghi