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 +4 -4
- data/lib/stock_market_days/calculator.rb +3 -1
- data/lib/stock_market_days/version.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c34e21fade70fd07272a1dd780b5e6abe7eabddbe0a024e71164c7289384963
|
4
|
+
data.tar.gz: fd6452c7aa2468c8b4e5e65e4648eab5e6276778e93f0c595d024a85058ac7d7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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.
|
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.
|
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-
|
11
|
+
date: 2024-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|