slugtastic 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -2,7 +2,7 @@ require 'rubygems'
2
2
  require 'rake'
3
3
  require 'echoe'
4
4
 
5
- Echoe.new('slugtastic', '0.1.1') do |p|
5
+ Echoe.new('slugtastic', '0.1.2') do |p|
6
6
  p.description = "A simple slug string generator for ActiveRecord. Will populate a slug attribute from another attribute."
7
7
  p.url = "http://github.com/danbee/slugtastic"
8
8
  p.author = "Dan Barber"
data/lib/slugtastic.rb CHANGED
@@ -4,7 +4,7 @@ module Slugtastic
4
4
  end
5
5
 
6
6
  def generate_slug(string)
7
- string.downcase.gsub(/ /, '_').gsub(/[^a-z0-9\-_]/, '')
7
+ string.downcase.gsub(/ /, '_').gsub(/[^a-z0-9\-_]/, '') unless string.nil?
8
8
  end
9
9
 
10
10
  module ClassMethods
data/slugtastic.gemspec CHANGED
@@ -2,15 +2,15 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{slugtastic}
5
- s.version = "0.1.1"
5
+ s.version = "0.1.2"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Dan Barber}]
9
- s.date = %q{2011-10-04}
9
+ s.date = %q{2011-10-08}
10
10
  s.description = %q{A simple slug string generator for ActiveRecord. Will populate a slug attribute from another attribute.}
11
11
  s.email = %q{danbee@gmail.com}
12
12
  s.extra_rdoc_files = [%q{README.md}, %q{lib/slugtastic.rb}]
13
- s.files = [%q{README.md}, %q{Rakefile}, %q{lib/slugtastic.rb}, %q{Manifest}, %q{slugtastic.gemspec}]
13
+ s.files = [%q{Manifest}, %q{README.md}, %q{Rakefile}, %q{lib/slugtastic.rb}, %q{slugtastic.gemspec}]
14
14
  s.homepage = %q{http://github.com/danbee/slugtastic}
15
15
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Slugtastic}, %q{--main}, %q{README.md}]
16
16
  s.require_paths = [%q{lib}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: slugtastic
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-10-04 00:00:00.000000000Z
12
+ date: 2011-10-08 00:00:00.000000000Z
13
13
  dependencies: []
14
14
  description: A simple slug string generator for ActiveRecord. Will populate a slug
15
15
  attribute from another attribute.
@@ -20,10 +20,10 @@ extra_rdoc_files:
20
20
  - README.md
21
21
  - lib/slugtastic.rb
22
22
  files:
23
+ - Manifest
23
24
  - README.md
24
25
  - Rakefile
25
26
  - lib/slugtastic.rb
26
- - Manifest
27
27
  - slugtastic.gemspec
28
28
  homepage: http://github.com/danbee/slugtastic
29
29
  licenses: []