hashbrowns 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
data/hashbrowns.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{hashbrowns}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = [%q{crimsonknave}]
12
- s.date = %q{2012-12-12}
12
+ s.date = %q{2012-12-14}
13
13
  s.description = %q{Provides a DSL and helpers to convert hashes into html tables. Allows you to create overviews with selected fields, define keys whose values link to a url and so on.}
14
14
  s.email = %q{crimsonknave@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -1,10 +1,11 @@
1
1
  module HashBrowns
2
2
  module LinksHelpers
3
3
  def linkify(key, value, parent = false, id = false, text = false)
4
- return "" if value.nil? or key.nil? or !value or !key
4
+ return "" if value.nil? or key.nil?
5
+ return "false" if value == "false"
6
+ #puts "k #{key}, v #{value}, p #{parent} i #{id} t #{text} vc #{value.class}"
5
7
  key, value, parent, id, text = key.to_s, value.to_s, parent.to_s, id.to_s, text.to_s
6
8
  text = value if text
7
- #puts "k #{key}, v #{value}, p #{parent} i #{id} t #{text}"
8
9
  return link_to(text, HashBrowns.conf.link_parents[parent][key]+value).html_safe if parent && HashBrowns.conf.link_parents.has_key?(parent) && HashBrowns.conf.link_parents[parent].has_key?(key)
9
10
  return link_to(text, HashBrowns.conf.link_hash[key]+value).html_safe if HashBrowns.conf.link_hash.has_key?(key)
10
11
  return link_to(text, value).html_safe if HashBrowns.conf.links.include?(key)
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: hashbrowns
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.2
5
+ version: 0.2.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - crimsonknave
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2012-12-12 00:00:00 Z
13
+ date: 2012-12-14 00:00:00 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: haml-rails