contour 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.rdoc +9 -0
- data/README.rdoc +1 -1
- data/app/views/contour/authentications/_menu.html.erb +0 -26
- data/contour.gemspec +0 -1
- data/lib/contour.rb +9 -10
- data/lib/contour/version.rb +1 -1
- data/lib/generators/templates/contour.rb +18 -16
- metadata +10 -10
data/CHANGELOG.rdoc
CHANGED
data/README.rdoc
CHANGED
@@ -18,30 +18,4 @@
|
|
18
18
|
<%= image_tag "contour/#{image_name}_32.png", :align => 'absmiddle', :height => "28px", :title => provider_name %>
|
19
19
|
</a>
|
20
20
|
</li>
|
21
|
-
<% end %>
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
<% if false %>
|
26
|
-
<% PROVIDERS.each do |provider| %>
|
27
|
-
<% url_params = (provider == :google_apps) ? '?domain=gmail.com' : '' %>
|
28
|
-
<% if provider == :open_id %>
|
29
|
-
<% provider_name = 'OpenID' %>
|
30
|
-
<% image_name = 'openid' %>
|
31
|
-
<% elsif provider == :linked_in %>
|
32
|
-
<% provider_name = 'LinkedIn' %>
|
33
|
-
<% image_name = 'linkedin' %>
|
34
|
-
<% elsif [:LDAP, :CAS].include?(provider) %>
|
35
|
-
<% provider_name = provider.to_s.upcase %>
|
36
|
-
<% image_name = provider.to_s.downcase %>
|
37
|
-
<% else %>
|
38
|
-
<% provider_name = provider.to_s.titleize %>
|
39
|
-
<% image_name = provider.to_s.downcase %>
|
40
|
-
<% end %>
|
41
|
-
<div style="float:right;top:-4px;position:relative;height:20px;margin-right:15px">
|
42
|
-
<a href="<%= request.script_name %><%= "/" + OmniAuth.config.path_prefix.split('/').last.to_s %><%= "/" + provider.to_s.downcase %><%= url_params %>" class="noicon">
|
43
|
-
<%= image_tag "contour/#{image_name}_32.png", :align => 'absmiddle', :height => "28px", :title => provider_name %>
|
44
|
-
</a>
|
45
|
-
</div>
|
46
|
-
<% end %>
|
47
21
|
<% end %>
|
data/contour.gemspec
CHANGED
@@ -26,6 +26,5 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_dependency 'jquery-rails', '~> 1.0.17'
|
27
27
|
|
28
28
|
s.files = Dir["{app,config,db,lib}/**/*"] + ["CHANGELOG.rdoc", "contour.gemspec", "LICENSE", "Rakefile", "README.rdoc"]
|
29
|
-
# s.files = `git ls-files`.split("\n")
|
30
29
|
s.test_files = Dir["test/**/*"]
|
31
30
|
end
|
data/lib/contour.rb
CHANGED
@@ -30,20 +30,19 @@ module Contour
|
|
30
30
|
mattr_accessor :menu_items
|
31
31
|
@@menu_items = [
|
32
32
|
{
|
33
|
-
:
|
34
|
-
:
|
33
|
+
name: 'Login', display: 'not_signed_in', path: 'new_user_session_path', position: 'right', condition: 'true',
|
34
|
+
links: [{ name: 'Sign Up', path: 'new_user_registration_path' }]
|
35
35
|
},
|
36
36
|
{
|
37
|
-
:
|
38
|
-
links: [{ :
|
39
|
-
{ :
|
40
|
-
{ :
|
41
|
-
{ :
|
42
|
-
{ :name => 'Logout', :path => 'destroy_user_session_path' }]
|
37
|
+
name: 'current_user.name', eval: true, display: 'signed_in', path: 'user_path(current_user)', position: 'right', condition: 'true',
|
38
|
+
links: [{ html: '"<div class=\"small\" style=\"color:#bbb\">"+current_user.email+"</div>"', eval: true },
|
39
|
+
{ name: 'Authentications', path: 'authentications_path', condition: 'not PROVIDERS.blank?' },
|
40
|
+
{ html: "<br />" },
|
41
|
+
{ name: 'Logout', path: 'destroy_user_session_path' }]
|
43
42
|
},
|
44
43
|
{
|
45
|
-
:
|
46
|
-
:
|
44
|
+
name: 'Home', display: 'always', path: 'root_path', position: 'left', condition: 'true', image: '', image_options: {},
|
45
|
+
links: []
|
47
46
|
}
|
48
47
|
]
|
49
48
|
|
data/lib/contour/version.rb
CHANGED
@@ -17,22 +17,24 @@ Contour.setup do |config|
|
|
17
17
|
# config.header_title_image = ''
|
18
18
|
|
19
19
|
# Enter the items you wish to see in the menu
|
20
|
-
# config.menu_items =
|
21
|
-
#
|
22
|
-
#
|
23
|
-
#
|
24
|
-
# {
|
25
|
-
#
|
26
|
-
#
|
27
|
-
#
|
28
|
-
#
|
29
|
-
#
|
30
|
-
#
|
31
|
-
# }
|
32
|
-
#
|
33
|
-
#
|
34
|
-
#
|
35
|
-
#
|
20
|
+
# config.menu_items =
|
21
|
+
# [
|
22
|
+
# {
|
23
|
+
# name: 'Login', display: 'not_signed_in', path: 'new_user_session_path', position: 'right', condition: 'true',
|
24
|
+
# links: [{ name: 'Sign Up', path: 'new_user_registration_path' }]
|
25
|
+
# },
|
26
|
+
# {
|
27
|
+
# name: 'current_user.name', eval: true, display: 'signed_in', path: 'user_path(current_user)', position: 'right', condition: 'true',
|
28
|
+
# links: [{ html: '"<div class=\"small\" style=\"color:#bbb\">"+current_user.email+"</div>"', eval: true },
|
29
|
+
# { name: 'Authentications', path: 'authentications_path', condition: 'not PROVIDERS.blank?' },
|
30
|
+
# { html: "<br />" },
|
31
|
+
# { name: 'Logout', path: 'destroy_user_session_path' }]
|
32
|
+
# },
|
33
|
+
# {
|
34
|
+
# name: 'Home', display: 'always', path: 'root_path', position: 'left', condition: 'true', image: '', image_options: {},
|
35
|
+
# links: []
|
36
|
+
# }
|
37
|
+
# ]
|
36
38
|
|
37
39
|
# Enter an address of a valid RSS Feed if you would like to see news on the sign in page.
|
38
40
|
# config.news_feed = ''
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: contour
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|
16
|
-
requirement: &
|
16
|
+
requirement: &70257688319100 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: 3.1.3
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70257688319100
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: devise
|
27
|
-
requirement: &
|
27
|
+
requirement: &70257688317920 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: 1.4.9
|
33
33
|
type: :runtime
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70257688317920
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: omniauth
|
38
|
-
requirement: &
|
38
|
+
requirement: &70257688316320 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - =
|
@@ -43,10 +43,10 @@ dependencies:
|
|
43
43
|
version: 0.2.6
|
44
44
|
type: :runtime
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70257688316320
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: jquery-rails
|
49
|
-
requirement: &
|
49
|
+
requirement: &70257688315460 !ruby/object:Gem::Requirement
|
50
50
|
none: false
|
51
51
|
requirements:
|
52
52
|
- - ~>
|
@@ -54,7 +54,7 @@ dependencies:
|
|
54
54
|
version: 1.0.17
|
55
55
|
type: :runtime
|
56
56
|
prerelease: false
|
57
|
-
version_requirements: *
|
57
|
+
version_requirements: *70257688315460
|
58
58
|
description: Basic Rails Framework files and assets for layout and authentication
|
59
59
|
email: remosm@gmail.com
|
60
60
|
executables: []
|