slugtastic 0.2.1 → 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- slugtastic (0.2.0.alpha)
4
+ slugtastic (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
data/README.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  Simple gem for autogenerating permalink style slugs for your ActiveRecord models.
4
4
 
5
+ ## Requirements
6
+
7
+ * Ruby 1.9.2 or 1.9.3
8
+ * Rails 3.1 or higher.
9
+
10
+ It should work with Rails 3.0 but it hasn't been tested.
11
+
5
12
  ## Installation
6
13
 
7
14
  Add this line to your application's Gemfile:
@@ -1,3 +1,3 @@
1
1
  module Slugtastic
2
- VERSION = "0.2.1"
2
+ VERSION = "1.0.0"
3
3
  end
@@ -11,6 +11,10 @@ describe Slugtastic do
11
11
  Slugtastic.generate_slug("A simple string.").should eq "a_simple_string"
12
12
  end
13
13
 
14
+ it "generates a slug from a string with numbers" do
15
+ Slugtastic.generate_slug("Slugtastic was built in 2012.").should eq "slugtastic_was_built_in_2012"
16
+ end
17
+
14
18
  it "handles strings with hypens in them" do
15
19
  Slugtastic.generate_slug("A string - with Hyphens").should eq "a_string_-_with_hyphens"
16
20
  end
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.2.1
4
+ version: 1.0.0
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: 2012-08-18 00:00:00.000000000 Z
12
+ date: 2012-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rake
@@ -112,3 +112,4 @@ test_files:
112
112
  - spec/slugtastic/model_additions_spec.rb
113
113
  - spec/slugtastic_spec.rb
114
114
  - spec/spec_helper.rb
115
+ has_rdoc: