stock_market_days 1.1.1 → 1.1.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 94edfa2a6d5b3410f856de1d32c246ff87b51cf4d3b74e89e1676a2ed2a59d57
4
- data.tar.gz: aa89e3e52a0538fd2aac5e4af6f237f454ec37931ba8fdb263faf30640a7431d
3
+ metadata.gz: 6c34e21fade70fd07272a1dd780b5e6abe7eabddbe0a024e71164c7289384963
4
+ data.tar.gz: fd6452c7aa2468c8b4e5e65e4648eab5e6276778e93f0c595d024a85058ac7d7
5
5
  SHA512:
6
- metadata.gz: 2eb4b581e6609621dd4b5745afddd41775af35350c6285f478cce54b6c43f4e440854a986d748147c049091442e4c62a5bb3750ac5b40a1e09d81c7470350d5d
7
- data.tar.gz: a5e02e9d9864a96ba20eb9440a0730d81f6fa0ed6cfac683b1cc5956bf9dfc121f808a0f0c7647807db1692e6d1e4166622311df65e0eb771bfe97e3d6acdcd3
6
+ metadata.gz: eb251f60a4d040d96d8202f6b8759c587de43cf00d0ad6b49834929b877bf0206f385b16419102b2df12e8d301a467efb62e51cf197070a98b0438a7dc6d7346
7
+ data.tar.gz: edcea552170bc39ae84ac3a7502890540c2f3532fd88e137a16579d4258e81f4285e5fed11cd2c26e0277ec0853d31e2960787d29d22655f9b9e0bf096a54454
@@ -1,3 +1,5 @@
1
+ # frozen_string_literal: true
2
+
1
3
  require 'stock_market_days/utility_methods'
2
4
 
3
5
  module StockMarketDays
@@ -8,7 +10,7 @@ module StockMarketDays
8
10
 
9
11
  def initialize(market_days_file)
10
12
  file_contents = File.open(market_days_file).read
11
- @market_days_list = file_contents.split("\n").map { |date_s| Date.parse(date_s) }
13
+ @market_days_list = file_contents.split("\n").map { |date_s| Date.strptime(date_s, '%Y-%m-%d') }
12
14
  end
13
15
 
14
16
  def is_market_day?(date=Date.today)
@@ -1,3 +1,3 @@
1
1
  module StockMarketDays
2
- VERSION = '1.1.1'
3
- end
2
+ VERSION = '1.1.2'
3
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stock_market_days
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.1
4
+ version: 1.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winston Kotzan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-22 00:00:00.000000000 Z
11
+ date: 2024-08-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler