yammer-client 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/CHANGELOG.md +4 -0
- data/CONTRIBUTING.md +50 -0
- data/Gemfile.lock +1 -6
- data/TODO +3 -0
- data/certs/tiabas-public.pem +17 -18
- data/lib/yammer/api.rb +2 -1
- data/lib/yammer/api/autocomplete.rb +5 -5
- data/lib/yammer/api/invitation.rb +25 -0
- data/lib/yammer/api/pending_attachment.rb +4 -2
- data/lib/yammer/api/search.rb +1 -1
- data/lib/yammer/client.rb +2 -1
- data/lib/yammer/user.rb +15 -8
- data/lib/yammer/version.rb +1 -1
- data/spec/api/autocomplete_spec.rb +1 -1
- data/spec/api/invitation_spec.rb +46 -0
- data/spec/api/search_spec.rb +1 -1
- data/spec/model/user_spec.rb +1 -1
- data/yammer.gemspec +1 -2
- metadata +156 -164
- metadata.gz.sig +3 -2
- data/file.txt +0 -1
data.tar.gz.sig
CHANGED
Binary file
|
data/CHANGELOG.md
CHANGED
data/CONTRIBUTING.md
ADDED
@@ -0,0 +1,50 @@
|
|
1
|
+
## Contributing
|
2
|
+
In the spirit of [free software][free-sw], **everyone** is encouraged to help
|
3
|
+
improve this project.
|
4
|
+
|
5
|
+
[free-sw]: http://www.fsf.org/licensing/essays/free-sw.html
|
6
|
+
|
7
|
+
Ways *you* can contribute:
|
8
|
+
|
9
|
+
* by reporting bugs
|
10
|
+
* by suggesting new features
|
11
|
+
* by writing or editing documentation
|
12
|
+
* by writing specifications
|
13
|
+
* by writing code (**no patch is too small**: fix typos, add comments, clean up
|
14
|
+
inconsistent whitespace)
|
15
|
+
* by refactoring code
|
16
|
+
* by fixing [issues][]
|
17
|
+
* by reviewing patches
|
18
|
+
|
19
|
+
[issues]: https://github.com/tiabas/yammer-client/issues
|
20
|
+
|
21
|
+
## Submitting an Issue
|
22
|
+
I use the [GitHub issue tracker][issues] to track bugs and features. Before
|
23
|
+
submitting a bug report or feature request, check to make sure it hasn't
|
24
|
+
already been submitted. When submitting a bug report, please include a [Gist][]
|
25
|
+
that includes a stack trace and any details that may be necessary to reproduce
|
26
|
+
the bug, including your gem version, Ruby version, and operating system.
|
27
|
+
Ideally, a bug report should include a pull request with failing specs.
|
28
|
+
|
29
|
+
[gist]: https://gist.github.com/
|
30
|
+
|
31
|
+
## Submitting a Pull Request
|
32
|
+
1. [Fork the repository.][fork]
|
33
|
+
2. [Create a topic branch.][branch]
|
34
|
+
3. Add specs for your unimplemented feature or bug fix.
|
35
|
+
4. Run `bundle exec rake spec`. If your specs pass, return to step 3.
|
36
|
+
5. Implement your feature or bug fix.
|
37
|
+
6. Run `bundle exec rake spec`. If your specs fail, return to step 5.
|
38
|
+
7. Run `open coverage/index.html`. If your changes are not completely covered
|
39
|
+
by your tests, return to step 3.
|
40
|
+
8 Run `RUBYOPT=W2 bundle exec rake spec 2>&1 | grep yammer-client`. If your changes
|
41
|
+
produce any warnings, return to step 5.
|
42
|
+
9. Add documentation for your feature or bug fix.
|
43
|
+
10. Run `bundle exec rake yard`. If your changes are not 100% documented, go
|
44
|
+
back to step 9.
|
45
|
+
11. Commit and push your changes.
|
46
|
+
12. [Submit a pull request.][pr]
|
47
|
+
|
48
|
+
[fork]: http://help.github.com/fork-a-repo/
|
49
|
+
[branch]: http://learn.github.com/p/branching.html
|
50
|
+
[pr]: http://help.github.com/send-pull-requests/
|
data/Gemfile.lock
CHANGED
@@ -1,10 +1,9 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
yammer-client (0.1.
|
4
|
+
yammer-client (0.1.4)
|
5
5
|
addressable (~> 2.3.3)
|
6
6
|
multi_json (~> 1.3)
|
7
|
-
oauth2-client (~> 1.1.2)
|
8
7
|
oj (~> 2.0.10)
|
9
8
|
rest-client (~> 1.6.7)
|
10
9
|
|
@@ -12,7 +11,6 @@ GEM
|
|
12
11
|
remote: https://rubygems.org/
|
13
12
|
specs:
|
14
13
|
addressable (2.3.3)
|
15
|
-
bcrypt-ruby (3.0.1)
|
16
14
|
colorize (0.5.8)
|
17
15
|
coveralls (0.6.0)
|
18
16
|
colorize
|
@@ -24,9 +22,6 @@ GEM
|
|
24
22
|
diff-lcs (1.2.1)
|
25
23
|
mime-types (1.21)
|
26
24
|
multi_json (1.6.1)
|
27
|
-
oauth2-client (1.1.2)
|
28
|
-
addressable
|
29
|
-
bcrypt-ruby (~> 3.0.0)
|
30
25
|
oj (2.0.10)
|
31
26
|
rake (10.0.4)
|
32
27
|
rest-client (1.6.7)
|
data/TODO
ADDED
data/certs/tiabas-public.pem
CHANGED
@@ -1,21 +1,20 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
|
-
|
2
|
+
MIIDMjCCAhqgAwIBAgIBADANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAh0aWFi
|
3
3
|
YXNuazEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
4
|
-
|
4
|
+
MB4XDTEzMDQyOTA0MTkwMFoXDTE0MDQyOTA0MTkwMFowPzERMA8GA1UEAwwIdGlh
|
5
5
|
YmFzbmsxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
-----END CERTIFICATE-----
|
6
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMWly4vv32/qfYWuiRJq
|
7
|
+
/x9CDRpdQ2JFwRiiKA6hjWjkpvYwgssfAVNJcwYSyVWkvRF8wp3UjpWqq+W3zGwR
|
8
|
+
XHtKysmt8CZl7Y+JdcltSuaRuZljwN37RPnFg7gGHUfhS4klm6s8csvawLzi50eH
|
9
|
+
6M/7AeKmYS7sRFQoVR0tfHxq+e5uqo47Qus+aLNFU/bgYJeAhZlYHeU0ANZIp3ig
|
10
|
+
HRfYE3zz3CA+LffxQ0UXwiySLgUUsdX1Gtv/7AjoLu6v3GS0lbN9o357b0n7fXym
|
11
|
+
A5iMUeygRZryvLab9kz1YuwgOgx6OpyQD8JfO9PZeBKYd9XFlZwp44W7Z1akxcu+
|
12
|
+
+E8CAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUt6oHkpfViE/jN5InJLzl
|
13
|
+
DUxUNR8wCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IBAQBunWeru+ZC1uVt
|
14
|
+
BZj6230whZIvdvGnvcWW6JGG6JZJljYwOHHnaG+u74qE16Voh3n7rT77obp/Wrmx
|
15
|
+
HUhp4nK+j1AHpdiZman0RxMZzS2fczev9gTyAs/cmaqgVb3YXXniwvZy4P7y07iT
|
16
|
+
MIbAh4p4NK72MJrOsepD3qhOgE23o8dyFB3+RTB0U7yv3ZW1sMNDxkliqCBqcrBF
|
17
|
+
bSEMaRUpbbsivejLXgRsxP5cXYy0Wd9GNSOtQ5932HDEoo0F9nXIMZGQSLqEXz3l
|
18
|
+
B+kZ9/4dAvmKkr2NPSoxBQtO7Rz0HDNLtjMxkXbQUWMDsGnB6Kk1WUBb/w3kQ9Ah
|
19
|
+
JgIHF4cG
|
20
|
+
-----END CERTIFICATE-----
|
data/lib/yammer/api.rb
CHANGED
@@ -9,16 +9,16 @@ module Yammer
|
|
9
9
|
# @raise [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid.
|
10
10
|
# @return [Yammer::ApiResponse]
|
11
11
|
# @param [Hash] opts the options to fetch a thread with
|
12
|
-
# @option opts [String] :prefix
|
13
|
-
# @option opts [String] :models
|
12
|
+
# @option opts [String] :prefix
|
13
|
+
# @option opts [String] :models
|
14
14
|
# @option opts [Integer] :network_id
|
15
|
-
# @option opts [Integer] :include_site_actions
|
16
|
-
# @option opts [Boolean] :extended]
|
15
|
+
# @option opts [Integer] :include_site_actions
|
16
|
+
# @option opts [Boolean] :extended]
|
17
17
|
# @option opts [Boolean] :include_network_domainss
|
18
18
|
# @example Fetch data for the thread
|
19
19
|
# Yammer.search(:prefix => 'pizza', :models => 'user:3,group:8,topic:10')
|
20
20
|
def autocomplete(opts={})
|
21
|
-
get('/api/v1/autocomplete', opts)
|
21
|
+
get('/api/v1/autocomplete/ranked', opts)
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
@@ -0,0 +1,25 @@
|
|
1
|
+
|
2
|
+
module Yammer
|
3
|
+
module Api
|
4
|
+
module Invitation
|
5
|
+
|
6
|
+
# @see https://developer.yammer.com/restapi/#rest-invitations
|
7
|
+
# @api_path /api/v1/invitations
|
8
|
+
# @rate_limited Yes
|
9
|
+
# @authentication Requires user context
|
10
|
+
# @raise [Yammer::Error::Unauthorized] Error raised when supplied user credentials are not valid.
|
11
|
+
# @return [Yammer::ApiResponse]
|
12
|
+
# @param [String, Array] email or list of email addresses to send invitations to
|
13
|
+
# @example Fetch data for the thread
|
14
|
+
#
|
15
|
+
# Yammer.invite(%{ bob@yammer.com alice@yammer.com })
|
16
|
+
#
|
17
|
+
# Yammer.invite('bob@yammer.com, alice@yammer.com')
|
18
|
+
def invite(email)
|
19
|
+
email = email.strip if email.is_a?(String)
|
20
|
+
email = email.join(',') if email.is_a?(Array)
|
21
|
+
post('/api/v1/invitations', :email => email)
|
22
|
+
end
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
@@ -39,10 +39,12 @@ module Yammer
|
|
39
39
|
# when attachment cannot be found
|
40
40
|
# @return [Yammer::ApiResponse]
|
41
41
|
# @example Create new pending attachment
|
42
|
-
#
|
42
|
+
# file = File.open('~/attachment.txt', 'r')
|
43
|
+
# Yammer.create_pending_attachment(file)
|
44
|
+
#
|
43
45
|
def create_pending_attachment(attachment)
|
44
46
|
post("/api/v1/pending_attachments", :attachment => attachment)
|
45
47
|
end
|
46
48
|
end
|
47
49
|
end
|
48
|
-
end
|
50
|
+
end
|
data/lib/yammer/api/search.rb
CHANGED
data/lib/yammer/client.rb
CHANGED
@@ -15,8 +15,9 @@ module Yammer
|
|
15
15
|
include Yammer::Api::Search
|
16
16
|
include Yammer::Api::Notification
|
17
17
|
include Yammer::Api::Autocomplete
|
18
|
+
include Yammer::Api::Invitation
|
18
19
|
include Yammer::Api::PendingAttachment
|
19
|
-
|
20
|
+
|
20
21
|
attr_reader :site_url, :headers, :connection_options
|
21
22
|
|
22
23
|
attr_accessor :client_id, :client_secret, :access_token
|
data/lib/yammer/user.rb
CHANGED
@@ -1,14 +1,8 @@
|
|
1
1
|
module Yammer
|
2
2
|
class User < Yammer::Base
|
3
3
|
|
4
|
-
# @!scope class
|
5
|
-
def self.create(email)
|
6
|
-
result = api_handler.create_user(:email => email)
|
7
|
-
return nil unless result.created?
|
8
|
-
id = result.headers[:location].split('/').last.to_i
|
9
|
-
new(:id => id)
|
10
|
-
end
|
11
4
|
|
5
|
+
# Returns authenticated user's details
|
12
6
|
# @!scope class
|
13
7
|
def self.current
|
14
8
|
result = api_handler.current_user
|
@@ -16,6 +10,15 @@ module Yammer
|
|
16
10
|
new(result.body)
|
17
11
|
end
|
18
12
|
|
13
|
+
# Creates a new user from email address
|
14
|
+
# @!scope class
|
15
|
+
def self.create(email)
|
16
|
+
result = api_handler.create_user(:email => email)
|
17
|
+
return nil unless result.created?
|
18
|
+
id = result.headers[:location].split('/').last.to_i
|
19
|
+
new(:id => id)
|
20
|
+
end
|
21
|
+
|
19
22
|
attr_accessor_deffered :first_name, :last_name, :full_name, :hire_date, :mugshot, :state,
|
20
23
|
:type, :admin, :verified_admin, :expertise, :birth_date, :stats, :show_ask_for_photo, :job_title,
|
21
24
|
:web_url, :url, :external_urls, :activated_at, :summary, :department, :previous_companies,
|
@@ -23,22 +26,26 @@ module Yammer
|
|
23
26
|
:can_broadcast, :web_preferences, :network_domains, :location, :contact, :kids_names, :guid,
|
24
27
|
:name, :mugshot_url, :mugshot_url_template, :settings, :timezone
|
25
28
|
|
29
|
+
# Returns user's primary email
|
26
30
|
def email
|
27
|
-
@email ||= begin
|
31
|
+
@email ||= begin
|
28
32
|
self.contact[:email_addresses].map do |e|
|
29
33
|
e[:address] if e[:type] == 'primary'
|
30
34
|
end.first
|
31
35
|
end
|
32
36
|
end
|
33
37
|
|
38
|
+
# Returns all users that this user is following
|
34
39
|
def following
|
35
40
|
api_handler.users_followed_by(@id)
|
36
41
|
end
|
37
42
|
|
43
|
+
# Returns all user's follwing this user
|
38
44
|
def followers
|
39
45
|
api_handler.users_following(@id)
|
40
46
|
end
|
41
47
|
|
48
|
+
# Updates the user attributes
|
42
49
|
def update!(params)
|
43
50
|
api_handler.update_user(@id, params)
|
44
51
|
end
|
data/lib/yammer/version.rb
CHANGED
@@ -15,7 +15,7 @@ describe Yammer::Api::Autocomplete do
|
|
15
15
|
|
16
16
|
describe '#autocomplete' do
|
17
17
|
it 'should fetch autocomplete data' do
|
18
|
-
subject.should_receive(:get).with('/api/v1/autocomplete', { :prefix => 'alc' })
|
18
|
+
subject.should_receive(:get).with('/api/v1/autocomplete/ranked', { :prefix => 'alc' })
|
19
19
|
subject.autocomplete({ :prefix => 'alc' })
|
20
20
|
end
|
21
21
|
end
|
@@ -0,0 +1,46 @@
|
|
1
|
+
require File.expand_path('../../spec_helper', __FILE__)
|
2
|
+
|
3
|
+
describe Yammer::Api::Search do
|
4
|
+
|
5
|
+
before :all do
|
6
|
+
@client = Yammer::Client.new(
|
7
|
+
:site_url => 'https://www.yammer.com',
|
8
|
+
:client_id => 'PRbTcg9qjgKsp4jjpm1pw',
|
9
|
+
:client_secret => 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U',
|
10
|
+
:access_token => 'TolNOFka9Uls2DxahNi78A'
|
11
|
+
)
|
12
|
+
end
|
13
|
+
|
14
|
+
subject { @client }
|
15
|
+
|
16
|
+
describe '#invite' do
|
17
|
+
|
18
|
+
context 'with single email as string' do
|
19
|
+
it 'should invite users' do
|
20
|
+
subject.should_receive(:post).with('/api/v1/invitations', { :email => 'alice@yammer.com' })
|
21
|
+
subject.invite('alice@yammer.com ')
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
context 'with single email as array' do
|
26
|
+
it 'should invite users' do
|
27
|
+
subject.should_receive(:post).with('/api/v1/invitations', { :email => 'bob@yammer.com' })
|
28
|
+
subject.invite(%w{bob@yammer.com})
|
29
|
+
end
|
30
|
+
end
|
31
|
+
|
32
|
+
context 'with multiple emails as string' do
|
33
|
+
it 'should invite users' do
|
34
|
+
subject.should_receive(:post).with('/api/v1/invitations', { :email => 'bob@yammer.com,alice@yammer.com' })
|
35
|
+
subject.invite(' bob@yammer.com,alice@yammer.com ')
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
context 'with multiple emails as array' do
|
40
|
+
it 'should invite users' do
|
41
|
+
subject.should_receive(:post).with('/api/v1/invitations', { :email => 'bob@yammer.com,alice@yammer.com' })
|
42
|
+
subject.invite(%w{ bob@yammer.com alice@yammer.com })
|
43
|
+
end
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
data/spec/api/search_spec.rb
CHANGED
@@ -15,7 +15,7 @@ describe Yammer::Api::Search do
|
|
15
15
|
|
16
16
|
describe '#search' do
|
17
17
|
it 'should search for stuff' do
|
18
|
-
subject.should_receive(:get).with('/api/v1/search
|
18
|
+
subject.should_receive(:get).with('/api/v1/search', { :search => 'money power women' })
|
19
19
|
subject.search(:search => 'money power women')
|
20
20
|
end
|
21
21
|
end
|
data/spec/model/user_spec.rb
CHANGED
data/yammer.gemspec
CHANGED
@@ -6,7 +6,7 @@ Gem::Specification.new do |s|
|
|
6
6
|
s.name = 'yammer-client'
|
7
7
|
s.version = Yammer::Version
|
8
8
|
|
9
|
-
s.date = %q{2013-04-
|
9
|
+
s.date = %q{2013-04-29}
|
10
10
|
s.summary = "Yammer API Client - beta"
|
11
11
|
s.description = "A Ruby wrapper for accessing Yammer's REST API"
|
12
12
|
s.authors = ["Kevin Mutyaba"]
|
@@ -24,7 +24,6 @@ Gem::Specification.new do |s|
|
|
24
24
|
|
25
25
|
s.add_dependency 'oj', '~> 2.0.10'
|
26
26
|
s.add_dependency 'multi_json', '~> 1.3'
|
27
|
-
s.add_dependency 'oauth2-client', '~> 1.1.2'
|
28
27
|
s.add_dependency 'rest-client', '~> 1.6.7'
|
29
28
|
s.add_dependency 'addressable', '~> 2.3.3'
|
30
29
|
|
metadata
CHANGED
@@ -1,211 +1,193 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: yammer-client
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 4
|
10
|
+
version: 0.1.4
|
6
11
|
platform: ruby
|
7
|
-
authors:
|
12
|
+
authors:
|
8
13
|
- Kevin Mutyaba
|
9
14
|
autorequire:
|
10
15
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
REQwMkhuSExUWjlIbDJreGxQeVd3eWpSRXdOd0VqUG9TVUpGRUJpb3N2QW1s
|
38
|
-
OGZyVURBOQpqNmZBVGcvNGZxcGdJTFBWcUZJR1pPTUpERmNKeS9vZWh3d3hM
|
39
|
-
dTVYTXg4OFdGRDlqVDF2Umo3N0Q3aVBMYlhkCnJmR3MvcUNKS2dpZlhkLzFh
|
40
|
-
bTVobEFINWpYVT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
|
41
|
-
date: 2013-04-22 00:00:00.000000000 Z
|
42
|
-
dependencies:
|
43
|
-
- !ruby/object:Gem::Dependency
|
16
|
+
cert_chain:
|
17
|
+
- |
|
18
|
+
-----BEGIN CERTIFICATE-----
|
19
|
+
MIIDMjCCAhqgAwIBAgIBADANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAh0aWFi
|
20
|
+
YXNuazEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
21
|
+
MB4XDTEzMDQyOTA0MTkwMFoXDTE0MDQyOTA0MTkwMFowPzERMA8GA1UEAwwIdGlh
|
22
|
+
YmFzbmsxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkWA2Nv
|
23
|
+
bTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMWly4vv32/qfYWuiRJq
|
24
|
+
/x9CDRpdQ2JFwRiiKA6hjWjkpvYwgssfAVNJcwYSyVWkvRF8wp3UjpWqq+W3zGwR
|
25
|
+
XHtKysmt8CZl7Y+JdcltSuaRuZljwN37RPnFg7gGHUfhS4klm6s8csvawLzi50eH
|
26
|
+
6M/7AeKmYS7sRFQoVR0tfHxq+e5uqo47Qus+aLNFU/bgYJeAhZlYHeU0ANZIp3ig
|
27
|
+
HRfYE3zz3CA+LffxQ0UXwiySLgUUsdX1Gtv/7AjoLu6v3GS0lbN9o357b0n7fXym
|
28
|
+
A5iMUeygRZryvLab9kz1YuwgOgx6OpyQD8JfO9PZeBKYd9XFlZwp44W7Z1akxcu+
|
29
|
+
+E8CAwEAAaM5MDcwCQYDVR0TBAIwADAdBgNVHQ4EFgQUt6oHkpfViE/jN5InJLzl
|
30
|
+
DUxUNR8wCwYDVR0PBAQDAgSwMA0GCSqGSIb3DQEBBQUAA4IBAQBunWeru+ZC1uVt
|
31
|
+
BZj6230whZIvdvGnvcWW6JGG6JZJljYwOHHnaG+u74qE16Voh3n7rT77obp/Wrmx
|
32
|
+
HUhp4nK+j1AHpdiZman0RxMZzS2fczev9gTyAs/cmaqgVb3YXXniwvZy4P7y07iT
|
33
|
+
MIbAh4p4NK72MJrOsepD3qhOgE23o8dyFB3+RTB0U7yv3ZW1sMNDxkliqCBqcrBF
|
34
|
+
bSEMaRUpbbsivejLXgRsxP5cXYy0Wd9GNSOtQ5932HDEoo0F9nXIMZGQSLqEXz3l
|
35
|
+
B+kZ9/4dAvmKkr2NPSoxBQtO7Rz0HDNLtjMxkXbQUWMDsGnB6Kk1WUBb/w3kQ9Ah
|
36
|
+
JgIHF4cG
|
37
|
+
-----END CERTIFICATE-----
|
38
|
+
|
39
|
+
date: 2013-04-29 00:00:00 Z
|
40
|
+
dependencies:
|
41
|
+
- !ruby/object:Gem::Dependency
|
44
42
|
name: oj
|
45
|
-
requirement: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
|
-
requirements:
|
48
|
-
- - ~>
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 2.0.10
|
51
|
-
type: :runtime
|
52
43
|
prerelease: false
|
53
|
-
|
44
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
54
45
|
none: false
|
55
|
-
requirements:
|
46
|
+
requirements:
|
56
47
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
48
|
+
- !ruby/object:Gem::Version
|
49
|
+
hash: 27
|
50
|
+
segments:
|
51
|
+
- 2
|
52
|
+
- 0
|
53
|
+
- 10
|
58
54
|
version: 2.0.10
|
59
|
-
- !ruby/object:Gem::Dependency
|
60
|
-
name: multi_json
|
61
|
-
requirement: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
|
-
requirements:
|
64
|
-
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '1.3'
|
67
55
|
type: :runtime
|
56
|
+
version_requirements: *id001
|
57
|
+
- !ruby/object:Gem::Dependency
|
58
|
+
name: multi_json
|
68
59
|
prerelease: false
|
69
|
-
|
70
|
-
none: false
|
71
|
-
requirements:
|
72
|
-
- - ~>
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
version: '1.3'
|
75
|
-
- !ruby/object:Gem::Dependency
|
76
|
-
name: oauth2-client
|
77
|
-
requirement: !ruby/object:Gem::Requirement
|
60
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
78
61
|
none: false
|
79
|
-
requirements:
|
62
|
+
requirements:
|
80
63
|
- - ~>
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
hash: 9
|
66
|
+
segments:
|
67
|
+
- 1
|
68
|
+
- 3
|
69
|
+
version: "1.3"
|
83
70
|
type: :runtime
|
84
|
-
|
85
|
-
|
86
|
-
none: false
|
87
|
-
requirements:
|
88
|
-
- - ~>
|
89
|
-
- !ruby/object:Gem::Version
|
90
|
-
version: 1.1.2
|
91
|
-
- !ruby/object:Gem::Dependency
|
71
|
+
version_requirements: *id002
|
72
|
+
- !ruby/object:Gem::Dependency
|
92
73
|
name: rest-client
|
93
|
-
requirement: !ruby/object:Gem::Requirement
|
94
|
-
none: false
|
95
|
-
requirements:
|
96
|
-
- - ~>
|
97
|
-
- !ruby/object:Gem::Version
|
98
|
-
version: 1.6.7
|
99
|
-
type: :runtime
|
100
74
|
prerelease: false
|
101
|
-
|
75
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
102
76
|
none: false
|
103
|
-
requirements:
|
77
|
+
requirements:
|
104
78
|
- - ~>
|
105
|
-
- !ruby/object:Gem::Version
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
hash: 1
|
81
|
+
segments:
|
82
|
+
- 1
|
83
|
+
- 6
|
84
|
+
- 7
|
106
85
|
version: 1.6.7
|
107
|
-
- !ruby/object:Gem::Dependency
|
108
|
-
name: addressable
|
109
|
-
requirement: !ruby/object:Gem::Requirement
|
110
|
-
none: false
|
111
|
-
requirements:
|
112
|
-
- - ~>
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: 2.3.3
|
115
86
|
type: :runtime
|
87
|
+
version_requirements: *id003
|
88
|
+
- !ruby/object:Gem::Dependency
|
89
|
+
name: addressable
|
116
90
|
prerelease: false
|
117
|
-
|
91
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
118
92
|
none: false
|
119
|
-
requirements:
|
93
|
+
requirements:
|
120
94
|
- - ~>
|
121
|
-
- !ruby/object:Gem::Version
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
hash: 5
|
97
|
+
segments:
|
98
|
+
- 2
|
99
|
+
- 3
|
100
|
+
- 3
|
122
101
|
version: 2.3.3
|
123
|
-
|
102
|
+
type: :runtime
|
103
|
+
version_requirements: *id004
|
104
|
+
- !ruby/object:Gem::Dependency
|
124
105
|
name: rake
|
125
|
-
requirement: !ruby/object:Gem::Requirement
|
126
|
-
none: false
|
127
|
-
requirements:
|
128
|
-
- - ! '>='
|
129
|
-
- !ruby/object:Gem::Version
|
130
|
-
version: '0'
|
131
|
-
type: :development
|
132
106
|
prerelease: false
|
133
|
-
|
134
|
-
none: false
|
135
|
-
requirements:
|
136
|
-
- - ! '>='
|
137
|
-
- !ruby/object:Gem::Version
|
138
|
-
version: '0'
|
139
|
-
- !ruby/object:Gem::Dependency
|
140
|
-
name: rspec
|
141
|
-
requirement: !ruby/object:Gem::Requirement
|
107
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
142
108
|
none: false
|
143
|
-
requirements:
|
144
|
-
- -
|
145
|
-
- !ruby/object:Gem::Version
|
146
|
-
|
109
|
+
requirements:
|
110
|
+
- - ">="
|
111
|
+
- !ruby/object:Gem::Version
|
112
|
+
hash: 3
|
113
|
+
segments:
|
114
|
+
- 0
|
115
|
+
version: "0"
|
147
116
|
type: :development
|
117
|
+
version_requirements: *id005
|
118
|
+
- !ruby/object:Gem::Dependency
|
119
|
+
name: rspec
|
148
120
|
prerelease: false
|
149
|
-
|
121
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
150
122
|
none: false
|
151
|
-
requirements:
|
152
|
-
- -
|
153
|
-
- !ruby/object:Gem::Version
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
none: false
|
159
|
-
requirements:
|
160
|
-
- - ! '>='
|
161
|
-
- !ruby/object:Gem::Version
|
162
|
-
version: 0.7.1
|
123
|
+
requirements:
|
124
|
+
- - ">="
|
125
|
+
- !ruby/object:Gem::Version
|
126
|
+
hash: 3
|
127
|
+
segments:
|
128
|
+
- 0
|
129
|
+
version: "0"
|
163
130
|
type: :development
|
131
|
+
version_requirements: *id006
|
132
|
+
- !ruby/object:Gem::Dependency
|
133
|
+
name: simplecov
|
164
134
|
prerelease: false
|
165
|
-
|
135
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
166
136
|
none: false
|
167
|
-
requirements:
|
168
|
-
- -
|
169
|
-
- !ruby/object:Gem::Version
|
137
|
+
requirements:
|
138
|
+
- - ">="
|
139
|
+
- !ruby/object:Gem::Version
|
140
|
+
hash: 1
|
141
|
+
segments:
|
142
|
+
- 0
|
143
|
+
- 7
|
144
|
+
- 1
|
170
145
|
version: 0.7.1
|
171
|
-
- !ruby/object:Gem::Dependency
|
172
|
-
name: webmock
|
173
|
-
requirement: !ruby/object:Gem::Requirement
|
174
|
-
none: false
|
175
|
-
requirements:
|
176
|
-
- - ! '>='
|
177
|
-
- !ruby/object:Gem::Version
|
178
|
-
version: 1.9.0
|
179
146
|
type: :development
|
147
|
+
version_requirements: *id007
|
148
|
+
- !ruby/object:Gem::Dependency
|
149
|
+
name: webmock
|
180
150
|
prerelease: false
|
181
|
-
|
151
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
182
152
|
none: false
|
183
|
-
requirements:
|
184
|
-
- -
|
185
|
-
- !ruby/object:Gem::Version
|
153
|
+
requirements:
|
154
|
+
- - ">="
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
hash: 51
|
157
|
+
segments:
|
158
|
+
- 1
|
159
|
+
- 9
|
160
|
+
- 0
|
186
161
|
version: 1.9.0
|
162
|
+
type: :development
|
163
|
+
version_requirements: *id008
|
187
164
|
description: A Ruby wrapper for accessing Yammer's REST API
|
188
165
|
email: tiabasnk@gmail.com
|
189
166
|
executables: []
|
167
|
+
|
190
168
|
extensions: []
|
169
|
+
|
191
170
|
extra_rdoc_files: []
|
192
|
-
|
171
|
+
|
172
|
+
files:
|
193
173
|
- .gitignore
|
194
174
|
- .travis.yml
|
195
175
|
- .yardopts
|
196
176
|
- CHANGELOG.md
|
177
|
+
- CONTRIBUTING.md
|
197
178
|
- Gemfile
|
198
179
|
- Gemfile.lock
|
199
180
|
- LICENSE.md
|
200
181
|
- README.md
|
201
182
|
- Rakefile
|
183
|
+
- TODO
|
202
184
|
- certs/tiabas-public.pem
|
203
|
-
- file.txt
|
204
185
|
- lib/yammer.rb
|
205
186
|
- lib/yammer/api.rb
|
206
187
|
- lib/yammer/api/autocomplete.rb
|
207
188
|
- lib/yammer/api/group.rb
|
208
189
|
- lib/yammer/api/group_membership.rb
|
190
|
+
- lib/yammer/api/invitation.rb
|
209
191
|
- lib/yammer/api/message.rb
|
210
192
|
- lib/yammer/api/network.rb
|
211
193
|
- lib/yammer/api/notification.rb
|
@@ -232,6 +214,7 @@ files:
|
|
232
214
|
- spec/api/autocomplete_spec.rb
|
233
215
|
- spec/api/group_membership_spec.rb
|
234
216
|
- spec/api/group_spec.rb
|
217
|
+
- spec/api/invitation_spec.rb
|
235
218
|
- spec/api/message_spec.rb
|
236
219
|
- spec/api/network_spec.rb
|
237
220
|
- spec/api/notification_spec.rb
|
@@ -264,35 +247,43 @@ files:
|
|
264
247
|
- spec/spec_helper.rb
|
265
248
|
- yammer.gemspec
|
266
249
|
homepage: http://tiabas.github.io/yammer-client
|
267
|
-
licenses:
|
250
|
+
licenses:
|
268
251
|
- MIT
|
269
|
-
post_install_message:
|
270
|
-
the word '
|
252
|
+
post_install_message: " Thanks for installing! If you like this gem please spread the word "
|
271
253
|
rdoc_options: []
|
272
|
-
|
254
|
+
|
255
|
+
require_paths:
|
273
256
|
- lib
|
274
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
257
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
275
258
|
none: false
|
276
|
-
requirements:
|
277
|
-
- -
|
278
|
-
- !ruby/object:Gem::Version
|
279
|
-
|
280
|
-
|
259
|
+
requirements:
|
260
|
+
- - ">="
|
261
|
+
- !ruby/object:Gem::Version
|
262
|
+
hash: 3
|
263
|
+
segments:
|
264
|
+
- 0
|
265
|
+
version: "0"
|
266
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
281
267
|
none: false
|
282
|
-
requirements:
|
283
|
-
- -
|
284
|
-
- !ruby/object:Gem::Version
|
285
|
-
|
268
|
+
requirements:
|
269
|
+
- - ">="
|
270
|
+
- !ruby/object:Gem::Version
|
271
|
+
hash: 3
|
272
|
+
segments:
|
273
|
+
- 0
|
274
|
+
version: "0"
|
286
275
|
requirements: []
|
276
|
+
|
287
277
|
rubyforge_project:
|
288
|
-
rubygems_version: 1.8.
|
278
|
+
rubygems_version: 1.8.24
|
289
279
|
signing_key:
|
290
280
|
specification_version: 3
|
291
281
|
summary: Yammer API Client - beta
|
292
|
-
test_files:
|
282
|
+
test_files:
|
293
283
|
- spec/api/autocomplete_spec.rb
|
294
284
|
- spec/api/group_membership_spec.rb
|
295
285
|
- spec/api/group_spec.rb
|
286
|
+
- spec/api/invitation_spec.rb
|
296
287
|
- spec/api/message_spec.rb
|
297
288
|
- spec/api/network_spec.rb
|
298
289
|
- spec/api/notification_spec.rb
|
@@ -323,3 +314,4 @@ test_files:
|
|
323
314
|
- spec/model/thread_spec.rb
|
324
315
|
- spec/model/user_spec.rb
|
325
316
|
- spec/spec_helper.rb
|
317
|
+
has_rdoc:
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
%ʉN����
|
2
|
+
��t�H����@�A�Xc�5a�0H�z��[��~H���~R�%���֏�� s���fJ�n=2��d[���
|
3
|
+
k#S��(���d+ ��u��!�j�ȥ+n69��AGS[�\JM�j+1� �!�7 �u�D������48#�ƶA :Q;����/���UD�Y���[�{ ��vF<�_EY3���վ�u(�ʖ�\�h#�e�{Rۛ�$�i�3̙&�����,�)�֚O*7`��
|
data/file.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
will code for food and money
|