human_urls 0.1.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.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/Rakefile +37 -0
- data/config/routes.rb +2 -0
- data/lib/generators/slug_migration/USAGE +8 -0
- data/lib/generators/slug_migration/slug_migration_generator.rb +27 -0
- data/lib/generators/slug_migration/templates/slug_migration.rb +6 -0
- data/lib/human_urls/engine.rb +5 -0
- data/lib/human_urls/sluggable.rb +29 -0
- data/lib/human_urls/version.rb +3 -0
- data/lib/human_urls.rb +5 -0
- data/lib/tasks/human_urls_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/models/taggable.rb +4 -0
- data/test/dummy/app/models/taggable_w_generated_slug.rb +4 -0
- data/test/dummy/bin/bundle +3 -0
- data/test/dummy/bin/rails +4 -0
- data/test/dummy/bin/rake +4 -0
- data/test/dummy/bin/setup +29 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +12 -0
- data/test/dummy/config/environment.rb +5 -0
- data/test/dummy/config/environments/development.rb +41 -0
- data/test/dummy/config/environments/production.rb +79 -0
- data/test/dummy/config/environments/test.rb +42 -0
- data/test/dummy/config/initializers/assets.rb +11 -0
- data/test/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/test/dummy/config/initializers/cookies_serializer.rb +3 -0
- data/test/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/test/dummy/config/initializers/inflections.rb +16 -0
- data/test/dummy/config/initializers/mime_types.rb +4 -0
- data/test/dummy/config/initializers/session_store.rb +3 -0
- data/test/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/test/dummy/config/locales/en.yml +23 -0
- data/test/dummy/config/routes.rb +2 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/config.ru +4 -0
- data/test/dummy/db/migrate/20151022230845_create_posts.rb +12 -0
- data/test/dummy/db/migrate/20151029003656_create_taggable_w_generated_slugs.rb +11 -0
- data/test/dummy/db/migrate/20151029012517_rename_post_to_taggable.rb +5 -0
- data/test/dummy/db/schema.rb +37 -0
- data/test/dummy/log/development.log +114 -0
- data/test/dummy/log/test.log +3357 -0
- data/test/dummy/public/404.html +67 -0
- data/test/dummy/public/422.html +67 -0
- data/test/dummy/public/500.html +66 -0
- data/test/dummy/public/favicon.ico +0 -0
- data/test/dummy/tmp/generators/db/migrate/20151112020841_add_slug_to_posts.rb +6 -0
- data/test/human_urls/sluggable_test.rb +52 -0
- data/test/human_urls_test.rb +7 -0
- data/test/lib/generators/human_urls/slug_migration_generator_test.rb +30 -0
- data/test/test_helper.rb +16 -0
- metadata +196 -0
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The page you were looking for doesn't exist (404)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/404.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The page you were looking for doesn't exist.</h1>
|
62
|
+
<p>You may have mistyped the address or the page may have moved.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,67 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>The change you wanted was rejected (422)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/422.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>The change you wanted was rejected.</h1>
|
62
|
+
<p>Maybe you tried to change something you didn't have access to.</p>
|
63
|
+
</div>
|
64
|
+
<p>If you are the application owner check the logs for more information.</p>
|
65
|
+
</div>
|
66
|
+
</body>
|
67
|
+
</html>
|
@@ -0,0 +1,66 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>We're sorry, but something went wrong (500)</title>
|
5
|
+
<meta name="viewport" content="width=device-width,initial-scale=1">
|
6
|
+
<style>
|
7
|
+
body {
|
8
|
+
background-color: #EFEFEF;
|
9
|
+
color: #2E2F30;
|
10
|
+
text-align: center;
|
11
|
+
font-family: arial, sans-serif;
|
12
|
+
margin: 0;
|
13
|
+
}
|
14
|
+
|
15
|
+
div.dialog {
|
16
|
+
width: 95%;
|
17
|
+
max-width: 33em;
|
18
|
+
margin: 4em auto 0;
|
19
|
+
}
|
20
|
+
|
21
|
+
div.dialog > div {
|
22
|
+
border: 1px solid #CCC;
|
23
|
+
border-right-color: #999;
|
24
|
+
border-left-color: #999;
|
25
|
+
border-bottom-color: #BBB;
|
26
|
+
border-top: #B00100 solid 4px;
|
27
|
+
border-top-left-radius: 9px;
|
28
|
+
border-top-right-radius: 9px;
|
29
|
+
background-color: white;
|
30
|
+
padding: 7px 12% 0;
|
31
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
32
|
+
}
|
33
|
+
|
34
|
+
h1 {
|
35
|
+
font-size: 100%;
|
36
|
+
color: #730E15;
|
37
|
+
line-height: 1.5em;
|
38
|
+
}
|
39
|
+
|
40
|
+
div.dialog > p {
|
41
|
+
margin: 0 0 1em;
|
42
|
+
padding: 1em;
|
43
|
+
background-color: #F7F7F7;
|
44
|
+
border: 1px solid #CCC;
|
45
|
+
border-right-color: #999;
|
46
|
+
border-left-color: #999;
|
47
|
+
border-bottom-color: #999;
|
48
|
+
border-bottom-left-radius: 4px;
|
49
|
+
border-bottom-right-radius: 4px;
|
50
|
+
border-top-color: #DADADA;
|
51
|
+
color: #666;
|
52
|
+
box-shadow: 0 3px 8px rgba(50, 50, 50, 0.17);
|
53
|
+
}
|
54
|
+
</style>
|
55
|
+
</head>
|
56
|
+
|
57
|
+
<body>
|
58
|
+
<!-- This file lives in public/500.html -->
|
59
|
+
<div class="dialog">
|
60
|
+
<div>
|
61
|
+
<h1>We're sorry, but something went wrong.</h1>
|
62
|
+
</div>
|
63
|
+
<p>If you are the application owner check the logs for more information.</p>
|
64
|
+
</div>
|
65
|
+
</body>
|
66
|
+
</html>
|
File without changes
|
@@ -0,0 +1,52 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class SluggableTest < ActiveSupport::TestCase
|
4
|
+
|
5
|
+
# Two models used for testing can be found in the dummy app
|
6
|
+
# test/dummy/app/models
|
7
|
+
#
|
8
|
+
# class Taggable < ActiveRecord::Base
|
9
|
+
# include HumanUrls::Sluggable
|
10
|
+
# sluggify
|
11
|
+
# end
|
12
|
+
#
|
13
|
+
# class TaggableWGeneratedSlug < ActiveRecord::Base
|
14
|
+
# include HumanUrls::Sluggable
|
15
|
+
# sluggify :slug, generated_from: :title
|
16
|
+
# end
|
17
|
+
|
18
|
+
test "validates presence of slug" do
|
19
|
+
exp = assert_raises { Taggable.create! }
|
20
|
+
assert_match(/Validation failed: Slug can't be blank/, exp.message)
|
21
|
+
end
|
22
|
+
|
23
|
+
test "validates unqiueness of slug" do
|
24
|
+
Taggable.create!(slug: "slug")
|
25
|
+
exp = assert_raises { Taggable.create!(slug: "slug") }
|
26
|
+
assert_match(/Slug has already been taken/, exp.message)
|
27
|
+
end
|
28
|
+
|
29
|
+
test "validates unqiueness of slug and isn't case sensitive" do
|
30
|
+
Taggable.create!(slug: "Slug")
|
31
|
+
exp = assert_raises { Taggable.create!(slug: "slug") }
|
32
|
+
assert_match(/Slug has already been taken/, exp.message)
|
33
|
+
end
|
34
|
+
|
35
|
+
test "slug properly formats string to slug friendly format" do
|
36
|
+
taggable = Taggable.create!(slug: "This i$ my SLUG")
|
37
|
+
|
38
|
+
assert_match("this-i-my-slug", taggable.slug)
|
39
|
+
end
|
40
|
+
|
41
|
+
test "#to_param returns the slug" do
|
42
|
+
taggable = Taggable.create!(slug: "slug")
|
43
|
+
|
44
|
+
assert_match("slug", taggable.to_param)
|
45
|
+
end
|
46
|
+
|
47
|
+
test ".sluggify can generate slug from given attribute" do
|
48
|
+
taggable = TaggableWGeneratedSlug.create!(title: "My Title")
|
49
|
+
|
50
|
+
assert_match("my-title", taggable.slug)
|
51
|
+
end
|
52
|
+
end
|
@@ -0,0 +1,30 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
require 'generators/slug_migration/slug_migration_generator'
|
3
|
+
|
4
|
+
module HumanUrls
|
5
|
+
class SlugMigrationGeneratorTest < Rails::Generators::TestCase
|
6
|
+
tests SlugMigrationGenerator
|
7
|
+
destination Rails.root.join('tmp/generators')
|
8
|
+
setup :prepare_destination
|
9
|
+
|
10
|
+
test "generator creates proper migration" do
|
11
|
+
run_generator ["posts"]
|
12
|
+
assert_migration "db/migrate/add_slug_to_posts.rb" do |migration|
|
13
|
+
assert_instance_method :change, migration do |change|
|
14
|
+
assert_match(/add_column :posts, :slug, :string/, change)
|
15
|
+
assert_match(/add_index :posts, :slug, unique: true/, change)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
test "generator creates proper migration when using custom slug column" do
|
21
|
+
run_generator ["posts", "--slug-name=url"]
|
22
|
+
assert_migration "db/migrate/add_slug_to_posts.rb" do |migration|
|
23
|
+
assert_instance_method :change, migration do |change|
|
24
|
+
assert_match(/add_column :posts, :url, :string/, change)
|
25
|
+
assert_match(/add_index :posts, :url, unique: true/, change)
|
26
|
+
end
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Configure Rails Environment
|
2
|
+
ENV["RAILS_ENV"] = "test"
|
3
|
+
|
4
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
5
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
|
+
ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
|
7
|
+
require "rails/test_help"
|
8
|
+
require "minitest/rails"
|
9
|
+
require "minitest/pride"
|
10
|
+
require "pry-rails"
|
11
|
+
|
12
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
13
|
+
|
14
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
15
|
+
|
16
|
+
|
metadata
ADDED
@@ -0,0 +1,196 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: human_urls
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Josh Klina
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-11-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '4.1'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '4.1'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: pg
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: pry-rails
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
description: Human URLs is an intentionally simple and straight forward way to add
|
70
|
+
slugs to a Rails application.
|
71
|
+
email:
|
72
|
+
- joshua.klina@gmail.com
|
73
|
+
executables: []
|
74
|
+
extensions: []
|
75
|
+
extra_rdoc_files: []
|
76
|
+
files:
|
77
|
+
- MIT-LICENSE
|
78
|
+
- Rakefile
|
79
|
+
- config/routes.rb
|
80
|
+
- lib/generators/slug_migration/USAGE
|
81
|
+
- lib/generators/slug_migration/slug_migration_generator.rb
|
82
|
+
- lib/generators/slug_migration/templates/slug_migration.rb
|
83
|
+
- lib/human_urls.rb
|
84
|
+
- lib/human_urls/engine.rb
|
85
|
+
- lib/human_urls/sluggable.rb
|
86
|
+
- lib/human_urls/version.rb
|
87
|
+
- lib/tasks/human_urls_tasks.rake
|
88
|
+
- test/dummy/README.rdoc
|
89
|
+
- test/dummy/Rakefile
|
90
|
+
- test/dummy/app/models/taggable.rb
|
91
|
+
- test/dummy/app/models/taggable_w_generated_slug.rb
|
92
|
+
- test/dummy/bin/bundle
|
93
|
+
- test/dummy/bin/rails
|
94
|
+
- test/dummy/bin/rake
|
95
|
+
- test/dummy/bin/setup
|
96
|
+
- test/dummy/config.ru
|
97
|
+
- test/dummy/config/application.rb
|
98
|
+
- test/dummy/config/boot.rb
|
99
|
+
- test/dummy/config/database.yml
|
100
|
+
- test/dummy/config/environment.rb
|
101
|
+
- test/dummy/config/environments/development.rb
|
102
|
+
- test/dummy/config/environments/production.rb
|
103
|
+
- test/dummy/config/environments/test.rb
|
104
|
+
- test/dummy/config/initializers/assets.rb
|
105
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
106
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
107
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
108
|
+
- test/dummy/config/initializers/inflections.rb
|
109
|
+
- test/dummy/config/initializers/mime_types.rb
|
110
|
+
- test/dummy/config/initializers/session_store.rb
|
111
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
112
|
+
- test/dummy/config/locales/en.yml
|
113
|
+
- test/dummy/config/routes.rb
|
114
|
+
- test/dummy/config/secrets.yml
|
115
|
+
- test/dummy/db/migrate/20151022230845_create_posts.rb
|
116
|
+
- test/dummy/db/migrate/20151029003656_create_taggable_w_generated_slugs.rb
|
117
|
+
- test/dummy/db/migrate/20151029012517_rename_post_to_taggable.rb
|
118
|
+
- test/dummy/db/schema.rb
|
119
|
+
- test/dummy/log/development.log
|
120
|
+
- test/dummy/log/test.log
|
121
|
+
- test/dummy/public/404.html
|
122
|
+
- test/dummy/public/422.html
|
123
|
+
- test/dummy/public/500.html
|
124
|
+
- test/dummy/public/favicon.ico
|
125
|
+
- test/dummy/tmp/generators/db/migrate/20151112020841_add_slug_to_posts.rb
|
126
|
+
- test/human_urls/sluggable_test.rb
|
127
|
+
- test/human_urls_test.rb
|
128
|
+
- test/lib/generators/human_urls/slug_migration_generator_test.rb
|
129
|
+
- test/test_helper.rb
|
130
|
+
homepage: https://github.com/jklina/human-urls
|
131
|
+
licenses:
|
132
|
+
- MIT
|
133
|
+
metadata: {}
|
134
|
+
post_install_message:
|
135
|
+
rdoc_options: []
|
136
|
+
require_paths:
|
137
|
+
- lib
|
138
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
139
|
+
requirements:
|
140
|
+
- - ">="
|
141
|
+
- !ruby/object:Gem::Version
|
142
|
+
version: 2.0.0
|
143
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
144
|
+
requirements:
|
145
|
+
- - ">="
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
version: '0'
|
148
|
+
requirements: []
|
149
|
+
rubyforge_project:
|
150
|
+
rubygems_version: 2.4.5
|
151
|
+
signing_key:
|
152
|
+
specification_version: 4
|
153
|
+
summary: A simple way to add slugs to your Rails application
|
154
|
+
test_files:
|
155
|
+
- test/dummy/app/models/taggable.rb
|
156
|
+
- test/dummy/app/models/taggable_w_generated_slug.rb
|
157
|
+
- test/dummy/bin/bundle
|
158
|
+
- test/dummy/bin/rails
|
159
|
+
- test/dummy/bin/rake
|
160
|
+
- test/dummy/bin/setup
|
161
|
+
- test/dummy/config/application.rb
|
162
|
+
- test/dummy/config/boot.rb
|
163
|
+
- test/dummy/config/database.yml
|
164
|
+
- test/dummy/config/environment.rb
|
165
|
+
- test/dummy/config/environments/development.rb
|
166
|
+
- test/dummy/config/environments/production.rb
|
167
|
+
- test/dummy/config/environments/test.rb
|
168
|
+
- test/dummy/config/initializers/assets.rb
|
169
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
170
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
171
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
172
|
+
- test/dummy/config/initializers/inflections.rb
|
173
|
+
- test/dummy/config/initializers/mime_types.rb
|
174
|
+
- test/dummy/config/initializers/session_store.rb
|
175
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
176
|
+
- test/dummy/config/locales/en.yml
|
177
|
+
- test/dummy/config/routes.rb
|
178
|
+
- test/dummy/config/secrets.yml
|
179
|
+
- test/dummy/config.ru
|
180
|
+
- test/dummy/db/migrate/20151022230845_create_posts.rb
|
181
|
+
- test/dummy/db/migrate/20151029003656_create_taggable_w_generated_slugs.rb
|
182
|
+
- test/dummy/db/migrate/20151029012517_rename_post_to_taggable.rb
|
183
|
+
- test/dummy/db/schema.rb
|
184
|
+
- test/dummy/log/development.log
|
185
|
+
- test/dummy/log/test.log
|
186
|
+
- test/dummy/public/404.html
|
187
|
+
- test/dummy/public/422.html
|
188
|
+
- test/dummy/public/500.html
|
189
|
+
- test/dummy/public/favicon.ico
|
190
|
+
- test/dummy/Rakefile
|
191
|
+
- test/dummy/README.rdoc
|
192
|
+
- test/dummy/tmp/generators/db/migrate/20151112020841_add_slug_to_posts.rb
|
193
|
+
- test/human_urls/sluggable_test.rb
|
194
|
+
- test/human_urls_test.rb
|
195
|
+
- test/lib/generators/human_urls/slug_migration_generator_test.rb
|
196
|
+
- test/test_helper.rb
|