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 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
- %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"
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="this.style.display = 'none'; document.getElementById('shared_secret').style.display = 'block'; return false;"}
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
 
@@ -16,7 +16,6 @@
16
16
  %li
17
17
  With permission to
18
18
  = OohAuth[:client_permission_levels][@token.permissions.to_sym][:able_to]
19
- .
20
19
  %p
21
20
  %strong You may now close this window or navigate away from this page.
22
21
 
@@ -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
- %a{:href=>"http://wiki.merbivore.com/howto/crud_view_example_with_merb_using_erb"} this wiki page
5
+ %a{:href=>"http://wiki.merbivore.com/howto/crud_view_example_with_merb_using_erb"} this wiki page
@@ -0,0 +1,7 @@
1
+ %h1 Your Tokens
2
+
3
+ %ul.tokens
4
+ -@tokens.each do |t|
5
+ %li
6
+ =h(t.authenticating_client.name)
7
+ =link_to "Revoke access", slice_url(:delete_token, t)
@@ -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: "0.3"
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