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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc036d8372a01dfcdd89be772415cfee0ec9c09d
4
- data.tar.gz: 797262eb30dea1097c1fc7d42292ff974316b836
3
+ metadata.gz: 8be025f5e1dd04f6a72b5997dea37bbe5d23817b
4
+ data.tar.gz: cfae5587f54d621f209a6972ad08fe5a552dcd07
5
5
  SHA512:
6
- metadata.gz: 2632f575f38a9414b58f23266ddd2a1b95fe02a8bb6069c499969ec98ab924768b8629ce8e11dfe4be1c04057ff6c6f1383fde3abd2f00776e52b545faa52f0c
7
- data.tar.gz: 6d25f86424c5ae4c23cd1a041762b5f4e4d2dea0cb140d2faf8ec1dbf5b01f419fe7024c71a293aceb8d080ba1d08983120abff97612848921e2f78c3e2bab03
6
+ metadata.gz: 578c9ea9ff09867d840ff3c3b56782b8eec59254c79fcdd2cf39e96fb82b1887ea3c8c82657eb9a8124ffa63a87276c94274f84a55bc36c677d7080deb512cd3
7
+ data.tar.gz: 42d953118383ff91d08377156d7d6effa49b870b1887f7fb4c5c2940de1565c28adbbed16384e51ce9e0529f0a9e5dbcaee7044cbf77ad6169518d8e9312d8ee
@@ -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>
@@ -4,7 +4,7 @@
4
4
  <h4>Set the application's logo</h4>
5
5
 
6
6
  <%= render partial: 'avatars/form',
7
- object: resource,
7
+ object: resource.actor,
8
8
  as: :avatarable %>
9
9
 
10
10
  <%= link_to "Next", polymorphic_path(resource, action: 'edit', step: 3), class: "next-step" %>
@@ -6,7 +6,6 @@
6
6
  <section class="site_client_roles">
7
7
  <%= render partial: 'relation/customs/index',
8
8
  locals: { subject: resource } %>
9
+ <%= link_to 'Finish', resource, class: "next-step" %>
9
10
  </section>
10
-
11
- <%= link_to 'Finish', resource, class: "next-step" %>
12
11
  </section>
@@ -33,7 +33,7 @@
33
33
  <%= f.label :callback_url %>
34
34
  <%= f.text_area :callback_url %>
35
35
  </div>
36
+ <%= f.submit :class => "next-step" %>
36
37
  </section>
37
- <%= f.submit :class => "next-step" %>
38
38
 
39
39
  <% end %>
@@ -66,7 +66,7 @@ en:
66
66
  title: Client sites
67
67
  managing: Managing
68
68
  new:
69
- link: Add site
69
+ link: Register site
70
70
  title: Register new client site
71
71
  oauth:
72
72
  credentials: OAuth2 Credentials
@@ -61,8 +61,9 @@ es:
61
61
  go_to_other: Ver tus otros sitios
62
62
  index:
63
63
  title: Sitios
64
+ managing: Managing
64
65
  new:
65
- link: Añadir sitio
66
+ link: Registrar sitio
66
67
  title: Registrar nuevo sitio
67
68
  oauth:
68
69
  credentials: Credenciales OAuth2
@@ -64,6 +64,7 @@ zh:
64
64
  go_to_other: See your other site clients
65
65
  index:
66
66
  title: Client sites
67
+ managing: Managing
67
68
  new:
68
69
  link: Add site
69
70
  title: Register new client site
@@ -1,5 +1,5 @@
1
1
  module SocialStream
2
2
  module Oauth2Server
3
- VERSION = "2.2.1".freeze
3
+ VERSION = "2.2.2".freeze
4
4
  end
5
5
  end
@@ -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.1')
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.1
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-08-13 00:00:00.000000000 Z
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.1
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.1
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: []