asanghi-fiscali 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.markdown +31 -33
  2. data/VERSION +1 -1
  3. data/fiscali.gemspec +1 -1
  4. metadata +1 -1
data/README.markdown CHANGED
@@ -71,88 +71,86 @@ Indian Fiscal Year starts from 1st of April
71
71
  Assume Date.today is 1st May 2009
72
72
 
73
73
 
74
- * financial_year
75
- Returns the financial year of the date/time
74
+ ##### financial_year -> Returns the financial year of the date/time
76
75
  Date.today.financial_year
77
76
  => 2009
78
77
  Date.today.beginning_of_year.financial_year
79
78
  => 2008
80
79
  Since 1st Jan 2009 in India falls in the 2008-09 financial year
81
80
 
82
- * beginning_of_financial_year
83
- Returns the beginning of financial year
81
+ ##### beginning_of_financial_year -> Returns the beginning of financial year
84
82
  Date.today.beginning_of_financial_year
85
83
  => 1st April 2009
86
84
  Date.today.beginning_of_year.beginning_of_financial_year
87
85
  => 1st April 2008
88
86
 
89
- * end_of_financial_year
87
+ ##### end_of_financial_year
90
88
 
91
- * beginning_of_financial_q1
92
- * end_of_financial_q1
89
+ ##### beginning_of_financial_q1
90
+ ##### end_of_financial_q1
93
91
 
94
- * beginning_of_financial_q2
95
- * end_of_financial_q2
92
+ ##### beginning_of_financial_q2
93
+ ##### end_of_financial_q2
96
94
 
97
- * beginning_of_financial_q3
98
- * end_of_financial_q3
95
+ ##### beginning_of_financial_q3
96
+ ##### end_of_financial_q3
99
97
 
100
- * beginning_of_financial_q4
101
- * end_of_financial_q4
98
+ ##### beginning_of_financial_q4
99
+ ##### end_of_financial_q4
102
100
 
103
- * beginning_of_financial_h1
104
- * end_of_financial_h1
101
+ ##### beginning_of_financial_h1
102
+ ##### end_of_financial_h1
105
103
 
106
- * beginning_of_financial_h2
107
- * end_of_financial_h2
104
+ ##### beginning_of_financial_h2
105
+ ##### end_of_financial_h2
108
106
 
109
- * financial_quarter
110
- Returns Q1, Q2, Q3, Q4 depending on where the date falls
107
+ ##### financial_quarter -> Returns Q1, Q2, Q3, Q4 depending on where the date falls
108
+
111
109
  Date.today.financial_quarter
112
110
  => Q1
113
111
  Date.today.beginning_of_year.financial_quarter
114
112
  => Q4
115
113
 
116
- * financial_half
117
- Returns H1, H2 depending on where the date falls
114
+ ##### financial_half -> Returns H1, H2 depending on where the date falls
115
+
118
116
  Date.today.financial_half
119
117
  => H1
120
118
  Date.today.beginning_of_year.financial_half
121
119
  => H2
122
120
 
123
- * next_financial_quarter
124
- Takes you to the beginning of the next financial quarter
121
+ ##### next_financial_quarter -> Takes you to the beginning of the next financial quarter
122
+
125
123
  Date.today.next_financial_quarter
126
124
  => 1st July 2009
127
125
 
128
- * next_financial_half
129
- Takes you to the beginning of the next financial half
126
+ ##### next_financial_half -> Takes you to the beginning of the next financial half
127
+
130
128
  Date.today.next_financial_half
131
129
  => 1st October 2009
132
130
 
133
- * beginning_of_financial_quarter
134
- Take you to the beginning of the current financial quarter
131
+ ##### beginning_of_financial_quarter -> Takes you to the beginning of the current financial quarter
132
+
135
133
  Date.today.beginning_of_financial_quarter
136
134
  => 1st April 2009
137
135
  Date.today.beginning_of_year.beginning_of_financial_quarter
138
136
  => 1st Jan 2009
139
137
 
140
- * beginning_of_financial_half
141
- Take you to the beginning of the current financial half
138
+ ##### beginning_of_financial_half -> Takes you to the beginning of the current financial half
139
+
142
140
  Date.today.beginning_of_financial_half
143
141
  => 1st April 2009
144
142
  Date.today.beginning_of_year.beginning_of_financial_quarter
145
143
  => 1st Oct 2008
146
144
 
147
- * previous_financial_quarter
148
- Take you to the beginning of the previous financial quarter
145
+ ##### previous_financial_quarter -> Takes you to the beginning of the previous financial quarter
146
+
149
147
  Date.today.previous_financial_quarter
150
148
  => 1st Jan 2009
151
149
  Date.today.beginning_of_year.previous_financial_quarter
152
150
  => 1st Oct 2008
153
151
 
154
- * previous_financial_half
155
- Take you to the beginning of the previous financial half
152
+ ##### previous_financial_half -> Takes you to the beginning of the previous financial half
153
+
156
154
  Date.today.previous_financial_half
157
155
  => 1st Oct 2008
158
156
  Date.today.beginning_of_year.previous_financial_quarter
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.5
1
+ 1.1.6
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.1.5"
5
+ s.version = "1.1.6"
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"]
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.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aditya Sanghi