contour 0.7.0 → 0.7.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,12 @@
1
+ == 0.7.1
2
+
3
+ * Bug Fix
4
+ * Settings default menu item removed
5
+
6
+ * Documentation
7
+ * Contour Menu Items no longer require a unique id
8
+ * README updated to reflects that Contour requires Rails 3.1.3 for ~> 0.7.0
9
+
1
10
  == 0.7.0
2
11
 
3
12
  * Enhancements
@@ -36,7 +36,7 @@ In order to get registration working, you can use the modified Contour Authentic
36
36
 
37
37
  == Setting up a new project with quick authentication
38
38
 
39
- Make sure you have Rails 3.1.1
39
+ Make sure you have Rails 3.1.3
40
40
 
41
41
  rails -v
42
42
 
@@ -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 %>
@@ -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
@@ -30,20 +30,19 @@ module Contour
30
30
  mattr_accessor :menu_items
31
31
  @@menu_items = [
32
32
  {
33
- :name => 'Login', :id => 'auth', :display => 'not_signed_in', :path => 'new_user_session_path', :position => 'right',
34
- :links => [{:name => 'Sign Up', :path => 'new_user_registration_path'}]
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
- :name => 'current_user.name', :eval => true, :id => 'auth', :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 => 'Settings', :path => 'settings_path' },
40
- { :name => 'Authentications', :path => 'authentications_path', :condition => 'not PROVIDERS.blank?' },
41
- { :html => "<br />" },
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
- :name => 'Home', :id => 'home', :display => 'always', :path => 'root_path', :position => 'left',
46
- :links => []
44
+ name: 'Home', display: 'always', path: 'root_path', position: 'left', condition: 'true', image: '', image_options: {},
45
+ links: []
47
46
  }
48
47
  ]
49
48
 
@@ -2,7 +2,7 @@ module Contour
2
2
  module VERSION #:nodoc:
3
3
  MAJOR = 0
4
4
  MINOR = 7
5
- TINY = 0
5
+ TINY = 1
6
6
  BUILD = nil # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
@@ -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
- # :name => 'Login', :id => 'auth', :display => 'not_signed_in', :path => 'new_user_session_path', :position => 'right', :condition => 'true',
22
- # :links => [{:name => 'Sign Up', :path => 'new_user_registration_path'}]
23
- # },
24
- # {
25
- # :name => 'current_user.name', :eval => true, :id => 'auth', :display => 'signed_in', :path => 'user_path(current_user)', :position => 'right', :condition => 'true',
26
- # links: [{ :html => '"<div class=\"small\" style=\"color:#bbb\">"+current_user.email+"</div>"', :eval => true },
27
- # { :name => 'Settings', :path => 'settings_path' },
28
- # { :name => 'Authentications', :path => 'authentications_path', :condition => 'not PROVIDERS.blank?' },
29
- # { :html => "<br />" },
30
- # { :name => 'Logout', :path => 'destroy_user_session_path' }]
31
- # },
32
- # {
33
- # :name => 'Home', :id => 'home', :display => 'always', :path => 'root_path', :position => 'left', :condition => 'true', :image => '', :image_options => {},
34
- # :links => []
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.0
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-13 00:00:00.000000000 Z
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: &70299534040200 !ruby/object:Gem::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: *70299534040200
24
+ version_requirements: *70257688319100
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: devise
27
- requirement: &70299534039240 !ruby/object:Gem::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: *70299534039240
35
+ version_requirements: *70257688317920
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: omniauth
38
- requirement: &70299534038680 !ruby/object:Gem::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: *70299534038680
46
+ version_requirements: *70257688316320
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jquery-rails
49
- requirement: &70299534037920 !ruby/object:Gem::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: *70299534037920
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: []