yam 0.0.6 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (88) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.travis.yml +5 -0
  3. data/.yardopts +10 -0
  4. data/AUTHORS +1 -0
  5. data/CHANGELOG.md +7 -0
  6. data/CONTRIBUTING.md +0 -7
  7. data/Gemfile +27 -1
  8. data/README.md +190 -67
  9. data/Rakefile +9 -3
  10. data/certs/public.pem +20 -0
  11. data/lib/yammer.rb +47 -0
  12. data/lib/yammer/api.rb +29 -0
  13. data/lib/yammer/api/autocomplete.rb +39 -0
  14. data/lib/yammer/api/group.rb +92 -0
  15. data/lib/yammer/api/group_membership.rb +46 -0
  16. data/lib/yammer/api/invitation.rb +39 -0
  17. data/lib/yammer/api/like.rb +57 -0
  18. data/lib/yammer/api/message.rb +227 -0
  19. data/lib/yammer/api/network.rb +35 -0
  20. data/lib/yammer/api/notification.rb +32 -0
  21. data/lib/yammer/api/open_graph_object.rb +92 -0
  22. data/lib/yammer/api/pending_attachment.rb +64 -0
  23. data/lib/yammer/api/search.rb +42 -0
  24. data/lib/yammer/api/subscription.rb +32 -0
  25. data/lib/yammer/api/thread.rb +37 -0
  26. data/lib/yammer/api/topic.rb +37 -0
  27. data/lib/yammer/api/user.rb +168 -0
  28. data/lib/yammer/api_handler.rb +27 -0
  29. data/lib/yammer/api_response.rb +57 -0
  30. data/lib/yammer/base.rb +208 -0
  31. data/lib/yammer/client.rb +100 -0
  32. data/lib/yammer/configurable.rb +81 -0
  33. data/lib/yammer/error.rb +75 -0
  34. data/lib/yammer/group.rb +27 -0
  35. data/lib/yammer/group_membership.rb +25 -0
  36. data/lib/yammer/http_adapter.rb +100 -0
  37. data/lib/yammer/identity_map.rb +56 -0
  38. data/lib/yammer/message.rb +32 -0
  39. data/lib/yammer/message_body.rb +27 -0
  40. data/lib/yammer/pending_attachment.rb +19 -0
  41. data/lib/yammer/thread.rb +58 -0
  42. data/lib/yammer/user.rb +66 -0
  43. data/lib/yammer/version.rb +32 -0
  44. data/{lib/yam/configuration.rb → spec/api/autocomplete_spec.rb} +18 -23
  45. data/spec/api/group_membership_spec.rb +48 -0
  46. data/spec/api/group_spec.rb +76 -0
  47. data/spec/api/invitation_spec.rb +60 -0
  48. data/spec/api/like_spec.rb +46 -0
  49. data/spec/api/message_spec.rb +136 -0
  50. data/spec/api/network_spec.rb +41 -0
  51. data/{lib/yam/client.rb → spec/api/notification_spec.rb} +22 -4
  52. data/spec/api/open_graph_object_spec.rb +67 -0
  53. data/spec/api/pending_attachment_spec.rb +56 -0
  54. data/{lib/yam/constants.rb → spec/api/search_spec.rb} +21 -8
  55. data/spec/api/subscription_spec.rb +41 -0
  56. data/{lib/yam.rb → spec/api/thread_spec.rb} +19 -12
  57. data/{lib/yam/request.rb → spec/api/topic_spec.rb} +19 -15
  58. data/spec/api/user_spec.rb +108 -0
  59. data/spec/api_response.rb +86 -0
  60. data/spec/client_spec.rb +364 -0
  61. data/spec/error_spec.rb +88 -0
  62. data/spec/fixtures/group.json +1 -0
  63. data/spec/fixtures/message.json +1 -0
  64. data/spec/fixtures/messages_in_thread.json +1 -0
  65. data/spec/fixtures/portal_thread.json +1 -0
  66. data/spec/fixtures/private_thread.json +1 -0
  67. data/spec/fixtures/public_thread.json +1 -0
  68. data/spec/fixtures/user.json +1 -0
  69. data/spec/fixtures/users_followed.json +1 -0
  70. data/spec/fixtures/users_following.json +1 -0
  71. data/spec/http_adapter_spec.rb +109 -0
  72. data/spec/identity_map_spec.rb +127 -0
  73. data/spec/mocks/attachment.txt +1 -0
  74. data/spec/model/base_spec.rb +196 -0
  75. data/spec/model/group_membership_spec.rb +57 -0
  76. data/spec/model/group_spec.rb +73 -0
  77. data/spec/model/message_spec.rb +74 -0
  78. data/spec/model/thread_spec.rb +91 -0
  79. data/spec/model/user_spec.rb +222 -0
  80. data/spec/spec_helper.rb +39 -14
  81. data/yam.gemspec +50 -28
  82. metadata +270 -187
  83. metadata.gz.sig +0 -0
  84. data/lib/yam/api.rb +0 -53
  85. data/lib/yam/connection.rb +0 -57
  86. data/lib/yam/version.rb +0 -20
  87. data/spec/yam/client_spec.rb +0 -50
  88. data/spec/yam_spec.rb +0 -87
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,5 @@
1
+ # -*- encoding: utf-8 -*-
2
+
1
3
  # Copyright (c) Microsoft Corporation
2
4
  # All rights reserved.
3
5
  #
@@ -16,33 +18,56 @@
16
18
  # permissions and limitations under the License.
17
19
 
18
20
  require 'simplecov'
21
+ require 'coveralls'
19
22
 
20
- SimpleCov.start do
21
- add_filter 'spec'
22
- end
23
+ SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter[
24
+ SimpleCov::Formatter::HTMLFormatter,
25
+ Coveralls::SimpleCov::Formatter
26
+ ]
27
+ SimpleCov.start
23
28
 
24
- require 'bourne'
29
+ require 'yammer'
25
30
  require 'rspec'
31
+ require 'rspec/autorun'
26
32
  require 'webmock/rspec'
27
- require 'yam'
28
33
 
29
- ENDPOINT = Yam::Configuration::DEFAULT_API_ENDPOINT
34
+ WebMock.disable_net_connect!(:allow => 'coveralls.io')
30
35
 
31
36
  RSpec.configure do |config|
32
- config.mock_with :mocha
33
- config.include WebMock::API
34
- config.order = :rand
35
- config.color_enabled = true
36
-
37
- config.before(:each) do
38
- Yam.set_defaults
37
+ config.mock_with :rspec
38
+ config.expect_with :rspec do |c|
39
+ c.syntax = :expect
39
40
  end
40
41
  end
41
42
 
43
+ def stub_delete(path='')
44
+ stub_request(:delete, "https://www.yammer.com#{path}")
45
+ end
46
+
47
+ def stub_get(path='')
48
+ stub_request(:get, "https://www.yammer.com#{path}")
49
+ end
50
+
51
+ def stub_post(path='')
52
+ stub_request(:post, "https://www.yammer.com#{path}")
53
+ end
54
+
55
+ def stub_put(path='')
56
+ stub_request(:put, "https://www.yammer.com#{path}")
57
+ end
58
+
42
59
  def fixture_path
43
60
  File.expand_path("../fixtures", __FILE__)
44
61
  end
45
62
 
63
+ def mock_path
64
+ File.expand_path("../mocks", __FILE__)
65
+ end
66
+
46
67
  def fixture(file)
47
- File.new(File.join(fixture_path, '/', file))
68
+ File.new("#{fixture_path}/#{file}")
69
+ end
70
+
71
+ def upload(file)
72
+ File.new("#{mock_path}/#{file}")
48
73
  end
data/yam.gemspec CHANGED
@@ -1,33 +1,55 @@
1
1
  # -*- encoding: utf-8 -*-
2
+
3
+ # Copyright (c) Microsoft Corporation
4
+ # All rights reserved.
5
+ #
6
+ # Licensed under the Apache License, Version 2.0 (the "License");
7
+ # you may not use this file except in compliance with the License.
8
+ # You may obtain a copy of the License at
9
+ #
10
+ # http://www.apache.org/licenses/LICENSE-2.0
11
+ #
12
+ # THIS CODE IS PROVIDED *AS IS* BASIS, WITHOUT WARRANTIES OR CONDITIONS OF
13
+ # ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING WITHOUT LIMITATION ANY
14
+ # IMPLIED WARRANTIES OR CONDITIONS OF TITLE, FITNESS FOR A PARTICULAR
15
+ # PURPOSE, MERCHANTABLITY OR NON-INFRINGEMENT.
16
+ #
17
+ # See the Apache Version 2.0 License for specific language governing
18
+ # permissions and limitations under the License.
19
+
2
20
  lib = File.expand_path('../lib', __FILE__)
3
21
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
22
+ require 'yammer/version'
23
+
24
+ Gem::Specification.new do |s|
25
+ s.name = 'yam'
26
+ s.version = Yammer::Version
27
+
28
+ s.date = %q{2013-06-18}
29
+ s.summary = "Yammer API Client"
30
+ s.description = "A Ruby wrapper for accessing Yammer's REST API"
31
+ s.authors = ["Kevin Mutyaba"]
32
+ s.email = %q{kmutyaba@yammer-inc.com}
33
+ s.homepage = 'http://yammer.github.io/yam'
34
+ s.rubygems_version = Yammer::Version
35
+ s.files = `git ls-files`.split("\n")
36
+ s.require_paths = ['lib']
37
+
38
+ s.licenses = ['MIT']
39
+ s.test_files = Dir.glob("spec/**/*")
40
+
41
+ s.cert_chain = ['certs/public.pem']
42
+ s.signing_key = File.expand_path("~/.gem/certs/private_key.pem") if $0 =~ /gem\z/
43
+
44
+ s.add_dependency 'oj', '~> 2.0.10'
45
+ s.add_dependency 'multi_json', '~> 1.3'
46
+ s.add_dependency 'rest-client', '~> 1.6.7'
47
+ s.add_dependency 'addressable', '~> 2.3.3'
48
+
49
+ s.add_development_dependency 'rake'
50
+ s.add_development_dependency 'rspec'
51
+ s.add_development_dependency 'simplecov', '>= 0.7.1'
52
+ s.add_development_dependency 'webmock', '>= 1.9.0'
4
53
 
5
- require 'yam/version'
6
-
7
- Gem::Specification.new do |gem|
8
- gem.name = 'yam'
9
- gem.version = Yam::VERSION
10
- gem.authors = ['Yammer team at thoughtbot']
11
- gem.email = ['yammer@thoughtbot.com']
12
- gem.description = %q{The official Yammer Ruby gem.}
13
- gem.summary = %q{A Ruby wrapper for the Yammer REST API}
14
- gem.homepage = %q{https://github.com/yammer/yam}
15
-
16
- gem.files = `git ls-files`.split($/)
17
- gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
18
- gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
19
- gem.require_paths = ['lib']
20
-
21
- gem.add_dependency 'faraday', '~> 0.8.1'
22
- gem.add_dependency 'faraday_middleware', '~> 0.9.0'
23
- gem.add_dependency 'hashie', '~> 1.2.0'
24
- gem.add_dependency 'json', '~> 1.7.6'
25
- gem.add_dependency 'multi_json', '~> 1.3'
26
- gem.add_dependency 'oauth2', '~> 0.8.0'
27
-
28
- gem.add_development_dependency 'bourne', '~> 1.0'
29
- gem.add_development_dependency 'mocha', '~> 0.9.8'
30
- gem.add_development_dependency 'rspec'
31
- gem.add_development_dependency 'simplecov', '~> 0.7.1'
32
- gem.add_development_dependency 'webmock', '~> 1.9.0'
54
+ s.post_install_message = %q{ Thanks for installing! For API help go to http://developer.yammer.com }
33
55
  end
metadata CHANGED
@@ -1,243 +1,326 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: yam
3
- version: !ruby/object:Gem::Version
4
- version: 0.0.6
3
+ version: !ruby/object:Gem::Version
4
+ hash: 23
5
5
  prerelease:
6
+ segments:
7
+ - 1
8
+ - 0
9
+ - 0
10
+ version: 1.0.0
6
11
  platform: ruby
7
- authors:
8
- - Yammer team at thoughtbot
12
+ authors:
13
+ - Kevin Mutyaba
9
14
  autorequire:
10
15
  bindir: bin
11
- cert_chain: []
12
- date: 2013-01-29 00:00:00.000000000 Z
13
- dependencies:
14
- - !ruby/object:Gem::Dependency
15
- name: faraday
16
- requirement: !ruby/object:Gem::Requirement
17
- none: false
18
- requirements:
19
- - - ~>
20
- - !ruby/object:Gem::Version
21
- version: 0.8.1
22
- type: :runtime
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-06-18 00:00:00 Z
40
+ dependencies:
41
+ - !ruby/object:Gem::Dependency
42
+ name: oj
23
43
  prerelease: false
24
- version_requirements: !ruby/object:Gem::Requirement
44
+ requirement: &id001 !ruby/object:Gem::Requirement
25
45
  none: false
26
- requirements:
46
+ requirements:
27
47
  - - ~>
28
- - !ruby/object:Gem::Version
29
- version: 0.8.1
30
- - !ruby/object:Gem::Dependency
31
- name: faraday_middleware
32
- requirement: !ruby/object:Gem::Requirement
33
- none: false
34
- requirements:
35
- - - ~>
36
- - !ruby/object:Gem::Version
37
- version: 0.9.0
48
+ - !ruby/object:Gem::Version
49
+ hash: 27
50
+ segments:
51
+ - 2
52
+ - 0
53
+ - 10
54
+ version: 2.0.10
38
55
  type: :runtime
56
+ version_requirements: *id001
57
+ - !ruby/object:Gem::Dependency
58
+ name: multi_json
39
59
  prerelease: false
40
- version_requirements: !ruby/object:Gem::Requirement
60
+ requirement: &id002 !ruby/object:Gem::Requirement
41
61
  none: false
42
- requirements:
62
+ requirements:
43
63
  - - ~>
44
- - !ruby/object:Gem::Version
45
- version: 0.9.0
46
- - !ruby/object:Gem::Dependency
47
- name: hashie
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: 1.2.0
64
+ - !ruby/object:Gem::Version
65
+ hash: 9
66
+ segments:
67
+ - 1
68
+ - 3
69
+ version: "1.3"
54
70
  type: :runtime
71
+ version_requirements: *id002
72
+ - !ruby/object:Gem::Dependency
73
+ name: rest-client
55
74
  prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
- requirements:
59
- - - ~>
60
- - !ruby/object:Gem::Version
61
- version: 1.2.0
62
- - !ruby/object:Gem::Dependency
63
- name: json
64
- requirement: !ruby/object:Gem::Requirement
75
+ requirement: &id003 !ruby/object:Gem::Requirement
65
76
  none: false
66
- requirements:
77
+ requirements:
67
78
  - - ~>
68
- - !ruby/object:Gem::Version
69
- version: 1.7.6
79
+ - !ruby/object:Gem::Version
80
+ hash: 1
81
+ segments:
82
+ - 1
83
+ - 6
84
+ - 7
85
+ version: 1.6.7
70
86
  type: :runtime
87
+ version_requirements: *id003
88
+ - !ruby/object:Gem::Dependency
89
+ name: addressable
71
90
  prerelease: false
72
- version_requirements: !ruby/object:Gem::Requirement
91
+ requirement: &id004 !ruby/object:Gem::Requirement
73
92
  none: false
74
- requirements:
93
+ requirements:
75
94
  - - ~>
76
- - !ruby/object:Gem::Version
77
- version: 1.7.6
78
- - !ruby/object:Gem::Dependency
79
- name: multi_json
80
- requirement: !ruby/object:Gem::Requirement
81
- none: false
82
- requirements:
83
- - - ~>
84
- - !ruby/object:Gem::Version
85
- version: '1.3'
95
+ - !ruby/object:Gem::Version
96
+ hash: 5
97
+ segments:
98
+ - 2
99
+ - 3
100
+ - 3
101
+ version: 2.3.3
86
102
  type: :runtime
103
+ version_requirements: *id004
104
+ - !ruby/object:Gem::Dependency
105
+ name: rake
87
106
  prerelease: false
88
- version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
- requirements:
91
- - - ~>
92
- - !ruby/object:Gem::Version
93
- version: '1.3'
94
- - !ruby/object:Gem::Dependency
95
- name: oauth2
96
- requirement: !ruby/object:Gem::Requirement
97
- none: false
98
- requirements:
99
- - - ~>
100
- - !ruby/object:Gem::Version
101
- version: 0.8.0
102
- type: :runtime
103
- prerelease: false
104
- version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
- requirements:
107
- - - ~>
108
- - !ruby/object:Gem::Version
109
- version: 0.8.0
110
- - !ruby/object:Gem::Dependency
111
- name: bourne
112
- requirement: !ruby/object:Gem::Requirement
113
- none: false
114
- requirements:
115
- - - ~>
116
- - !ruby/object:Gem::Version
117
- version: '1.0'
118
- type: :development
119
- prerelease: false
120
- version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
- requirements:
123
- - - ~>
124
- - !ruby/object:Gem::Version
125
- version: '1.0'
126
- - !ruby/object:Gem::Dependency
127
- name: mocha
128
- requirement: !ruby/object:Gem::Requirement
107
+ requirement: &id005 !ruby/object:Gem::Requirement
129
108
  none: false
130
- requirements:
131
- - - ~>
132
- - !ruby/object:Gem::Version
133
- version: 0.9.8
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ hash: 3
113
+ segments:
114
+ - 0
115
+ version: "0"
134
116
  type: :development
135
- prerelease: false
136
- version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
- requirements:
139
- - - ~>
140
- - !ruby/object:Gem::Version
141
- version: 0.9.8
142
- - !ruby/object:Gem::Dependency
117
+ version_requirements: *id005
118
+ - !ruby/object:Gem::Dependency
143
119
  name: rspec
144
- requirement: !ruby/object:Gem::Requirement
145
- none: false
146
- requirements:
147
- - - ! '>='
148
- - !ruby/object:Gem::Version
149
- version: '0'
150
- type: :development
151
120
  prerelease: false
152
- version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
- requirements:
155
- - - ! '>='
156
- - !ruby/object:Gem::Version
157
- version: '0'
158
- - !ruby/object:Gem::Dependency
159
- name: simplecov
160
- requirement: !ruby/object:Gem::Requirement
121
+ requirement: &id006 !ruby/object:Gem::Requirement
161
122
  none: false
162
- requirements:
163
- - - ~>
164
- - !ruby/object:Gem::Version
165
- version: 0.7.1
123
+ requirements:
124
+ - - ">="
125
+ - !ruby/object:Gem::Version
126
+ hash: 3
127
+ segments:
128
+ - 0
129
+ version: "0"
166
130
  type: :development
131
+ version_requirements: *id006
132
+ - !ruby/object:Gem::Dependency
133
+ name: simplecov
167
134
  prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
135
+ requirement: &id007 !ruby/object:Gem::Requirement
169
136
  none: false
170
- requirements:
171
- - - ~>
172
- - !ruby/object:Gem::Version
137
+ requirements:
138
+ - - ">="
139
+ - !ruby/object:Gem::Version
140
+ hash: 1
141
+ segments:
142
+ - 0
143
+ - 7
144
+ - 1
173
145
  version: 0.7.1
174
- - !ruby/object:Gem::Dependency
175
- name: webmock
176
- requirement: !ruby/object:Gem::Requirement
177
- none: false
178
- requirements:
179
- - - ~>
180
- - !ruby/object:Gem::Version
181
- version: 1.9.0
182
146
  type: :development
147
+ version_requirements: *id007
148
+ - !ruby/object:Gem::Dependency
149
+ name: webmock
183
150
  prerelease: false
184
- version_requirements: !ruby/object:Gem::Requirement
151
+ requirement: &id008 !ruby/object:Gem::Requirement
185
152
  none: false
186
- requirements:
187
- - - ~>
188
- - !ruby/object:Gem::Version
153
+ requirements:
154
+ - - ">="
155
+ - !ruby/object:Gem::Version
156
+ hash: 51
157
+ segments:
158
+ - 1
159
+ - 9
160
+ - 0
189
161
  version: 1.9.0
190
- description: The official Yammer Ruby gem.
191
- email:
192
- - yammer@thoughtbot.com
162
+ type: :development
163
+ version_requirements: *id008
164
+ description: A Ruby wrapper for accessing Yammer's REST API
165
+ email: kmutyaba@yammer-inc.com
193
166
  executables: []
167
+
194
168
  extensions: []
169
+
195
170
  extra_rdoc_files: []
196
- files:
171
+
172
+ files:
197
173
  - .gitignore
198
174
  - .travis.yml
175
+ - .yardopts
176
+ - AUTHORS
177
+ - CHANGELOG.md
199
178
  - CONTRIBUTING.md
200
179
  - Gemfile
201
180
  - LICENSE.txt
202
181
  - README.md
203
182
  - Rakefile
204
- - lib/yam.rb
205
- - lib/yam/api.rb
206
- - lib/yam/client.rb
207
- - lib/yam/configuration.rb
208
- - lib/yam/connection.rb
209
- - lib/yam/constants.rb
210
- - lib/yam/request.rb
211
- - lib/yam/version.rb
183
+ - certs/public.pem
184
+ - lib/yammer.rb
185
+ - lib/yammer/api.rb
186
+ - lib/yammer/api/autocomplete.rb
187
+ - lib/yammer/api/group.rb
188
+ - lib/yammer/api/group_membership.rb
189
+ - lib/yammer/api/invitation.rb
190
+ - lib/yammer/api/like.rb
191
+ - lib/yammer/api/message.rb
192
+ - lib/yammer/api/network.rb
193
+ - lib/yammer/api/notification.rb
194
+ - lib/yammer/api/open_graph_object.rb
195
+ - lib/yammer/api/pending_attachment.rb
196
+ - lib/yammer/api/search.rb
197
+ - lib/yammer/api/subscription.rb
198
+ - lib/yammer/api/thread.rb
199
+ - lib/yammer/api/topic.rb
200
+ - lib/yammer/api/user.rb
201
+ - lib/yammer/api_handler.rb
202
+ - lib/yammer/api_response.rb
203
+ - lib/yammer/base.rb
204
+ - lib/yammer/client.rb
205
+ - lib/yammer/configurable.rb
206
+ - lib/yammer/error.rb
207
+ - lib/yammer/group.rb
208
+ - lib/yammer/group_membership.rb
209
+ - lib/yammer/http_adapter.rb
210
+ - lib/yammer/identity_map.rb
211
+ - lib/yammer/message.rb
212
+ - lib/yammer/message_body.rb
213
+ - lib/yammer/pending_attachment.rb
214
+ - lib/yammer/thread.rb
215
+ - lib/yammer/user.rb
216
+ - lib/yammer/version.rb
217
+ - spec/api/autocomplete_spec.rb
218
+ - spec/api/group_membership_spec.rb
219
+ - spec/api/group_spec.rb
220
+ - spec/api/invitation_spec.rb
221
+ - spec/api/like_spec.rb
222
+ - spec/api/message_spec.rb
223
+ - spec/api/network_spec.rb
224
+ - spec/api/notification_spec.rb
225
+ - spec/api/open_graph_object_spec.rb
226
+ - spec/api/pending_attachment_spec.rb
227
+ - spec/api/search_spec.rb
228
+ - spec/api/subscription_spec.rb
229
+ - spec/api/thread_spec.rb
230
+ - spec/api/topic_spec.rb
231
+ - spec/api/user_spec.rb
232
+ - spec/api_response.rb
233
+ - spec/client_spec.rb
234
+ - spec/error_spec.rb
235
+ - spec/fixtures/group.json
236
+ - spec/fixtures/message.json
237
+ - spec/fixtures/messages_in_thread.json
238
+ - spec/fixtures/portal_thread.json
239
+ - spec/fixtures/private_thread.json
240
+ - spec/fixtures/public_thread.json
241
+ - spec/fixtures/user.json
242
+ - spec/fixtures/users_followed.json
243
+ - spec/fixtures/users_following.json
244
+ - spec/http_adapter_spec.rb
245
+ - spec/identity_map_spec.rb
246
+ - spec/mocks/attachment.txt
247
+ - spec/model/base_spec.rb
248
+ - spec/model/group_membership_spec.rb
249
+ - spec/model/group_spec.rb
250
+ - spec/model/message_spec.rb
251
+ - spec/model/thread_spec.rb
252
+ - spec/model/user_spec.rb
212
253
  - spec/spec_helper.rb
213
- - spec/yam/client_spec.rb
214
- - spec/yam_spec.rb
215
254
  - yam.gemspec
216
- homepage: https://github.com/yammer/yam
217
- licenses: []
218
- post_install_message:
255
+ homepage: http://yammer.github.io/yam
256
+ licenses:
257
+ - MIT
258
+ post_install_message: " Thanks for installing! For API help go to http://developer.yammer.com "
219
259
  rdoc_options: []
220
- require_paths:
260
+
261
+ require_paths:
221
262
  - lib
222
- required_ruby_version: !ruby/object:Gem::Requirement
263
+ required_ruby_version: !ruby/object:Gem::Requirement
223
264
  none: false
224
- requirements:
225
- - - ! '>='
226
- - !ruby/object:Gem::Version
227
- version: '0'
228
- required_rubygems_version: !ruby/object:Gem::Requirement
265
+ requirements:
266
+ - - ">="
267
+ - !ruby/object:Gem::Version
268
+ hash: 3
269
+ segments:
270
+ - 0
271
+ version: "0"
272
+ required_rubygems_version: !ruby/object:Gem::Requirement
229
273
  none: false
230
- requirements:
231
- - - ! '>='
232
- - !ruby/object:Gem::Version
233
- version: '0'
274
+ requirements:
275
+ - - ">="
276
+ - !ruby/object:Gem::Version
277
+ hash: 3
278
+ segments:
279
+ - 0
280
+ version: "0"
234
281
  requirements: []
282
+
235
283
  rubyforge_project:
236
- rubygems_version: 1.8.23
284
+ rubygems_version: 1.8.24
237
285
  signing_key:
238
286
  specification_version: 3
239
- summary: A Ruby wrapper for the Yammer REST API
240
- test_files:
287
+ summary: Yammer API Client
288
+ test_files:
289
+ - spec/api/autocomplete_spec.rb
290
+ - spec/api/group_membership_spec.rb
291
+ - spec/api/group_spec.rb
292
+ - spec/api/invitation_spec.rb
293
+ - spec/api/like_spec.rb
294
+ - spec/api/message_spec.rb
295
+ - spec/api/network_spec.rb
296
+ - spec/api/notification_spec.rb
297
+ - spec/api/open_graph_object_spec.rb
298
+ - spec/api/pending_attachment_spec.rb
299
+ - spec/api/search_spec.rb
300
+ - spec/api/subscription_spec.rb
301
+ - spec/api/thread_spec.rb
302
+ - spec/api/topic_spec.rb
303
+ - spec/api/user_spec.rb
304
+ - spec/api_response.rb
305
+ - spec/client_spec.rb
306
+ - spec/error_spec.rb
307
+ - spec/fixtures/group.json
308
+ - spec/fixtures/message.json
309
+ - spec/fixtures/messages_in_thread.json
310
+ - spec/fixtures/portal_thread.json
311
+ - spec/fixtures/private_thread.json
312
+ - spec/fixtures/public_thread.json
313
+ - spec/fixtures/user.json
314
+ - spec/fixtures/users_followed.json
315
+ - spec/fixtures/users_following.json
316
+ - spec/http_adapter_spec.rb
317
+ - spec/identity_map_spec.rb
318
+ - spec/mocks/attachment.txt
319
+ - spec/model/base_spec.rb
320
+ - spec/model/group_membership_spec.rb
321
+ - spec/model/group_spec.rb
322
+ - spec/model/message_spec.rb
323
+ - spec/model/thread_spec.rb
324
+ - spec/model/user_spec.rb
241
325
  - spec/spec_helper.rb
242
- - spec/yam/client_spec.rb
243
- - spec/yam_spec.rb
326
+ has_rdoc: