chore(code): update code to latest version

This commit is contained in:
Sebastian Thiel
2016-07-17 13:05:43 +02:00
parent 091d3f7e81
commit ae276438ae
927 changed files with 2369 additions and 2884 deletions

View File

@@ -1,6 +1,5 @@
#[cfg(feature = "with-syntex")]
#[cfg(feature = "with-serde-codegen")]
mod inner {
extern crate syntex;
extern crate serde_codegen;
use std::env;
@@ -12,13 +11,11 @@ mod inner {
let src = Path::new("src/lib.rs.in");
let dst = Path::new(&out_dir).join("lib.rs");
let mut registry = syntex::Registry::new();
serde_codegen::register(&mut registry);
registry.expand("google-script1", &src, &dst).unwrap();
serde_codegen::expand(&src, &dst).unwrap();
}
}
#[cfg(not(feature = "with-syntex"))]
#[cfg(not(feature = "with-serde-codegen"))]
mod inner {
pub fn main() {}
}

View File

@@ -2,7 +2,7 @@
// This file was generated automatically from 'src/mako/api/lib.rs.mako'
// DO NOT EDIT !
//! This documentation was generated from *script* crate version *0.1.13+20150922*, where *20150922* is the exact revision of the *script:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.13*.
//! This documentation was generated from *script* crate version *0.1.14+20150922*, where *20150922* is the exact revision of the *script:v1* schema built by the [mako](http://www.makotemplates.org/) code generator *v0.1.14*.
//!
//! Everything else about the *script* *v1* API can be found at the
//! [official documentation site](https://developers.google.com/apps-script/execution/rest/v1/run).
@@ -185,5 +185,5 @@
#[cfg(feature = "nightly")]
include!("lib.rs.in");
#[cfg(feature = "with-syntex")]
#[cfg(feature = "with-serde-codegen")]
include!(concat!(env!("OUT_DIR"), "/lib.rs"));

View File

@@ -169,7 +169,7 @@ impl<'a, C, A> Script<C, A>
Script {
client: RefCell::new(client),
auth: RefCell::new(authenticator),
_user_agent: "google-api-rust-client/0.1.13".to_string(),
_user_agent: "google-api-rust-client/0.1.14".to_string(),
}
}
@@ -178,7 +178,7 @@ impl<'a, C, A> Script<C, A>
}
/// Set the user-agent header field to use in all requests to the server.
/// It defaults to `google-api-rust-client/0.1.13`.
/// It defaults to `google-api-rust-client/0.1.14`.
///
/// Returns the previously set user-agent.
pub fn user_agent(&mut self, agent_name: String) -> String {