ethiopian_date 1.2.1 → 2.2.1

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: 9a4466c64bf806d33d3c1dc11ab6c6197b70159a373ffc309f3a09a769f74b36
4
- data.tar.gz: fd8355f703569d434b2abb564f69b7a9a3e5bad07ad32be5815a90d0dbe40855
3
+ metadata.gz: 2bc4b69a8f4e99d5c64bf13c797dccf8e606cc47ba4e1717e32ffed95fbf3748
4
+ data.tar.gz: 96604562d1c3f832725249a352d44d642aa0f5331a759c9b746bd15569121bbf
5
5
  SHA512:
6
- metadata.gz: 390f99a7d8a6be8c138576818951558a64a5dfaf9bc555d0eaacacf440d39c554de9c5494cfcaea299a5e819155672d4e458e96a431b2267337d6d30d3e98ef5
7
- data.tar.gz: 0b438d87031567c0e292f561c9ee7c480f7331eeef9c45ea18969252f7c76b69472a2e18306b69b2357b8eb52111ae8bc5faa52907da3c75772355f7e3f993e0
6
+ metadata.gz: 93a5d1d2caf406d397bd0e0d92b8e2ae9c29ce6b1b12e7267afe6c4c27bbafe520350db4b97dacfe09e093cf31c9e31bd86a3a2b32d67ee2593043e55b533d7a
7
+ data.tar.gz: ea430197d0688b8141f54a8811afc4fa600fc8421af9334fd9ad6858c6645b118c761236c64bb47045a97fefe4ff1b4a20b523bb23257b1dbe4ef0490d0a2396
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- ethiopian_date (1.2.0)
4
+ ethiopian_date (1.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -10,6 +10,7 @@ GEM
10
10
 
11
11
  PLATFORMS
12
12
  x64-mingw32
13
+ x86_64-linux
13
14
 
14
15
  DEPENDENCIES
15
16
  ethiopian_date!
@@ -1,5 +1,4 @@
1
- # frozen_string_literal: true
2
1
 
3
2
  module EthiopianDate
4
- VERSION = "1.2.1"
3
+ VERSION = "2.2.1"
5
4
  end
@@ -1,10 +1,10 @@
1
- # frozen_string_literal: true
2
1
 
3
2
  require_relative "ethiopian_date/version"
4
3
  require "date"
5
4
  module EthiopianDate
6
5
  class Error < StandardError; end
7
6
 
7
+
8
8
  # from http://ethiopic.org/Calendars/
9
9
 
10
10
  # Constants used
@@ -92,7 +92,7 @@ module EthiopianDate
92
92
  def jdn_from_gregorian(year, month, day)
93
93
  s = (year / 4) - (year - 1) / 4 - (year / 100) + (year - 1) / 100 + (year / 400) - (year - 1) / 400
94
94
  t = (14 - month) / 12
95
- n = (1 - t) * (59 + s + 30 * (month - 3) + 31 * t * (month - 1) + ((3 * month - 7) / 5)) + day - 1
95
+ n = 31 * t * (month - 1) + (1 - t) * (59 + s + 30 * (month - 3) + ((3 * month - 7) / 5)) + day - 1
96
96
  j = JD_EPOCH_OFFSET_GREGORIAN + 365 * (year - 1) + (year - 1) / 4 - (year - 1) / 100 + (year - 1) / 400 + n
97
97
  return j
98
98
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ethiopian_date
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.1
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tamiru Hailu