google_apps 0.3.5 → 0.3.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/google_apps/transport.rb +3 -2
  2. metadata +2 -2
@@ -117,8 +117,9 @@ module GoogleApps
117
117
  # get 'endpoint', 'username'
118
118
  #
119
119
  # get returns the HTTP response received from Google.
120
- def get(endpoint, id)
121
- uri = URI(instance_variable_get("@#{endpoint.to_s}") + "/#{id}")
120
+ def get(endpoint, id = nil)
121
+ id ? uri = URI(instance_variable_get("@#{endpoint.to_s}") + "/#{id}") : uri = URI(instance_variable_get("@#{endpoint.to_s}"))
122
+ #uri = URI(instance_variable_get("@#{endpoint.to_s}") + "/#{id}")
122
123
  @request = Net::HTTP::Get.new(uri.path)
123
124
  set_headers :user
124
125
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google_apps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-04-17 00:00:00.000000000 Z
12
+ date: 2012-04-30 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Library for interfacing with Google Apps' Domain and Application APIs
15
15
  email: