rails_layout 1.0.6 → 1.0.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.textile +4 -0
- data/lib/generators/layout/navigation/navigation_generator.rb +4 -10
- data/lib/rails_layout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 913fa9b0ba9defd19191923a7f8aea57d3cd703c
|
4
|
+
data.tar.gz: 46779058a67b6d3f7e6ead5ef26ca05e6568fd6b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3390e2e82341dc16307268f493b0eca89ebbb19ab3d132ffd5a495faff4f7edcac53235505da5125651a758c750bd74b85e056100d182bd320efe919293018f0
|
7
|
+
data.tar.gz: c8500ff57f65b1f99fc6fafdfe89d7122eb6218394a2b862bbefea491366cb71d534fa0a460faf6984e9b376d349053666c9e60c01dab8e376a5afdeb86e6e63
|
data/CHANGELOG.textile
CHANGED
@@ -16,20 +16,14 @@ module Layout
|
|
16
16
|
append_file 'app/views/layouts/_navigation_links.html.erb', "<li><%= link_to 'About', page_path('about') %></li>\n" if File.exists?("app/views/pages/about.html.#{ext}")
|
17
17
|
# CONTACT
|
18
18
|
append_file 'app/views/layouts/_navigation_links.html.erb', "<li><%= link_to 'Contact', new_contact_path %></li>\n" if File.exists?("app/views/contacts/new.html.#{ext}")
|
19
|
-
# DEVISE
|
20
|
-
if
|
19
|
+
# DEVISE
|
20
|
+
if File.exists?('config/initializers/devise.rb')
|
21
21
|
append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
|
22
22
|
<% if user_signed_in? %>
|
23
23
|
<li><%= link_to 'Logout', destroy_user_session_path, :method=>'delete' %></li>
|
24
24
|
<% else %>
|
25
25
|
<li><%= link_to 'Login', new_user_session_path %></li>
|
26
26
|
<% end %>
|
27
|
-
LINKS
|
28
|
-
end
|
29
|
-
end
|
30
|
-
# DEVISE SIGN UP
|
31
|
-
if Dir.glob("app/views/devise/registrations/new.html.{#{ext},erb}").any?
|
32
|
-
append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
|
33
27
|
<% if user_signed_in? %>
|
34
28
|
<li><%= link_to 'Edit account', edit_user_registration_path %></li>
|
35
29
|
<% else %>
|
@@ -38,7 +32,7 @@ LINKS
|
|
38
32
|
LINKS
|
39
33
|
end
|
40
34
|
end
|
41
|
-
# USERS
|
35
|
+
# USERS
|
42
36
|
if Dir.glob("app/views/users/index.html.{#{ext},erb}").any?
|
43
37
|
append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
|
44
38
|
<% if user_signed_in? %>
|
@@ -48,7 +42,7 @@ LINKS
|
|
48
42
|
end
|
49
43
|
end
|
50
44
|
# OMNIAUTH
|
51
|
-
if
|
45
|
+
if File.exists?('config/initializers/omniauth.rb')
|
52
46
|
append_file 'app/views/layouts/_navigation_links.html.erb' do <<-LINKS
|
53
47
|
<% if user_signed_in? %>
|
54
48
|
<li><%= link_to 'Logout', signout_path %></li>
|
data/lib/rails_layout/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_layout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Kehoe
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|