statusz 0.1.0.pre.3 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/statusz/version.rb +1 -1
  2. data/lib/statusz.rb +5 -2
  3. metadata +5 -5
@@ -1,3 +1,3 @@
1
1
  module Statusz
2
- VERSION = "0.1.0.pre.3"
2
+ VERSION = "0.1.0"
3
3
  end
data/lib/statusz.rb CHANGED
@@ -63,8 +63,11 @@ module Statusz
63
63
  fields.to_json
64
64
  when :html
65
65
  html_values = fields.reduce({}) do |h, (field, value)|
66
- pair = (field == "all commits") ? { field => value.split("\n") } : { field => CGI.escapeHTML(value) }
67
- h.merge pair
66
+ if field == "all commits"
67
+ h.merge(field => value.split("\n"))
68
+ else
69
+ h.merge(field => CGI.escapeHTML(value.to_s))
70
+ end
68
71
  end
69
72
  ERB.new(File.read(File.join(File.dirname(__FILE__), "statusz.erb"))).result(binding)
70
73
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: statusz
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0.pre.3
5
- prerelease: 6
4
+ version: 0.1.0
5
+ prerelease:
6
6
  platform: ruby
7
7
  authors:
8
8
  - Caleb Spare
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-10-29 00:00:00.000000000 Z
12
+ date: 2012-10-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rack
@@ -103,9 +103,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
103
103
  required_rubygems_version: !ruby/object:Gem::Requirement
104
104
  none: false
105
105
  requirements:
106
- - - ! '>'
106
+ - - ! '>='
107
107
  - !ruby/object:Gem::Version
108
- version: 1.3.1
108
+ version: '0'
109
109
  requirements: []
110
110
  rubyforge_project:
111
111
  rubygems_version: 1.8.23