yamwow 0.0.15 → 0.0.16
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/lib/yamwow/facade.rb +4 -0
- data/lib/yamwow/requests/current_user_request.rb +18 -0
- data/lib/yamwow/response.rb +1 -2
- metadata +5 -4
data/lib/yamwow/facade.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
#GET https://www.yammer.com/api/v1/users/current.json
|
2
|
+
|
3
|
+
require_relative '../response'
|
4
|
+
|
5
|
+
module YamWow
|
6
|
+
class CurrentUserRequest
|
7
|
+
|
8
|
+
def initialize(client)
|
9
|
+
@client = client
|
10
|
+
end
|
11
|
+
|
12
|
+
def send
|
13
|
+
user = @client.get_other 'users/current.json'
|
14
|
+
Response.new user
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
data/lib/yamwow/response.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yamwow
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.16
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-02-
|
12
|
+
date: 2013-02-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: yam
|
16
|
-
requirement: &
|
16
|
+
requirement: &70239368001200 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70239368001200
|
25
25
|
description:
|
26
26
|
email: matthew-github@matthewriley.name
|
27
27
|
executables: []
|
@@ -32,6 +32,7 @@ files:
|
|
32
32
|
- lib/yamwow/client.rb
|
33
33
|
- lib/yamwow/enumerable_extensions.rb
|
34
34
|
- lib/yamwow/facade.rb
|
35
|
+
- lib/yamwow/requests/current_user_request.rb
|
35
36
|
- lib/yamwow/requests/group_with_name_request.rb
|
36
37
|
- lib/yamwow/requests/messages_with_topic_request.rb
|
37
38
|
- lib/yamwow/requests/praise_request.rb
|