namekuji 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/LICENSE +202 -0
- data/README.md +42 -0
- data/Rakefile +34 -0
- data/lib/namekuji.rb +11 -0
- data/lib/namekuji/class_methods.rb +21 -0
- data/lib/namekuji/sluggable.rb +15 -0
- data/lib/namekuji/version.rb +3 -0
- data/lib/tasks/namekuji_tasks.rake +4 -0
- data/test/dummy/README.rdoc +28 -0
- data/test/dummy/Rakefile +6 -0
- data/test/dummy/app/assets/javascripts/application.js +13 -0
- data/test/dummy/app/assets/stylesheets/application.css +15 -0
- data/test/dummy/app/controllers/application_controller.rb +5 -0
- data/test/dummy/app/helpers/application_helper.rb +2 -0
- data/test/dummy/app/models/test_model_sluggable.rb +9 -0
- data/test/dummy/app/models/test_model_sluggable_on_field.rb +5 -0
- data/test/dummy/app/models/test_model_sluggable_on_field_slug_field.rb +5 -0
- data/test/dummy/app/models/test_model_sluggable_slug_field.rb +9 -0
- data/test/dummy/app/views/layouts/application.html.erb +14 -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.ru +4 -0
- data/test/dummy/config/application.rb +26 -0
- data/test/dummy/config/boot.rb +5 -0
- data/test/dummy/config/database.yml +25 -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 +56 -0
- data/test/dummy/config/secrets.yml +22 -0
- data/test/dummy/db/development.sqlite3 +0 -0
- data/test/dummy/db/migrate/20160312034428_create_test_model_sluggables.rb +8 -0
- data/test/dummy/db/migrate/20160312035136_create_test_model_sluggable_on_fields.rb +9 -0
- data/test/dummy/db/migrate/20160312035622_create_test_model_sluggable_slug_fields.rb +9 -0
- data/test/dummy/db/migrate/20160312035822_create_test_model_sluggable_on_field_slug_fields.rb +10 -0
- data/test/dummy/db/migrate/20160312040129_add_name_to_test_model_sluggable_slug_fields.rb +5 -0
- data/test/dummy/db/migrate/20160312040239_add_name_and_slug_to_test_model_sluggables.rb +6 -0
- data/test/dummy/db/migrate/20160312040357_add_slug_to_test_model_sluggable_on_fields.rb +5 -0
- data/test/dummy/db/schema.rb +44 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/development.log +4 -0
- data/test/dummy/log/test.log +639 -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/test/fixtures/test_model_sluggable_on_field_slug_fields.yml +9 -0
- data/test/dummy/test/fixtures/test_model_sluggable_on_fields.yml +7 -0
- data/test/dummy/test/fixtures/test_model_sluggable_slug_fields.yml +7 -0
- data/test/dummy/test/fixtures/test_model_sluggables.yml +11 -0
- data/test/dummy/test/models/test_model_sluggable_on_field_slug_field_test.rb +7 -0
- data/test/dummy/test/models/test_model_sluggable_on_field_test.rb +7 -0
- data/test/dummy/test/models/test_model_sluggable_slug_field_test.rb +7 -0
- data/test/dummy/test/models/test_model_sluggable_test.rb +7 -0
- data/test/namekuji/class_methods_test.rb +23 -0
- data/test/namekuji/sluggable_test.rb +44 -0
- data/test/namekuji_test.rb +7 -0
- data/test/test_helper.rb +38 -0
- metadata +261 -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,11 @@
|
|
1
|
+
# Read about fixtures at http://api.rubyonrails.org/classes/ActiveRecord/FixtureSet.html
|
2
|
+
|
3
|
+
# This model initially had no columns defined. If you add columns to the
|
4
|
+
# model remove the '{}' from the fixture names and add the columns immediately
|
5
|
+
# below each fixture, per the syntax in the comments below
|
6
|
+
#
|
7
|
+
one: {}
|
8
|
+
# column: value
|
9
|
+
#
|
10
|
+
two: {}
|
11
|
+
# column: value
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Namekuji::ClassMethodsTest < ActiveSupport::TestCase
|
4
|
+
test "sluggable" do
|
5
|
+
assert_equal "to_s", TestModelSluggable.sluggable_field
|
6
|
+
assert_equal "slug", TestModelSluggable.slug_field
|
7
|
+
end
|
8
|
+
|
9
|
+
test "sluggable on field" do
|
10
|
+
assert_equal "name", TestModelSluggableOnField.sluggable_field
|
11
|
+
assert_equal "slug", TestModelSluggableOnField.slug_field
|
12
|
+
end
|
13
|
+
|
14
|
+
test "sluggable slug field" do
|
15
|
+
assert_equal "to_s", TestModelSluggableSlugField.sluggable_field
|
16
|
+
assert_equal "parameterized", TestModelSluggableSlugField.slug_field
|
17
|
+
end
|
18
|
+
|
19
|
+
test "sluggable on field slug field" do
|
20
|
+
assert_equal "name", TestModelSluggableOnFieldSlugField.sluggable_field
|
21
|
+
assert_equal "parameterized", TestModelSluggableOnFieldSlugField.slug_field
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class Namekuji::SluggableTest < ActiveSupport::TestCase
|
4
|
+
name = "Sluggable Test Model"
|
5
|
+
slug = "sluggable-test-model"
|
6
|
+
|
7
|
+
test "sluggable" do
|
8
|
+
sluggable = TestModelSluggable.create name: name
|
9
|
+
|
10
|
+
assert_equal sluggable.slug, slug
|
11
|
+
assert_equal sluggable.to_param, slug
|
12
|
+
end
|
13
|
+
|
14
|
+
test "sluggable on field" do
|
15
|
+
sluggable_on_field = TestModelSluggableOnField.create name: name
|
16
|
+
|
17
|
+
assert_equal sluggable_on_field.slug, slug
|
18
|
+
assert_equal sluggable_on_field.to_param, slug
|
19
|
+
end
|
20
|
+
|
21
|
+
test "sluggable slug field" do
|
22
|
+
sluggable_slug_field = TestModelSluggableSlugField.create name: name
|
23
|
+
|
24
|
+
assert_equal sluggable_slug_field.parameterized, slug
|
25
|
+
assert_equal sluggable_slug_field.to_param, slug
|
26
|
+
end
|
27
|
+
|
28
|
+
test "sluggable on field slug field" do
|
29
|
+
sluggable_on_field_slug_field = TestModelSluggableOnFieldSlugField.create name: name
|
30
|
+
|
31
|
+
assert_equal sluggable_on_field_slug_field.parameterized, slug
|
32
|
+
assert_equal sluggable_on_field_slug_field.to_param, slug
|
33
|
+
end
|
34
|
+
|
35
|
+
test "sluggable removes apostrophes" do
|
36
|
+
name = "We Don't Want Extra Dashes"
|
37
|
+
slug = "we-dont-want-extra-dashes"
|
38
|
+
|
39
|
+
sluggable_removes_apostrophes = TestModelSluggable.create name: name
|
40
|
+
|
41
|
+
assert_equal sluggable_removes_apostrophes.slug, slug
|
42
|
+
assert_equal sluggable_removes_apostrophes.to_param, slug
|
43
|
+
end
|
44
|
+
end
|
data/test/test_helper.rb
ADDED
@@ -0,0 +1,38 @@
|
|
1
|
+
require "coveralls"
|
2
|
+
Coveralls.wear!
|
3
|
+
|
4
|
+
# Configure Rails Environment
|
5
|
+
ENV["RAILS_ENV"] = "test"
|
6
|
+
|
7
|
+
require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
8
|
+
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
9
|
+
require "rails/test_help"
|
10
|
+
|
11
|
+
# Filter out Minitest backtrace while allowing backtrace from other libraries
|
12
|
+
# to be shown.
|
13
|
+
Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
14
|
+
|
15
|
+
# Load support files
|
16
|
+
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
17
|
+
|
18
|
+
# Load fixtures from the engine
|
19
|
+
if ActiveSupport::TestCase.respond_to?(:fixture_path=)
|
20
|
+
ActiveSupport::TestCase.fixture_path = File.expand_path("../fixtures", __FILE__)
|
21
|
+
ActionDispatch::IntegrationTest.fixture_path = ActiveSupport::TestCase.fixture_path
|
22
|
+
ActiveSupport::TestCase.fixtures :all
|
23
|
+
end
|
24
|
+
|
25
|
+
# DatabaseCleaner
|
26
|
+
require 'database_cleaner'
|
27
|
+
|
28
|
+
DatabaseCleaner[:active_record].strategy = :transaction
|
29
|
+
|
30
|
+
class MiniTest::Test
|
31
|
+
def setup
|
32
|
+
DatabaseCleaner.start
|
33
|
+
end
|
34
|
+
|
35
|
+
def teardown
|
36
|
+
DatabaseCleaner.clean
|
37
|
+
end
|
38
|
+
end
|
metadata
ADDED
@@ -0,0 +1,261 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: namekuji
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.0.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Jesse B. Hannah
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2016-03-12 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: activemodel
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 4.2.6
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 4.2.6
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: activesupport
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 4.2.6
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 4.2.6
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 4.2.6
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 4.2.6
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: sqlite3
|
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
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: coveralls
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: database_cleaner
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
description: Include Namekuji in your Rails models to give them friendly slug generation,
|
98
|
+
with any ORM that supports ActiveModel.
|
99
|
+
email:
|
100
|
+
- jesse@jbhannah.net
|
101
|
+
executables: []
|
102
|
+
extensions: []
|
103
|
+
extra_rdoc_files: []
|
104
|
+
files:
|
105
|
+
- LICENSE
|
106
|
+
- README.md
|
107
|
+
- Rakefile
|
108
|
+
- lib/namekuji.rb
|
109
|
+
- lib/namekuji/class_methods.rb
|
110
|
+
- lib/namekuji/sluggable.rb
|
111
|
+
- lib/namekuji/version.rb
|
112
|
+
- lib/tasks/namekuji_tasks.rake
|
113
|
+
- test/dummy/README.rdoc
|
114
|
+
- test/dummy/Rakefile
|
115
|
+
- test/dummy/app/assets/javascripts/application.js
|
116
|
+
- test/dummy/app/assets/stylesheets/application.css
|
117
|
+
- test/dummy/app/controllers/application_controller.rb
|
118
|
+
- test/dummy/app/helpers/application_helper.rb
|
119
|
+
- test/dummy/app/models/test_model_sluggable.rb
|
120
|
+
- test/dummy/app/models/test_model_sluggable_on_field.rb
|
121
|
+
- test/dummy/app/models/test_model_sluggable_on_field_slug_field.rb
|
122
|
+
- test/dummy/app/models/test_model_sluggable_slug_field.rb
|
123
|
+
- test/dummy/app/views/layouts/application.html.erb
|
124
|
+
- test/dummy/bin/bundle
|
125
|
+
- test/dummy/bin/rails
|
126
|
+
- test/dummy/bin/rake
|
127
|
+
- test/dummy/bin/setup
|
128
|
+
- test/dummy/config.ru
|
129
|
+
- test/dummy/config/application.rb
|
130
|
+
- test/dummy/config/boot.rb
|
131
|
+
- test/dummy/config/database.yml
|
132
|
+
- test/dummy/config/environment.rb
|
133
|
+
- test/dummy/config/environments/development.rb
|
134
|
+
- test/dummy/config/environments/production.rb
|
135
|
+
- test/dummy/config/environments/test.rb
|
136
|
+
- test/dummy/config/initializers/assets.rb
|
137
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
138
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
139
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
140
|
+
- test/dummy/config/initializers/inflections.rb
|
141
|
+
- test/dummy/config/initializers/mime_types.rb
|
142
|
+
- test/dummy/config/initializers/session_store.rb
|
143
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
144
|
+
- test/dummy/config/locales/en.yml
|
145
|
+
- test/dummy/config/routes.rb
|
146
|
+
- test/dummy/config/secrets.yml
|
147
|
+
- test/dummy/db/development.sqlite3
|
148
|
+
- test/dummy/db/migrate/20160312034428_create_test_model_sluggables.rb
|
149
|
+
- test/dummy/db/migrate/20160312035136_create_test_model_sluggable_on_fields.rb
|
150
|
+
- test/dummy/db/migrate/20160312035622_create_test_model_sluggable_slug_fields.rb
|
151
|
+
- test/dummy/db/migrate/20160312035822_create_test_model_sluggable_on_field_slug_fields.rb
|
152
|
+
- test/dummy/db/migrate/20160312040129_add_name_to_test_model_sluggable_slug_fields.rb
|
153
|
+
- test/dummy/db/migrate/20160312040239_add_name_and_slug_to_test_model_sluggables.rb
|
154
|
+
- test/dummy/db/migrate/20160312040357_add_slug_to_test_model_sluggable_on_fields.rb
|
155
|
+
- test/dummy/db/schema.rb
|
156
|
+
- test/dummy/db/test.sqlite3
|
157
|
+
- test/dummy/log/development.log
|
158
|
+
- test/dummy/log/test.log
|
159
|
+
- test/dummy/public/404.html
|
160
|
+
- test/dummy/public/422.html
|
161
|
+
- test/dummy/public/500.html
|
162
|
+
- test/dummy/public/favicon.ico
|
163
|
+
- test/dummy/test/fixtures/test_model_sluggable_on_field_slug_fields.yml
|
164
|
+
- test/dummy/test/fixtures/test_model_sluggable_on_fields.yml
|
165
|
+
- test/dummy/test/fixtures/test_model_sluggable_slug_fields.yml
|
166
|
+
- test/dummy/test/fixtures/test_model_sluggables.yml
|
167
|
+
- test/dummy/test/models/test_model_sluggable_on_field_slug_field_test.rb
|
168
|
+
- test/dummy/test/models/test_model_sluggable_on_field_test.rb
|
169
|
+
- test/dummy/test/models/test_model_sluggable_slug_field_test.rb
|
170
|
+
- test/dummy/test/models/test_model_sluggable_test.rb
|
171
|
+
- test/namekuji/class_methods_test.rb
|
172
|
+
- test/namekuji/sluggable_test.rb
|
173
|
+
- test/namekuji_test.rb
|
174
|
+
- test/test_helper.rb
|
175
|
+
homepage: https://github.com/thetallgrassnet/namekuji
|
176
|
+
licenses:
|
177
|
+
- Apache-2.0
|
178
|
+
metadata: {}
|
179
|
+
post_install_message:
|
180
|
+
rdoc_options: []
|
181
|
+
require_paths:
|
182
|
+
- lib
|
183
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
184
|
+
requirements:
|
185
|
+
- - ">="
|
186
|
+
- !ruby/object:Gem::Version
|
187
|
+
version: '0'
|
188
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
|
+
requirements:
|
190
|
+
- - ">="
|
191
|
+
- !ruby/object:Gem::Version
|
192
|
+
version: '0'
|
193
|
+
requirements: []
|
194
|
+
rubyforge_project:
|
195
|
+
rubygems_version: 2.5.1
|
196
|
+
signing_key:
|
197
|
+
specification_version: 4
|
198
|
+
summary: ORM-agnostic slug generator for ActiveModel.
|
199
|
+
test_files:
|
200
|
+
- test/dummy/app/assets/javascripts/application.js
|
201
|
+
- test/dummy/app/assets/stylesheets/application.css
|
202
|
+
- test/dummy/app/controllers/application_controller.rb
|
203
|
+
- test/dummy/app/helpers/application_helper.rb
|
204
|
+
- test/dummy/app/models/test_model_sluggable.rb
|
205
|
+
- test/dummy/app/models/test_model_sluggable_on_field.rb
|
206
|
+
- test/dummy/app/models/test_model_sluggable_on_field_slug_field.rb
|
207
|
+
- test/dummy/app/models/test_model_sluggable_slug_field.rb
|
208
|
+
- test/dummy/app/views/layouts/application.html.erb
|
209
|
+
- test/dummy/bin/bundle
|
210
|
+
- test/dummy/bin/rails
|
211
|
+
- test/dummy/bin/rake
|
212
|
+
- test/dummy/bin/setup
|
213
|
+
- test/dummy/config/application.rb
|
214
|
+
- test/dummy/config/boot.rb
|
215
|
+
- test/dummy/config/database.yml
|
216
|
+
- test/dummy/config/environment.rb
|
217
|
+
- test/dummy/config/environments/development.rb
|
218
|
+
- test/dummy/config/environments/production.rb
|
219
|
+
- test/dummy/config/environments/test.rb
|
220
|
+
- test/dummy/config/initializers/assets.rb
|
221
|
+
- test/dummy/config/initializers/backtrace_silencers.rb
|
222
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
223
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
224
|
+
- test/dummy/config/initializers/inflections.rb
|
225
|
+
- test/dummy/config/initializers/mime_types.rb
|
226
|
+
- test/dummy/config/initializers/session_store.rb
|
227
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
228
|
+
- test/dummy/config/locales/en.yml
|
229
|
+
- test/dummy/config/routes.rb
|
230
|
+
- test/dummy/config/secrets.yml
|
231
|
+
- test/dummy/config.ru
|
232
|
+
- test/dummy/db/development.sqlite3
|
233
|
+
- test/dummy/db/migrate/20160312034428_create_test_model_sluggables.rb
|
234
|
+
- test/dummy/db/migrate/20160312035136_create_test_model_sluggable_on_fields.rb
|
235
|
+
- test/dummy/db/migrate/20160312035622_create_test_model_sluggable_slug_fields.rb
|
236
|
+
- test/dummy/db/migrate/20160312035822_create_test_model_sluggable_on_field_slug_fields.rb
|
237
|
+
- test/dummy/db/migrate/20160312040129_add_name_to_test_model_sluggable_slug_fields.rb
|
238
|
+
- test/dummy/db/migrate/20160312040239_add_name_and_slug_to_test_model_sluggables.rb
|
239
|
+
- test/dummy/db/migrate/20160312040357_add_slug_to_test_model_sluggable_on_fields.rb
|
240
|
+
- test/dummy/db/schema.rb
|
241
|
+
- test/dummy/db/test.sqlite3
|
242
|
+
- test/dummy/log/development.log
|
243
|
+
- test/dummy/log/test.log
|
244
|
+
- test/dummy/public/404.html
|
245
|
+
- test/dummy/public/422.html
|
246
|
+
- test/dummy/public/500.html
|
247
|
+
- test/dummy/public/favicon.ico
|
248
|
+
- test/dummy/Rakefile
|
249
|
+
- test/dummy/README.rdoc
|
250
|
+
- test/dummy/test/fixtures/test_model_sluggable_on_field_slug_fields.yml
|
251
|
+
- test/dummy/test/fixtures/test_model_sluggable_on_fields.yml
|
252
|
+
- test/dummy/test/fixtures/test_model_sluggable_slug_fields.yml
|
253
|
+
- test/dummy/test/fixtures/test_model_sluggables.yml
|
254
|
+
- test/dummy/test/models/test_model_sluggable_on_field_slug_field_test.rb
|
255
|
+
- test/dummy/test/models/test_model_sluggable_on_field_test.rb
|
256
|
+
- test/dummy/test/models/test_model_sluggable_slug_field_test.rb
|
257
|
+
- test/dummy/test/models/test_model_sluggable_test.rb
|
258
|
+
- test/namekuji/class_methods_test.rb
|
259
|
+
- test/namekuji/sluggable_test.rb
|
260
|
+
- test/namekuji_test.rb
|
261
|
+
- test/test_helper.rb
|