Commit Graph

1071 Commits

Author SHA1 Message Date
Bob Aman d346426d4d Making the commands line up in the --help screen.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@91 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 00:36:20 +00:00
Bob Aman 00eb093580 Significant improvements to the CLI.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@90 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-22 00:36:15 +00:00
Bob Aman 0986b4e64f Refactored CLI tool to be more maintainable.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@89 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-20 23:49:15 +00:00
Bob Aman 7a343496ac Added redirect to buzz explore page.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@88 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-19 21:23:57 +00:00
Bob Aman 2140cbf244 Excluding .rvm from code coverage.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@78 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-14 00:15:52 +00:00
Bob Aman 0246ecf1f5 Updating README with installation instructions.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@77 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-14 00:05:32 +00:00
Bob Aman c3ad4f3498 Updating README with installation instructions.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@76 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-14 00:04:36 +00:00
Bob Aman 9114d45e53 Improving the handling of missing dependencies.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@75 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-13 21:28:58 +00:00
Bob Aman f92c552460 Added rack dependency.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@72 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-13 21:17:16 +00:00
Bob Aman 5572a73fdf Fixed incompatibilities with Ruby 1.8.6
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@71 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-13 21:16:07 +00:00
Bob Aman 61fc497f2c Added interactive session command.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@69 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-13 00:57:04 +00:00
Bob Aman 3eb108acc9 RSpec had a new major release. We're not ready to upgrade yet.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@68 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 23:40:25 +00:00
Bob Aman 6b9c146ebc Fixing dependency issues.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@67 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 23:26:41 +00:00
Bob Aman 73002ccc14 Updating addressable dependency.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@66 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 23:07:40 +00:00
Bob Aman be265da6d4 Updating CLI and explorer to match recent changes.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@65 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 23:07:36 +00:00
Bob Aman ecf330f177 Added check for major.minor.tiny version format.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@61 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 20:41:14 +00:00
Bob Aman 3bd7056e86 Updated version sorting code and added authorization shortcuts.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@60 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 20:39:09 +00:00
Bob Aman c183d6ddfd Updated to handle content types correctly.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@54 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 02:09:14 +00:00
Bob Aman 733655684a First pass at CLI for Ruby client.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@53 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-12 01:53:40 +00:00
Bob Aman 4b7fd4490c Added Sinatra API explorer example app.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@52 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-09 02:41:47 +00:00
Bob Aman e50442091c Fixed issue with invalid type checking.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@51 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-09 02:41:38 +00:00
Bob Aman 638f8a810c Extra indentation removed.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@50 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:44:14 +00:00
Bob Aman 35d35f49ed Whoops, example was on the wrong method.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@49 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:38:51 +00:00
Bob Aman 3fe9fec711 Added example to Service#to_h method.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@48 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:37:57 +00:00
Bob Aman 793e983fbe Broke the examples in the README up a bit to be less intimidating.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@47 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:36:02 +00:00
Bob Aman ddc49fdd2b Fixed example in README.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@46 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:12:38 +00:00
Bob Aman c67444734d Added example for generating request.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@45 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:12:34 +00:00
Bob Aman de394a55c6 Updated example.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@44 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 22:12:27 +00:00
Bob Aman e26ebaf981 Finished documentation.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@43 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-07 00:02:22 +00:00
Bob Aman 82d480e924 Fixed minor error in YARD documentation format.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@42 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-05 23:50:27 +00:00
Bob Aman 61c4c034b4 Removed :nodoc: directives, as they are not understood by YARD.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@41 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-05 23:49:00 +00:00
Bob Aman a6e80cbb88 Added documentation to the remainder of the API client methods.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@40 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-10-05 23:46:43 +00:00
Bob Aman 99529740bc Improving testing and coverage.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@39 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-30 21:57:13 +00:00
Bob Aman c7ba3a5df0 Improving testing and coverage.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@38 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-30 21:46:08 +00:00
Bob Aman 7e48c8913c Improving testing and coverage.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@37 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-30 21:33:23 +00:00
Bob Aman bbcc946f33 Improved coverage in tests and fixed a URI join bug.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@36 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-28 23:09:07 +00:00
Bob Aman f96412cf23 Reorganized some of the code and removed unnecessary stuff.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@35 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-18 00:30:02 +00:00
Bob Aman 3a9d58108a Signed requests can now be generated and transmitted by the client.
Example code:
    require 'google/api_client'
    client = Google::APIClient.new(:service => 'buzz')
    client.authorization.fetch_temporary_credential!(
      :additional_parameters => {
        'scope' => 'https://www.googleapis.com/auth/buzz'
      }
    )
    client.authorization.authorization_uri
    # Redirect user here
    client.authorization.fetch_token_credential!(:verifier => '12345')
    response = client.execute(
      'buzz.activities.list',
      'scope' => '@self', 'userId' => '@me', 'alt' => 'json'
    )
    status, headers, body = response

git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@34 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-16 23:40:08 +00:00
Bob Aman f462322be5 URI template expansion works.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@33 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-16 19:12:52 +00:00
Matt Pokrzywa bbe6cec303 skeleton for api request/respone abstraction
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@32 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-14 03:39:23 +00:00
bobaman@google.com 719e576051 Updated to use Signet.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@31 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-13 21:54:43 +00:00
bobaman@google.com 4787954779 Removed unneeded code.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@30 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-13 21:54:35 +00:00
bobaman@google.com 5cdee47aba Updating dependencies.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@29 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-13 21:54:26 +00:00
bobaman@google.com 9d68bf115c Removing transport and OAuth code that is no longer needed.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@28 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-09-13 21:54:18 +00:00
bobaman@google.com 541054e88d Made the builder more flexible by adding a callback parameter.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@27 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-24 21:59:53 +00:00
bobaman@google.com 5b71f47a4d Added a request proxy for our HTTP request representations.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@26 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-24 21:26:21 +00:00
bobaman@google.com d61916b110 Added a rudimentary implementation of a MethodBuilder.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@25 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-24 21:26:12 +00:00
mattpok@google.com 003b046116 added more json parser tests
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@24 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-24 19:22:53 +00:00
mattpok@google.com 1b232831c4 added basic json parser support and tests
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@23 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-23 22:07:50 +00:00
bobaman@google.com bc844db311 Initial implementation of HTTP.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@22 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
2010-08-19 23:21:45 +00:00