slugtastic 0.2.1 → 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/Gemfile.lock +1 -1
- data/README.md +7 -0
- data/lib/slugtastic/version.rb +1 -1
- data/spec/slugtastic_spec.rb +4 -0
- metadata +3 -2
    
        data/Gemfile.lock
    CHANGED
    
    
    
        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:
         | 
    
        data/lib/slugtastic/version.rb
    CHANGED
    
    
    
        data/spec/slugtastic_spec.rb
    CHANGED
    
    | @@ -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. | 
| 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- | 
| 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: 
         |