stock_market_days 1.2.1 → 1.3.0

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: e824858c3ddb3a1012e7500b350d828a6acc24d1dbc7c7144ba2196149f0469f
4
- data.tar.gz: 87318b90f7aae3c0ce8533f2a1a5f814c8cb113ac2747f20a2420221294cf0b9
3
+ metadata.gz: 3e76a55bcd76b991250ce5791ac9dec3e9a925166d40edad0b208cdbc12071cd
4
+ data.tar.gz: 3452283cbc55cd4ec99b2483111e83bd908b2e16f327feafc55e0bb40c2d765c
5
5
  SHA512:
6
- metadata.gz: cc7acc5605614dc40a2ead182d1255e333598d7705774171575d2bb1dea9cfd4abfa796a1079f9294a0eeec087d6efa0f980e5b585678f1329a892c5a038fd2f
7
- data.tar.gz: acc414f62188c452c5a9ee2ff155fd0950c67cd02f1eee8af467be0ea4f543ee77844b4f59c98dc23a069edcf5a14e858a6046811ba364621e4e7382c3060ccd
6
+ metadata.gz: c40613090f2a9302d31af6f927f37d9329e0ba561cb8e675694b8ef15053526715752dd6160ab687ddbb5107b747d78a2abf30fd43e4800c555358a3f10d3db6
7
+ data.tar.gz: ac5ff806c47c7e09742389b99c0f868d2d3d1f54c10845043edac45edfe1cdbcff8ead09578b0446760e20acaebedc5d3d9a16b3380892d2157a7d821c376872
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ Version 1.3.0 (12/30/2024)
2
+ * Add 1/9/25 market closed day for Jimmy Carter's death
3
+
1
4
  Version 1.2.1 (10/25/2024)
2
5
  * Fixes a bug in the date calculation when given date is a weekend. (thanks wtn!)
3
6
 
@@ -2771,7 +2771,6 @@
2771
2771
  2025-01-06
2772
2772
  2025-01-07
2773
2773
  2025-01-08
2774
- 2025-01-09
2775
2774
  2025-01-10
2776
2775
  2025-01-13
2777
2776
  2025-01-14
@@ -1,3 +1,3 @@
1
1
  module StockMarketDays
2
- VERSION = '1.2.1'
2
+ VERSION = '1.3.0'
3
3
  end
@@ -105,6 +105,21 @@ describe StockMarketDays do
105
105
  end
106
106
  end
107
107
  end
108
+
109
+ context 'is National Day of Mourning' do
110
+ let(:dates) do
111
+ [
112
+ Date.new(2018,12,5),
113
+ Date.new(2025,1,9),
114
+ ]
115
+ end
116
+
117
+ it 'reports market closed' do
118
+ dates.each do |market_closed_day|
119
+ expect(described_class.is_market_day?(market_closed_day)).to be_falsey
120
+ end
121
+ end
122
+ end
108
123
  end
109
124
 
110
125
  context '#market_days_between' do
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.2.1
4
+ version: 1.3.0
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-10-25 00:00:00.000000000 Z
11
+ date: 2024-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler