Markus Reiter
1b732ec7b2
Fix RuboCop offenses.
2020-11-16 02:05:29 +01:00
Rylan Polster
50890ebd51
fix Lint/DuplicateBranch style
2020-11-16 02:02:52 +01:00
Markus Reiter
da9289eff0
Add more type signatures.
2020-11-13 12:26:36 +01:00
EricFromCanada
3768b7a6e9
apidoc: update comment wording, punctuation, formatting
2020-11-06 00:21:02 -05:00
EricFromCanada
dddfbf80fc
apidoc: add/update yard tags
2020-11-06 00:16:35 -05: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
Mike McQuaid
3a91c37e66
Fix RuboCop checks.
2020-08-19 17:12:32 +01:00
Seeker
1aceab06fb
version: make major, minor, patch more idiomatic
2020-08-12 10:14:11 -07: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
f2112d6761
version: add helper methods to Token class
2020-08-11 12:22:14 -07:00
Seeker
0feb4532ff
version: add major, minor, patch methods
2020-08-11 12:08:24 -07:00
Seeker
8b55f8f9a4
version: detect versions with final/full suffix
2020-08-09 13:38:06 -07:00
Seeker
bcc4f1bb29
version: disallow nil value for Token#create
2020-08-02 13:13:32 -07:00
Seeker
ab18982a73
version: extend token comparisons to strings, integers, and nil
2020-08-02 12:32:31 -07:00
Sam Ford
0a1162ca21
Modify StringToken::PATTERN to fix comparison
2020-07-28 18:25:40 -04: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
Seeker
090a52a715
Fix detecting version from URL
2020-02-23 10:23:35 -08:00
Issy Long
1f6168fe8a
Change regexp.match?(string) to string.match?(regexp) everywhere
...
- Only try to call `.match?` on strings that aren't nil.
2019-10-13 23:22:51 +01:00
Issy Long
b78028b9c2
Auto-fix Performance/RegexpMatch offenses
2019-10-13 16:04:26 +01:00
Mike McQuaid
36dbad3922
Add frozen_string_literal to all files.
2019-04-20 13:27:36 +09:00
Mike McQuaid
d1ea6f38d3
Fix mutable constants violations.
2019-04-19 21:46:20 +09:00
Mike McQuaid
d64429a736
rubocop: enable Style/IfUnlessModifier.
2019-02-21 12:55:49 +00:00
Mike McQuaid
737b84b54b
brew style --fix
fixes.
2018-11-02 17:29:23 +00:00
Markus Reiter
c4d418e126
Use ActiveSupport’s #second
.
2018-10-07 23:10:56 +02:00
Viktor Szakats
a0d971a0d0
secure/fix URLs
2018-10-03 21:21:05 +00:00
Markus Reiter
e9b9ea49a1
Update to RuboCop 0.59.1.
2018-09-17 03:45:59 +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
Mike McQuaid
77e3e7e4d9
version: support to_i.
...
This is needed for existing MacOS::Xcode.version calls that relied on
this returning a string. It mirrors similar behaviour for to_f.
2017-11-05 15:39:43 +00:00
Markus Reiter
175ca909ee
Clean up code style and remove .rubocop_todo.yml
.
2017-10-08 16:10:37 +02:00
Kevin Abel
9d36096d68
Add version detection support for php URL
...
Pulls a semver from anywhere in the URL (not just stem).
2017-10-03 23:29:33 -05:00
JCount
1502e5b897
version: improve devel spec version parsing
...
term this 'devel spec version style';
also improve dash version style parsing
2017-07-22 19:28:19 -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
f87fadd4ee
version: improve parsing of url-only, non-filename versions
...
add support for styles prefixed with a r,v,V and an optional _ ,
and styles with four groups of digits, seperated by periods;
combinations of the two are also supported
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
Mike McQuaid
7a38bab333
Fixup all RuboCop warnings.
2017-05-29 18:43:18 +01:00
Markus Reiter
5828eefd01
Remove to_s
from some Pathname
s.
2017-05-08 13:37:28 +02:00
Reto Kromer
cb5316fc17
move before GitHub tarballs
2017-05-01 22:42:57 +02:00
Reto Kromer
3585dfd9bd
remove inner group
2017-04-23 20:59:02 +02:00
Reto Kromer
17aa90a2c5
remove inner uncaptured group
2017-04-23 20:52:40 +02:00
Reto Kromer
1e1ae204c2
move before lame-398-1
2017-04-18 11:11:37 +02:00
Reto Kromer
49c568a862
add date-based versioning
2017-04-14 11:04:18 +02:00
Viktor Szakats
cc8f029f22
secure urls + remove -k from in-doc curl command
2017-03-14 17:27:11 +00:00
Alyssa Ross
9e97eadccb
rubocop: trailing comma in multiline method calls
...
Discussed in
https://github.com/Homebrew/brew/pull/1987/files#r100693581 .
This was originally ommitted because it wasn't compatible with Ruby 1.8.
(See https://github.com/Homebrew/legacy-homebrew/pull/48144#r49928971 ).
2017-02-12 15:11:38 +00:00