nanakshahi 0.1.7 → 0.1.8

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: 511784652088e9e8d9ecc81cfc8582375bd3439ad5e0ad68399476c0e1b3eb85
4
- data.tar.gz: 4a0f196d3092492aa854f299591c1bcf8229a14969375c76ea4fbc714bc9a90e
3
+ metadata.gz: b8bf32dd0f801fd9e4f465ba281842e52a79f1b256612b330464b2b775cb6b91
4
+ data.tar.gz: 1ddc9d47468022bc6a6118458da69dc412546dc281d9103f3b222635d31eb945
5
5
  SHA512:
6
- metadata.gz: 60e863377a8bbfd28a33e11831ebea1e0d956ba1fa2a4eefd7542595a803cdaa48ccc947209617145df27164a0fdebec08c066a7a9115e3eea6affd125b2c2ea
7
- data.tar.gz: '08e114ffce26aeb73a512f623b47f48c7c6aa954510b2e6823873e47ca65d45a39f38cd3acec6d75caf3858b2ae1e32964a536124b55a596210c9d57d02eb2d8'
6
+ metadata.gz: 5b40df13b0fbbc96f76c0727d42f6bfe6d1ea8247e65130162707517425ef554a060de418c6fab0a38b4a158f5513655a5f7229edda53a355dd61f857c8726cc
7
+ data.tar.gz: 7ff41203d3d4dd9064c557be241ef4989e724a2b50879d605a5b37666e0c89330e9ed87eca964f3b32849218b7e05210dad52c6b3fc77fe4b648ca6ba14f85f7
data/CHANGELOG.md ADDED
@@ -0,0 +1,8 @@
1
+ # coding: UTF-8
2
+
3
+ === 0.1.8 / 2019-03-14
4
+
5
+ Bug fixes:
6
+
7
+ * Fixed to_s method that failed because of unavailability of locales.
8
+ * Added a CHANGELOG.md to the gem code to keep track of changes over time.
@@ -1,3 +1,3 @@
1
1
  class Nanakshahi
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/nanakshahi.rb CHANGED
@@ -1,6 +1,5 @@
1
1
  require "date"
2
2
  require "i18n"
3
- I18n.load_path << Dir[File.expand_path("config/locales") + "/*.yml"]
4
3
  require "nanakshahi/version"
5
4
  require "nanakshahi/grid"
6
5
  require "nanakshahi/utils"
@@ -15,6 +14,8 @@ require "nanakshahi/gurpurab"
15
14
  # @attr_reader [Integer] month Month part of Nanakshahi date object
16
15
  # @attr_reader [Integer] day Day part of Nanakshahi date object
17
16
  class Nanakshahi
17
+ I18n.load_path << Dir[File.expand_path("config/locales") + "/*.yml"]
18
+ I18n.available_locales = [:en, :pa]
18
19
  include Comparable
19
20
  extend Utils
20
21
  extend Grid
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Arvinder Singh
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-02-13 00:00:00.000000000 Z
11
+ date: 2019-03-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -83,6 +83,7 @@ files:
83
83
  - ".gitignore"
84
84
  - ".gitlab-ci.yml"
85
85
  - ".travis.yml"
86
+ - CHANGELOG.md
86
87
  - Gemfile
87
88
  - Gemfile.lock
88
89
  - LICENSE.txt
@@ -118,8 +119,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  - !ruby/object:Gem::Version
119
120
  version: '0'
120
121
  requirements: []
121
- rubyforge_project:
122
- rubygems_version: 2.7.8
122
+ rubygems_version: 3.0.3
123
123
  signing_key:
124
124
  specification_version: 4
125
125
  summary: Nanakshahi calendar by Pal Singh Purewal