asanghi-fiscali 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +41 -0
- data/VERSION +1 -1
- data/fiscali.gemspec +3 -3
- metadata +3 -3
- data/README.rdoc +0 -7
data/README.markdown
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Fiscali: Fiscal Year based calculations
|
2
|
+
|
3
|
+
Fiscali provides ONE thing:
|
4
|
+
|
5
|
+
* Additional methods on your Date and Time classes to jump around dates in your Financial Year.
|
6
|
+
* Not sure it's a point to be said, but YES, you can specify your financial year zone and if you dont know your zone, just provide the first month your financial year to the Date/Time class.
|
7
|
+
|
8
|
+
## Quick Links
|
9
|
+
|
10
|
+
* [Wiki](http://wiki.github.com/asanghi/fiscali)
|
11
|
+
* [Bugs](http://github.com/asanghi/fiscali/issues)
|
12
|
+
* [Donate](http://pledgie.org/campaigns/5400)
|
13
|
+
|
14
|
+
## Installing
|
15
|
+
|
16
|
+
# Install the gem:
|
17
|
+
sudo gem install asanghi-fiscali
|
18
|
+
|
19
|
+
## Using in your Rails project
|
20
|
+
|
21
|
+
It's easy to get up and running. Update your config/environment.rb file with this gem
|
22
|
+
|
23
|
+
config.gem "fiscali"
|
24
|
+
|
25
|
+
Next step is to provide your Date/Time class your start zone. Stick this in an initializer file. (If you didnt understand that, put it in $ENV[RAILS_ROOT]/config/initializers/fiscali.rb)
|
26
|
+
|
27
|
+
Date.fiscal_zone = :india
|
28
|
+
Time.fiscal_zone = :india
|
29
|
+
or
|
30
|
+
Date.start_month = 4
|
31
|
+
|
32
|
+
|
33
|
+
### Default options
|
34
|
+
|
35
|
+
By default, the financial year start in January. (Correct me but thats not a common start of financial year!)
|
36
|
+
Known Zones are -
|
37
|
+
{:india => 4, :uk => 4, :us => 10, :pakistan => 7,
|
38
|
+
:australia => 7, :ireland => 1, :nz => 7, :japan => 4}
|
39
|
+
|
40
|
+
## APIs
|
41
|
+
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.1.
|
1
|
+
1.1.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.1.
|
5
|
+
s.version = "1.1.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"]
|
@@ -10,13 +10,13 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = %q{aditya.sanghi@risingsunbilling.com}
|
11
11
|
s.extra_rdoc_files = [
|
12
12
|
"LICENSE",
|
13
|
-
"README.
|
13
|
+
"README.markdown"
|
14
14
|
]
|
15
15
|
s.files = [
|
16
16
|
".document",
|
17
17
|
".gitignore",
|
18
18
|
"LICENSE",
|
19
|
-
"README.
|
19
|
+
"README.markdown",
|
20
20
|
"Rakefile",
|
21
21
|
"VERSION",
|
22
22
|
"fiscali.gemspec",
|
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.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aditya Sanghi
|
@@ -21,12 +21,12 @@ extensions: []
|
|
21
21
|
|
22
22
|
extra_rdoc_files:
|
23
23
|
- LICENSE
|
24
|
-
- README.
|
24
|
+
- README.markdown
|
25
25
|
files:
|
26
26
|
- .document
|
27
27
|
- .gitignore
|
28
28
|
- LICENSE
|
29
|
-
- README.
|
29
|
+
- README.markdown
|
30
30
|
- Rakefile
|
31
31
|
- VERSION
|
32
32
|
- fiscali.gemspec
|