chore(cargo): compilation without local overrides

Also checked in code for groupsmigration to allow others to test it
simply by checking out the right commit.
This commit is contained in:
Sebastian Thiel
2015-05-12 17:21:25 +02:00
parent f83dff672b
commit e434563215
8 changed files with 78 additions and 23 deletions

View File

@@ -25,6 +25,4 @@ cargo:
keywords: [protocol, web, api]
dependencies:
- url = "*"
- serde = ">= 0.3.0"
- serde_macros = "*"
- json-tools = ">= 0.3.0"

View File

@@ -27,7 +27,9 @@ cargo:
is_executable: YES
dependencies:
- strsim = "*"
- yup-hyper-mock = "*"
- serde = ">= 0.3.0"
- serde_macros = "*"
- clap = "*"
- |
[dependencies.yup-hyper-mock]
version = "*"
git = "https://github.com/Byron/yup-hyper-mock"
rev = "ee56de4dead136b3ca5a3eda6ca7057f9074e261"

View File

@@ -17,14 +17,30 @@ keywords = ["groupsmigration", "google", "cli"]
name = "groupsmigration1"
[dependencies]
hyper = ">= 0.4.0"
mime = "*"
yup-oauth2 = "*"
strsim = "*"
yup-hyper-mock = "*"
serde = ">= 0.3.0"
serde_macros = "*"
strsim = "*"
clap = "*"
[dependencies.yup-hyper-mock]
version = "*"
git = "https://github.com/Byron/yup-hyper-mock"
rev = "ee56de4dead136b3ca5a3eda6ca7057f9074e261"
# Needed for latest fix in macros !
[dependencies.hyper]
version = ">= 0.4.0"
git = "https://github.com/hyperium/hyper"
rev = "871f37a5605d433e5699ed2f16631001d86d7805"
# to adapt to hyper changes ...
[dependencies.yup-oauth2]
version = "*"
git = "https://github.com/Byron/yup-oauth2"
rev = "94d5b7c2cac02ad67da8504504364b3081a9a866"
[dependencies.google-groupsmigration1]
path = "../groupsmigration1"

View File

@@ -13,6 +13,15 @@ If data-structures are requested, these will be returned as pretty-printed JSON,
Everything else about the *Groups Migration* API can be found at the
[official documentation site](https://developers.google.com/google-apps/groups-migration/).
# Downloads
You can download the pre-compiled 64bit binaries for the following platforms:
* ![icon](http://megaicons.net/static/img/icons_sizes/6/140/16/ubuntu-icon.png) [ubuntu](http://dl.byronimo.de/google.rs/cli/0.2.0/ubuntu/groupsmigration1.tar.gz)
* ![icon](http://hydra-media.cursecdn.com/wow.gamepedia.com/a/a2/Apple-icon-16x16.png?version=25ddd67ac3dd3b634478e3978b76cb74) [osx](http://dl.byronimo.de/google.rs/cli/0.2.0/osx/groupsmigration1.tar.gz)
Find the source code [on github](https://github.com/Byron/google-apis-rs/tree/master/gen/groupsmigration1-cli).
# Usage
This documentation was generated from the *Groups Migration* API at revision *20140416*. The CLI is at version *0.2.0*.

View File

@@ -61,9 +61,11 @@ impl<'n, 'a> Engine<'n, 'a> {
}
}
if !found {
err.issues.push(CLIError::UnknownParameter(key.to_string(),
Vec::new() + &self.gp + &[]
));
err.issues.push(CLIError::UnknownParameter(key.to_string(),
{let mut v = Vec::new();
v.extend(self.gp.iter().map(|v|*v));
v.extend([].iter().map(|v|*v));
v } ));
}
}
}

View File

@@ -15,10 +15,22 @@ keywords = ["groupsmigration", "google", "protocol", "web", "api"]
[dependencies]
hyper = ">= 0.4.0"
mime = "*"
yup-oauth2 = "*"
url = "*"
serde = ">= 0.3.0"
serde_macros = "*"
url = "*"
json-tools = ">= 0.3.0"
# Needed for latest fix in macros !
[dependencies.hyper]
version = ">= 0.4.0"
git = "https://github.com/hyperium/hyper"
rev = "871f37a5605d433e5699ed2f16631001d86d7805"
# to adapt to hyper changes ...
[dependencies.yup-oauth2]
version = "*"
git = "https://github.com/Byron/yup-oauth2"
rev = "94d5b7c2cac02ad67da8504504364b3081a9a866"

View File

@@ -668,12 +668,14 @@ impl<'a, A> ResumableUploadHelper<'a, A>
if self.delegate.cancel_chunk_upload(&range_header) {
return None
}
match self.client.post(self.url)
.header(range_header)
.header(ContentType(self.media_type.clone()))
.header(UserAgent(self.user_agent.to_string()))
.body(&mut section_reader)
.send() {
// workaround https://github.com/rust-lang/rust/issues/22252
let res = self.client.post(self.url)
.header(range_header)
.header(ContentType(self.media_type.clone()))
.header(UserAgent(self.user_agent.to_string()))
.body(&mut section_reader)
.send();
match res {
Ok(mut res) => {
if res.status == StatusCode::PermanentRedirect {
continue

View File

@@ -23,12 +23,26 @@ name = "${util.program_name()}"
% endif
[dependencies]
hyper = ">= 0.4.0"
mime = "*"
yup-oauth2 = "*"
serde = ">= 0.3.0"
serde_macros = "*"
% for dep in cargo.get('dependencies', list()):
${dep}
% endfor
# Needed for latest fix in macros !
[dependencies.hyper]
version = ">= 0.4.0"
git = "https://github.com/hyperium/hyper"
rev = "871f37a5605d433e5699ed2f16631001d86d7805"
# to adapt to hyper changes ...
[dependencies.yup-oauth2]
version = "*"
git = "https://github.com/Byron/yup-oauth2"
rev = "94d5b7c2cac02ad67da8504504364b3081a9a866"
% if make.depends_on_suffix is not None:
<% api_name = util.library_name() %>\