Commit Graph

757 Commits

Author SHA1 Message Date
Sebastian Thiel
f80ef206bc Bump version prior to release 2019-12-09 09:08:42 +08:00
Sebastian Thiel
eb3a6ef578 Truncate all files we open to fix #240
Otherwise it's possible to leave bytes related to a previous version
of the file in tact, tailing the newly written content.
This in turn leads to malformed json when tokens are rewritten.
2019-09-16 07:53:15 +02:00
Sebastian Thiel
11db47ca2a Regenerate all code
Related to #239
2019-09-09 08:31:59 +02:00
Sebastian Thiel
bcc72e4fc1 Fields in Error related structs are now accessible
Fixes #239
2019-09-09 08:12:17 +02:00
Sebastian Thiel
3c1e509a25 Keep track of release of storage1
[skip CI]
2019-08-31 11:56:04 +02:00
Sebastian Thiel
114b9be7e1 Related to #238: publish google-storage1
It allows to control tls more easily.
I want to avoid to spam Crates.io by publishing only
the APIs that are specifically requested.
2019-08-31 11:52:28 +02:00
Sebastian Thiel
d3b047c880 Another python version - probably it doesn't work thanks to openssl 2019-08-29 10:31:21 +02:00
Sebastian Thiel
68311276ab Try another python version 2019-08-29 10:31:21 +02:00
Sebastian Thiel
ecccda15d5 Try a more recent python version 2019-08-29 10:31:21 +02:00
Sebastian Thiel
abb2fa9a81 Don't try to install pyenv - it's now pre-installed 2019-08-29 10:31:21 +02:00
Tyler Hawkes
f7ac5ebe36 Expose features from yup-oauth2 2019-08-29 10:31:21 +02:00
Sebastian Thiel
8cf36a3504 Finalize release 1.0.10 - all worked well 2019-07-07 22:16:05 +08:00
Sebastian Thiel
770f01826f On the way to publishing 1.0.10 2019-07-06 12:05:16 +08:00
Sebastian Thiel
8c1ca2aa9b update version to 1.0.10; republish 4 select crates 2019-07-05 19:09:55 +08:00
Sebastian Thiel
82e90709fc Finish publishing 1.0.9
Unfortunately fixes were applied while other crates were published,
and the only safe thing to do is to republish everything as a new
version number.
2019-07-05 18:45:16 +08:00
Sebastian Thiel
5b370e4190 Align CLI generator with changes in string type handling
There was some duplicated logic here.
2019-07-05 18:39:18 +08:00
Sebastian Thiel
aceb717ead blacklist osconfig 2019-07-05 18:13:41 +08:00
Sebastian Thiel
03bfd3833b More releases 2019-07-05 18:10:40 +08:00
Sebastian Thiel
94deb7433f Now cargo-doc can be run on all libraries 2019-07-05 17:40:13 +08:00
Sebastian Thiel
4ceeac6320 And once again, python string handling bit me...
...so sick of it. No python, ever again.
Why, but why did I chose Mako back then :D?
2019-07-05 17:26:22 +08:00
Sebastian Thiel
3365d9fba1 Regen all remaining APIs with preproc - more changes than anticipated 2019-07-05 17:05:15 +08:00
Sebastian Thiel
f33fae47e9 Add Rust preprocessor to handle code examples gracefully
Fixes #213
2019-07-05 17:00:56 +08:00
Sebastian Thiel
8cb73d66c2 Add simple preprocessor to handle descriptions interpreted by cargo doc
This seemed easiest, especially since I also am the author of
pulldown-cmark-to-cmark :D.

Funny how things fit together sometimes. And so much better than
if I would have tried the same in pure python.
2019-07-05 14:51:30 +08:00
Sebastian Thiel
85f080ce5e Publishing state thus far - now running into publish limit
Email to help@crates.io was sent.
2019-07-05 14:07:03 +08:00
Sebastian Thiel
7335a1939f Regen APIs after removal of breaking special case for Rust types
I can just hope it's breaking everywhere and was never working, as
opposed to a special bugfix for just a single API at the time.
2019-07-05 12:20:02 +08:00
Sebastian Thiel
24b5faa417 Omit special case for type inference; fixes #180 2019-07-05 11:57:05 +08:00
Sebastian Thiel
e42ebc0c2b Bump version to 1.0.9; update JSON schemas; add new APIs 2019-07-05 11:32:35 +08:00
Sebastian Thiel
99e97ceece Assure API descriptions can contain '"' characters 2019-07-05 11:16:57 +08:00
Sebastian Thiel
25ba809a09 Support types with '-' 2019-07-05 10:44:24 +08:00
Sebastian Thiel
7a44b3eae1 Unconditionally re-export everything in cmn.rs
Related to #218
2019-07-05 10:17:03 +08:00
Sebastian Thiel
a5135985d2 Assure makefile dependency generation doesn't fail if a JSON file doesn't exist locally
For some reason, 'docs-v1' JSON file wasn't present in the repo, and
thus makefile couldn't be generated from scratch.

Now we just ignore this particular error.
2019-07-05 09:47:45 +08:00
Amy K
a2f5625fe3 docs: add lang attribute to docs index
Use the W3 standard "lang" attribute on the "html" tag to provide context for browsers and screen
readers.
2019-07-03 18:27:55 +08:00
Chris Pick
499416c011 fix(rust): teach remove_json_null_values arrays
change `remove_json_null_values()` to properly remove nulls from and recurse in to arrays
google_firestore1_beta1's `CommitRequest` contains an array of `Write` objects which can ultimately
contain `Value` members that need to have nulls removed to avoid sending multiple types of values
which generates a 400 response

fixes calls to google_firestore1_beta1's `hub.projects().databases_documents_commit()`
2019-07-03 18:27:27 +08:00
Guy Taylor
6d0f4cac7c Pin yup-oauth2 version to 1.x
This ensures the yup-oauth2 version stays with the 1.x major version
allowing the yup-oauth2 project to make a breaking change via a 2.x
major version.

Ref: https://github.com/dermesser/yup-oauth2/pull/86
2019-07-03 18:25:01 +08:00
Guy Taylor
2ad9f3781d Regen all APIs from new JSON 2019-07-03 18:21:35 +08:00
Guy Taylor
86a884c48b Update JSON files 2019-07-03 18:21:35 +08:00
Guy Taylor
7467f81594 Sort JSON files to minimise git diffs
Sort and format JSON files to remove/minimise any diffs between
update-json runs. This also acts as a JSON validator to error when the
downloaded JSON file has been truncated.
2019-07-03 18:21:35 +08:00
Guy Taylor
93dba234dd Add logging and switch to curl
I am getting many truncated JSON file that then do not parse. More from
wget to curl to see if this helps.
2019-07-03 18:21:35 +08:00
Guy Taylor
57a7ee37e5 Always run Python in the Venv context 2018-12-21 13:05:40 +01:00
Lyle Mantooth
c4055af677 docs(sheets): fix build errors
Rustdoc assumes indented code is Rust code, but when it isn't, the docs
fail to build. The Sheets API has Java, Objective-C, and JavaScript
examples in its descripiton. Wrap these examples in language-tagged
triple-backticks to prevent rustdoc from trying to compile them.

Fixes #213.
2018-12-21 13:02:10 +01:00
gheoan
43b953445e docs(mako): fix typo 2018-12-21 13:00:04 +01:00
Sebastian Thiel
3eca215447 Add codecov integration 2018-10-28 12:16:33 +01:00
Guy Taylor
9174c01f29 Improve .gitignore
Add more Python specific git ignores as more Python libaries to run (e.g
code coverage)
2018-10-28 11:39:29 +01:00
Guy Taylor
73db014fe1 Wire in Python code coverage testing
Wire in pytest-cov to give code coverage results when running tests.
This does not publish the information curently.
2018-10-28 11:39:29 +01:00
Guy Taylor
4faa5f6203 Add first type inferance tests
This slightly changes to code under test by:
* Adding __init__.py files to create modules
* Converts for a.b to a['b'] to allow object or dict types
2018-10-28 11:39:29 +01:00
Guy Taylor
a793af5586 Make utils.method_params private as it is not used.
This removed it been improted into Mako templates and renames it
_method_params to make it clear.
2018-10-28 11:39:29 +01:00
Guy Taylor
ca11d495fb Merge pull request #207 from TheBiggerGuy/python_testing
Improve Python testing by using PyTest
2018-10-21 22:48:43 +01:00
Guy Taylor
081cceecb7 Wire Python testing into Travis 2018-10-21 22:37:39 +01:00
Guy Taylor
9867b260e1 Improve Python testing
Introduce pytest, wire it into Make and convert previous tests.

Note this is not wired into Travis
2018-10-21 22:37:39 +01:00
Guy Taylor
19e9943279 Move to Python requirements.txt file
This also links the requirments.txt file to the Venv via Make. So any
change to it will trigger the Make rule to install the new packages.
2018-10-21 22:36:19 +01:00