range_extd 1.0 → 2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 32649fb2085566146ed0bd20a5f1198f4030f56477ea64cb4f7822ce6288ff24
4
- data.tar.gz: 3fe7fb3ee23f9cd41550445e1482f86292b84dad8b13f0a3984b5e077a16a740
3
+ metadata.gz: 925a44972bdb0ab8358f4a879ab13a7c774c94a3dc928af4cb820c1b549620cc
4
+ data.tar.gz: 90106d1f343c84537d93d4e1a30190d5b1b826bf0eaf50241c10f57e0ef6b6d3
5
5
  SHA512:
6
- metadata.gz: bc7050082f5af7734ee5946c1f51d21ed633ed275ef93ed9adf9844c8a965f9acab24eef8658cdb06891b852b05ab27bd8a81d0904bce15fbb9a0b0dfb0ba7e1
7
- data.tar.gz: 4bf22fb1d18614b5afed4bb8bed88bea3aeb0f90fa8da4c3345be3ee58561313b28453244910c7bac306592945768208dc03cb866c67201eea6c13bc4dbedc34
6
+ metadata.gz: b79ef9022549c1161874f98e47a01505556075d7e257ec95304319d9216adc12ed2e60d5cf4579e110c7195d6208d60ebb0c19fa048ee297e15687cfd5963237
7
+ data.tar.gz: a372b80b33daa7b0868c1691900025177c24b1d2f710983e4a50336ce2e77414c400c80af3c7b30ff502b6a3e3007b48b60f40aff716505d9bebcf7f5dadabef
data/ChangeLog CHANGED
@@ -1,16 +1,37 @@
1
1
  -----
2
- (Version: 1.0)
3
- 2019-10-30 Masa Sakano
4
- * Release of Ver.1.0.
5
- * Endless Range introduced in Ruby 2.6 is now fully supported.
6
- * RangeError is raised now when it is appropriate in initialisation, where ArgumentError used to be raised.
2
+ (Version: 2.0)
3
+ 2022-09-08 Masa Sakano
4
+ * Major upgrade to deal with Beginless Range of Ruby-2.7
5
+
6
+ * Library path changed from `range_extd/range_extd.rb` to `range_extd.rb`
7
+ * `range_extd/infinity/infinity.rb` => `range_extd/infinity.rb`
8
+ * New class `RangeExtd::Nowhere` is created.
9
+ * Inclusion of changes to Object and Numeric is now optional.
10
+ * Files split into sub files under `range_extd/`
11
+ * `range.rb`
12
+ * `numeric.rb`
13
+ * `nil_class.rb`
14
+ * `object.rb`
15
+ * Utility loading script is added: `range_extd/load_all.rb`
7
16
 
8
17
  -----
9
- (Version: 1.0)
10
- 2019-10-30 Masa Sakano
11
- * Release of Ver.1.0.
12
- * Endless Range introduced in Ruby 2.6 is now fully supported.
13
- * RangeError is raised now when it is appropriate in initialisation, where ArgumentError used to be raised.
18
+ (Version: 1.1.1)
19
+ 2020-01-27 Masa Sakano
20
+ * Fixed warnings with Ruby-2.7
21
+
22
+ -----
23
+ (Version: 1.1)
24
+ 2019-11-01 Masa Sakano
25
+ * Significant upgrade: RangeExtd
26
+ * size of RangeExtd with an infinity now follows what Ruby Endless Range returns.
27
+ * Example: (?a..RangeExtd::Infinity::POSITIVE).size used to be Float::INFINITY, but now nil.
28
+ * RangeExtd::Infinity::POSITIVE etc now replaced with Float::INFINITY when it should be.
29
+ * RangeExtd::Infinity
30
+ * POSITIVE (or NEGATIVE) and Float::INFINITY are now NOT comparable. Description added to README.
31
+ * Newly redefined methods of ">" and "<" for RangeExtd::Infinity, as otherwise the comparison with Numeric fails as of Ruby 2.6 (I do not know whether it has been so or it has changed in recent versions of Ruby)
32
+ * New class methods of Infinity.infinity? and Infinity.infinite? in which the former excludes Float::INFINITY whereas the latter includes.
33
+ * Two unary operators (plus and minus) now supported.
34
+ * The methods "=", ">" and "<" redefined for Float and Integer (hence Rational) so they can be compared with this.
14
35
 
15
36
  -----
16
37
  (Version: 1.0)
data/Makefile CHANGED
@@ -10,14 +10,18 @@ objs =
10
10
  all: ${ALL}
11
11
 
12
12
 
13
- .PHONY: clean test doc
13
+ .PHONY: clean test test2 doc
14
14
  clean:
15
15
  $(RM) bin/*~
16
16
 
17
17
  ## You may need RUBYLIB=`pwd`/lib:$RUBYLIB
18
+ # If the first test fails, the second test is not run. If you want to run the second test only
18
19
  test:
19
- rake test
20
+ (rake test && rake test all_required=t) || (stat=$$?; echo "WARNING: Second test was not run. To separately test the second only: make test2" >&2; exit $$stat)
21
+
22
+ test2:
23
+ rake test all_required=t
20
24
 
21
25
  doc:
22
- yard doc; [[ -x ".github" && ( "README.ja.rdoc" -nt ".github/README.md" ) ]] && ( ruby -r rdoc -e 'puts RDoc::Markup::ToMarkdown.new.convert ARGF.read' < README.ja.rdoc > .github/README.md ; echo ".github/README.md is updated." ) || exit 0
26
+ yard doc; [[ -x ".github" && ( "README.ja.rdoc" -nt ".github/README.md" ) ]] && ( ruby -r rdoc -e 'puts RDoc::Markup::ToMarkdown.new.convert ARGF.read' < README.ja.rdoc | yard2md_afterclean > .github/README.md.$$ && ( mv -f .github/README.md.$$ .github/README.md && echo ".github/README.md and .github/README.html are updated." && pandoc --from=gfm .github/README.md -o .github/README.html ) || ( echo "ERROR: failed to create .github/README.md" >&2 ) ) || exit 0
23
27
 
data/News CHANGED
@@ -1,3 +1,11 @@
1
+ -----
2
+ (Version: 2.0) 2022-09-03
3
+ * Release of Ver.2.0. Supports Beginless Range in Ruby 2.7. Change in the library paths.
4
+
5
+ -----
6
+ (Version: 1.1) 2019-11-01
7
+ * Release of Ver.1.1. A significant upgrade with some change in the specification of how to deal with infinities.
8
+
1
9
  -----
2
10
  (Version: 1.0) 2019-10-30
3
11
  * Release of Ver.1.0. Supports Endless Range in Ruby 2.6.