rails_layout 1.0.21 → 1.0.22

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fc284256a4b3dc3c5bc8a293b9ce926a3be6885a
4
- data.tar.gz: e1e55b0ea3dcacd9c999f1b9408ba03fde3dff78
3
+ metadata.gz: f774866248c268a1b39f41507d2d396267f13261
4
+ data.tar.gz: 099ef9f142eee2690a74f6e61a77786a9da5b76b
5
5
  SHA512:
6
- metadata.gz: 4b8a866ec0832e8249179cbce6c02d9289af991862fa4e1f5af26bcee01089efc0f11f161283ff167ae8f33ab131bdd20b6f906004d12077a649223a7aeb6c21
7
- data.tar.gz: 5417629f250039bc4be6533ca718167f4e717de57a2a1fb5dd012bf4221cf1c90f487cad826cd028da096d7aa510001e349faa5407d55b29034a880fe4a1eb37
6
+ metadata.gz: 007f3dc4a97bde78167fc254abb5f03e384ef9ca1247dd60d510389ca2e40e587d663a3932bb6f276e11559f2b8e3ce0d79db5e73d71cebb7b8a75c9d8e70f6c
7
+ data.tar.gz: a62f5c4c3e137e8dcb90c34345fad84382480ef71595547776567892984f2695238aac4e36b838c9191065c6f9cf6df0b1cc90ea23d92ae2e81dc9f959d84333
data/CHANGELOG.textile CHANGED
@@ -1,5 +1,9 @@
1
1
  h1. CHANGELOG
2
2
 
3
+ h3. 1.0.22 September 14, 2014
4
+
5
+ * add navlink for an admin interface if Upmin is present
6
+
3
7
  h3. 1.0.21 August 12, 2014
4
8
 
5
9
  * bootstrap-sass v3.2.0 changes
@@ -62,6 +62,11 @@ LINKS
62
62
  end
63
63
  end
64
64
  end
65
+ # UPMIN (administrative dashboard)
66
+ if File.exists?('config/initializers/upmin.rb')
67
+ navlink = " <li><%= link_to 'Admin', '/admin' %></li>"
68
+ inject_into_file 'app/views/layouts/_navigation_links.html.erb', navlink + "\n", :after => "<% if current_user.admin? %>\n"
69
+ end
65
70
  end
66
71
 
67
72
  def add_tests
@@ -1,3 +1,3 @@
1
1
  module RailsLayout
2
- VERSION = "1.0.21"
2
+ VERSION = "1.0.22"
3
3
  end
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.21
4
+ version: 1.0.22
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-08-12 00:00:00.000000000 Z
11
+ date: 2014-09-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -147,7 +147,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
147
147
  version: '0'
148
148
  requirements: []
149
149
  rubyforge_project:
150
- rubygems_version: 2.4.1
150
+ rubygems_version: 2.2.2
151
151
  signing_key:
152
152
  specification_version: 4
153
153
  summary: Rails generator creates application layout files for Bootstrap and other