From 091a455a2a96de7601f83b0291b1b1846345120f Mon Sep 17 00:00:00 2001 From: Dan Barber Date: Tue, 21 Aug 2012 10:08:18 +0100 Subject: [PATCH] First major version release. --- Gemfile.lock | 2 +- lib/slugtastic/version.rb | 2 +- spec/slugtastic_spec.rb | 4 ++++ 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/Gemfile.lock b/Gemfile.lock index 33f76ae..c2ba852 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,7 +1,7 @@ PATH remote: . specs: - slugtastic (0.2.0.alpha) + slugtastic (0.2.1) GEM remote: https://rubygems.org/ diff --git a/lib/slugtastic/version.rb b/lib/slugtastic/version.rb index 2600d80..00b55f1 100644 --- a/lib/slugtastic/version.rb +++ b/lib/slugtastic/version.rb @@ -1,3 +1,3 @@ module Slugtastic - VERSION = "0.2.1" + VERSION = "1.0.0" end diff --git a/spec/slugtastic_spec.rb b/spec/slugtastic_spec.rb index c802e46..7a82d43 100644 --- a/spec/slugtastic_spec.rb +++ b/spec/slugtastic_spec.rb @@ -11,6 +11,10 @@ describe Slugtastic do Slugtastic.generate_slug("A simple string.").should eq "a_simple_string" end + it "generates a slug from a string with numbers" do + Slugtastic.generate_slug("Slugtastic was built in 2012.").should eq "slugtastic_was_built_in_2012" + end + it "handles strings with hypens in them" do Slugtastic.generate_slug("A string - with Hyphens").should eq "a_string_-_with_hyphens" end