black_friday 1.0.3 → 1.0.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 7ffbcf76eea0862cddaa63f91a21a19eb41e666eb9321eb3115a8846a39c95ca
4
- data.tar.gz: 942723a966fc7e783c3a3f5e39847c8b98dd5fca44acdde11c6e9f209f222250
3
+ metadata.gz: 0e23c17366d25e68bd87d013eaad0ce6d85b59c791dddcbf1015586ccd533727
4
+ data.tar.gz: 0fbd019abb0e765476f9360110ad6eb43a16266298be9a3dcc11295b24976fcb
5
5
  SHA512:
6
- metadata.gz: 9572cb6a4739e4ac926f133783a88af828a8c571862f5430b52b8d693dc50ea035cfde6e56f31279dea77b7eaf97f34f622d67ecc7515e4645020b070f24bff0
7
- data.tar.gz: aa148f4b131fded46ea48a28827723104f51687e9261e9e01554b7925ea68baac1d936e91f41bd5a6a7832e11cff256c1930c196dcd5be718a6733c9d284c4b4
6
+ metadata.gz: e573a96174ddfb06dc8ca4373711ee238cf107f28af55f411ac0e824be237189fce146abc9bfad1bff54aff57b99cd01d1d6b2808ef9c2ff6b91ca65b0e59be6
7
+ data.tar.gz: 560eeca28bbc44e4e8c60d6a4cbd0b1e10e065d824c39483af54a1367f733f85df78a5e0103231b34567fb302d4c88fb96aacd2269fcc7f5f49d18628a419179
data/CHANGELOG.md CHANGED
@@ -1,5 +1,14 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [1.0.4] - 2024-11-27
4
+
5
+ - Fix `current_sales` to return an array of names, not a hash.
6
+
7
+ ## [1.0.3] - 2024-11-22
8
+
9
+ - Add Canadian Thanksgiving
10
+ - Add `range_for(name)` to retrieve a range easily
11
+
3
12
  ## [1.0.2] - 2024-11-22
4
13
 
5
14
  - Add `BlackFriday.range_for(:name)` to retrieve a range
data/README.md CHANGED
@@ -79,7 +79,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
79
79
 
80
80
  ## Contributing
81
81
 
82
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/black_friday. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/black_friday/blob/main/CODE_OF_CONDUCT.md).
82
+ Bug reports and pull requests are welcome on GitHub at https://github.com/excid3/black_friday. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/excid3/black_friday/blob/main/CODE_OF_CONDUCT.md).
83
83
 
84
84
  ## License
85
85
 
@@ -87,4 +87,4 @@ The gem is available as open source under the terms of the [MIT License](https:/
87
87
 
88
88
  ## Code of Conduct
89
89
 
90
- Everyone interacting in the BlackFriday project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/black_friday/blob/main/CODE_OF_CONDUCT.md).
90
+ Everyone interacting in the BlackFriday project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/excid3/black_friday/blob/main/CODE_OF_CONDUCT.md).
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module BlackFriday
4
- VERSION = "1.0.3"
4
+ VERSION = "1.0.4"
5
5
  end
data/lib/black_friday.rb CHANGED
@@ -24,8 +24,8 @@ module BlackFriday
24
24
  end
25
25
 
26
26
  def current_sales
27
- sales.select do |name, block|
28
- in_range? instance_eval(&block)
27
+ sales.filter_map do |name, block|
28
+ name if in_range? instance_eval(&block)
29
29
  end
30
30
  end
31
31
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: black_friday
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Oliver
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-22 00:00:00.000000000 Z
11
+ date: 2024-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport