yam 2.4.1 → 2.5.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.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.travis.yml +1 -1
- data/Gemfile +1 -1
- data/certs/public.pem +19 -19
- data/lib/yammer/api/user.rb +8 -4
- data/lib/yammer/oauth2_client.rb +3 -3
- data/lib/yammer/version.rb +7 -7
- data/spec/api/activity_spec.rb +1 -1
- data/spec/api/autocomplete_spec.rb +2 -2
- data/spec/api/group_membership_spec.rb +3 -3
- data/spec/api/group_spec.rb +6 -6
- data/spec/api/invitation_spec.rb +4 -4
- data/spec/api/like_spec.rb +3 -3
- data/spec/api/message_spec.rb +16 -16
- data/spec/api/network_spec.rb +1 -1
- data/spec/api/notification_spec.rb +1 -1
- data/spec/api/open_graph_object_spec.rb +4 -4
- data/spec/api/pending_attachment_spec.rb +3 -3
- data/spec/api/search_spec.rb +1 -1
- data/spec/api/subscription_spec.rb +1 -1
- data/spec/api/thread_spec.rb +1 -1
- data/spec/api/topic_spec.rb +1 -1
- data/spec/api/user_spec.rb +15 -15
- data/spec/client_spec.rb +2 -2
- data/spec/resources/base_spec.rb +7 -7
- data/spec/spec_helper.rb +1 -6
- data/yam.gemspec +9 -9
- metadata +51 -39
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 185c4117b99902a304878291837a72d7f215e7ba
|
4
|
+
data.tar.gz: bd832d78c1f3c74402af1392b9487046affbb463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0e97d0e9cbc6e59bd368c85802f8ed71120000f73b0478314a2381f8440dc7024a4fa78f301dfbe623287ae7697be88073df2a332dd395db89694b263ff4d215
|
7
|
+
data.tar.gz: 337f30113bedd0713cd7a9d47f79110760bffcda3e4569c0d2df756c066fe7a58cb7e02f4f247f43f6b947f663ed973e9f5c1fc9a0164d3b4cd647f8f899bf05
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/certs/public.pem
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
2
|
+
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMREwDwYDVQQDDAhrbXV0
|
3
|
+
eWFiYTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDETMBEGCgmSJomT8ixkARkW
|
4
|
+
A2NvbTAeFw0xNjAxMjMwMTE2MDVaFw0xNzAxMjIwMTE2MDVaMEMxETAPBgNVBAMM
|
5
|
+
CGttdXR5YWJhMRkwFwYKCZImiZPyLGQBGRYJbWljcm9zb2Z0MRMwEQYKCZImiZPy
|
6
|
+
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw9iZuvdL
|
7
|
+
hzj0njBvw3U5UPCC5GpIXaxvMR/JfM/+rcIVBL7pmSkTJWYh35O2w5Nn3q6Wovk9
|
8
|
+
9CJMj7bpFDzXDObLarTG6JBZ82x9QIrtDkCWe4VV1TydYgsBQGe5MtKZsPe6Jcqx
|
9
|
+
cqxUgpMLh9npNVgGxRY/yqeXEQ9JVxmR2vmkOEa13RkRijLHFCfVTw1w68QAbQps
|
10
|
+
b9YfXWUIJ7H+u0pFkgRSFqHbh0h044dm86NCV90Y9Spl8RBk3pj+pPKJ0nWnqpNb
|
11
|
+
pLzCJ5lwZQaJyj1N7VXYNGRd8Q9eOYuA2kObLSJv4Ut8PpWnLHDynj2VOru1cNLD
|
12
|
+
iZvHf5IwiTO4VQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
13
|
+
HQ4EFgQUSzCjf7Wys22V4mwbz+gzKtO4hrswIQYDVR0RBBowGIEWa211dHlhYmFA
|
14
|
+
bWljcm9zb2Z0LmNvbTAhBgNVHRIEGjAYgRZrbXV0eWFiYUBtaWNyb3NvZnQuY29t
|
15
|
+
MA0GCSqGSIb3DQEBBQUAA4IBAQC/76KmRxfnk8+bDvbTt23SRxLABj1cjkqoG7+e
|
16
|
+
TkF5PVnWcPCUGrSAHkqZItH5Rm2A3ITvOKns04MbIdQfsaOniEEU063P2NbD1pHz
|
17
|
+
/R6R0cy79S781+akWDLxzYJkkc66/OcID1esKvRmkAwYJ6WQmPlRNmYCTLf19cmx
|
18
|
+
rioWlMxz7cJc3XMhdgFEn45S7/F+TyQdMt1LWoIK8J68dcuaGfW+hIq3edhVaASr
|
19
|
+
oaChqbGI6vlVXiNp6dEuMEUdFbxb+KbKc2GWfuNz+OerJIKH6eCcxcau2VA/Mzq2
|
20
|
+
XdGvB/v+GhpfWXG3egw7j9j4WrtfLVxGyCVxniOZA8/UGaBD
|
21
21
|
-----END CERTIFICATE-----
|
data/lib/yammer/api/user.rb
CHANGED
@@ -147,10 +147,12 @@ module Yammer
|
|
147
147
|
# @raise [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid.
|
148
148
|
# @return [Yammer::ApiResponse]
|
149
149
|
# @param id [Integer] the ID of the user whose followers you want to get
|
150
|
+
# @param opts [Hash] A customizable set of opts.
|
151
|
+
# @option opts [Integer] :page
|
150
152
|
# @example Fetch users from the authenticated user's network following user whose ID is provided
|
151
153
|
# Yammer.users_following(1)
|
152
|
-
def users_following(id)
|
153
|
-
get("/api/v1/users/following/#{id}")
|
154
|
+
def users_following(id, opts={})
|
155
|
+
get("/api/v1/users/following/#{id}", opts)
|
154
156
|
end
|
155
157
|
|
156
158
|
# @rate_limited Yes
|
@@ -158,10 +160,12 @@ module Yammer
|
|
158
160
|
# @raise [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid.
|
159
161
|
# @return [Yammer::ApiResponse]
|
160
162
|
# @param id [Integer] the ID of the user for whom you want to get the users being followed
|
163
|
+
# @param opts [Hash] A customizable set of opts.
|
164
|
+
# @option opts [Integer] :page
|
161
165
|
# @example Fetch users from the authenticated user's network followed by the user whose ID is provided
|
162
166
|
# Yammer.users_followed(1)
|
163
|
-
def users_followed_by(id)
|
164
|
-
get("/api/v1/users/followed_by/#{id}")
|
167
|
+
def users_followed_by(id, opts={})
|
168
|
+
get("/api/v1/users/followed_by/#{id}", opts)
|
165
169
|
end
|
166
170
|
|
167
171
|
# @rate_limited Yes
|
data/lib/yammer/oauth2_client.rb
CHANGED
@@ -33,7 +33,7 @@ module Yammer
|
|
33
33
|
# Generates the Yammer URL that the user will be redirected to in order to
|
34
34
|
# authorize your application
|
35
35
|
#
|
36
|
-
# @see https://developer.yammer.com/
|
36
|
+
# @see https://developer.yammer.com/v1.0/docs/oauth-2#client-side-flow
|
37
37
|
#
|
38
38
|
# @opts [Hash] additional parameters to be include in URL eg. scope, state, etc
|
39
39
|
#
|
@@ -51,7 +51,7 @@ module Yammer
|
|
51
51
|
# Generates the Yammer URL that the user will be redirected to in order to
|
52
52
|
# authorize your application
|
53
53
|
#
|
54
|
-
# @see https://developer.yammer.com/
|
54
|
+
# @see https://developer.yammer.com/v1.0/docs/oauth-2#server-side-flow
|
55
55
|
#
|
56
56
|
# @opts [Hash] additional parameters to be include in URL eg. scope, state, etc
|
57
57
|
#
|
@@ -70,7 +70,7 @@ module Yammer
|
|
70
70
|
# Makes a request to Yammer server that will swap your authorization code for an access
|
71
71
|
# token
|
72
72
|
#
|
73
|
-
# @see https://developer.yammer.com/
|
73
|
+
# @see https://developer.yammer.com/v1.0/docs/oauth-2#server-side-flow
|
74
74
|
#
|
75
75
|
# @opts [Hash] may include redirect uri and other query parameters
|
76
76
|
#
|
data/lib/yammer/version.rb
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
# Copyright (c) Microsoft Corporation
|
2
2
|
# All rights reserved.
|
3
|
-
# Licensed under the Apache License, Version 2.0 (the "License");
|
3
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
4
4
|
# you may not use this file except in compliance with the License.
|
5
|
-
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
5
|
+
# You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0
|
6
6
|
#
|
7
|
-
# THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
|
8
|
-
# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
|
7
|
+
# THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR
|
8
|
+
# CONDITIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING
|
9
9
|
# WITHOUT LIMITATION ANY IMPLIED WARRANTIES OR CONDITIONS OF TITLE,
|
10
|
-
# FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
|
10
|
+
# FITNESS FOR A PARTICULAR PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
|
11
11
|
|
12
12
|
# See the Apache Version 2.0 License for specific language governing
|
13
13
|
# permissions and limitations under the License.
|
@@ -15,8 +15,8 @@
|
|
15
15
|
module Yammer
|
16
16
|
class Version
|
17
17
|
MAJOR = 2 unless defined? Yammer::MAJOR
|
18
|
-
MINOR =
|
19
|
-
PATCH =
|
18
|
+
MINOR = 5 unless defined? Yammer::MINOR
|
19
|
+
PATCH = 0 unless defined? Yammer::PATCH
|
20
20
|
PRE = nil unless defined? Yammer::PRE
|
21
21
|
|
22
22
|
class << self
|
data/spec/api/activity_spec.rb
CHANGED
@@ -53,7 +53,7 @@ describe Yammer::Api::Activity do
|
|
53
53
|
email: 'example@yammer-inc.com'
|
54
54
|
}]
|
55
55
|
}
|
56
|
-
subject.
|
56
|
+
expect(subject).to receive(:post).with('/api/v1/activity', params)
|
57
57
|
@client.create_activity(params)
|
58
58
|
end
|
59
59
|
end
|
@@ -34,8 +34,8 @@ describe Yammer::Api::Autocomplete do
|
|
34
34
|
|
35
35
|
describe '#autocomplete' do
|
36
36
|
it 'should fetch autocomplete data' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/autocomplete/ranked', { :prefix => 'alc' })
|
38
38
|
subject.autocomplete({ :prefix => 'alc' })
|
39
39
|
end
|
40
40
|
end
|
41
|
-
end
|
41
|
+
end
|
@@ -34,15 +34,15 @@ describe Yammer::Api::GroupMembership do
|
|
34
34
|
|
35
35
|
describe '#get_group_membership' do
|
36
36
|
it 'should fetch a group membership' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/group_memberships/1')
|
38
38
|
subject.get_group_membership(1)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
42
|
describe '#create_group_membership' do
|
43
43
|
it 'should create a group membership' do
|
44
|
-
subject.
|
44
|
+
expect(subject).to receive(:post).with('/api/v1/group_memberships', { :group_id => 2 })
|
45
45
|
subject.create_group_membership(2)
|
46
46
|
end
|
47
47
|
end
|
48
|
-
end
|
48
|
+
end
|
data/spec/api/group_spec.rb
CHANGED
@@ -34,28 +34,28 @@ describe Yammer::Api::Group do
|
|
34
34
|
|
35
35
|
describe '#all_groups' do
|
36
36
|
it 'should fetch all groups in network' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/groups', {})
|
38
38
|
subject.all_groups
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
42
|
describe '#groups_for_user' do
|
43
43
|
it 'should fetch all groups for user' do
|
44
|
-
subject.
|
44
|
+
expect(subject).to receive(:get).with('/api/v1/groups/for_user/2')
|
45
45
|
subject.groups_for_user(2)
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
49
|
describe '#get_group' do
|
50
50
|
it 'should fetch a thread' do
|
51
|
-
subject.
|
51
|
+
expect(subject).to receive(:get).with('/api/v1/groups/1')
|
52
52
|
subject.get_group(1)
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
56
|
describe '#create_group' do
|
57
57
|
it 'should fetch a thread' do
|
58
|
-
subject.
|
58
|
+
expect(subject).to receive(:post).with('/api/v1/groups', {
|
59
59
|
:name => 'my group',
|
60
60
|
:description => 'A test group',
|
61
61
|
:private => false
|
@@ -66,11 +66,11 @@ describe Yammer::Api::Group do
|
|
66
66
|
|
67
67
|
describe '#update_group' do
|
68
68
|
it 'should fetch a thread' do
|
69
|
-
subject.
|
69
|
+
expect(subject).to receive(:post).with('/api/v1/groups/2', {
|
70
70
|
:name => 'another group',
|
71
71
|
:description => 'A modified group description',
|
72
72
|
})
|
73
73
|
subject.update_group(2, :name => 'another group', :description => 'A modified group description')
|
74
74
|
end
|
75
75
|
end
|
76
|
-
end
|
76
|
+
end
|
data/spec/api/invitation_spec.rb
CHANGED
@@ -31,28 +31,28 @@ describe Yammer::Api::Search do
|
|
31
31
|
|
32
32
|
context 'with single email as string' do
|
33
33
|
it 'should invite users' do
|
34
|
-
subject.
|
34
|
+
expect(subject).to receive(:post).with('/api/v1/invitations', { :email => 'alice@yammer.com' })
|
35
35
|
subject.invite('alice@yammer.com ')
|
36
36
|
end
|
37
37
|
end
|
38
38
|
|
39
39
|
context 'with single email as array' do
|
40
40
|
it 'should invite users' do
|
41
|
-
subject.
|
41
|
+
expect(subject).to receive(:post).with('/api/v1/invitations', { :email => 'bob@yammer.com' })
|
42
42
|
subject.invite(%w{bob@yammer.com})
|
43
43
|
end
|
44
44
|
end
|
45
45
|
|
46
46
|
context 'with multiple emails as string' do
|
47
47
|
it 'should invite users' do
|
48
|
-
subject.
|
48
|
+
expect(subject).to receive(:post).with('/api/v1/invitations', { :email => 'bob@yammer.com,alice@yammer.com' })
|
49
49
|
subject.invite(' bob@yammer.com,alice@yammer.com ')
|
50
50
|
end
|
51
51
|
end
|
52
52
|
|
53
53
|
context 'with multiple emails as array' do
|
54
54
|
it 'should invite users' do
|
55
|
-
subject.
|
55
|
+
expect(subject).to receive(:post).with('/api/v1/invitations', { :email => 'bob@yammer.com,alice@yammer.com' })
|
56
56
|
subject.invite(%w{ bob@yammer.com alice@yammer.com })
|
57
57
|
end
|
58
58
|
end
|
data/spec/api/like_spec.rb
CHANGED
@@ -29,17 +29,17 @@ describe Yammer::Api::Topic do
|
|
29
29
|
|
30
30
|
describe '#likes' do
|
31
31
|
it 'should check if user likes open graph object' do
|
32
|
-
subject.
|
32
|
+
expect(subject).to receive(:get).with('/api/v1/likes/open_graph_object/1')
|
33
33
|
subject.likes_open_graph_object?(1)
|
34
34
|
end
|
35
35
|
|
36
36
|
it 'should like open graph object' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:post).with('/api/v1/likes', :id => 1, :type => 'OpenGraphObject')
|
38
38
|
subject.like('OpenGraphObject', 1)
|
39
39
|
end
|
40
40
|
|
41
41
|
it 'should unlike open graph object' do
|
42
|
-
subject.
|
42
|
+
expect(subject).to receive(:delete).with('/api/v1/likes/1')
|
43
43
|
subject.unlike(1)
|
44
44
|
end
|
45
45
|
end
|
data/spec/api/message_spec.rb
CHANGED
@@ -36,14 +36,14 @@ describe Yammer::Api::Message do
|
|
36
36
|
context 'with options' do
|
37
37
|
it 'should get_messages' do
|
38
38
|
params = { :page => 1 }
|
39
|
-
subject.
|
39
|
+
expect(subject).to receive(:get).with('/api/v1/messages', params)
|
40
40
|
subject.all_messages(params)
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
44
44
|
context 'without options' do
|
45
45
|
it 'should return all messages viewable by a user' do
|
46
|
-
subject.
|
46
|
+
expect(subject).to receive(:get).with('/api/v1/messages', {})
|
47
47
|
subject.all_messages
|
48
48
|
end
|
49
49
|
end
|
@@ -52,98 +52,98 @@ describe Yammer::Api::Message do
|
|
52
52
|
describe '#create_message' do
|
53
53
|
it 'should create_message' do
|
54
54
|
message = 'Greetings, we come in peace'
|
55
|
-
subject.
|
55
|
+
expect(subject).to receive(:post).with('/api/v1/messages', :body => message)
|
56
56
|
subject.create_message(message)
|
57
57
|
end
|
58
58
|
end
|
59
59
|
|
60
60
|
describe '#message' do
|
61
61
|
it 'should fetch a message' do
|
62
|
-
subject.
|
62
|
+
expect(subject).to receive(:get).with('/api/v1/messages/3')
|
63
63
|
subject.get_message(3)
|
64
64
|
end
|
65
65
|
end
|
66
66
|
|
67
67
|
describe '#delete_message' do
|
68
68
|
it 'should delete a message' do
|
69
|
-
subject.
|
69
|
+
expect(subject).to receive(:delete).with('/api/v1/messages/4')
|
70
70
|
subject.delete_message(4)
|
71
71
|
end
|
72
72
|
end
|
73
73
|
|
74
74
|
describe '#messages_sent' do
|
75
75
|
it 'should fetch messages sent by a user' do
|
76
|
-
subject.
|
76
|
+
expect(subject).to receive(:get).with('/api/v1/messages/sent', {})
|
77
77
|
subject.messages_sent
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
81
|
describe '#messages_received' do
|
82
82
|
it 'should fetch messages received by a user' do
|
83
|
-
subject.
|
83
|
+
expect(subject).to receive(:get).with('/api/v1/messages/received', {})
|
84
84
|
subject.messages_received
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
88
|
describe '#private_messages' do
|
89
89
|
it 'should fetch private messages' do
|
90
|
-
subject.
|
90
|
+
expect(subject).to receive(:get).with('/api/v1/messages/private', {})
|
91
91
|
subject.private_messages
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
95
|
describe '#followed_messages' do
|
96
96
|
it 'should fetch messages followed by a user' do
|
97
|
-
subject.
|
97
|
+
expect(subject).to receive(:get).with('/api/v1/messages/following', {})
|
98
98
|
subject.followed_messages
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
102
|
describe '#messages_from_user' do
|
103
103
|
it 'should fetch messages created by a user' do
|
104
|
-
subject.
|
104
|
+
expect(subject).to receive(:get).with('/api/v1/messages/from_user/14', {})
|
105
105
|
subject.messages_from_user(14)
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
109
|
describe '#messages_about_topic' do
|
110
110
|
it 'should fetch messages about a topic' do
|
111
|
-
subject.
|
111
|
+
expect(subject).to receive(:get).with('/api/v1/messages/about_topic/19', {})
|
112
112
|
subject.messages_about_topic(19)
|
113
113
|
end
|
114
114
|
end
|
115
115
|
|
116
116
|
describe '#messages_in_group' do
|
117
117
|
it 'should fetch messages in group' do
|
118
|
-
subject.
|
118
|
+
expect(subject).to receive(:get).with('/api/v1/messages/in_group/26', {})
|
119
119
|
subject.messages_in_group(26)
|
120
120
|
end
|
121
121
|
end
|
122
122
|
|
123
123
|
describe '#messages_liked_by' do
|
124
124
|
it 'should fetch messages liked by user' do
|
125
|
-
subject.
|
125
|
+
expect(subject).to receive(:get).with('/api/v1/messages/liked_by/58', {})
|
126
126
|
subject.messages_liked_by(58)
|
127
127
|
end
|
128
128
|
end
|
129
129
|
|
130
130
|
describe '#like_message' do
|
131
131
|
it 'should like the message as a the specified user' do
|
132
|
-
subject.
|
132
|
+
expect(subject).to receive(:post).with('/api/v1/messages/liked_by/current.json?message_id=97', {})
|
133
133
|
subject.like_message(97)
|
134
134
|
end
|
135
135
|
end
|
136
136
|
|
137
137
|
describe '#unlike_message' do
|
138
138
|
it 'should unlike the message as a the specified user' do
|
139
|
-
subject.
|
139
|
+
expect(subject).to receive(:delete).with('/api/v1/messages/liked_by/current.json?message_id=97', {})
|
140
140
|
subject.unlike_message(97)
|
141
141
|
end
|
142
142
|
end
|
143
143
|
|
144
144
|
describe '#messages_in_thread' do
|
145
145
|
it 'should fetch messages in thread' do
|
146
|
-
subject.
|
146
|
+
expect(subject).to receive(:get).with('/api/v1/messages/in_thread/97', {})
|
147
147
|
subject.messages_in_thread(97)
|
148
148
|
end
|
149
149
|
end
|
data/spec/api/network_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe Yammer::Api::Network do
|
|
34
34
|
|
35
35
|
describe '#networks_current' do
|
36
36
|
it 'should fetch network data' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/networks/current', { :include_suspended => true })
|
38
38
|
subject.current_networks({ :include_suspended => true })
|
39
39
|
end
|
40
40
|
end
|
@@ -34,7 +34,7 @@ describe Yammer::Api::Notification do
|
|
34
34
|
|
35
35
|
describe '#notifications' do
|
36
36
|
it "should fetch authenticated user's notifications" do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/streams/notifications')
|
38
38
|
subject.notifications
|
39
39
|
end
|
40
40
|
end
|
@@ -39,7 +39,7 @@ describe Yammer::Api::Search do
|
|
39
39
|
:site_name => 'Microsoft',
|
40
40
|
:image => 'https://example.com/global/images/test.jpg'
|
41
41
|
}
|
42
|
-
subject.
|
42
|
+
expect(subject).to receive(:post).with('/api/v1/open_graph_objects', {
|
43
43
|
:url=>"http://www.example.com",
|
44
44
|
:properties => {
|
45
45
|
:site_name => "Microsoft",
|
@@ -50,17 +50,17 @@ describe Yammer::Api::Search do
|
|
50
50
|
end
|
51
51
|
|
52
52
|
it 'should follow open graph object' do
|
53
|
-
subject.
|
53
|
+
expect(subject).to receive(:post).with('/api/v1/subscriptions', :target_id => 7, :target_type => 'OpenGraphObject')
|
54
54
|
subject.follow_open_graph_object(7)
|
55
55
|
end
|
56
56
|
|
57
57
|
it 'should follow opnen graph object' do
|
58
|
-
subject.
|
58
|
+
expect(subject).to receive(:get).with('/api/v1/subscriptions/to_open_graph_object/5')
|
59
59
|
subject.is_following_open_graph_object?(5)
|
60
60
|
end
|
61
61
|
|
62
62
|
it 'should fetch open graph objects in user activity stream' do
|
63
|
-
subject.
|
63
|
+
expect(subject).to receive(:get).with('/api/v1/streams/activities', :owner_type => 'open_graph_object', :owner_id => 4)
|
64
64
|
subject.get_activity_stream_open_graph_objects(4)
|
65
65
|
end
|
66
66
|
end
|
@@ -34,14 +34,14 @@ describe Yammer::Api::PendingAttachment do
|
|
34
34
|
|
35
35
|
describe '#get_pending_attachment' do
|
36
36
|
it 'should fetch a pending attachment' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/pending_attachments/2')
|
38
38
|
subject.get_pending_attachment(2)
|
39
39
|
end
|
40
40
|
end
|
41
41
|
|
42
42
|
describe '#delete_pending_attachment' do
|
43
43
|
it 'should delete a pending attachment' do
|
44
|
-
subject.
|
44
|
+
expect(subject).to receive(:delete).with('/api/v1/pending_attachments/1')
|
45
45
|
subject.delete_pending_attachment(1)
|
46
46
|
end
|
47
47
|
end
|
@@ -49,7 +49,7 @@ describe Yammer::Api::PendingAttachment do
|
|
49
49
|
describe '#create_pending_attachment' do
|
50
50
|
it 'should create a pending attachment' do
|
51
51
|
attachment = upload('attachment.txt')
|
52
|
-
subject.
|
52
|
+
expect(subject).to receive(:post).with('/api/v1/pending_attachments', :attachment => attachment)
|
53
53
|
subject.create_pending_attachment(attachment)
|
54
54
|
end
|
55
55
|
end
|
data/spec/api/search_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe Yammer::Api::Search do
|
|
34
34
|
|
35
35
|
describe '#search' do
|
36
36
|
it 'should search for stuff' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/search', { :search => 'tdd dojo' })
|
38
38
|
subject.search(:search => 'tdd dojo')
|
39
39
|
end
|
40
40
|
end
|
@@ -34,7 +34,7 @@ describe Yammer::Api::Search do
|
|
34
34
|
|
35
35
|
describe '#subscription' do
|
36
36
|
it 'should create new subscription' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:post).with('/api/v1/subscriptions', :target_type =>'OpenGraphObject', :target_id => 1)
|
38
38
|
subject.create_subscription('OpenGraphObject', 1)
|
39
39
|
end
|
40
40
|
end
|
data/spec/api/thread_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe Yammer::Api::Thread do
|
|
34
34
|
|
35
35
|
describe '#get_thread' do
|
36
36
|
it 'should fetch a thread' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/threads/1', {})
|
38
38
|
subject.get_thread(1)
|
39
39
|
end
|
40
40
|
end
|
data/spec/api/topic_spec.rb
CHANGED
@@ -34,7 +34,7 @@ describe Yammer::Api::Topic do
|
|
34
34
|
|
35
35
|
describe '#topics' do
|
36
36
|
it 'should fetch topic' do
|
37
|
-
subject.
|
37
|
+
expect(subject).to receive(:get).with('/api/v1/topics/1',{ :is_followed_by => 2 })
|
38
38
|
subject.get_topic(1, :is_followed_by => 2)
|
39
39
|
end
|
40
40
|
end
|
data/spec/api/user_spec.rb
CHANGED
@@ -35,7 +35,7 @@ describe Yammer::Api::User do
|
|
35
35
|
|
36
36
|
describe 'all_users' do
|
37
37
|
it 'makes an http request' do
|
38
|
-
@client.
|
38
|
+
expect(@client).to receive(:get).with('/api/v1/users', { :page => 1, :letter => 'm' })
|
39
39
|
@client.all_users({:page => 1, :letter => 'm'})
|
40
40
|
end
|
41
41
|
end
|
@@ -43,14 +43,14 @@ describe Yammer::Api::User do
|
|
43
43
|
describe 'create_user' do
|
44
44
|
it 'makes an http request' do
|
45
45
|
params = {:first_name => 'john', :last_name => 'doe', :email => 'jdoe@yammer-inc.com'}
|
46
|
-
@client.
|
46
|
+
expect(@client).to receive(:post).with('/api/v1/users', params)
|
47
47
|
@client.create_user(params)
|
48
48
|
end
|
49
49
|
end
|
50
50
|
|
51
51
|
describe 'get_user' do
|
52
52
|
it 'makes an http request' do
|
53
|
-
@client.
|
53
|
+
expect(@client).to receive(:get).with('/api/v1/users/1')
|
54
54
|
@client.get_user(1)
|
55
55
|
end
|
56
56
|
end
|
@@ -58,14 +58,14 @@ describe Yammer::Api::User do
|
|
58
58
|
describe 'update_user' do
|
59
59
|
it 'makes an http request' do
|
60
60
|
params = {:first_name => 'jane', :last_name => 'smith'}
|
61
|
-
@client.
|
61
|
+
expect(@client).to receive(:put).with('/api/v1/users/1', params)
|
62
62
|
@client.update_user(1, params)
|
63
63
|
end
|
64
64
|
|
65
65
|
context 'with id as a string' do
|
66
66
|
it 'updates user' do
|
67
67
|
params = {:first_name => 'jane', :last_name => 'smith'}
|
68
|
-
@client.
|
68
|
+
expect(@client).to receive(:put).with('/api/v1/users/current', params)
|
69
69
|
subject.update_user('current', params)
|
70
70
|
end
|
71
71
|
end
|
@@ -73,47 +73,47 @@ describe Yammer::Api::User do
|
|
73
73
|
|
74
74
|
describe 'delete_user' do
|
75
75
|
it 'makes an http request' do
|
76
|
-
@client.
|
76
|
+
expect(@client).to receive(:delete).with('/api/v1/users/1')
|
77
77
|
@client.delete_user(1)
|
78
78
|
end
|
79
79
|
end
|
80
80
|
|
81
81
|
describe 'get_user_by_email' do
|
82
82
|
it 'makes an http request' do
|
83
|
-
@client.
|
83
|
+
expect(@client).to receive(:get).with('/api/v1/users/by_email', :email => 'bob@yammer-inc.com')
|
84
84
|
@client.get_user_by_email('bob@yammer-inc.com')
|
85
85
|
end
|
86
86
|
end
|
87
87
|
|
88
88
|
describe 'current_user' do
|
89
89
|
it 'makes an http request' do
|
90
|
-
@client.
|
90
|
+
expect(@client).to receive(:get).with('/api/v1/users/current')
|
91
91
|
@client.current_user
|
92
92
|
end
|
93
93
|
end
|
94
94
|
|
95
95
|
describe 'users_following' do
|
96
96
|
it 'makes an http request' do
|
97
|
-
@client.
|
98
|
-
@client.users_following(3)
|
97
|
+
expect(@client).to receive(:get).with('/api/v1/users/following/3', {:page => 2})
|
98
|
+
@client.users_following(3, page: 2)
|
99
99
|
end
|
100
100
|
end
|
101
101
|
|
102
102
|
describe 'users_followed_by' do
|
103
103
|
it 'makes an http request' do
|
104
|
-
@client.
|
105
|
-
@client.users_followed_by(4)
|
104
|
+
expect(@client).to receive(:get).with('/api/v1/users/followed_by/4', {:page => 2})
|
105
|
+
@client.users_followed_by(4, page: 2)
|
106
106
|
end
|
107
107
|
end
|
108
108
|
|
109
109
|
describe 'users_in_group' do
|
110
110
|
it 'makes an http request without' do
|
111
|
-
@client.
|
111
|
+
expect(@client).to receive(:get).with('/api/v1/users/in_group/5', {})
|
112
112
|
@client.users_in_group(5)
|
113
113
|
end
|
114
|
-
|
114
|
+
|
115
115
|
it 'makes an http request with optional parameters' do
|
116
|
-
@client.
|
116
|
+
expect(@client).to receive(:get).with('/api/v1/users/in_group/5', {:page => 2})
|
117
117
|
@client.users_in_group(5, {:page => 2})
|
118
118
|
end
|
119
119
|
end
|
data/spec/client_spec.rb
CHANGED
@@ -131,7 +131,7 @@ describe Yammer::Client do
|
|
131
131
|
describe "#request" do
|
132
132
|
context "when method is not supported" do
|
133
133
|
it "raises an error" do
|
134
|
-
expect {subject.send(:request, :patch, '/')}.to raise_error
|
134
|
+
expect {subject.send(:request, :patch, '/')}.to raise_error(RuntimeError)
|
135
135
|
end
|
136
136
|
end
|
137
137
|
|
@@ -361,4 +361,4 @@ describe Yammer::Client do
|
|
361
361
|
end
|
362
362
|
end
|
363
363
|
end
|
364
|
-
end
|
364
|
+
end
|
data/spec/resources/base_spec.rb
CHANGED
@@ -150,12 +150,12 @@ describe Yammer::Resources::Base do
|
|
150
150
|
|
151
151
|
it 'should update model' do
|
152
152
|
api_handler = double("ApiHandler")
|
153
|
-
api_handler.
|
153
|
+
expect(api_handler).to receive(:update_dummy_model).with(42, hash_including(
|
154
154
|
:first_name =>'john',
|
155
155
|
:last_name => 'smith')
|
156
156
|
).and_return(double('Response', :success? => true, :created? => true, :body => {:id => 2}))
|
157
157
|
|
158
|
-
subject.
|
158
|
+
expect(subject).to receive(:api_handler).and_return(api_handler)
|
159
159
|
subject.first_name = 'john'
|
160
160
|
subject.last_name = 'smith'
|
161
161
|
subject.save
|
@@ -167,11 +167,11 @@ describe Yammer::Resources::Base do
|
|
167
167
|
|
168
168
|
it 'should do nothing' do
|
169
169
|
api_handler = double("ApiHandler")
|
170
|
-
api_handler.
|
170
|
+
expect(api_handler).to receive(:create_dummy_model).with(
|
171
171
|
hash_including(:first_name =>'jim', :last_name => 'peters')
|
172
172
|
).and_return(double('Response', :success? => true, :created? => true, :body => {:id => '2'}))
|
173
173
|
|
174
|
-
subject.
|
174
|
+
expect(subject).to receive(:api_handler).and_return(api_handler)
|
175
175
|
subject.save
|
176
176
|
end
|
177
177
|
end
|
@@ -181,16 +181,16 @@ describe Yammer::Resources::Base do
|
|
181
181
|
|
182
182
|
it 'should create model' do
|
183
183
|
api_handler = double("ApiHandler")
|
184
|
-
api_handler.
|
184
|
+
expect(api_handler).to receive(:create_dummy_model).with({
|
185
185
|
:first_name =>'john',
|
186
186
|
:last_name => 'peters'
|
187
187
|
}).and_return(double('Response', :success? => true, :created? => true, :body => {:id => 2}))
|
188
188
|
|
189
|
-
subject.
|
189
|
+
expect(subject).to receive(:api_handler).and_return(api_handler)
|
190
190
|
subject.first_name = 'john'
|
191
191
|
subject.save
|
192
192
|
end
|
193
193
|
end
|
194
194
|
end
|
195
195
|
end
|
196
|
-
end
|
196
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -20,15 +20,10 @@
|
|
20
20
|
require 'simplecov'
|
21
21
|
require 'coveralls'
|
22
22
|
|
23
|
-
SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
|
24
|
-
SimpleCov::Formatter::HTMLFormatter,
|
25
|
-
Coveralls::SimpleCov::Formatter
|
26
|
-
]
|
27
23
|
SimpleCov.start
|
28
24
|
|
29
25
|
require 'yammer'
|
30
26
|
require 'rspec'
|
31
|
-
require 'rspec/autorun'
|
32
27
|
require 'webmock/rspec'
|
33
28
|
|
34
29
|
WebMock.disable_net_connect!(:allow => 'coveralls.io')
|
@@ -70,4 +65,4 @@ end
|
|
70
65
|
|
71
66
|
def upload(file)
|
72
67
|
File.new("#{mock_path}/#{file}")
|
73
|
-
end
|
68
|
+
end
|
data/yam.gemspec
CHANGED
@@ -43,17 +43,17 @@ Gem::Specification.new do |s|
|
|
43
43
|
s.cert_chain = ['certs/public.pem']
|
44
44
|
s.signing_key = File.expand_path("~/.gem/certs/private_key.pem") if $0 =~ /gem\z/
|
45
45
|
|
46
|
-
s.add_dependency 'oj', '~> 2.
|
47
|
-
s.add_dependency 'multi_json', '~> 1.
|
48
|
-
s.add_dependency 'rest-client', '~> 1.
|
49
|
-
s.add_dependency 'addressable', '~> 2.
|
46
|
+
s.add_dependency 'oj', '~> 2.14'
|
47
|
+
s.add_dependency 'multi_json', '~> 1.8'
|
48
|
+
s.add_dependency 'rest-client', '~> 1.8'
|
49
|
+
s.add_dependency 'addressable', '~> 2.4'
|
50
50
|
s.add_dependency 'oauth2-client', '~> 2.0'
|
51
51
|
|
52
|
-
s.add_development_dependency 'rake'
|
53
|
-
s.add_development_dependency 'rspec'
|
54
|
-
s.add_development_dependency 'simplecov', '~> 0.
|
55
|
-
s.add_development_dependency 'webmock', '~> 1.
|
56
|
-
s.add_development_dependency 'yard', '>= 0.8'
|
52
|
+
s.add_development_dependency 'rake', '~> 0'
|
53
|
+
s.add_development_dependency 'rspec', '~> 0'
|
54
|
+
s.add_development_dependency 'simplecov', '~> 0.11.1'
|
55
|
+
s.add_development_dependency 'webmock', '~> 1.17', '>= 1.17.0'
|
56
|
+
s.add_development_dependency 'yard', '~> 0.8', '>= 0.8.7'
|
57
57
|
|
58
58
|
s.post_install_message = %q{ Thanks for installing! For API help go to http://developer.yammer.com }
|
59
59
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yam
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin Mutyaba
|
@@ -10,27 +10,27 @@ bindir: bin
|
|
10
10
|
cert_chain:
|
11
11
|
- |
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
13
|
+
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMREwDwYDVQQDDAhrbXV0
|
14
|
+
eWFiYTEZMBcGCgmSJomT8ixkARkWCW1pY3Jvc29mdDETMBEGCgmSJomT8ixkARkW
|
15
|
+
A2NvbTAeFw0xNjAxMjMwMTE2MDVaFw0xNzAxMjIwMTE2MDVaMEMxETAPBgNVBAMM
|
16
|
+
CGttdXR5YWJhMRkwFwYKCZImiZPyLGQBGRYJbWljcm9zb2Z0MRMwEQYKCZImiZPy
|
17
|
+
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAw9iZuvdL
|
18
|
+
hzj0njBvw3U5UPCC5GpIXaxvMR/JfM/+rcIVBL7pmSkTJWYh35O2w5Nn3q6Wovk9
|
19
|
+
9CJMj7bpFDzXDObLarTG6JBZ82x9QIrtDkCWe4VV1TydYgsBQGe5MtKZsPe6Jcqx
|
20
|
+
cqxUgpMLh9npNVgGxRY/yqeXEQ9JVxmR2vmkOEa13RkRijLHFCfVTw1w68QAbQps
|
21
|
+
b9YfXWUIJ7H+u0pFkgRSFqHbh0h044dm86NCV90Y9Spl8RBk3pj+pPKJ0nWnqpNb
|
22
|
+
pLzCJ5lwZQaJyj1N7VXYNGRd8Q9eOYuA2kObLSJv4Ut8PpWnLHDynj2VOru1cNLD
|
23
|
+
iZvHf5IwiTO4VQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
24
|
+
HQ4EFgQUSzCjf7Wys22V4mwbz+gzKtO4hrswIQYDVR0RBBowGIEWa211dHlhYmFA
|
25
|
+
bWljcm9zb2Z0LmNvbTAhBgNVHRIEGjAYgRZrbXV0eWFiYUBtaWNyb3NvZnQuY29t
|
26
|
+
MA0GCSqGSIb3DQEBBQUAA4IBAQC/76KmRxfnk8+bDvbTt23SRxLABj1cjkqoG7+e
|
27
|
+
TkF5PVnWcPCUGrSAHkqZItH5Rm2A3ITvOKns04MbIdQfsaOniEEU063P2NbD1pHz
|
28
|
+
/R6R0cy79S781+akWDLxzYJkkc66/OcID1esKvRmkAwYJ6WQmPlRNmYCTLf19cmx
|
29
|
+
rioWlMxz7cJc3XMhdgFEn45S7/F+TyQdMt1LWoIK8J68dcuaGfW+hIq3edhVaASr
|
30
|
+
oaChqbGI6vlVXiNp6dEuMEUdFbxb+KbKc2GWfuNz+OerJIKH6eCcxcau2VA/Mzq2
|
31
|
+
XdGvB/v+GhpfWXG3egw7j9j4WrtfLVxGyCVxniOZA8/UGaBD
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2016-01-22 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: oj
|
@@ -38,56 +38,56 @@ dependencies:
|
|
38
38
|
requirements:
|
39
39
|
- - "~>"
|
40
40
|
- !ruby/object:Gem::Version
|
41
|
-
version: '2.
|
41
|
+
version: '2.14'
|
42
42
|
type: :runtime
|
43
43
|
prerelease: false
|
44
44
|
version_requirements: !ruby/object:Gem::Requirement
|
45
45
|
requirements:
|
46
46
|
- - "~>"
|
47
47
|
- !ruby/object:Gem::Version
|
48
|
-
version: '2.
|
48
|
+
version: '2.14'
|
49
49
|
- !ruby/object:Gem::Dependency
|
50
50
|
name: multi_json
|
51
51
|
requirement: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
53
|
- - "~>"
|
54
54
|
- !ruby/object:Gem::Version
|
55
|
-
version: '1.
|
55
|
+
version: '1.8'
|
56
56
|
type: :runtime
|
57
57
|
prerelease: false
|
58
58
|
version_requirements: !ruby/object:Gem::Requirement
|
59
59
|
requirements:
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
|
-
version: '1.
|
62
|
+
version: '1.8'
|
63
63
|
- !ruby/object:Gem::Dependency
|
64
64
|
name: rest-client
|
65
65
|
requirement: !ruby/object:Gem::Requirement
|
66
66
|
requirements:
|
67
67
|
- - "~>"
|
68
68
|
- !ruby/object:Gem::Version
|
69
|
-
version: '1.
|
69
|
+
version: '1.8'
|
70
70
|
type: :runtime
|
71
71
|
prerelease: false
|
72
72
|
version_requirements: !ruby/object:Gem::Requirement
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '1.
|
76
|
+
version: '1.8'
|
77
77
|
- !ruby/object:Gem::Dependency
|
78
78
|
name: addressable
|
79
79
|
requirement: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: '2.
|
83
|
+
version: '2.4'
|
84
84
|
type: :runtime
|
85
85
|
prerelease: false
|
86
86
|
version_requirements: !ruby/object:Gem::Requirement
|
87
87
|
requirements:
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
|
-
version: '2.
|
90
|
+
version: '2.4'
|
91
91
|
- !ruby/object:Gem::Dependency
|
92
92
|
name: oauth2-client
|
93
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -106,28 +106,28 @@ dependencies:
|
|
106
106
|
name: rake
|
107
107
|
requirement: !ruby/object:Gem::Requirement
|
108
108
|
requirements:
|
109
|
-
- - "
|
109
|
+
- - "~>"
|
110
110
|
- !ruby/object:Gem::Version
|
111
111
|
version: '0'
|
112
112
|
type: :development
|
113
113
|
prerelease: false
|
114
114
|
version_requirements: !ruby/object:Gem::Requirement
|
115
115
|
requirements:
|
116
|
-
- - "
|
116
|
+
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
- !ruby/object:Gem::Dependency
|
120
120
|
name: rspec
|
121
121
|
requirement: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
|
-
- - "
|
123
|
+
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
125
|
version: '0'
|
126
126
|
type: :development
|
127
127
|
prerelease: false
|
128
128
|
version_requirements: !ruby/object:Gem::Requirement
|
129
129
|
requirements:
|
130
|
-
- - "
|
130
|
+
- - "~>"
|
131
131
|
- !ruby/object:Gem::Version
|
132
132
|
version: '0'
|
133
133
|
- !ruby/object:Gem::Dependency
|
@@ -136,42 +136,54 @@ dependencies:
|
|
136
136
|
requirements:
|
137
137
|
- - "~>"
|
138
138
|
- !ruby/object:Gem::Version
|
139
|
-
version:
|
139
|
+
version: 0.11.1
|
140
140
|
type: :development
|
141
141
|
prerelease: false
|
142
142
|
version_requirements: !ruby/object:Gem::Requirement
|
143
143
|
requirements:
|
144
144
|
- - "~>"
|
145
145
|
- !ruby/object:Gem::Version
|
146
|
-
version:
|
146
|
+
version: 0.11.1
|
147
147
|
- !ruby/object:Gem::Dependency
|
148
148
|
name: webmock
|
149
149
|
requirement: !ruby/object:Gem::Requirement
|
150
150
|
requirements:
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
|
-
version: '1.
|
153
|
+
version: '1.17'
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: 1.17.0
|
154
157
|
type: :development
|
155
158
|
prerelease: false
|
156
159
|
version_requirements: !ruby/object:Gem::Requirement
|
157
160
|
requirements:
|
158
161
|
- - "~>"
|
159
162
|
- !ruby/object:Gem::Version
|
160
|
-
version: '1.
|
163
|
+
version: '1.17'
|
164
|
+
- - ">="
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: 1.17.0
|
161
167
|
- !ruby/object:Gem::Dependency
|
162
168
|
name: yard
|
163
169
|
requirement: !ruby/object:Gem::Requirement
|
164
170
|
requirements:
|
165
|
-
- - "
|
171
|
+
- - "~>"
|
166
172
|
- !ruby/object:Gem::Version
|
167
173
|
version: '0.8'
|
174
|
+
- - ">="
|
175
|
+
- !ruby/object:Gem::Version
|
176
|
+
version: 0.8.7
|
168
177
|
type: :development
|
169
178
|
prerelease: false
|
170
179
|
version_requirements: !ruby/object:Gem::Requirement
|
171
180
|
requirements:
|
172
|
-
- - "
|
181
|
+
- - "~>"
|
173
182
|
- !ruby/object:Gem::Version
|
174
183
|
version: '0.8'
|
184
|
+
- - ">="
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: 0.8.7
|
175
187
|
description: A Ruby wrapper for accessing Yammer's REST API
|
176
188
|
email: kmutyaba@yammer-inc.com
|
177
189
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|