Added option to support manually specified discovery URI.
git-svn-id: https://google-api-ruby-client.googlecode.com/svn/trunk@101 c1d61fac-ed7f-fcc1-18f7-ff78120a04ef
This commit is contained in:
1 parent
b0846efa4a
commit
f63bf8199f
4 files changed
+34
-1
No files matched your search
@@ -155,7 +155,11 @@ module Google
|
||||
split_version = lambda do |version|
|
||||
dotted_version = version[/^v?(\d+(.\d+)*)-?(.*?)?$/, 1]
|
||||
suffix = version[/^v?(\d+(.\d+)*)-?(.*?)?$/, 3]
|
||||
[dotted_version.split('.').map { |v| v.to_i }, suffix]
|
||||
if dotted_version && suffix
|
||||
[dotted_version.split('.').map { |v| v.to_i }, suffix]
|
||||
else
|
||||
[[-1], version]
|
||||
end
|
||||
end
|
||||
self_sortable, self_suffix = split_version.call(self.version)
|
||||
other_sortable, other_suffix = split_version.call(other.version)
|
||||
|
||||
Reference in new issue
Block a user