stock_market_days 1.2.1 → 1.4.0

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.
@@ -1,3 +1,3 @@
1
1
  module StockMarketDays
2
- VERSION = '1.2.1'
2
+ VERSION = '1.4.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.4.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: 2025-02-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -105,7 +105,6 @@ files:
105
105
  - ".rspec"
106
106
  - CHANGELOG.md
107
107
  - Gemfile
108
- - Gemfile.lock
109
108
  - README.md
110
109
  - Rakefile
111
110
  - lib/manually_invoked_build/holiday_calculator.rb
data/Gemfile.lock DELETED
@@ -1,58 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- stock_market_days (1.0.1)
5
- bundler (>= 1.7)
6
- rake
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- addressable (2.8.0)
12
- public_suffix (>= 2.0.2, < 5.0)
13
- clipboard (1.3.5)
14
- coderay (1.1.3)
15
- crack (0.4.5)
16
- rexml
17
- diff-lcs (1.4.4)
18
- hashdiff (1.0.1)
19
- method_source (1.0.0)
20
- pry (0.14.0)
21
- coderay (~> 1.1)
22
- method_source (~> 1.0)
23
- public_suffix (4.0.6)
24
- rake (13.0.3)
25
- rexml (3.2.8)
26
- strscan (>= 3.0.9)
27
- rspec (3.10.0)
28
- rspec-core (~> 3.10.0)
29
- rspec-expectations (~> 3.10.0)
30
- rspec-mocks (~> 3.10.0)
31
- rspec-core (3.10.1)
32
- rspec-support (~> 3.10.0)
33
- rspec-expectations (3.10.1)
34
- diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.10.0)
36
- rspec-mocks (3.10.2)
37
- diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.10.0)
39
- rspec-support (3.10.2)
40
- strscan (3.1.0)
41
- webmock (3.11.2)
42
- addressable (>= 2.3.6)
43
- crack (>= 0.3.2)
44
- hashdiff (>= 0.4.0, < 2.0.0)
45
-
46
- PLATFORMS
47
- ruby
48
- x86_64-linux
49
-
50
- DEPENDENCIES
51
- clipboard
52
- pry
53
- rspec (>= 3.2)
54
- stock_market_days!
55
- webmock
56
-
57
- BUNDLED WITH
58
- 2.2.9