merb_viewfu 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +3 -2
  2. data/lib/view_fu/tag_helper.rb +0 -16
  3. metadata +4 -13
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'merb-core'
5
5
  require 'merb-core/tasks/merb'
6
6
 
7
7
  GEM_NAME = "merb_viewfu"
8
- GEM_VERSION = "0.3"
8
+ GEM_VERSION = "0.3.1"
9
9
  AUTHOR = "Jacques Crocker"
10
10
  EMAIL = "merbjedi@gmail.com"
11
11
  HOMEPAGE = "http://merbjedi.com/"
@@ -23,7 +23,8 @@ spec = Gem::Specification.new do |s|
23
23
  s.author = AUTHOR
24
24
  s.email = EMAIL
25
25
  s.homepage = HOMEPAGE
26
- s.add_dependency('merb', '>= 1.0')
26
+
27
+ # s.add_dependency('merb', '>= 1.0')
27
28
  s.require_path = 'lib'
28
29
  s.files = %w(LICENSE README Rakefile) + Dir.glob("{lib,spec}/**/*")
29
30
 
@@ -120,22 +120,6 @@ module ViewFu
120
120
  {:style => "display:none"}
121
121
  end
122
122
 
123
- # Easily link to an image
124
- def link_to_image(image_path, label, url, options={})
125
- # setup vertical alignment
126
- vert_align = options.delete(:vert)
127
- if vert_align.nil?
128
- vert_style = "vertical-align: middle"
129
- elsif vert_align.blank?
130
- vert_style = ""
131
- else
132
- vert_style = "vertical-align: #{vert_align.to_i}px"
133
- end
134
-
135
- link_to(image_tag(image_path, :class => "vert-middle", :style => "#{vert_style}"), url, options)+" "+
136
- link_to(label, url, options)
137
- end
138
-
139
123
  def add_class_if(css_class, condition)
140
124
  if condition
141
125
  {:class => css_class}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb_viewfu
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.3"
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jacques Crocker
@@ -9,19 +9,10 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-28 00:00:00 -08:00
12
+ date: 2008-12-17 00:00:00 -08:00
13
13
  default_executable:
14
- dependencies:
15
- - !ruby/object:Gem::Dependency
16
- name: merb
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
20
- requirements:
21
- - - ">="
22
- - !ruby/object:Gem::Version
23
- version: "1.0"
24
- version:
14
+ dependencies: []
15
+
25
16
  description: View Helpers for Title, Meta tags, Browser Detect, and Common Tag Helpers
26
17
  email: merbjedi@gmail.com
27
18
  executables: []