chef-server-webui 10.14.0.beta.3 → 10.14.0.rc.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -151,7 +151,12 @@ class Cookbooks < Application
151
151
  when "plain"
152
152
  show_plain_file(url)
153
153
  else
154
- syntax_highlight(url)
154
+ begin
155
+ syntax_highlight(url)
156
+ rescue
157
+ Chef::Log.error("Error while parsing file #{url}")
158
+ show_plain_file(url)
159
+ end
155
160
  end
156
161
  end
157
162
 
@@ -133,6 +133,7 @@ class Users < Application
133
133
  Chef::Log.error("#{e}\n#{e.backtrace.join("\n")}")
134
134
  @user = Chef::WebUIUser.new
135
135
  @_message = { :error => "Could not complete logging in." }
136
+ @environments = []
136
137
  render :login
137
138
  end
138
139
  end
@@ -11,7 +11,7 @@
11
11
  %th &nbsp;
12
12
  %th.last &nbsp;
13
13
  - even = false;
14
- - @clients_list.each do |client|
14
+ - @clients_list.sort_by {|value| value.downcase}.each do |client|
15
15
  %tr{ :class => even ? "even" : "odd" }
16
16
  %td{:colspan => 2}= link_to(client, url(:client, client))
17
17
  %td
@@ -10,7 +10,7 @@
10
10
  %th Latest Version
11
11
  %th Other Versions
12
12
  %tbody.cookbook_versions
13
- - @cl.keys.sort.each do |cookbook|
13
+ - @cl.keys.sort_by {|key,value| key.downcase}.each do |cookbook|
14
14
  - versions = @cl[cookbook]
15
15
  %tr
16
16
  %td= cookbook
@@ -12,7 +12,7 @@
12
12
  %th &nbsp;
13
13
  %th.last &nbsp;
14
14
  %tbody
15
- - @databags.sort.each_with_index do |databag, index|
15
+ - @databags.sort_by {|key, value| value.downcase}.each_with_index do |databag, index|
16
16
  %tr{:class => "#{index % 2 == 1 ? 'odd' : 'even'}"}
17
17
  %td{:colspan => 2}= link_to databag[0], url(:databag, { :id => databag[0] })
18
18
  %td
@@ -11,7 +11,7 @@
11
11
  %th &nbsp;
12
12
  %th.last &nbsp;
13
13
  - even = false;
14
- - @environment_list.each do |env|
14
+ - @environment_list.sort_by {|key,value| key.downcase}.each do |env|
15
15
  %tr{ :class => even ? "even" : "odd" }
16
16
  %td{:colspan => 2}= link_to(env[0], url(:environment, env[0]))
17
17
  %td
@@ -18,7 +18,7 @@
18
18
  - else
19
19
  %td{:colspan => 4}= "You have no nodes - try connecting one, or creating or editing a #{link_to('node', url(:nodes))}"
20
20
  - else
21
- - @node_list.each do |node|
21
+ - @node_list.sort_by {|value| value.downcase}.each do |node|
22
22
  %tr{:class => even ? "even": "odd" }
23
23
  %td{:colspan => 2}= link_to node, url(:node, { :id => node } )
24
24
  %td
@@ -11,7 +11,7 @@
11
11
  %th &nbsp;
12
12
  %th.last &nbsp;
13
13
  - even = false;
14
- - @role_list.each do |role|
14
+ - @role_list.sort_by {|value| value.downcase}.each do |role|
15
15
  %tr{ :class => even ? "even" : "odd" }
16
16
  %td{:colspan => 2}= link_to(role[0], url(:role, role[0]))
17
17
  %td
@@ -11,7 +11,7 @@
11
11
  %th &nbsp;
12
12
  %th.last &nbsp;
13
13
  - even = false
14
- - @users.sort.each do |user, user_url|
14
+ - @users.sort_by {|key,value| key.downcase}.each do |user, user_url|
15
15
  %tr{:class => even ? "even": "odd" }
16
16
  %td{:colspan => 2}= link_to user, url(:users_show, :user_id => user)
17
17
  %td
@@ -1,3 +1,3 @@
1
1
  module ChefServerWebui
2
- VERSION = '10.14.0.beta.3'
2
+ VERSION = '10.14.0.rc.0'
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chef-server-webui
3
3
  version: !ruby/object:Gem::Version
4
- hash: 2792674699
4
+ hash: -2959492522
5
5
  prerelease: 8
6
6
  segments:
7
7
  - 10
8
8
  - 14
9
9
  - 0
10
- - beta
11
- - 3
12
- version: 10.14.0.beta.3
10
+ - rc
11
+ - 0
12
+ version: 10.14.0.rc.0
13
13
  platform: ruby
14
14
  authors:
15
15
  - Opscode
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2012-07-26 00:00:00 Z
20
+ date: 2012-08-21 00:00:00 Z
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  requirement: &id001 !ruby/object:Gem::Requirement