contour 1.0.0.beta7 → 1.0.0.beta8

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -14,29 +14,7 @@ Or update your Gemfile to include:
14
14
 
15
15
  == Getting started
16
16
 
17
- Contour depends on a config initializer. The config initializer is used to set various default settings in the layout, and also allows the menu to be created using a ruby hash. To install a template you can run:
18
-
19
- rails generate contour:install
20
-
21
- Contour uses a template to generate your application layout. You can add the following in your application_controller.rb:
22
-
23
- layout "contour/layouts/application"
24
-
25
- Contour also provides a custom jquery-ui and BlueTrip CSS Framework. To include these, add the following to your application.css manifest (after "*= require_self" and before "*= require_tree ."):
26
-
27
- *= require contour
28
-
29
- Contour provides custom JavaScript. In order to make the application layout function properly include the following at the beginning of your application.js (before "//= require_tree ." replacing "//= require jquery" and "//= require jquery_ujs"):
30
-
31
- //= require contour
32
-
33
- In order to get registration working, you can use the modified Contour Authentications controller which overrides the default devise controller of the same name:
34
-
35
- devise_for :users, controllers: { registrations: 'contour/registrations', sessions: 'contour/sessions', passwords: 'contour/passwords' }, path_names: { sign_up: 'register', sign_in: 'login' }
36
-
37
- == Setting up a new project with quick authentication
38
-
39
- Make sure you have Rails 3.2.1
17
+ Make sure you have Rails 3.2.3
40
18
 
41
19
  rails -v
42
20
 
@@ -46,7 +24,7 @@ Make sure you have Rails 3.2.1
46
24
 
47
25
  Modify Gemfile and add
48
26
 
49
- gem 'contour', '~> 1.0.0' # Basic Layout and Assets
27
+ gem 'contour', '~> 1.0.0'
50
28
 
51
29
  Run Bundle install
52
30
 
@@ -88,7 +66,7 @@ Edit your app/assets/stylesheets/application.css manifest to use Contour CSS (af
88
66
 
89
67
  Make sure the devise line in config/routes.rb looks as follows
90
68
 
91
- devise_for :users, controllers: { registrations: 'contour/registrations', sessions: 'contour/sessions', passwords: 'contour/passwords' }, path_names: { sign_up: 'register', sign_in: 'login' }
69
+ devise_for :users, controllers: { registrations: 'contour/registrations', sessions: 'contour/sessions', passwords: 'contour/passwords', confirmations: 'contour/confirmations', unlocks: 'contour/unlocks' }, path_names: { sign_up: 'register', sign_in: 'login' }
92
70
 
93
71
  <b>If there is a line that just says 'devise_for :users' or a duplicate, <i>REMOVE IT!</i></b>
94
72
 
@@ -3,4 +3,3 @@ jQuery ->
3
3
  $(".tooltip").tooltip()
4
4
  $("a[rel=tooltip]").tooltip()
5
5
  $('.dropdown-toggle').dropdown()
6
- # $(".collapse").collapse()
@@ -0,0 +1,17 @@
1
+ /* bootstrap-base-overrides.css */
2
+ /* These overrides come after bootstrap.css but before bootstrap-responsive.css */
3
+
4
+ /* Line 1752 */
5
+ [class^="icon-"],
6
+ [class*=" icon-"] {
7
+ background-image: url(twitter-bootstrap/v2.0.3/glyphicons-halflings.png);
8
+ }
9
+
10
+ /* Line 1770 */
11
+ .icon-white {
12
+ background-image: url(twitter-bootstrap/v2.0.3/glyphicons-halflings-white.png);
13
+ }
14
+
15
+
16
+
17
+ body { padding-top: 60px; }
@@ -0,0 +1,22 @@
1
+ /* bootstrap-base-overrides.css */
2
+ /* These overrides come after bootstrap.css and bootstrap-responsive.css */
3
+
4
+ dt, dd {
5
+ line-height: 18px;
6
+ min-height: 40px;
7
+ }
8
+
9
+ /*
10
+ dt, dd {
11
+ display: block;
12
+ float: left;
13
+ margin-top: 20px;
14
+ }
15
+
16
+ dt { clear: both; }
17
+ dl { overflow: hidden; }
18
+
19
+ .dl-horizontal dd {
20
+ margin-left: 30px;
21
+ }
22
+ */
@@ -4,8 +4,9 @@
4
4
  * the top of the compiled file, but it's generally better to create a new file per style scope.
5
5
  *= require_self
6
6
  *= require twitter-bootstrap/v2.0.3/bootstrap
7
+ *= require bootstrap-base-overrides
7
8
  *= require twitter-bootstrap/v2.0.3/bootstrap-responsive
8
- *= require bootstrap_and_overrides
9
+ *= require bootstrap-responsive-overrides
9
10
  *= require jquery-ui-1.8.10.custom
10
11
  *= require jquery.qtip
11
12
  *= require contour/authentication
@@ -6,7 +6,7 @@
6
6
  <span class="icon-bar"></span>
7
7
  </a>
8
8
  <%= link_to Contour.application_name.html_safe, root_path, class: 'brand' %>
9
- <div class="nav-collapse">
9
+ <div class="nav-collapse collapse">
10
10
  <% display = signed_in? ? ['signed_in', 'always'] : ['not_signed_in', 'always'] %>
11
11
  <% Contour.menu_items.group_by{|i| i[:position]}.each do |position, items| %>
12
12
  <ul class="nav <%= 'pull-right' if position == 'right' %>">
@@ -3,7 +3,7 @@ module Contour
3
3
  MAJOR = 1
4
4
  MINOR = 0
5
5
  TINY = 0
6
- BUILD = "beta7" # nil, "pre", "rc", "rc2"
6
+ BUILD = "beta8" # nil, "pre", "rc", "rc2"
7
7
 
8
8
  STRING = [MAJOR, MINOR, TINY, BUILD].compact.join('.')
9
9
  end
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: 1.0.0.beta7
4
+ version: 1.0.0.beta8
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-07 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
16
- requirement: &70239203187000 !ruby/object:Gem::Requirement
16
+ requirement: &70353680606440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.2.3
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70239203187000
24
+ version_requirements: *70353680606440
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: jquery-rails
27
- requirement: &70239203186500 !ruby/object:Gem::Requirement
27
+ requirement: &70353680605940 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 2.0.2
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70239203186500
35
+ version_requirements: *70353680605940
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: devise
38
- requirement: &70239203186040 !ruby/object:Gem::Requirement
38
+ requirement: &70353680605480 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.0.4
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70239203186040
46
+ version_requirements: *70353680605480
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: omniauth
49
- requirement: &70239203185580 !ruby/object:Gem::Requirement
49
+ requirement: &70353680605020 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: 1.0.3
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70239203185580
57
+ version_requirements: *70353680605020
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: omniauth-openid
60
- requirement: &70239203185120 !ruby/object:Gem::Requirement
60
+ requirement: &70353680604560 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.0.1
66
66
  type: :runtime
67
67
  prerelease: false
68
- version_requirements: *70239203185120
68
+ version_requirements: *70353680604560
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: omniauth-ldap
71
- requirement: &70239203184660 !ruby/object:Gem::Requirement
71
+ requirement: &70353680604100 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.0.2
77
77
  type: :runtime
78
78
  prerelease: false
79
- version_requirements: *70239203184660
79
+ version_requirements: *70353680604100
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: omniauth-twitter
82
- requirement: &70239203184200 !ruby/object:Gem::Requirement
82
+ requirement: &70353680603640 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.0.11
88
88
  type: :runtime
89
89
  prerelease: false
90
- version_requirements: *70239203184200
90
+ version_requirements: *70353680603640
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: omniauth-facebook
93
- requirement: &70239203183740 !ruby/object:Gem::Requirement
93
+ requirement: &70353680603180 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ~>
@@ -98,10 +98,10 @@ dependencies:
98
98
  version: 1.2.0
99
99
  type: :runtime
100
100
  prerelease: false
101
- version_requirements: *70239203183740
101
+ version_requirements: *70353680603180
102
102
  - !ruby/object:Gem::Dependency
103
103
  name: omniauth-linkedin
104
- requirement: &70239203183280 !ruby/object:Gem::Requirement
104
+ requirement: &70353680622940 !ruby/object:Gem::Requirement
105
105
  none: false
106
106
  requirements:
107
107
  - - ~>
@@ -109,10 +109,10 @@ dependencies:
109
109
  version: 0.0.6
110
110
  type: :runtime
111
111
  prerelease: false
112
- version_requirements: *70239203183280
112
+ version_requirements: *70353680622940
113
113
  - !ruby/object:Gem::Dependency
114
114
  name: omniauth-cas
115
- requirement: &70239203182820 !ruby/object:Gem::Requirement
115
+ requirement: &70353680622480 !ruby/object:Gem::Requirement
116
116
  none: false
117
117
  requirements:
118
118
  - - ~>
@@ -120,10 +120,10 @@ dependencies:
120
120
  version: 0.0.6
121
121
  type: :runtime
122
122
  prerelease: false
123
- version_requirements: *70239203182820
123
+ version_requirements: *70353680622480
124
124
  - !ruby/object:Gem::Dependency
125
125
  name: sqlite3
126
- requirement: &70239203182440 !ruby/object:Gem::Requirement
126
+ requirement: &70353680622100 !ruby/object:Gem::Requirement
127
127
  none: false
128
128
  requirements:
129
129
  - - ! '>='
@@ -131,7 +131,7 @@ dependencies:
131
131
  version: '0'
132
132
  type: :development
133
133
  prerelease: false
134
- version_requirements: *70239203182440
134
+ version_requirements: *70353680622100
135
135
  description: Basic Rails Framework files and assets for layout and authentication
136
136
  email: remosm@gmail.com
137
137
  executables: []
@@ -426,7 +426,8 @@ files:
426
426
  - app/assets/javascripts/twitter-bootstrap/bootstrap-tab.js
427
427
  - app/assets/javascripts/twitter-bootstrap/bootstrap.js.coffee
428
428
  - app/assets/javascripts/twitter-bootstrap/v2.0.3/bootstrap.js
429
- - app/assets/stylesheets/bootstrap_and_overrides.css
429
+ - app/assets/stylesheets/bootstrap-base-overrides.css
430
+ - app/assets/stylesheets/bootstrap-responsive-overrides.css
430
431
  - app/assets/stylesheets/contour/authentication.css
431
432
  - app/assets/stylesheets/contour.css
432
433
  - app/assets/stylesheets/jquery-ui-1.8.10.custom.css
@@ -1,14 +0,0 @@
1
- body { padding-top: 60px; }
2
-
3
- dt, dd {
4
- display: block;
5
- float: left;
6
- margin-top: 20px;
7
- }
8
-
9
- dt { clear: both; }
10
- dl { overflow: hidden; }
11
-
12
- .dl-horizontal dd {
13
- margin-left: 30px;
14
- }