usergrid_iron 0.0.9 → 0.9.0
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.
- data/README.md +4 -0
- data/lib/usergrid/core/resource.rb +1 -2
- data/lib/usergrid/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -181,6 +181,10 @@ usergrid_iron/spec/spec_settings.yaml to match.)
|
|
181
181
|
|
182
182
|
## Release notes
|
183
183
|
|
184
|
+
### 0.9.0
|
185
|
+
* Backend changes
|
186
|
+
1. login function now uses POST instead of GET
|
187
|
+
|
184
188
|
### 0.0.9
|
185
189
|
* Backend changes
|
186
190
|
1. made Resource::response accessor public to support ugc
|
@@ -19,8 +19,7 @@ module Usergrid
|
|
19
19
|
# gets user token and automatically set auth header for future requests
|
20
20
|
# precondition: resource must already be set to the correct context (application or management)
|
21
21
|
def login(username, password)
|
22
|
-
|
23
|
-
response = self['token'].get({ params: params })
|
22
|
+
response = self['token'].post grant_type: 'password', username: username, password: password
|
24
23
|
self.auth_token = response.data['access_token']
|
25
24
|
user_uuid = response.data['user']['uuid']
|
26
25
|
@current_user = self["/users/#{user_uuid}"].get.entity
|
data/lib/usergrid/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: usergrid_iron
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.9.0
|
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: 2013-
|
12
|
+
date: 2013-02-22 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rest-client
|
@@ -149,7 +149,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
149
149
|
version: '0'
|
150
150
|
segments:
|
151
151
|
- 0
|
152
|
-
hash:
|
152
|
+
hash: -824551858542229822
|
153
153
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
154
154
|
none: false
|
155
155
|
requirements:
|
@@ -158,7 +158,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
158
158
|
version: '0'
|
159
159
|
segments:
|
160
160
|
- 0
|
161
|
-
hash:
|
161
|
+
hash: -824551858542229822
|
162
162
|
requirements: []
|
163
163
|
rubyforge_project:
|
164
164
|
rubygems_version: 1.8.24
|