digant-samcomtech / google-api-php-client

Automatically exported from code.google.com/p/google-api-php-client
Apache License 2.0
0 stars 0 forks source link

Add version number to the library (in Google_Client class or where appropriate) #307

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.$ga_client = new Google_Client();
2.echo $ga_client->version;
3.

What is the expected output? What do you see instead?

0.6.1 (or whatever the current version is)

What version of the product are you using? On what operating system?

0.6.1 (which I only know from looking at makeRelease.sh) 

Please provide any additional information below.

I think having the library's version in the Google_Client class might make it 
easier when including it in bigger projects to monitor.  I could parse 
makeRelease.sh to fetch it but that seems unnecessarily clunky.

Another approach to solve this might be to implement the composer package for 
it per the request in this issue: 
https://code.google.com/p/google-api-php-client/issues/detail?id=187

Original issue reported on code.google.com by Partners...@gmail.com on 19 Apr 2013 at 4:32

GoogleCodeExporter commented 9 years ago

Original comment by ianbar...@google.com on 23 Apr 2013 at 8:29

GoogleCodeExporter commented 9 years ago
There's currently no way to tell what version of this library is installed on a 
system. If you didn't install it yourself, you are left with running diffs to 
see which version you have.

Having a version function would be very useful, but it should also be in a text 
file that can be easily parsed.  I'm trying to integrate this with Drupal's 
libraries module that manages external libraries.  In version 0.6.2, the only 
place that has a version number is Google_HttpRequest and it's not correct: 
http://code.google.com/p/google-api-php-client/source/browse/tags/0.6.2/src/io/G
oogle_HttpRequest.php#27

Drupal's libraries module is passed settings of what file to parse and what 
regex pattern to use when looking for the version of a library: 
http://code.google.com/p/google-api-php-client/issues/detail?id=307  PHP's 
version_compare() is then used to check for the correct version.

Original comment by ben...@gmail.com on 25 Jun 2013 at 4:34

GoogleCodeExporter commented 9 years ago
This issue tracker is now closing. Development on the Google PHP client library 
moved to GitHub with the release of the 1.0.0-alpha, and now the 1.0 branch has 
reached beta status there will be no further releases of the 0.6 branch of the 
library. 

Please take a look at the latest version on 
https://github.com/google/google-api-php-client

For information on migrating, please take a look at this guide: 
https://developers.google.com/api-client-library/php/guide/migration

For general library support please ask a question on StackOverflow: 
http://stackoverflow.com/questions/tagged/google-api-php-client

If you are looking for support with a specific API, please contact the team 
working with that API via StackOverflow or their preferred support mechanism. 

If your issue still exists with the new version of the library, please raise a 
bug in the GitHub issue tracker with a minimal code sample. 

Thanks!

Original comment by ianbar...@google.com on 22 Jan 2014 at 4:53