social_stream-oauth2_server 2.2.1 → 2.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/models/site/client.rb +16 -0
- data/app/views/site/clients/_edit.html.erb +6 -0
- data/app/views/site/clients/_edit_step_2.html.erb +1 -1
- data/app/views/site/clients/_edit_step_3.html.erb +1 -2
- data/app/views/site/clients/_form.html.erb +1 -1
- data/config/locales/en.yml +1 -1
- data/config/locales/es.yml +2 -1
- data/config/locales/zh.yml +1 -0
- data/lib/social_stream/oauth2_server/version.rb +1 -1
- data/social_stream-oauth2_server.gemspec +2 -1
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8be025f5e1dd04f6a72b5997dea37bbe5d23817b
|
4
|
+
data.tar.gz: cfae5587f54d621f209a6972ad08fe5a552dcd07
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 578c9ea9ff09867d840ff3c3b56782b8eec59254c79fcdd2cf39e96fb82b1887ea3c8c82657eb9a8124ffa63a87276c94274f84a55bc36c677d7080deb512cd3
|
7
|
+
data.tar.gz: 42d953118383ff91d08377156d7d6effa49b870b1887f7fb4c5c2940de1565c28adbbed16384e51ce9e0529f0a9e5dbcaee7044cbf77ad6169518d8e9312d8ee
|
data/app/models/site/client.rb
CHANGED
@@ -1,6 +1,22 @@
|
|
1
1
|
class Site::Client < Site
|
2
2
|
validates_presence_of :url, :callback_url, :secret
|
3
3
|
|
4
|
+
has_many :oauth2_tokens,
|
5
|
+
foreign_key: 'site_id',
|
6
|
+
dependent: :destroy
|
7
|
+
|
8
|
+
has_many :authorization_codes,
|
9
|
+
foreign_key: 'site_id',
|
10
|
+
class_name: 'Oauth2Token::AuthorizationCode'
|
11
|
+
|
12
|
+
has_many :access_tokens,
|
13
|
+
foreign_key: 'site_id',
|
14
|
+
class_name: 'Oauth2Token::AccessToken'
|
15
|
+
|
16
|
+
has_many :refresh_tokens,
|
17
|
+
foreign_key: 'site_id',
|
18
|
+
class_name: 'Oauth2Token::RefreshToken'
|
19
|
+
|
4
20
|
before_validation :set_secret,
|
5
21
|
on: :create
|
6
22
|
|
@@ -7,6 +7,12 @@
|
|
7
7
|
locals: { subject: resource } %>
|
8
8
|
</section>
|
9
9
|
|
10
|
+
<section class="logo">
|
11
|
+
<%= render partial: 'avatars/form',
|
12
|
+
object: resource.actor,
|
13
|
+
as: :avatarable %>
|
14
|
+
</section>
|
15
|
+
|
10
16
|
<section class="delete">
|
11
17
|
<%= render partial: 'destroy' %>
|
12
18
|
</section>
|
data/config/locales/en.yml
CHANGED
data/config/locales/es.yml
CHANGED
data/config/locales/zh.yml
CHANGED
@@ -10,9 +10,10 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.email = "social-stream@dit.upm.es"
|
11
11
|
s.homepage = "http://github.com/ging/social_stream-oauth2_server"
|
12
12
|
s.files = `git ls-files`.split("\n")
|
13
|
+
s.license = 'MIT'
|
13
14
|
|
14
15
|
# Gem dependencies
|
15
|
-
s.add_runtime_dependency('social_stream-base', '~> 2.2.
|
16
|
+
s.add_runtime_dependency('social_stream-base', '~> 2.2.2')
|
16
17
|
s.add_runtime_dependency('rack-oauth2', '~> 1.0.0')
|
17
18
|
|
18
19
|
s.add_development_dependency('rspec-rails', '~> 2.8.0')
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: social_stream-oauth2_server
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.2.
|
4
|
+
version: 2.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Antonio Tapiador
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-
|
12
|
+
date: 2013-09-25 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: social_stream-base
|
@@ -17,14 +17,14 @@ dependencies:
|
|
17
17
|
requirements:
|
18
18
|
- - ~>
|
19
19
|
- !ruby/object:Gem::Version
|
20
|
-
version: 2.2.
|
20
|
+
version: 2.2.2
|
21
21
|
type: :runtime
|
22
22
|
prerelease: false
|
23
23
|
version_requirements: !ruby/object:Gem::Requirement
|
24
24
|
requirements:
|
25
25
|
- - ~>
|
26
26
|
- !ruby/object:Gem::Version
|
27
|
-
version: 2.2.
|
27
|
+
version: 2.2.2
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: rack-oauth2
|
30
30
|
requirement: !ruby/object:Gem::Requirement
|
@@ -149,7 +149,8 @@ files:
|
|
149
149
|
- spec/models/site/client_authorization_spec.rb
|
150
150
|
- spec/models/site/client_spec.rb
|
151
151
|
homepage: http://github.com/ging/social_stream-oauth2_server
|
152
|
-
licenses:
|
152
|
+
licenses:
|
153
|
+
- MIT
|
153
154
|
metadata: {}
|
154
155
|
post_install_message:
|
155
156
|
rdoc_options: []
|