Permalink
Browse files

Added homepage, made method a class method.

  • Loading branch information...
1 parent 8983669 commit 38d3034a7db00a7d066d9a3dabb856f532024b32 @ehlertij committed May 12, 2011
Showing with 3 additions and 3 deletions.
  1. +1 −1 lib/mail_merge.rb
  2. +1 −1 lib/mail_merge/version.rb
  3. +1 −1 mail_merge.gemspec
View
@@ -4,7 +4,7 @@ module MailMerge
# will search text_block.content and find all instances of ::user.[method]::
# and ::site.[method]:: and send the [method] to the associated object
# Chaining works as well (ex. ::site.organization.name:: yields 'TST Media')
- def merge(content, options = {}, merge_fields = [], delimeter = "::")
+ def self.merge(content, options = {}, merge_fields = [], delimeter = "::")
options.keys.each do |key|
obj = options[key]
merged = content.gsub(/#{delimeter}#{key.to_s}\.[\w|\.]*#{delimeter}/) do |s|
@@ -1,3 +1,3 @@
module MailMerge
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
end
View
@@ -8,7 +8,7 @@ Gem::Specification.new do |s|
s.platform = Gem::Platform::RUBY
s.authors = ["Ian Ehlert"]
s.email = ["ehlertij@gmail.com"]
- s.homepage = ""
+ s.homepage = "https://github.com/ehlertij/mail_merge"
s.summary = %q{Mail Merge Gem}
s.description = %q{A simple gem that will perform a mail merge on a string based on merge fields provided.}

0 comments on commit 38d3034

Please sign in to comment.