Bo Anderson
89531e9ff3
Update all dependencies
2023-12-15 16:24:46 +00:00
Bo Anderson
5692c8ecbf
Fix style violations under newer RuboCop
2023-12-14 05:47:12 +00:00
Markus Reiter
5c9c089b68
Improve #to_str
and #to_json
for Version::NULL
.
2023-05-11 19:16:42 +02:00
Markus Reiter
fe19ddc3a7
Remove Version#empty?
.
2023-05-09 01:13:55 +02:00
Douglas Eichelberger
9075cbae62
brew style --fix
2023-04-21 09:58:50 -07:00
Douglas Eichelberger
ac1e6ded9a
git grep -l '# typed: false' | xargs gsed -i 's|# typed: false||g'
2023-04-21 09:57:47 -07:00
Douglas Eichelberger
ba2d18db36
brew style --fix
2023-04-04 18:14:54 -07:00
Douglas Eichelberger
29f93fb6f2
Add tests
2023-04-04 18:14:54 -07:00
Douglas Eichelberger
f14cd8960a
Remove version_spec violation
2023-01-22 17:26:44 -08:00
Issy Long
72e48024f0
Fix (auto-correct) RuboCop Rspec/BeEq
offenses
2022-03-01 00:10:14 +00:00
Issy Long
6b76fd012a
Fix (auto-correct) RuboCop RSpec/BeNil
offenses
2022-03-01 00:10:10 +00:00
Sam Ford
d4c15a6d9d
Version: Add parser for hyphenated filenames
2021-06-16 14:16:57 -04:00
Rylan Polster
d5d7b6c3db
style: remove RSpec/MultipleDescribes violations
...
Co-authored-by: Nanda H Krishna <nanda.harishankar@gmail.com>
2021-02-01 20:30:51 -05:00
Rylan Polster
af40e072b0
style: remove RSpec/NamedSubject violations
2021-02-01 20:30:51 -05:00
souleater7
e50e3e4b22
Delete references to devel
2021-01-01 10:16:31 -08:00
Markus Reiter
24ae318a3d
Move type annotations into files.
2020-10-10 14:59:39 +02:00
Dustin Rodrigues
34cf999f20
version: support post versions
2020-10-05 08:44:03 -04:00
Seeker
4377a08b6e
version: allow implicitly converting tokens to strings
2020-08-28 10:25:52 -07:00
Markus Reiter
c53f362476
Refactor and document Version
.
2020-08-26 03:17:39 +02:00
Seeker
fb96ccf4c8
version: allow versions to be compared against NULL_TOKEN
2020-08-11 13:58:48 -07:00
Seeker
972b924cea
version: allow versions to be compared against tokens
2020-08-11 12:23:07 -07:00
Seeker
919e94bb92
test/version_spec: add major/minor/patch examples
2020-08-11 12:08:26 -07:00
Seeker
8b55f8f9a4
version: detect versions with final/full suffix
2020-08-09 13:38:06 -07:00
Seeker
144a454e34
test/version_spec: add special token comparison examples
2020-08-02 12:52:43 -07:00
Sam Ford
15bc09d916
version: add empty? method
2020-06-27 21:03:16 -04:00
EricFromCanada
b681d64e59
version: handle -stable in tag
2020-02-28 14:57:28 -05:00
Seeker
11ebc27e0a
version: parse tag if detecting version
2020-02-27 10:27:02 -08:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Claudia
5be80a78f6
Use Homebrew-controlled domain for Cask dummy URLs
...
In a number of Cask specs, the value of the `homepage` stanza is currently set
to https://example.com . As of 2018-11-28, the TLS certificate served by
example.com seems to be expired, possibly due to an oversight on ICANN’s side.
While the certificate is certainly going to be renewed soon, it would be
desirable for Homebrew’s test result to be less dependent on ICANN’s actions.
This commit changes the homepages of all test Casks to http://brew.sh , whose
domain and TLS certificate are both controlled by Homebrew.
2018-11-28 20:51:55 +01:00
Mike McQuaid
bcb1ec5499
Improve Homebrew/brew line length.
...
Use 124 max line length everywhere. Also, reduce tap max line length to
189 as Homebrew/homebrew-core has that as a maximum now. In future
Homebrew/homebrew-core will also be reduced to 124 maximum line length.
2018-09-02 16:15:09 +01:00
Markus Reiter
8b5fa6824b
Fix brew cleanup
.
2018-08-11 18:03:49 +02:00
Reto Kromer
d630f0885b
more secure protocols
2018-08-06 16:23:07 +02:00
Mike McQuaid
5e6c40e28f
Make versioned formulae regex more consistent.
...
Share the regex where possible and otherwise ensure they are identical.
2018-06-18 14:36:51 +01:00
Alyssa Ross
472d1a22c5
Fix comparison with Version::NULL on RHS
...
This was accounted for in Version::NULL.<=>, but not in Version#<=>,
so these could only be compared if Version::NULL was the left hand
side.
The check had to go above the check that `other` is a version because
`Version::NULL`'s anonymous class does not inherit from `Version`.
(The type check feels like it's probably a smell, but out of scope).
2018-05-26 14:45:53 +02:00
Markus Reiter
32d1f6db8b
Fix described_class
in custom matcher.
2018-03-27 11:05:57 +02:00
Mike McQuaid
5e1806e796
test: rubocop-rspec style auto-corrects.
...
There’s too many warnings to start enabling `rubocop-rspec` by default
but let’s at least apply the cleanups it does automatically.
2018-03-25 13:30:37 +01:00
Markus Reiter
9bee9ca575
Use “squiggly” heredocs.
2017-10-18 14:39:09 +02:00
Kevin Abel
4f55565677
Add test for php version in URL middle
2017-10-03 23:39:14 -05:00
Naoto Kaneko
5fa4d60c7b
Replace String#% with Kernel.#format
2017-09-22 17:53:48 +09:00
Naoto Kaneko
557105640b
Add a failure message to be_detected_from matcher
2017-09-22 16:57:27 +09:00
JCount
a5fff4547f
verion_spec: add test coverage for devel spec version style
...
also expand coverage for improved dash version style
2017-07-22 19:31:36 -04:00
JCount
0a5052141d
Merge pull request #2827 from JCount/version-improve-url-only-version-parsing
...
version: improve url-only version parsing
2017-06-30 11:37:28 -04:00
JCount
d50312ae6b
version_spec: add tests for char prefixed and w.x.y.z url-only styles
2017-06-30 10:53:24 -04:00
Ed Flanagan ed@flanagan.xyz
700b5e2738
Add PreToken composite
2017-06-27 03:17:23 -07:00
Reto Kromer
7e76740172
move before dash version style
2017-04-18 11:41:55 +02:00
Reto Kromer
0dc6871d22
add test
2017-04-17 18:11:11 +02:00
Markus Reiter
76acd1e6ee
Convert Version test to spec.
2017-02-27 16:27:07 +01:00