stock_market_days 1.4.0 → 1.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +4 -4
- data/Rakefile +6 -6
- data/lib/stock_market_days/version.rb +1 -1
- 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: bddb3b1d05325356714d9f6e11b4756786f69ae227bd5b66666fbd3daa70646c
|
4
|
+
data.tar.gz: 39ef59865cb3eefcc68cdedc8beedff8bc8ddb6cdaa905add9c229d83ec40bcd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 764b10f435b3da3135bdef3aeae5fdec1e4d28b55dcbeea0da5bc3f07953856671b86de74438ed9b596e83d2c84153ef12d3b58ca1cd0d3d18bdc4c4f71ca00b
|
7
|
+
data.tar.gz: 807409ab2bc05a5c696f1e91bebae51e13d1563eb9cd6c35849cf1b2e4ad85a1f6ed7b447855ed072da92054dc1ab5c9e3e8d0d3ef247768fde8b3f3f9016fac
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -8,7 +8,7 @@ Typically, markets are closed on weekends and the following holidays:
|
|
8
8
|
* New Year's Day (January 1st, or first Monday of January if on weekend)
|
9
9
|
* Martin Luther King Day (third Monday of January)
|
10
10
|
* Washington's Birthday (third Monday of Feburary)
|
11
|
-
* Good Friday (Determined by
|
11
|
+
* Good Friday (Determined by [https://spider.seds.org/spider/ScholarX/publ_holidays.html](https://spider.seds.org/spider/ScholarX/publ_holidays.html))
|
12
12
|
* Memorial Day (last Monday of May)
|
13
13
|
* Juneteenth (June 19, or nearest Monday or Friday if on a weekend)
|
14
14
|
* Independence Day (July 4, or July 3rd if on Saturday, July 5th if on Sunday)
|
@@ -29,9 +29,9 @@ gem 'stock_market_days'
|
|
29
29
|
|
30
30
|
## Available Methods
|
31
31
|
|
32
|
-
`is_market_day?` - tells you whether the given date is a date US markets are open
|
33
|
-
`market_days_between` - tells number of trading days between two dates
|
34
|
-
`market_days_from` - gives you the trading day of given date, plus number of trading days
|
32
|
+
* `is_market_day?` - tells you whether the given date is a date US markets are open
|
33
|
+
* `market_days_between` - tells number of trading days between two dates
|
34
|
+
* `market_days_from` - gives you the trading day of given date, plus number of trading days
|
35
35
|
|
36
36
|
|
37
37
|
Look at the test suite for examples of usage.
|
data/Rakefile
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require
|
2
|
-
require '
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rspec/core/rake_task'
|
3
3
|
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
# end
|
4
|
+
RSpec::Core::RakeTask.new(:spec) do |t|
|
5
|
+
t.pattern = 'spec/**/*_spec.rb'
|
6
|
+
end
|
8
7
|
|
8
|
+
task default: :spec
|
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.4.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Winston Kotzan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2025-02-
|
11
|
+
date: 2025-02-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|