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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf652ae1baa2a9e260f827e3a2b7942fc7c95bb264e000b5b59a3c1e01b10f45
4
- data.tar.gz: 78d318348c2b62d737acc7eb84ba794236dc578d3449efafe13a3fe8257071c2
3
+ metadata.gz: f04e5d5c27b5e8fa8aec1f4b2f61826179a234c10a8e5533fb68260de279828e
4
+ data.tar.gz: '0692eddac5b1147185c90569f00e891e838c93ead79189dbb317d8fe2ef6be6d'
5
5
  SHA512:
6
- metadata.gz: '084132ba26de3b00969415f8c9d41a78176f7f2749aba37e5a9edd03043b9b11bb4feadcc74a78edff5e0565ce553f462fc07b62f99fc7aa2a8b91b6f5b91345'
7
- data.tar.gz: 210eef669c266262af2b6d7594cd5573f9366546c94b760898bcc4b40fd9e60da5e9fcb5bbe8ba370cb9cee1c642491be658c936bd6e3dd87034361afa77a13d
6
+ metadata.gz: 0756010ff0c75f2896c3fd441d68db0c85da749ece27aa2252322b85759335739bfb5514f66ff6df904cc628f451c42f026572862d459345c87e47c42f40620e
7
+ data.tar.gz: bae9922bb8f3613310ced24a19735dd6c8ead3c57cdf85d219abda6ed40fa5a91a801195bff668113c745d72818370201ef2b2d7cbc999caadbd1d44d03a5ffa
data/CHANGELOG.md CHANGED
@@ -1,4 +1,11 @@
1
1
  # coding: UTF-8
2
+ === 0.2.0 / 2021-09-12
3
+
4
+ Bug fixes:
5
+
6
+ - Updated rake 13.0.6 (was 13.0.1)
7
+ - Updated minitest 5.14.4 (was 5.14.0)
8
+ - Updated i18n 1.8.10 (was 1.8.2)
2
9
 
3
10
  === 0.1.9 / 2020-04-15
4
11
 
data/Gemfile.lock CHANGED
@@ -1,17 +1,17 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nanakshahi (0.1.9)
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.6)
11
- i18n (1.8.2)
10
+ concurrent-ruby (1.1.9)
11
+ i18n (1.8.10)
12
12
  concurrent-ruby (~> 1.0)
13
- minitest (5.14.0)
14
- rake (13.0.1)
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.1.4
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/punjab/nanakshahi.
99
+ Bug reports and pull requests are welcome on GitHub at https://github.com/akaltakht/nanakshahi.
100
100
 
101
101
  ## License
102
102
 
@@ -1,3 +1,3 @@
1
1
  class Nanakshahi
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
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
- last_nmonth_of_gyear = 10 # ਪੋਹ
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.1.9
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: 2020-04-16 00:00:00.000000000 Z
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.2
123
+ rubygems_version: 3.1.6
124
124
  signing_key:
125
125
  specification_version: 4
126
126
  summary: Nanakshahi calendar by Pal Singh Purewal