stock_market_days 1.1.3 → 1.2.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: 55e734a319706844412c3aa8b4bb90185a4e2ca879946ddb34beec276d139f7d
4
- data.tar.gz: 7f8b91d99c626293323a4c9cf1f57e8f07e09eedacd9f85f7c231f7bbf094dec
3
+ metadata.gz: 94a9949aced23cb51da7cb4ec329e08b0f6a20af566b770bd71c5fe3d8c6a6d1
4
+ data.tar.gz: b4b4fc2ff915c2f36b73974a91e61f6e5a672124a74d6dac0360de1d792fdf11
5
5
  SHA512:
6
- metadata.gz: 7b7e188ee4d06846612654246b52d1783820975d7d03deb63dc74433c4b4b3ab40b383932926afba20bf3aab2faab60ee3090e1a7f3a46323e4ef0f876b29a8d
7
- data.tar.gz: 8cf48b6f8f54a955f71c4ec90414801768d0232e5077cfa4ab5d6e130b33cee8e6e9b71d7927a7b5c5ddb7458187721e3ee33d644c7db0dff742b3288bdc5c7e
6
+ metadata.gz: 1a39aa6f5543811ec0dd0e13d57e97f639d05cfe20bcde5e9e90b3fda647f420ab0a5decafa954bb13b27be236438b964ad9423165f3562adf9bc957824bc8a4
7
+ data.tar.gz: 120cdf30630d1180307529497e49c39b1da5ff32ad46e366158d6204be1bf17b92d264851bb1fcc129df4b537c40b48efe1e0dd9348321c4b3dd3d771784f41e
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ Version 1.2.0 (8/26/2024)
2
+ * Several date corrections on future market days (thanks to the community)
3
+ * Improved benchmarks on date calculation
4
+ * Added `previous_market_day` method
5
+
1
6
  Version 1.1.1 (5/22/2024)
2
7
  * A few historical date corrections
3
8
 
@@ -5,4 +10,4 @@ Version 1.1.0 (6/19/2022)
5
10
  * Adjusted market days for new Juneteenth federal holiday
6
11
 
7
12
  Version 1.0.1 (12/30/2019)
8
- * Fixed bug where methods were not calling properly when including StockMarketDays as a mixin
13
+ * Fixed bug where methods were not calling properly when including StockMarketDays as a mixin
@@ -1,3 +1,3 @@
1
1
  module StockMarketDays
2
- VERSION = '1.1.3'
2
+ VERSION = '1.2.0'
3
3
  end
@@ -23,4 +23,8 @@ module StockMarketDays
23
23
  @@default_calculator.market_days_from(from_date, 1)
24
24
  end
25
25
 
26
+ def previous_market_day(from_date=Date.today)
27
+ @@default_calculator.market_days_from(from_date, -1)
28
+ end
29
+
26
30
  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.3
4
+ version: 1.2.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-08-26 00:00:00.000000000 Z
11
+ date: 2024-08-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler