danski-ooh-auth 0.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- data/Rakefile +1 -1
- data/app/views/authenticating_clients/edit.html.haml +10 -10
- data/app/views/authenticating_clients/show.html.haml +1 -1
- data/app/views/tokens/create.html.haml +0 -1
- data/app/views/tokens/edit.html.haml +2 -3
- data/app/views/tokens/index.html.haml +7 -0
- data/spec/controllers/tokens_spec.rb +1 -1
- metadata +2 -1
data/Rakefile
CHANGED
@@ -17,7 +17,7 @@ AUTHOR = "Dan Glegg"
|
|
17
17
|
EMAIL = "dan@angryamoeba.co.uk"
|
18
18
|
HOMEPAGE = "http://github.com/danski/ooh-auth"
|
19
19
|
SUMMARY = "Merb Slice that adds a full OAuth provider strategy to your application."
|
20
|
-
GEM_VERSION = "0.3"
|
20
|
+
GEM_VERSION = "0.3.5"
|
21
21
|
|
22
22
|
spec = Gem::Specification.new do |s|
|
23
23
|
s.rubyforge_project = 'merb'
|
@@ -6,13 +6,13 @@
|
|
6
6
|
|
7
7
|
%fieldset
|
8
8
|
%legend Application information
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
9
|
+
%dl
|
10
|
+
%dt
|
11
|
+
%label{:for => "ooh_auth_authenticating_clients_name"} Application name
|
12
|
+
%dd= text_field :name, :name=>"authenticating_client[name]", :value=>h(@authenticating_client.name)
|
13
|
+
%dt
|
14
|
+
%label{:for => "ooh_auth_authenticating_clients_name"} Web URL
|
15
|
+
%dd= text_field :web_url, :name=>"authenticating_client[web_url]", :value=>h(@authenticating_client.web_url)
|
16
|
+
%fieldset.buttons
|
17
|
+
%input{:type => "hidden", :name => "_method", :value => "put"}
|
18
|
+
=submit "Submit changes"
|
@@ -31,7 +31,7 @@
|
|
31
31
|
|
32
32
|
%dt Your OAuth Consumer Secret
|
33
33
|
%dd
|
34
|
-
%a.shared_secret_toggle{:href => "#shared_secret", :onclick
|
34
|
+
%a.shared_secret_toggle{:href => "#shared_secret", :onclick=>"this.style.display = 'none'; document.getElementById('shared_secret').style.display = 'block'; return false;"}
|
35
35
|
Nobody but myself can see. I have closed my doors, shuttered my windows and, just for today, shunned my loved ones. It is safe to show my Consumer Secret.
|
36
36
|
%span#shared_secret.secret.shared{:style => "display: none;"}= ac.secret
|
37
37
|
|
@@ -1,6 +1,5 @@
|
|
1
1
|
%h1 Authentications controller, edit action
|
2
2
|
|
3
|
-
%p Edit this file in
|
4
|
-
%tt app/views/authentications/edit.html.erb
|
3
|
+
%p Edit this file in app/views/authentications/edit.html.erb
|
5
4
|
%p For more information and examples of CRUD views read
|
6
|
-
|
5
|
+
%a{:href=>"http://wiki.merbivore.com/howto/crud_view_example_with_merb_using_erb"} this wiki page
|
@@ -38,7 +38,7 @@ describe OohAuth::Tokens do
|
|
38
38
|
it "should return OAuth-format key responses if no format is specified" do
|
39
39
|
@controller = get(sign_url_with(@authenticating_client, @controller.slice_url(:tokens, :format=>"html")))
|
40
40
|
request_token = @controller.assigns(:token)
|
41
|
-
@controller.body.should == "oauth_token=#{request_token.token_key}&oauth_token_secret=#{request_token.secret}"
|
41
|
+
@controller.body.strip.should == "oauth_token=#{request_token.token_key}&oauth_token_secret=#{request_token.secret}"
|
42
42
|
end
|
43
43
|
|
44
44
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: danski-ooh-auth
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dan Glegg
|
@@ -95,6 +95,7 @@ files:
|
|
95
95
|
- app/views/tokens/edit.html.erb
|
96
96
|
- app/views/tokens/edit.html.haml
|
97
97
|
- app/views/tokens/index.html.erb
|
98
|
+
- app/views/tokens/index.html.haml
|
98
99
|
- app/views/tokens/new.html.erb
|
99
100
|
- app/views/tokens/new.html.haml
|
100
101
|
- app/views/tokens/show.html.erb
|