doorkeeper 0.6.0.rc1 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of doorkeeper might be problematic. Click here for more details.
- data/CHANGELOG.md +1 -0
- data/README.md +1 -1
- data/app/assets/stylesheets/doorkeeper/form.css +7 -2
- data/app/controllers/doorkeeper/application_controller.rb +2 -0
- data/app/helpers/doorkeeper/form_errors_helper.rb +9 -0
- data/app/views/doorkeeper/applications/_form.html.erb +2 -0
- data/lib/doorkeeper/version.rb +1 -1
- metadata +28 -25
- data/config/initializers/form_errors.rb +0 -14
data/CHANGELOG.md
CHANGED
@@ -12,6 +12,7 @@
|
|
12
12
|
- [#150] Introduce test redirect uri for applications
|
13
13
|
- bugfixes
|
14
14
|
- [#157] Response token status should be `:ok`, not `:success` [@theycallmeswift](https://github.com/theycallmeswift)
|
15
|
+
- [#159] Remove ActionView::Base.field_error_proc override (fixes #145)
|
15
16
|
- internals
|
16
17
|
- Update development dependencies
|
17
18
|
- Several refactorings
|
data/README.md
CHANGED
@@ -8,6 +8,7 @@
|
|
8
8
|
<%= f.label :name %>
|
9
9
|
<div class="input">
|
10
10
|
<%= f.text_field :name %>
|
11
|
+
<%= errors_for application, :name %>
|
11
12
|
</div>
|
12
13
|
</div>
|
13
14
|
|
@@ -15,6 +16,7 @@
|
|
15
16
|
<%= f.label :redirect_uri %>
|
16
17
|
<div class="input">
|
17
18
|
<%= f.text_field :redirect_uri %>
|
19
|
+
<%= errors_for application, :redirect_uri %>
|
18
20
|
<% if Doorkeeper.configuration.test_redirect_uri %>
|
19
21
|
<span class="help-inline">Use <%= Doorkeeper.configuration.test_redirect_uri %> for local tests</span>
|
20
22
|
<% end %>
|
data/lib/doorkeeper/version.rb
CHANGED
metadata
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: doorkeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.6.0
|
5
|
+
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Felipe Elias Philipp
|
@@ -10,11 +10,11 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-11-
|
13
|
+
date: 2012-11-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: railties
|
17
|
-
requirement: &
|
17
|
+
requirement: &70291103985780 !ruby/object:Gem::Requirement
|
18
18
|
none: false
|
19
19
|
requirements:
|
20
20
|
- - ~>
|
@@ -22,10 +22,10 @@ dependencies:
|
|
22
22
|
version: '3.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
|
-
version_requirements: *
|
25
|
+
version_requirements: *70291103985780
|
26
26
|
- !ruby/object:Gem::Dependency
|
27
27
|
name: sqlite3
|
28
|
-
requirement: &
|
28
|
+
requirement: &70291104000920 !ruby/object:Gem::Requirement
|
29
29
|
none: false
|
30
30
|
requirements:
|
31
31
|
- - ~>
|
@@ -33,10 +33,10 @@ dependencies:
|
|
33
33
|
version: 1.3.5
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
|
-
version_requirements: *
|
36
|
+
version_requirements: *70291104000920
|
37
37
|
- !ruby/object:Gem::Dependency
|
38
38
|
name: rspec-rails
|
39
|
-
requirement: &
|
39
|
+
requirement: &70291103998100 !ruby/object:Gem::Requirement
|
40
40
|
none: false
|
41
41
|
requirements:
|
42
42
|
- - ~>
|
@@ -44,10 +44,10 @@ dependencies:
|
|
44
44
|
version: 2.11.4
|
45
45
|
type: :development
|
46
46
|
prerelease: false
|
47
|
-
version_requirements: *
|
47
|
+
version_requirements: *70291103998100
|
48
48
|
- !ruby/object:Gem::Dependency
|
49
49
|
name: capybara
|
50
|
-
requirement: &
|
50
|
+
requirement: &70291104056620 !ruby/object:Gem::Requirement
|
51
51
|
none: false
|
52
52
|
requirements:
|
53
53
|
- - ~>
|
@@ -55,10 +55,10 @@ dependencies:
|
|
55
55
|
version: 1.1.2
|
56
56
|
type: :development
|
57
57
|
prerelease: false
|
58
|
-
version_requirements: *
|
58
|
+
version_requirements: *70291104056620
|
59
59
|
- !ruby/object:Gem::Dependency
|
60
60
|
name: generator_spec
|
61
|
-
requirement: &
|
61
|
+
requirement: &70291104052840 !ruby/object:Gem::Requirement
|
62
62
|
none: false
|
63
63
|
requirements:
|
64
64
|
- - ~>
|
@@ -66,10 +66,10 @@ dependencies:
|
|
66
66
|
version: 0.8.5
|
67
67
|
type: :development
|
68
68
|
prerelease: false
|
69
|
-
version_requirements: *
|
69
|
+
version_requirements: *70291104052840
|
70
70
|
- !ruby/object:Gem::Dependency
|
71
71
|
name: factory_girl
|
72
|
-
requirement: &
|
72
|
+
requirement: &70291104065760 !ruby/object:Gem::Requirement
|
73
73
|
none: false
|
74
74
|
requirements:
|
75
75
|
- - ~>
|
@@ -77,10 +77,10 @@ dependencies:
|
|
77
77
|
version: 2.6.4
|
78
78
|
type: :development
|
79
79
|
prerelease: false
|
80
|
-
version_requirements: *
|
80
|
+
version_requirements: *70291104065760
|
81
81
|
- !ruby/object:Gem::Dependency
|
82
82
|
name: timecop
|
83
|
-
requirement: &
|
83
|
+
requirement: &70291104063100 !ruby/object:Gem::Requirement
|
84
84
|
none: false
|
85
85
|
requirements:
|
86
86
|
- - ~>
|
@@ -88,10 +88,10 @@ dependencies:
|
|
88
88
|
version: 0.5.2
|
89
89
|
type: :development
|
90
90
|
prerelease: false
|
91
|
-
version_requirements: *
|
91
|
+
version_requirements: *70291104063100
|
92
92
|
- !ruby/object:Gem::Dependency
|
93
93
|
name: database_cleaner
|
94
|
-
requirement: &
|
94
|
+
requirement: &70291104059980 !ruby/object:Gem::Requirement
|
95
95
|
none: false
|
96
96
|
requirements:
|
97
97
|
- - ~>
|
@@ -99,10 +99,10 @@ dependencies:
|
|
99
99
|
version: 0.9.1
|
100
100
|
type: :development
|
101
101
|
prerelease: false
|
102
|
-
version_requirements: *
|
102
|
+
version_requirements: *70291104059980
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: bcrypt-ruby
|
105
|
-
requirement: &
|
105
|
+
requirement: &70291104084240 !ruby/object:Gem::Requirement
|
106
106
|
none: false
|
107
107
|
requirements:
|
108
108
|
- - ~>
|
@@ -110,7 +110,7 @@ dependencies:
|
|
110
110
|
version: 3.0.1
|
111
111
|
type: :development
|
112
112
|
prerelease: false
|
113
|
-
version_requirements: *
|
113
|
+
version_requirements: *70291104084240
|
114
114
|
description: Doorkeeper is an OAuth 2 provider for Rails.
|
115
115
|
email:
|
116
116
|
- felipe@applicake.com
|
@@ -136,6 +136,7 @@ files:
|
|
136
136
|
- app/controllers/doorkeeper/authorized_applications_controller.rb
|
137
137
|
- app/controllers/doorkeeper/token_info_controller.rb
|
138
138
|
- app/controllers/doorkeeper/tokens_controller.rb
|
139
|
+
- app/helpers/doorkeeper/form_errors_helper.rb
|
139
140
|
- app/validators/redirect_uri_validator.rb
|
140
141
|
- app/views/doorkeeper/applications/_form.html.erb
|
141
142
|
- app/views/doorkeeper/applications/edit.html.erb
|
@@ -147,7 +148,6 @@ files:
|
|
147
148
|
- app/views/doorkeeper/authorizations/show.html.erb
|
148
149
|
- app/views/doorkeeper/authorized_applications/index.html.erb
|
149
150
|
- app/views/layouts/doorkeeper/application.html.erb
|
150
|
-
- config/initializers/form_errors.rb
|
151
151
|
- config/locales/en.yml
|
152
152
|
- doorkeeper.gemspec
|
153
153
|
- lib/doorkeeper.rb
|
@@ -360,13 +360,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
360
360
|
version: '0'
|
361
361
|
segments:
|
362
362
|
- 0
|
363
|
-
hash: -
|
363
|
+
hash: -1014835453915892093
|
364
364
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
365
365
|
none: false
|
366
366
|
requirements:
|
367
|
-
- - ! '
|
367
|
+
- - ! '>='
|
368
368
|
- !ruby/object:Gem::Version
|
369
|
-
version:
|
369
|
+
version: '0'
|
370
|
+
segments:
|
371
|
+
- 0
|
372
|
+
hash: -1014835453915892093
|
370
373
|
requirements: []
|
371
374
|
rubyforge_project:
|
372
375
|
rubygems_version: 1.8.12
|
@@ -1,14 +0,0 @@
|
|
1
|
-
ActionView::Base.field_error_proc = Proc.new do |html_tag, instance|
|
2
|
-
if html_tag.match("input")
|
3
|
-
message = (error = instance.error_message).respond_to?(:join) ? error.join(",") : error
|
4
|
-
%(<span class="error">
|
5
|
-
#{html_tag}
|
6
|
-
<span class="help-inline">
|
7
|
-
#{message}
|
8
|
-
</span>
|
9
|
-
</span>
|
10
|
-
).html_safe
|
11
|
-
else
|
12
|
-
html_tag
|
13
|
-
end
|
14
|
-
end
|