Commit Graph

3008 Commits

Author SHA1 Message Date
Sebastian Thiel
03e191729d Merge branch 'fix_plurals' 2022-11-30 09:28:55 +01:00
Sebastian Thiel
5f601f8907 Merge branch 'update_yup_oauth' 2022-11-30 07:32:46 +01:00
Gary Coady
bd24ea872a Improve handling of plurals in generator.
The generator tries to turn plural into singular nouns.
However, some words turn out badly, including:
 - Addresse (from Addresses)
 - Prefixe (from Prefixes)
 - Bookshelve (from Bookshelves)
 - Sery (from Series)

By using a library, we can get a slightly better outcome.
I've added an exception for "Data", because seeing that
turned into "Datum" is a bit jarring.
2022-11-29 22:51:05 +01:00
Gary Coady
c6039c085d Update yup-oauth2 to 8.0.0. 2022-11-29 19:10:51 +01:00
Sebastian Thiel
d8a341965b publish markers 2022-10-20 13:38:03 +08:00
Sebastian Thiel
a9bc250818 Release google-drive3-cli v5.0.2-beta-1+20220225 google-drive3-cli-v5.0.2-beta-1+20220225 2022-10-20 13:37:07 +08:00
Sebastian Thiel
6be945b675 Release google-drive3 v5.0.2-beta-1+20220225 google-drive3-v5.0.2-beta-1+20220225 2022-10-20 13:36:15 +08:00
Sebastian Thiel
2f38895f83 update common dependencies to latest version
There were some (breaking) changes in these dependencies and the
required versions changed.

On the bright side, both common crates are now in the 5.0 range.
2022-10-20 13:35:14 +08:00
Sebastian Thiel
83072adb69 Release google-clis-common v5.0.0 google-clis-common-v5.0.0 2022-10-20 13:32:01 +08:00
Sebastian Thiel
065bd8d1b1 update apis-common crate changelog prior to release 2022-10-20 13:31:31 +08:00
Sebastian Thiel
ca8ad69d91 Release google-apis-common v5.0.1 google-apis-common-v5.0.1 2022-10-20 13:29:10 +08:00
Sebastian Thiel
48226e1923 regen drive3 prior to release 2022-10-20 13:23:21 +08:00
Sebastian Thiel
7e0cb448ef bump version to 5.0.2-beta-1 2022-10-20 13:23:05 +08:00
Sebastian Thiel
d202c95aa4 Merge branch 'refactor' 2022-10-20 13:19:10 +08:00
philippeitis
b706de7a95 Add default impl to InvalidOptionsError 2022-10-19 20:47:19 -07:00
philippeitis
4bdd77a52f cargo fmt 2022-10-19 20:42:56 -07:00
philippeitis
9285942f3d impl std::fmt::Display for FieldMask 2022-10-19 20:42:47 -07:00
philippeitis
f4317a2968 cargo clippy --fix google-clis-common 2022-10-19 20:39:45 -07:00
philippeitis
85e0d284d1 Update mime dependency in google-clis-common 2022-10-19 20:35:56 -07:00
philippeitis
4cca633f92 Apply cargo clippy --fix 2022-10-19 20:31:31 -07:00
philippeitis
05fc10b0c4 Fix clippy lint in preproc 2022-10-19 20:30:19 -07:00
philippeitis
9c9c17b923 Fix default values in CLI crates 2022-10-19 20:30:04 -07:00
philippeitis
63793b55a6 Add FromStr impl for FieldMask
This improves compatibility with the CLI crates
2022-10-19 20:29:39 -07:00
Sebastian Thiel
4115ede229 Also test CLI generation, which was notably absent from CI previously
It's about time this is (re)added as a regression already occurred.
2022-10-20 11:08:20 +08:00
Sebastian Thiel
d9fea508ea enable clippy and make it to fail CI on warnings.
This should improve overall code quality and reduce guess work
I typically do, being used to running `clippy` on my other projects.
2022-10-20 11:03:56 +08:00
philippeitis
852bd70ecb Move error checking earlier 2022-10-19 18:42:15 -07:00
philippeitis
83007472c9 Fix stringly typed upload protocol 2022-10-19 18:25:58 -07:00
philippeitis
0ad3b1258f Refactor Params into external struct
Reduces file size of generated library:

```
cargo build --release
   Compiling google-compute1 v5.0.1+20220224 (/home/philippe/PycharmProjects/google-apis-rs/gen/compute1)
    Finished release [optimized] target(s) in 35.15s
```
164 MB resulting lib (4MB reduction)
2022-10-19 17:10:24 -07:00
philippeitis
9fa31bd034 Don't call .to_string() on string values 2022-10-19 15:44:48 -07:00
philippeitis
a6e763f495 Use top-level constants for upload protocols 2022-10-19 15:17:08 -07:00
philippeitis
cfa6958aa0 Add UploadProtocol enum to remove string types 2022-10-19 15:13:20 -07:00
philippeitis
ae3e6a232b Simplify search for alt=json param 2022-10-19 15:00:16 -07:00
philippeitis
eb072087de Use Cow for parameter replacement 2022-10-18 20:04:09 -07:00
philippeitis
925d7b0376 Reduce number of clones 2022-10-18 19:28:48 -07:00
philippeitis
b20e630723 Merge pull request #384 from philippeitis/update-mime
Update mime dependency
2022-10-19 01:05:53 +00:00
philippeitis
f6b195df4f Make MultiPartReader::mime_type associated fn 2022-10-18 16:58:26 -07:00
philippeitis
616b324a77 Update mime 2022-10-18 16:25:08 -07:00
Sebastian Thiel
fb884e193a Merge branch 'auth-refactor' 2022-10-18 15:50:11 +08:00
Sebastian Thiel
0855fc3a28 Also validate crates build without default features
Note that tests can't work without default features as they assume
them to exist, and we have to chose one, going for the one most
users will see.
2022-10-18 15:45:32 +08:00
philippeitis
7a114a6d1c Update documentation 2022-10-16 21:57:25 -07:00
philippeitis
c6439ee165 Remove .expect() 2022-10-16 21:38:06 -07:00
philippeitis
4d30072c91 docs: min 1 try + retries in example 2022-10-16 21:29:10 -07:00
philippeitis
a375b710b1 Use Result<Option<_>, _> 2022-10-16 21:26:21 -07:00
philippeitis
1132b542d2 More correct GetToken docs 2022-10-16 17:28:29 -07:00
philippeitis
02dbcb9782 Fix lib.rs docs 2022-10-16 17:25:46 -07:00
philippeitis
7ca7f1cafd Make yup-oauth2 optional 2022-10-16 17:19:10 -07:00
philippeitis
50dd53a877 Document auth.rs 2022-10-16 17:04:20 -07:00
philippeitis
32110d6970 Return Option<String> from GetToken::get_token instead of Result<...> 2022-10-16 16:35:34 -07:00
Sebastian Thiel
94f4bb3361 marker after releasing drive3 5.0.1 2022-10-16 20:37:50 +08:00
Sebastian Thiel
d75681d4c2 Release google-drive3-cli v5.0.1+20220225 google-drive3-cli-v5.0.1+20220225 2022-10-16 20:36:31 +08:00