muck-engine 3.2.0 → 3.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -72,18 +72,18 @@ http://www.ajaxbestiary.com/Labs/SilkSprite/
72
72
 
73
73
  == Javascript
74
74
 
75
- The muck engine uses jRails and thus jQuery for javascript:
76
- http://ennerchi.com/projects/jrails
75
+ The muck engine uses jQuery for javascript. Grab the latest version:
76
+ http://jquery.com/
77
77
 
78
78
  === Other Javascript libraries.
79
- Muck engine installs the following javascript libraries:
80
- jGrowl - http://www.stanlemon.net/projects/jgrowl.html
79
+ Muck engine also needs the following javascript libraries:
81
80
  fancybox - http://fancy.klade.lv/home
82
81
  easing - http://gsgd.co.uk/sandbox/jquery/easing/
83
82
  fancyzoom - http://orderedlist.com/articles/fancyzoom-meet-jquery
84
83
 
85
84
 
86
85
  === jGrowl
86
+ jGrowl - http://www.stanlemon.net/projects/jgrowl.html
87
87
  If you wish to enable jgrowl then add the following lines to application.js and customize each as desired:
88
88
 
89
89
  jQuery.jGrowl.defaults.position = 'center';
@@ -110,4 +110,4 @@ should be:
110
110
  record_invalid: "Falla de validación: {{errors}}"
111
111
 
112
112
 
113
- Copyright (c) 2009-2010 Tatemai, released under the MIT license
113
+ Copyright (c) 2009-2011 Tatemai, released under the MIT license
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0
1
+ 3.2.1
@@ -108,7 +108,7 @@ module MuckEngineHelper
108
108
  end
109
109
 
110
110
  # Builds a link to an image representing the service specified by name
111
- # name: Name of a service. ie twitter, google, delicious, etc
111
+ # name: Name of a service image. ie twitter.png, google.png, delicious.png, etc
112
112
  # size: Size of the image to get. Valid values are 16, 24, 48 and 60
113
113
  def service_image(name, size = 24)
114
114
  %Q{/images/service_icons/#{size}/#{name}}
@@ -117,8 +117,9 @@ module MuckEngineHelper
117
117
  # Renders an icon for the given service
118
118
  # Name is the name of the image file associated with the service
119
119
  # Size can be one of 16, 24, 48 or 60.
120
- def service_icon(name, size = 24)
121
- %Q{<img src="/images/service_icons/#{size}/#{name}" />}
120
+ def service_icon(name, size = 24, alt = nil)
121
+ alt ||= name
122
+ %Q{<img src="#{service_image(name, size)}" alt="#{alt}" />}
122
123
  end
123
124
 
124
125
  # Generates a secure mailto link
data/muck-engine.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{muck-engine}
8
- s.version = "3.2.0"
8
+ s.version = "3.2.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Justin Ball", "Joel Duffin"]
12
- s.date = %q{2010-11-18}
12
+ s.date = %q{2011-02-01}
13
13
  s.description = %q{The base engine for the muck system. Contains common tables, custom for, css and javascript.}
14
14
  s.email = %q{justin@tatemae.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: muck-engine
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
- - 0
10
- version: 3.2.0
9
+ - 1
10
+ version: 3.2.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Ball
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2010-11-18 00:00:00 -07:00
19
+ date: 2011-02-01 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency