nanakshahi 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +7 -0
- data/Gemfile.lock +6 -6
- data/README.md +2 -2
- data/lib/nanakshahi/version.rb +1 -1
- data/lib/nanakshahi.rb +1 -9
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f04e5d5c27b5e8fa8aec1f4b2f61826179a234c10a8e5533fb68260de279828e
|
4
|
+
data.tar.gz: '0692eddac5b1147185c90569f00e891e838c93ead79189dbb317d8fe2ef6be6d'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0756010ff0c75f2896c3fd441d68db0c85da749ece27aa2252322b85759335739bfb5514f66ff6df904cc628f451c42f026572862d459345c87e47c42f40620e
|
7
|
+
data.tar.gz: bae9922bb8f3613310ced24a19735dd6c8ead3c57cdf85d219abda6ed40fa5a91a801195bff668113c745d72818370201ef2b2d7cbc999caadbd1d44d03a5ffa
|
data/CHANGELOG.md
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,17 +1,17 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
nanakshahi (0.
|
4
|
+
nanakshahi (0.2.0)
|
5
5
|
i18n (~> 1.8, >= 1.8.1)
|
6
6
|
|
7
7
|
GEM
|
8
8
|
remote: https://rubygems.org/
|
9
9
|
specs:
|
10
|
-
concurrent-ruby (1.1.
|
11
|
-
i18n (1.8.
|
10
|
+
concurrent-ruby (1.1.9)
|
11
|
+
i18n (1.8.10)
|
12
12
|
concurrent-ruby (~> 1.0)
|
13
|
-
minitest (5.14.
|
14
|
-
rake (13.0.
|
13
|
+
minitest (5.14.4)
|
14
|
+
rake (13.0.6)
|
15
15
|
|
16
16
|
PLATFORMS
|
17
17
|
ruby
|
@@ -23,4 +23,4 @@ DEPENDENCIES
|
|
23
23
|
rake (~> 13.0)
|
24
24
|
|
25
25
|
BUNDLED WITH
|
26
|
-
2.
|
26
|
+
2.2.22
|
data/README.md
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
ਨਾਨਕਸ਼ਾਹੀ ਇੱਕ ਰੂਬੀ ਪਰੋਗਰਾਮਿੰਗ ਭਾਸ਼ਾ ਚ ਲਿਖਿਆ ਗਿਆ gem ਹੈ ਜੋ ਕਿ [ਪਾਲ ਸਿੰਘ ਪੁਰੇਵਾਲ](http://purewal.biz/) ਦੁਆਰਾ ਲਿਖੇ ਗਏ [ਮੂਲ ਨਾਨਕਸ਼ਾਹੀ ਕਲੰਡਰ](http://www.purewal.biz/Gurbani_and_Nanakshahi_Calendar.pdf) ਤੇ ਅਧਾਰਿਤ ਹੈ।
|
4
4
|
|
5
|
-
ਇਹ ਆਮ/ਗਰਿਗੋਰੀਅਨ ਕਲੰਡਰ ਦੀਆਂ ਤਰੀਕਾਂ ਤੋਂ ਨਾਨਕਸ਼ਾਹੀ ਤੇ ਵਾਪਸ ਬਦਲਣ ਦੇ ਤਰੀਕੇ
|
5
|
+
ਇਹ ਆਮ/ਗਰਿਗੋਰੀਅਨ ਕਲੰਡਰ ਦੀਆਂ ਤਰੀਕਾਂ ਤੋਂ ਨਾਨਕਸ਼ਾਹੀ ਤੇ ਵਾਪਸ ਬਦਲਣ ਦੇ ਤਰੀਕੇ ਮੁਹੱਈਆ ਕਰਵਾਉਂਦਾ ਹੈ। ਤੁਸੀਂ ਇਸ ਨੂੰ ਕਿਸੇ ਵੀ ਰੂਬੀ ਪਰੋਗਰਾਮ ਵਿੱਚ ਨਾਨਕਸ਼ਾਹੀ ਤਰੀਕਾਂ ਵਰਤਣ ਲਈ ਵਰਤ ਸਕਦੇ ਹੋ।
|
6
6
|
|
7
7
|
Nanakshahi is a ruby gem for Nanakshahi Calendar based on the [original work](http://www.purewal.biz/Gurbani_and_Nanakshahi_Calendar.pdf) by [Pal Singh Purewal](http://purewal.biz/).
|
8
8
|
|
@@ -96,7 +96,7 @@ For a complete list of all the methods, check out [the documentation](https://ww
|
|
96
96
|
|
97
97
|
## Contributing
|
98
98
|
|
99
|
-
Bug reports and pull requests are welcome on GitHub at https://github.com/
|
99
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/akaltakht/nanakshahi.
|
100
100
|
|
101
101
|
## License
|
102
102
|
|
data/lib/nanakshahi/version.rb
CHANGED
data/lib/nanakshahi.rb
CHANGED
@@ -42,15 +42,7 @@ class Nanakshahi
|
|
42
42
|
#
|
43
43
|
# @return [Date] Converts nanakshahi into corresponding gregorian# as Date object
|
44
44
|
def to_gregorian
|
45
|
-
|
46
|
-
last_nday_of_gyear = 18 # ੧੮
|
47
|
-
|
48
|
-
if month <= last_nmonth_of_gyear && day <= last_nday_of_gyear
|
49
|
-
gyear = year + 1468
|
50
|
-
else
|
51
|
-
gyear = year + 1469
|
52
|
-
end
|
53
|
-
|
45
|
+
gyear = year + 1468
|
54
46
|
nanakshahi_months = self.class.date_grid(gyear)
|
55
47
|
nanakshahi_months[month - 1][day - 1]
|
56
48
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanakshahi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Arvinder Singh
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-09-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -120,7 +120,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
120
|
- !ruby/object:Gem::Version
|
121
121
|
version: '0'
|
122
122
|
requirements: []
|
123
|
-
rubygems_version: 3.1.
|
123
|
+
rubygems_version: 3.1.6
|
124
124
|
signing_key:
|
125
125
|
specification_version: 4
|
126
126
|
summary: Nanakshahi calendar by Pal Singh Purewal
|