yam 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2374b08700b4fa2d18344496c086d0b8480107da
4
- data.tar.gz: 6720b27fa642e2697352f125ee27a9005cae2a9f
3
+ metadata.gz: efe7da45d1384aa987bb650493e8a5e3b68871bc
4
+ data.tar.gz: af3421c4a699211c7ce4f0b017ada9b021197777
5
5
  SHA512:
6
- metadata.gz: a6f739f3511bcc24e9254a444ddc5ee27b35c08dfd1029e34565664a36a7004e390bfe37bf6a13cf3a064fffe2f3c4291985c9c5ca2504bc2082c276bf85e0d9
7
- data.tar.gz: bc52ae55b4c8fbec4b6652fee1287c3826e9123bb00ffe46e93d106f0b6187d15eb5c7f1e3864804d3388a1041ab45621ab7236d2cb8fad58f83a1cb93046b5c
6
+ metadata.gz: fe082f2ab7d0092f0c852c487fa1bb40596984796bb1f6a865bef31a7fb7fb87f06e3b66ae3c690127c40b7828abd50a27889d2008f3f313bbe59946268caccc
7
+ data.tar.gz: 8a23565f187e4104635e03ec2b9a65c958e37e2dbfa11d96a7eb098087cf5227826acaf1df72fa54c590e6427e5ed549316a4467757a512916bcbfd784900688
checksums.yaml.gz.sig CHANGED
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.yardopts CHANGED
@@ -6,5 +6,4 @@
6
6
  --markup markdown
7
7
  -
8
8
  CHANGELOG.md
9
- LICENSE.md
10
9
  README.md
data/CHANGELOG.md CHANGED
@@ -1,3 +1,12 @@
1
+
2
+ 2.0.1
3
+ ====================================
4
+ - Fixed Typo in open graph object api call
5
+
6
+ 2.0.0
7
+ ====================================
8
+ - Breaking change: put API models under Yammer::Resources
9
+
1
10
  1.1.0
2
11
  ====================================
3
12
  - added support for activity api
data/README.md CHANGED
@@ -48,13 +48,30 @@ Setup a Yammer client application as described on the [Yammer Developer site](ht
48
48
 
49
49
  ### Obtaining an access token
50
50
 
51
- 1. Construct the following URL using the client_id you received `https://www.yammer.com/dialog/oauth?client_id=[:client_id]`
51
+ 1. Construct the following GET request using the client_id you received ``
52
+
53
+
54
+ ```ruby
55
+ GET https://www.yammer.com/dialog/oauth?client_id=[:client_id]&response_type=code
56
+ ```
52
57
 
53
58
  2. Have your users follow the URL you constructed above to allow your application to access their data
54
59
 
55
60
  3. After allowing access, your users will be redirected to your callback URL `http://[:redirect_uri]?code=[:code]`
56
61
 
57
- 4. Exchange the code for an access token by making an HTTP GET request to `https://www.yammer.com/oauth2/access_token.json?client_id=[:client_id]&client_secret=[:client_secret]&code=[:code]`
62
+ 4. Exchange the code for an access token by making a POST request to Yammer
63
+
64
+ ```ruby
65
+ POST /oauth2/access_token.json HTTP/1.1
66
+ Host: www.yammer.com
67
+ Content-Type: application/x-www-form-urlencoded
68
+
69
+ client_id=[:client_id]
70
+ client_secret=[:client_secret]
71
+ code=[:code]
72
+ redirect_uri=https://example.com/oauth2/callback
73
+ grant_type=authorization_code
74
+ ```
58
75
 
59
76
  5. The authorization server will respond with an access token
60
77
 
@@ -39,7 +39,7 @@ module Yammer
39
39
  # :image => 'https://microsoft.com/global/images/test.jpg'
40
40
  # })
41
41
  def create_open_graph_object(url, props={})
42
- post("/api/v1/open_graph_objects", { :url => url, :properites => props })
42
+ post("/api/v1/open_graph_objects", { :url => url, :properties => props })
43
43
  end
44
44
 
45
45
  # Subscribes the current user to the open graph object with the request id.
@@ -16,7 +16,7 @@ module Yammer
16
16
  class Version
17
17
  MAJOR = 2 unless defined? Yammer::MAJOR
18
18
  MINOR = 0 unless defined? Yammer::MINOR
19
- PATCH = 0 unless defined? Yammer::PATCH
19
+ PATCH = 1 unless defined? Yammer::PATCH
20
20
  PRE = nil unless defined? Yammer::PRE
21
21
 
22
22
  class << self
@@ -41,7 +41,7 @@ describe Yammer::Api::Search do
41
41
  }
42
42
  subject.should_receive(:post).with('/api/v1/open_graph_objects', {
43
43
  :url=>"http://www.example.com",
44
- :properites => {
44
+ :properties => {
45
45
  :site_name => "Microsoft",
46
46
  :image => "https://example.com/global/images/test.jpg"
47
47
  }
@@ -64,4 +64,4 @@ describe Yammer::Api::Search do
64
64
  subject.get_activity_stream_open_graph_objects(4)
65
65
  end
66
66
  end
67
- end
67
+ end
data/yam.gemspec CHANGED
@@ -25,7 +25,7 @@ Gem::Specification.new do |s|
25
25
  s.name = 'yam'
26
26
  s.version = Yammer::Version
27
27
 
28
- s.date = %q{2013-11-26}
28
+ s.date = %q{2013-12-04}
29
29
  s.summary = "Yammer API Client"
30
30
 
31
31
  s.description = "A Ruby wrapper for accessing Yammer's REST API"
@@ -51,6 +51,7 @@ Gem::Specification.new do |s|
51
51
  s.add_development_dependency 'rspec'
52
52
  s.add_development_dependency 'simplecov', '>= 0.7.1'
53
53
  s.add_development_dependency 'webmock', '>= 1.9.0'
54
+ s.add_development_dependency 'yard', '>= 0.8.7.3'
54
55
 
55
56
  s.post_install_message = %q{ Thanks for installing! For API help go to http://developer.yammer.com }
56
57
  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.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Mutyaba
@@ -31,7 +31,7 @@ cert_chain:
31
31
  B+kZ9/4dAvmKkr2NPSoxBQtO7Rz0HDNLtjMxkXbQUWMDsGnB6Kk1WUBb/w3kQ9Ah
32
32
  JgIHF4cG
33
33
  -----END CERTIFICATE-----
34
- date: 2013-11-26 00:00:00.000000000 Z
34
+ date: 2013-12-04 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: oj
@@ -145,6 +145,20 @@ dependencies:
145
145
  - - '>='
146
146
  - !ruby/object:Gem::Version
147
147
  version: 1.9.0
148
+ - !ruby/object:Gem::Dependency
149
+ name: yard
150
+ requirement: !ruby/object:Gem::Requirement
151
+ requirements:
152
+ - - '>='
153
+ - !ruby/object:Gem::Version
154
+ version: 0.8.7.3
155
+ type: :development
156
+ prerelease: false
157
+ version_requirements: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - '>='
160
+ - !ruby/object:Gem::Version
161
+ version: 0.8.7.3
148
162
  description: A Ruby wrapper for accessing Yammer's REST API
149
163
  email: kmutyaba@yammer-inc.com
150
164
  executables: []
@@ -299,3 +313,4 @@ test_files:
299
313
  - spec/resources/thread_spec.rb
300
314
  - spec/resources/user_spec.rb
301
315
  - spec/spec_helper.rb
316
+ has_rdoc:
metadata.gz.sig CHANGED
Binary file