yammer-oauth2 0.2.0 → 0.3.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.
- data.tar.gz.sig +0 -0
- data/README.md +1 -1
- data/lib/yammer-oauth2/client.rb +2 -2
- data/lib/yammer-oauth2/version.rb +2 -2
- data/spec/client_spec.rb +3 -3
- data/yammer-oauth2.gemspec +2 -2
- metadata +84 -72
- metadata.gz.sig +0 -0
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -36,7 +36,7 @@ gem install yammer-oauth2
|
|
36
36
|
|
37
37
|
require 'yammer-oauth2/client'
|
38
38
|
|
39
|
-
yammer_client = YammmerOAuth2::Client.new('
|
39
|
+
yammer_client = YammmerOAuth2::Client.new('PRbTcg9qjgKsp4jjpm1pw', 'Xn7kp7Ly0TCY4GtZWkmSsqGEPg10DmMADyjWkf2U')
|
40
40
|
|
41
41
|
```
|
42
42
|
|
data/lib/yammer-oauth2/client.rb
CHANGED
@@ -9,7 +9,7 @@ module YammerOAuth2
|
|
9
9
|
site_url = opts.delete(:site_url) || DEFAULT_URL
|
10
10
|
super(site_url, client_id, client_secret, opts)
|
11
11
|
@token_path = '/oauth2/token'
|
12
|
-
@authorize_path = '/
|
12
|
+
@authorize_path = '/dialogs/oauth'
|
13
13
|
yield self if block_given?
|
14
14
|
self
|
15
15
|
end
|
@@ -103,4 +103,4 @@ module YammerOAuth2
|
|
103
103
|
authorization_code.get_token(code, opts)
|
104
104
|
end
|
105
105
|
end
|
106
|
-
end
|
106
|
+
end
|
@@ -1,11 +1,11 @@
|
|
1
1
|
module YammerOAuth2
|
2
2
|
class Version
|
3
3
|
MAJOR = 0 unless defined? MAJOR
|
4
|
-
MINOR =
|
4
|
+
MINOR = 3 unless defined? MINOR
|
5
5
|
PATCH = 0 unless defined? PATCH
|
6
6
|
|
7
7
|
def self.to_s
|
8
8
|
[MAJOR, MINOR, PATCH].compact.join('.')
|
9
9
|
end
|
10
10
|
end
|
11
|
-
end
|
11
|
+
end
|
data/spec/client_spec.rb
CHANGED
@@ -23,7 +23,7 @@ describe YammerOAuth2::Client do
|
|
23
23
|
auth_url = subject.clientside_authorization_url
|
24
24
|
|
25
25
|
parsed_url = Addressable::URI.parse(auth_url)
|
26
|
-
expect(parsed_url.path).to eq '/
|
26
|
+
expect(parsed_url.path).to eq '/dialogs/oauth'
|
27
27
|
expect(parsed_url.query_values).to eq params
|
28
28
|
expect(parsed_url.scheme).to eq 'https'
|
29
29
|
expect(parsed_url.host).to eq 'www.yammer.com'
|
@@ -46,7 +46,7 @@ describe YammerOAuth2::Client do
|
|
46
46
|
)
|
47
47
|
|
48
48
|
parsed_url = Addressable::URI.parse(auth_url)
|
49
|
-
expect(parsed_url.path).to eq '/
|
49
|
+
expect(parsed_url.path).to eq '/dialogs/oauth'
|
50
50
|
expect(parsed_url.query_values).to eq params
|
51
51
|
expect(parsed_url.scheme).to eq 'https'
|
52
52
|
expect(parsed_url.host).to eq 'www.yammer.com'
|
@@ -78,4 +78,4 @@ describe YammerOAuth2::Client do
|
|
78
78
|
)
|
79
79
|
end
|
80
80
|
end
|
81
|
-
end
|
81
|
+
end
|
data/yammer-oauth2.gemspec
CHANGED
@@ -4,7 +4,7 @@ require 'yammer-oauth2/version'
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.authors = ["Kevin Mutyaba"]
|
7
|
-
spec.date = %q{2013-
|
7
|
+
spec.date = %q{2013-10-08}
|
8
8
|
spec.description = "A Yammer OAuth2 wrapper"
|
9
9
|
spec.email = %q{tiabasnk@gmail.com}
|
10
10
|
spec.files = `git ls-files`.split("\n")
|
@@ -21,4 +21,4 @@ Gem::Specification.new do |spec|
|
|
21
21
|
|
22
22
|
spec.add_dependency 'oauth2-client', '~> 1.1.2'
|
23
23
|
spec.add_development_dependency 'bundler', '~> 1.0'
|
24
|
-
end
|
24
|
+
end
|
metadata
CHANGED
@@ -1,83 +1,84 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: yammer-oauth2
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 3
|
9
|
+
- 0
|
10
|
+
version: 0.3.0
|
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
|
-
|
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
|
+
MIIDcDCCAligAwIBAgIBATANBgkqhkiG9w0BAQUFADA/MREwDwYDVQQDDAh0aWFi
|
20
|
+
YXNuazEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPyLGQBGRYDY29t
|
21
|
+
MB4XDTEzMDMwMzA2MjAxNVoXDTE0MDMwMzA2Mj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ZOMJDFcJy/oehwwxLu5XMx88WFD9jT1vRj77D7iPLbXd
|
37
|
+
rfGs/qCJKgifXd/1am5hlAH5jXU=
|
38
|
+
-----END CERTIFICATE-----
|
39
|
+
|
40
|
+
date: 2013-10-08 00:00:00 Z
|
41
|
+
dependencies:
|
42
|
+
- !ruby/object:Gem::Dependency
|
44
43
|
name: oauth2-client
|
45
|
-
requirement: !ruby/object:Gem::Requirement
|
46
|
-
none: false
|
47
|
-
requirements:
|
48
|
-
- - ~>
|
49
|
-
- !ruby/object:Gem::Version
|
50
|
-
version: 1.1.2
|
51
|
-
type: :runtime
|
52
44
|
prerelease: false
|
53
|
-
|
45
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
54
46
|
none: false
|
55
|
-
requirements:
|
47
|
+
requirements:
|
56
48
|
- - ~>
|
57
|
-
- !ruby/object:Gem::Version
|
49
|
+
- !ruby/object:Gem::Version
|
50
|
+
hash: 23
|
51
|
+
segments:
|
52
|
+
- 1
|
53
|
+
- 1
|
54
|
+
- 2
|
58
55
|
version: 1.1.2
|
59
|
-
|
56
|
+
type: :runtime
|
57
|
+
version_requirements: *id001
|
58
|
+
- !ruby/object:Gem::Dependency
|
60
59
|
name: bundler
|
61
|
-
requirement: !ruby/object:Gem::Requirement
|
62
|
-
none: false
|
63
|
-
requirements:
|
64
|
-
- - ~>
|
65
|
-
- !ruby/object:Gem::Version
|
66
|
-
version: '1.0'
|
67
|
-
type: :development
|
68
60
|
prerelease: false
|
69
|
-
|
61
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
70
62
|
none: false
|
71
|
-
requirements:
|
63
|
+
requirements:
|
72
64
|
- - ~>
|
73
|
-
- !ruby/object:Gem::Version
|
74
|
-
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
hash: 15
|
67
|
+
segments:
|
68
|
+
- 1
|
69
|
+
- 0
|
70
|
+
version: "1.0"
|
71
|
+
type: :development
|
72
|
+
version_requirements: *id002
|
75
73
|
description: A Yammer OAuth2 wrapper
|
76
74
|
email: tiabasnk@gmail.com
|
77
75
|
executables: []
|
76
|
+
|
78
77
|
extensions: []
|
78
|
+
|
79
79
|
extra_rdoc_files: []
|
80
|
-
|
80
|
+
|
81
|
+
files:
|
81
82
|
- .gitignore
|
82
83
|
- .travis.yml
|
83
84
|
- CHANGELOG.md
|
@@ -93,29 +94,40 @@ files:
|
|
93
94
|
- spec/spec_helper.rb
|
94
95
|
- yammer-oauth2.gemspec
|
95
96
|
homepage: http://tiabas.github.com/yammer-oauth2/
|
96
|
-
licenses:
|
97
|
+
licenses:
|
97
98
|
- MIT
|
98
99
|
post_install_message:
|
99
100
|
rdoc_options: []
|
100
|
-
|
101
|
+
|
102
|
+
require_paths:
|
101
103
|
- lib
|
102
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
104
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
105
|
none: false
|
104
|
-
requirements:
|
105
|
-
- -
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
|
108
|
-
|
106
|
+
requirements:
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
hash: 3
|
110
|
+
segments:
|
111
|
+
- 0
|
112
|
+
version: "0"
|
113
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
114
|
none: false
|
110
|
-
requirements:
|
111
|
-
- -
|
112
|
-
- !ruby/object:Gem::Version
|
115
|
+
requirements:
|
116
|
+
- - ">="
|
117
|
+
- !ruby/object:Gem::Version
|
118
|
+
hash: 23
|
119
|
+
segments:
|
120
|
+
- 1
|
121
|
+
- 3
|
122
|
+
- 6
|
113
123
|
version: 1.3.6
|
114
124
|
requirements: []
|
125
|
+
|
115
126
|
rubyforge_project:
|
116
|
-
rubygems_version: 1.8.
|
127
|
+
rubygems_version: 1.8.24
|
117
128
|
signing_key:
|
118
129
|
specification_version: 3
|
119
130
|
summary: OAuth2 client wrapper for Yammer
|
120
131
|
test_files: []
|
132
|
+
|
121
133
|
has_rdoc:
|
metadata.gz.sig
CHANGED
Binary file
|