human_urls 0.1.3.pre.alpha.0 → 0.1.4.pre.alpha.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/human_urls/version.rb +1 -1
- data/test/dummy/Gemfile +5 -0
- data/test/dummy/Gemfile.lock +121 -0
- data/test/dummy/config/application.rb +0 -3
- data/test/dummy/config/environments/test.rb +2 -2
- data/test/dummy/log/test.log +432 -0
- data/test/dummy/tmp/generators/db/migrate/{20160213021036_add_slug_to_posts.rb → 20160701154405_add_slug_to_posts.rb} +0 -0
- data/test/test_helper.rb +0 -2
- metadata +10 -22
- data/test/dummy/README.rdoc +0 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5284b0c29f06a0c1867a310b45d7da50b815ec6
|
4
|
+
data.tar.gz: a04189a3b5b6c970dc0d7d18a28dc1ff0fc7fc48
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90e93c1e78f46bd3f54e16f1d9dffc58ec6d83cccd556e97d0ea7f0081498716dc0dcd0a57de032098a13152d5af51ab5a6570119e40fa53951116a475fb4e1c
|
7
|
+
data.tar.gz: 1bdbae74928b2c639e32cc315e8e484708e4230cf078034ec8fbd3d398c5f94d125f955faefc96b0e1cf5a08672a394d38e1594bfc527a6405b5633049058355
|
data/lib/human_urls/version.rb
CHANGED
data/test/dummy/Gemfile
ADDED
@@ -0,0 +1,121 @@
|
|
1
|
+
PATH
|
2
|
+
remote: ../..
|
3
|
+
specs:
|
4
|
+
human_urls (0.1.3.pre.alpha.0)
|
5
|
+
rails (>= 4.1)
|
6
|
+
|
7
|
+
GEM
|
8
|
+
remote: https://rubygems.org/
|
9
|
+
specs:
|
10
|
+
actioncable (5.0.0)
|
11
|
+
actionpack (= 5.0.0)
|
12
|
+
nio4r (~> 1.2)
|
13
|
+
websocket-driver (~> 0.6.1)
|
14
|
+
actionmailer (5.0.0)
|
15
|
+
actionpack (= 5.0.0)
|
16
|
+
actionview (= 5.0.0)
|
17
|
+
activejob (= 5.0.0)
|
18
|
+
mail (~> 2.5, >= 2.5.4)
|
19
|
+
rails-dom-testing (~> 2.0)
|
20
|
+
actionpack (5.0.0)
|
21
|
+
actionview (= 5.0.0)
|
22
|
+
activesupport (= 5.0.0)
|
23
|
+
rack (~> 2.0)
|
24
|
+
rack-test (~> 0.6.3)
|
25
|
+
rails-dom-testing (~> 2.0)
|
26
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
27
|
+
actionview (5.0.0)
|
28
|
+
activesupport (= 5.0.0)
|
29
|
+
builder (~> 3.1)
|
30
|
+
erubis (~> 2.7.0)
|
31
|
+
rails-dom-testing (~> 2.0)
|
32
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
33
|
+
activejob (5.0.0)
|
34
|
+
activesupport (= 5.0.0)
|
35
|
+
globalid (>= 0.3.6)
|
36
|
+
activemodel (5.0.0)
|
37
|
+
activesupport (= 5.0.0)
|
38
|
+
activerecord (5.0.0)
|
39
|
+
activemodel (= 5.0.0)
|
40
|
+
activesupport (= 5.0.0)
|
41
|
+
arel (~> 7.0)
|
42
|
+
activesupport (5.0.0)
|
43
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
44
|
+
i18n (~> 0.7)
|
45
|
+
minitest (~> 5.1)
|
46
|
+
tzinfo (~> 1.1)
|
47
|
+
arel (7.0.0)
|
48
|
+
builder (3.2.2)
|
49
|
+
concurrent-ruby (1.0.2)
|
50
|
+
erubis (2.7.0)
|
51
|
+
globalid (0.3.6)
|
52
|
+
activesupport (>= 4.1.0)
|
53
|
+
i18n (0.7.0)
|
54
|
+
loofah (2.0.3)
|
55
|
+
nokogiri (>= 1.5.9)
|
56
|
+
mail (2.6.4)
|
57
|
+
mime-types (>= 1.16, < 4)
|
58
|
+
method_source (0.8.2)
|
59
|
+
mime-types (3.1)
|
60
|
+
mime-types-data (~> 3.2015)
|
61
|
+
mime-types-data (3.2016.0521)
|
62
|
+
mini_portile2 (2.1.0)
|
63
|
+
minitest (5.9.0)
|
64
|
+
nio4r (1.2.1)
|
65
|
+
nokogiri (1.6.8)
|
66
|
+
mini_portile2 (~> 2.1.0)
|
67
|
+
pkg-config (~> 1.1.7)
|
68
|
+
pg (0.18.4)
|
69
|
+
pkg-config (1.1.7)
|
70
|
+
rack (2.0.1)
|
71
|
+
rack-test (0.6.3)
|
72
|
+
rack (>= 1.0)
|
73
|
+
rails (5.0.0)
|
74
|
+
actioncable (= 5.0.0)
|
75
|
+
actionmailer (= 5.0.0)
|
76
|
+
actionpack (= 5.0.0)
|
77
|
+
actionview (= 5.0.0)
|
78
|
+
activejob (= 5.0.0)
|
79
|
+
activemodel (= 5.0.0)
|
80
|
+
activerecord (= 5.0.0)
|
81
|
+
activesupport (= 5.0.0)
|
82
|
+
bundler (>= 1.3.0, < 2.0)
|
83
|
+
railties (= 5.0.0)
|
84
|
+
sprockets-rails (>= 2.0.0)
|
85
|
+
rails-dom-testing (2.0.1)
|
86
|
+
activesupport (>= 4.2.0, < 6.0)
|
87
|
+
nokogiri (~> 1.6.0)
|
88
|
+
rails-html-sanitizer (1.0.3)
|
89
|
+
loofah (~> 2.0)
|
90
|
+
railties (5.0.0)
|
91
|
+
actionpack (= 5.0.0)
|
92
|
+
activesupport (= 5.0.0)
|
93
|
+
method_source
|
94
|
+
rake (>= 0.8.7)
|
95
|
+
thor (>= 0.18.1, < 2.0)
|
96
|
+
rake (11.2.2)
|
97
|
+
sprockets (3.6.2)
|
98
|
+
concurrent-ruby (~> 1.0)
|
99
|
+
rack (> 1, < 3)
|
100
|
+
sprockets-rails (3.1.1)
|
101
|
+
actionpack (>= 4.0)
|
102
|
+
activesupport (>= 4.0)
|
103
|
+
sprockets (>= 3.0.0)
|
104
|
+
thor (0.19.1)
|
105
|
+
thread_safe (0.3.5)
|
106
|
+
tzinfo (1.2.2)
|
107
|
+
thread_safe (~> 0.1)
|
108
|
+
websocket-driver (0.6.4)
|
109
|
+
websocket-extensions (>= 0.1.0)
|
110
|
+
websocket-extensions (0.1.2)
|
111
|
+
|
112
|
+
PLATFORMS
|
113
|
+
ruby
|
114
|
+
|
115
|
+
DEPENDENCIES
|
116
|
+
human_urls!
|
117
|
+
pg
|
118
|
+
rails (~> 5.0.0)
|
119
|
+
|
120
|
+
BUNDLED WITH
|
121
|
+
1.11.2
|
@@ -18,9 +18,6 @@ module Dummy
|
|
18
18
|
# The default locale is :en and all translations from config/locales/*.rb,yml are auto loaded.
|
19
19
|
# config.i18n.load_path += Dir[Rails.root.join('my', 'locales', '*.{rb,yml}').to_s]
|
20
20
|
# config.i18n.default_locale = :de
|
21
|
-
|
22
|
-
# Do not swallow errors in after_commit/after_rollback callbacks.
|
23
|
-
config.active_record.raise_in_transactional_callbacks = true
|
24
21
|
end
|
25
22
|
end
|
26
23
|
|
@@ -13,8 +13,8 @@ Rails.application.configure do
|
|
13
13
|
config.eager_load = false
|
14
14
|
|
15
15
|
# Configure static file server for tests with Cache-Control for performance.
|
16
|
-
config.
|
17
|
-
config.
|
16
|
+
config.public_file_server.enabled = true
|
17
|
+
config.public_file_server.headers = { 'Cache-Control' => 'public, max-age=3600' }
|
18
18
|
|
19
19
|
# Show full error reports and disable caching.
|
20
20
|
config.consider_all_requests_local = true
|
data/test/dummy/log/test.log
CHANGED
@@ -5384,3 +5384,435 @@ SluggableTest: test_validates_presence_of_slug
|
|
5384
5384
|
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5385
5385
|
[1m[35m (0.2ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5386
5386
|
[1m[36m (0.1ms)[0m [1mROLLBACK[0m
|
5387
|
+
[1m[36mActiveRecord::SchemaMigration Load (5.5ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5388
|
+
[1m[35m (0.4ms)[0m BEGIN
|
5389
|
+
------------------------------------------------------------------------------
|
5390
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
5391
|
+
------------------------------------------------------------------------------
|
5392
|
+
[1m[36m (1.5ms)[0m [1mROLLBACK[0m
|
5393
|
+
[1m[35m (0.3ms)[0m BEGIN
|
5394
|
+
------------------------------------------------------------------------------------------------------------
|
5395
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
5396
|
+
------------------------------------------------------------------------------------------------------------
|
5397
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
5398
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5399
|
+
-------------------------
|
5400
|
+
HumanUrlsTest: test_truth
|
5401
|
+
-------------------------
|
5402
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
5403
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5404
|
+
----------------------------------------------
|
5405
|
+
SluggableTest: test_#to_param_returns_the_slug
|
5406
|
+
----------------------------------------------
|
5407
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
5408
|
+
[1m[35mSQL (6.7ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2016-07-01 15:11:48.359846"], ["updated_at", "2016-07-01 15:11:48.359846"]]
|
5409
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5410
|
+
[1m[35m (0.4ms)[0m ROLLBACK
|
5411
|
+
[1m[36m (0.4ms)[0m [1mBEGIN[0m
|
5412
|
+
--------------------------------------------------------------------
|
5413
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
5414
|
+
--------------------------------------------------------------------
|
5415
|
+
[1m[35m (0.4ms)[0m SAVEPOINT active_record_1
|
5416
|
+
[1m[36mSQL (4.3ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2016-07-01 15:11:48.397307"], ["updated_at", "2016-07-01 15:11:48.397307"]]
|
5417
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5418
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
5419
|
+
[1m[35m (0.3ms)[0m BEGIN
|
5420
|
+
-----------------------------------------------------------------------------------
|
5421
|
+
SluggableTest: test_slug_does_not_update_an_existing_slug_when_source_field_changes
|
5422
|
+
-----------------------------------------------------------------------------------
|
5423
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
5424
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2016-07-01 15:11:48.406573"], ["updated_at", "2016-07-01 15:11:48.406573"]]
|
5425
|
+
[1m[36m (0.5ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5426
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
5427
|
+
[1m[36mSQL (0.6ms)[0m [1mUPDATE "taggable_w_generated_slugs" SET "title" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["title", "Changed Title"], ["updated_at", "2016-07-01 15:11:48.410142"], ["id", 68]]
|
5428
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5429
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
5430
|
+
[1m[35m (0.4ms)[0m BEGIN
|
5431
|
+
------------------------------------------------------------------------
|
5432
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
5433
|
+
------------------------------------------------------------------------
|
5434
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
5435
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "this-i-my-slug"], ["created_at", "2016-07-01 15:11:48.420496"], ["updated_at", "2016-07-01 15:11:48.420496"]]
|
5436
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5437
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
5438
|
+
[1m[36m (0.3ms)[0m [1mBEGIN[0m
|
5439
|
+
------------------------------------------------------------------------------
|
5440
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
5441
|
+
------------------------------------------------------------------------------
|
5442
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
5443
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2016-07-01 15:11:48.425543"], ["updated_at", "2016-07-01 15:11:48.425543"]]
|
5444
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5445
|
+
[1m[36m (0.2ms)[0m [1mSAVEPOINT active_record_1[0m
|
5446
|
+
[1m[35mSQL (0.6ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-new-slug"], ["updated_at", "2016-07-01 15:11:48.428420"], ["id", 69]]
|
5447
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5448
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
5449
|
+
[1m[36mSQL (0.5ms)[0m [1mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-title"], ["updated_at", "2016-07-01 15:11:48.431557"], ["id", 69]]
|
5450
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5451
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
5452
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5453
|
+
----------------------------------------------
|
5454
|
+
SluggableTest: test_validates_presence_of_slug
|
5455
|
+
----------------------------------------------
|
5456
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5457
|
+
[1m[35m (0.3ms)[0m ROLLBACK TO SAVEPOINT active_record_1
|
5458
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
5459
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5460
|
+
[1m[35m (0.3ms)[0m BEGIN
|
5461
|
+
------------------------------------------------------------------------------
|
5462
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
5463
|
+
------------------------------------------------------------------------------
|
5464
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
5465
|
+
[1m[35mSQL (1.4ms)[0m INSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2016-07-01 15:19:16.852964"], ["updated_at", "2016-07-01 15:19:16.852964"]]
|
5466
|
+
[1m[36m (0.4ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5467
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
5468
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", "2016-07-01 15:19:16.862739"], ["id", 70]]
|
5469
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5470
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
5471
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["slug", "my-title"], ["updated_at", "2016-07-01 15:19:16.872101"], ["id", 70]]
|
5472
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5473
|
+
[1m[35m (0.5ms)[0m ROLLBACK
|
5474
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5475
|
+
--------------------------------------------------------------------
|
5476
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
5477
|
+
--------------------------------------------------------------------
|
5478
|
+
[1m[35m (0.3ms)[0m SAVEPOINT active_record_1
|
5479
|
+
[1m[36mSQL (0.5ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", "2016-07-01 15:19:16.876761"], ["updated_at", "2016-07-01 15:19:16.876761"]]
|
5480
|
+
[1m[35m (0.3ms)[0m RELEASE SAVEPOINT active_record_1
|
5481
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
5482
|
+
[1m[35m (0.3ms)[0m BEGIN
|
5483
|
+
----------------------------------------------
|
5484
|
+
SluggableTest: test_#to_param_returns_the_slug
|
5485
|
+
----------------------------------------------
|
5486
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
5487
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id" [["slug", "slug"], ["created_at", "2016-07-01 15:19:16.901173"], ["updated_at", "2016-07-01 15:19:16.901173"]]
|
5488
|
+
[1m[36m (0.2ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5489
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
5490
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5491
|
+
----------------------------------------------
|
5492
|
+
SluggableTest: test_validates_presence_of_slug
|
5493
|
+
----------------------------------------------
|
5494
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
5495
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK TO SAVEPOINT active_record_1[0m
|
5496
|
+
[1m[35m (0.3ms)[0m ROLLBACK
|
5497
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5498
|
+
-----------------------------------------------------------------------------------
|
5499
|
+
SluggableTest: test_slug_does_not_update_an_existing_slug_when_source_field_changes
|
5500
|
+
-----------------------------------------------------------------------------------
|
5501
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
5502
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", "2016-07-01 15:19:16.911125"], ["updated_at", "2016-07-01 15:19:16.911125"]]
|
5503
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
5504
|
+
[1m[36m (0.3ms)[0m [1mSAVEPOINT active_record_1[0m
|
5505
|
+
[1m[35mSQL (0.5ms)[0m UPDATE "taggable_w_generated_slugs" SET "title" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3 [["title", "Changed Title"], ["updated_at", "2016-07-01 15:19:16.913776"], ["id", 72]]
|
5506
|
+
[1m[36m (0.3ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5507
|
+
[1m[35m (0.2ms)[0m ROLLBACK
|
5508
|
+
[1m[36m (0.2ms)[0m [1mBEGIN[0m
|
5509
|
+
------------------------------------------------------------------------
|
5510
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
5511
|
+
------------------------------------------------------------------------
|
5512
|
+
[1m[35m (0.2ms)[0m SAVEPOINT active_record_1
|
5513
|
+
[1m[36mSQL (0.4ms)[0m [1mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", "2016-07-01 15:19:16.918346"], ["updated_at", "2016-07-01 15:19:16.918346"]]
|
5514
|
+
[1m[35m (0.2ms)[0m RELEASE SAVEPOINT active_record_1
|
5515
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
5516
|
+
[1m[35m (0.2ms)[0m BEGIN
|
5517
|
+
-------------------------
|
5518
|
+
HumanUrlsTest: test_truth
|
5519
|
+
-------------------------
|
5520
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
5521
|
+
[1m[35m (0.3ms)[0m BEGIN
|
5522
|
+
------------------------------------------------------------------------------------------------------------
|
5523
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
5524
|
+
------------------------------------------------------------------------------------------------------------
|
5525
|
+
[1m[36m (0.3ms)[0m [1mROLLBACK[0m
|
5526
|
+
[1m[35m (0.3ms)[0m BEGIN
|
5527
|
+
------------------------------------------------------------------------------
|
5528
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
5529
|
+
------------------------------------------------------------------------------
|
5530
|
+
[1m[36m (0.2ms)[0m [1mROLLBACK[0m
|
5531
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.0ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5532
|
+
[1m[35m (0.4ms)[0m [1m[35mBEGIN[0m
|
5533
|
+
-------------------------
|
5534
|
+
HumanUrlsTest: test_truth
|
5535
|
+
-------------------------
|
5536
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5537
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5538
|
+
----------------------------------------------
|
5539
|
+
SluggableTest: test_#to_param_returns_the_slug
|
5540
|
+
----------------------------------------------
|
5541
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5542
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", 2016-07-01 15:20:57 UTC], ["updated_at", 2016-07-01 15:20:57 UTC]]
|
5543
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5544
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
5545
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5546
|
+
--------------------------------------------------------------------
|
5547
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
5548
|
+
--------------------------------------------------------------------
|
5549
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5550
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", 2016-07-01 15:20:57 UTC], ["updated_at", 2016-07-01 15:20:57 UTC]]
|
5551
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5552
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5553
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5554
|
+
------------------------------------------------------------------------
|
5555
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
5556
|
+
------------------------------------------------------------------------
|
5557
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5558
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", 2016-07-01 15:20:57 UTC], ["updated_at", 2016-07-01 15:20:57 UTC]]
|
5559
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5560
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5561
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5562
|
+
-----------------------------------------------------------------------------------
|
5563
|
+
SluggableTest: test_slug_does_not_update_an_existing_slug_when_source_field_changes
|
5564
|
+
-----------------------------------------------------------------------------------
|
5565
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5566
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:20:57 UTC], ["updated_at", 2016-07-01 15:20:57 UTC]]
|
5567
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5568
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5569
|
+
[1m[35mSQL (2.4ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "title" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["title", "Changed Title"], ["updated_at", 2016-07-01 15:20:57 UTC], ["id", 74]]
|
5570
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5571
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5572
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5573
|
+
----------------------------------------------
|
5574
|
+
SluggableTest: test_validates_presence_of_slug
|
5575
|
+
----------------------------------------------
|
5576
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5577
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
5578
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5579
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5580
|
+
------------------------------------------------------------------------------
|
5581
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
5582
|
+
------------------------------------------------------------------------------
|
5583
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5584
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:20:57 UTC], ["updated_at", 2016-07-01 15:20:57 UTC]]
|
5585
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5586
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5587
|
+
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", 2016-07-01 15:20:57 UTC], ["id", 75]]
|
5588
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5589
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5590
|
+
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-title"], ["updated_at", 2016-07-01 15:20:57 UTC], ["id", 75]]
|
5591
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5592
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5593
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5594
|
+
------------------------------------------------------------------------------
|
5595
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
5596
|
+
------------------------------------------------------------------------------
|
5597
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
5598
|
+
[1m[35m (0.6ms)[0m [1m[35mBEGIN[0m
|
5599
|
+
------------------------------------------------------------------------------------------------------------
|
5600
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
5601
|
+
------------------------------------------------------------------------------------------------------------
|
5602
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5603
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5604
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5605
|
+
------------------------------------------------------------------------------
|
5606
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
5607
|
+
------------------------------------------------------------------------------
|
5608
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5609
|
+
[1m[35mSQL (1.3ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:42:13 UTC], ["updated_at", 2016-07-01 15:42:13 UTC]]
|
5610
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5611
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5612
|
+
[1m[35mSQL (2.4ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", 2016-07-01 15:42:13 UTC], ["id", 76]]
|
5613
|
+
[1m[35m (0.4ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5614
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5615
|
+
[1m[35mSQL (0.7ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-title"], ["updated_at", 2016-07-01 15:42:14 UTC], ["id", 76]]
|
5616
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5617
|
+
[1m[35m (0.6ms)[0m [1m[31mROLLBACK[0m
|
5618
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5619
|
+
--------------------------------------------------------------------
|
5620
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
5621
|
+
--------------------------------------------------------------------
|
5622
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5623
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", 2016-07-01 15:42:14 UTC], ["updated_at", 2016-07-01 15:42:14 UTC]]
|
5624
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5625
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5626
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5627
|
+
-----------------------------------------------------------------------------------
|
5628
|
+
SluggableTest: test_slug_does_not_update_an_existing_slug_when_source_field_changes
|
5629
|
+
-----------------------------------------------------------------------------------
|
5630
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5631
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:42:14 UTC], ["updated_at", 2016-07-01 15:42:14 UTC]]
|
5632
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5633
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5634
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "title" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["title", "Changed Title"], ["updated_at", 2016-07-01 15:42:14 UTC], ["id", 78]]
|
5635
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5636
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5637
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5638
|
+
------------------------------------------------------------------------
|
5639
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
5640
|
+
------------------------------------------------------------------------
|
5641
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5642
|
+
[1m[35mSQL (1.1ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", 2016-07-01 15:42:14 UTC], ["updated_at", 2016-07-01 15:42:14 UTC]]
|
5643
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5644
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5645
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5646
|
+
----------------------------------------------
|
5647
|
+
SluggableTest: test_validates_presence_of_slug
|
5648
|
+
----------------------------------------------
|
5649
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5650
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
5651
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5652
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5653
|
+
----------------------------------------------
|
5654
|
+
SluggableTest: test_#to_param_returns_the_slug
|
5655
|
+
----------------------------------------------
|
5656
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5657
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", 2016-07-01 15:42:14 UTC], ["updated_at", 2016-07-01 15:42:14 UTC]]
|
5658
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5659
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5660
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5661
|
+
-------------------------
|
5662
|
+
HumanUrlsTest: test_truth
|
5663
|
+
-------------------------
|
5664
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5665
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5666
|
+
------------------------------------------------------------------------------------------------------------
|
5667
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
5668
|
+
------------------------------------------------------------------------------------------------------------
|
5669
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
5670
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5671
|
+
------------------------------------------------------------------------------
|
5672
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
5673
|
+
------------------------------------------------------------------------------
|
5674
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
5675
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.8ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5676
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5677
|
+
-------------------------
|
5678
|
+
HumanUrlsTest: test_truth
|
5679
|
+
-------------------------
|
5680
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5681
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5682
|
+
------------------------------------------------------------------------------------------------------------
|
5683
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
5684
|
+
------------------------------------------------------------------------------------------------------------
|
5685
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5686
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5687
|
+
------------------------------------------------------------------------------
|
5688
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
5689
|
+
------------------------------------------------------------------------------
|
5690
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
5691
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5692
|
+
----------------------------------------------
|
5693
|
+
SluggableTest: test_#to_param_returns_the_slug
|
5694
|
+
----------------------------------------------
|
5695
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5696
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", 2016-07-01 15:43:00 UTC], ["updated_at", 2016-07-01 15:43:00 UTC]]
|
5697
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5698
|
+
[1m[35m (0.4ms)[0m [1m[31mROLLBACK[0m
|
5699
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5700
|
+
--------------------------------------------------------------------
|
5701
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
5702
|
+
--------------------------------------------------------------------
|
5703
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5704
|
+
[1m[35mSQL (1.6ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", 2016-07-01 15:43:00 UTC], ["updated_at", 2016-07-01 15:43:00 UTC]]
|
5705
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5706
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5707
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5708
|
+
------------------------------------------------------------------------
|
5709
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
5710
|
+
------------------------------------------------------------------------
|
5711
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5712
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", 2016-07-01 15:43:00 UTC], ["updated_at", 2016-07-01 15:43:00 UTC]]
|
5713
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5714
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5715
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5716
|
+
-----------------------------------------------------------------------------------
|
5717
|
+
SluggableTest: test_slug_does_not_update_an_existing_slug_when_source_field_changes
|
5718
|
+
-----------------------------------------------------------------------------------
|
5719
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5720
|
+
[1m[35mSQL (0.6ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:43:00 UTC], ["updated_at", 2016-07-01 15:43:00 UTC]]
|
5721
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5722
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5723
|
+
[1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "title" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["title", "Changed Title"], ["updated_at", 2016-07-01 15:43:00 UTC], ["id", 80]]
|
5724
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5725
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5726
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5727
|
+
------------------------------------------------------------------------------
|
5728
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
5729
|
+
------------------------------------------------------------------------------
|
5730
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5731
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:43:00 UTC], ["updated_at", 2016-07-01 15:43:00 UTC]]
|
5732
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5733
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5734
|
+
[1m[35mSQL (0.5ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", 2016-07-01 15:43:00 UTC], ["id", 81]]
|
5735
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5736
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5737
|
+
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-title"], ["updated_at", 2016-07-01 15:43:00 UTC], ["id", 81]]
|
5738
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5739
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5740
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5741
|
+
----------------------------------------------
|
5742
|
+
SluggableTest: test_validates_presence_of_slug
|
5743
|
+
----------------------------------------------
|
5744
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5745
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
5746
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5747
|
+
[1m[36mActiveRecord::SchemaMigration Load (1.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
5748
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5749
|
+
------------------------------------------------------------------------------
|
5750
|
+
SluggableTest: test_slug_properly_updates_an_existing_slug_when_auto_generated
|
5751
|
+
------------------------------------------------------------------------------
|
5752
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5753
|
+
[1m[35mSQL (1.2ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:44:05 UTC], ["updated_at", 2016-07-01 15:44:05 UTC]]
|
5754
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5755
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5756
|
+
[1m[35mSQL (0.9ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-new-slug"], ["updated_at", 2016-07-01 15:44:05 UTC], ["id", 82]]
|
5757
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5758
|
+
[1m[35m (0.4ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5759
|
+
[1m[35mSQL (1.6ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "slug" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["slug", "my-title"], ["updated_at", 2016-07-01 15:44:05 UTC], ["id", 82]]
|
5760
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5761
|
+
[1m[35m (0.5ms)[0m [1m[31mROLLBACK[0m
|
5762
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5763
|
+
-----------------------------------------------------------------------------------
|
5764
|
+
SluggableTest: test_slug_does_not_update_an_existing_slug_when_source_field_changes
|
5765
|
+
-----------------------------------------------------------------------------------
|
5766
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5767
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "my-title"], ["slug", "my-old-slug"], ["created_at", 2016-07-01 15:44:05 UTC], ["updated_at", 2016-07-01 15:44:05 UTC]]
|
5768
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5769
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5770
|
+
[1m[35mSQL (0.6ms)[0m [1m[33mUPDATE "taggable_w_generated_slugs" SET "title" = $1, "updated_at" = $2 WHERE "taggable_w_generated_slugs"."id" = $3[0m [["title", "Changed Title"], ["updated_at", 2016-07-01 15:44:05 UTC], ["id", 83]]
|
5771
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5772
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5773
|
+
[1m[35m (0.3ms)[0m [1m[35mBEGIN[0m
|
5774
|
+
----------------------------------------------
|
5775
|
+
SluggableTest: test_validates_presence_of_slug
|
5776
|
+
----------------------------------------------
|
5777
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5778
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK TO SAVEPOINT active_record_1[0m
|
5779
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5780
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5781
|
+
--------------------------------------------------------------------
|
5782
|
+
SluggableTest: test_.sluggify_can_generate_slug_from_given_attribute
|
5783
|
+
--------------------------------------------------------------------
|
5784
|
+
[1m[35m (0.2ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5785
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "taggable_w_generated_slugs" ("title", "slug", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id"[0m [["title", "My Title"], ["slug", "my-title"], ["created_at", 2016-07-01 15:44:05 UTC], ["updated_at", 2016-07-01 15:44:05 UTC]]
|
5786
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5787
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5788
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5789
|
+
------------------------------------------------------------------------
|
5790
|
+
SluggableTest: test_slug_properly_formats_string_to_slug_friendly_format
|
5791
|
+
------------------------------------------------------------------------
|
5792
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5793
|
+
[1m[35mSQL (0.8ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "this-i-my-slug"], ["created_at", 2016-07-01 15:44:05 UTC], ["updated_at", 2016-07-01 15:44:05 UTC]]
|
5794
|
+
[1m[35m (0.2ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5795
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5796
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5797
|
+
----------------------------------------------
|
5798
|
+
SluggableTest: test_#to_param_returns_the_slug
|
5799
|
+
----------------------------------------------
|
5800
|
+
[1m[35m (0.3ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
5801
|
+
[1m[35mSQL (0.5ms)[0m [1m[32mINSERT INTO "taggables" ("slug", "created_at", "updated_at") VALUES ($1, $2, $3) RETURNING "id"[0m [["slug", "slug"], ["created_at", 2016-07-01 15:44:05 UTC], ["updated_at", 2016-07-01 15:44:05 UTC]]
|
5802
|
+
[1m[35m (0.3ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
5803
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5804
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5805
|
+
-------------------------
|
5806
|
+
HumanUrlsTest: test_truth
|
5807
|
+
-------------------------
|
5808
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
5809
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5810
|
+
------------------------------------------------------------------------------------------------------------
|
5811
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration_when_using_custom_slug_column
|
5812
|
+
------------------------------------------------------------------------------------------------------------
|
5813
|
+
[1m[35m (0.3ms)[0m [1m[31mROLLBACK[0m
|
5814
|
+
[1m[35m (0.2ms)[0m [1m[35mBEGIN[0m
|
5815
|
+
------------------------------------------------------------------------------
|
5816
|
+
HumanUrls::SlugMigrationGeneratorTest: test_generator_creates_proper_migration
|
5817
|
+
------------------------------------------------------------------------------
|
5818
|
+
[1m[35m (0.2ms)[0m [1m[31mROLLBACK[0m
|
File without changes
|
data/test/test_helper.rb
CHANGED
@@ -5,7 +5,6 @@ require File.expand_path("../../test/dummy/config/environment.rb", __FILE__)
|
|
5
5
|
ActiveRecord::Migrator.migrations_paths = [File.expand_path("../../test/dummy/db/migrate", __FILE__)]
|
6
6
|
ActiveRecord::Migrator.migrations_paths << File.expand_path('../../db/migrate', __FILE__)
|
7
7
|
require "rails/test_help"
|
8
|
-
require "minitest/rails"
|
9
8
|
require "minitest/pride"
|
10
9
|
require "pry-rails"
|
11
10
|
|
@@ -13,4 +12,3 @@ Minitest.backtrace_filter = Minitest::BacktraceFilter.new
|
|
13
12
|
|
14
13
|
Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f }
|
15
14
|
|
16
|
-
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: human_urls
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4.pre.alpha.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Josh Klina
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-07-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: pg
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - ">="
|
39
39
|
- !ruby/object:Gem::Version
|
40
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
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: pry-rails
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,7 +71,8 @@ files:
|
|
85
71
|
- lib/human_urls/sluggable.rb
|
86
72
|
- lib/human_urls/version.rb
|
87
73
|
- lib/tasks/human_urls_tasks.rake
|
88
|
-
- test/dummy/
|
74
|
+
- test/dummy/Gemfile
|
75
|
+
- test/dummy/Gemfile.lock
|
89
76
|
- test/dummy/Rakefile
|
90
77
|
- test/dummy/app/models/taggable.rb
|
91
78
|
- test/dummy/app/models/taggable_w_generated_slug.rb
|
@@ -122,7 +109,7 @@ files:
|
|
122
109
|
- test/dummy/public/422.html
|
123
110
|
- test/dummy/public/500.html
|
124
111
|
- test/dummy/public/favicon.ico
|
125
|
-
- test/dummy/tmp/generators/db/migrate/
|
112
|
+
- test/dummy/tmp/generators/db/migrate/20160701154405_add_slug_to_posts.rb
|
126
113
|
- test/human_urls/sluggable_test.rb
|
127
114
|
- test/human_urls_test.rb
|
128
115
|
- test/lib/generators/human_urls/slug_migration_generator_test.rb
|
@@ -181,6 +168,8 @@ test_files:
|
|
181
168
|
- test/dummy/db/migrate/20151029003656_create_taggable_w_generated_slugs.rb
|
182
169
|
- test/dummy/db/migrate/20151029012517_rename_post_to_taggable.rb
|
183
170
|
- test/dummy/db/schema.rb
|
171
|
+
- test/dummy/Gemfile
|
172
|
+
- test/dummy/Gemfile.lock
|
184
173
|
- test/dummy/log/development.log
|
185
174
|
- test/dummy/log/test.log
|
186
175
|
- test/dummy/public/404.html
|
@@ -188,8 +177,7 @@ test_files:
|
|
188
177
|
- test/dummy/public/500.html
|
189
178
|
- test/dummy/public/favicon.ico
|
190
179
|
- test/dummy/Rakefile
|
191
|
-
- test/dummy/
|
192
|
-
- test/dummy/tmp/generators/db/migrate/20160213021036_add_slug_to_posts.rb
|
180
|
+
- test/dummy/tmp/generators/db/migrate/20160701154405_add_slug_to_posts.rb
|
193
181
|
- test/human_urls/sluggable_test.rb
|
194
182
|
- test/human_urls_test.rb
|
195
183
|
- test/lib/generators/human_urls/slug_migration_generator_test.rb
|
data/test/dummy/README.rdoc
DELETED
@@ -1,28 +0,0 @@
|
|
1
|
-
== README
|
2
|
-
|
3
|
-
This README would normally document whatever steps are necessary to get the
|
4
|
-
application up and running.
|
5
|
-
|
6
|
-
Things you may want to cover:
|
7
|
-
|
8
|
-
* Ruby version
|
9
|
-
|
10
|
-
* System dependencies
|
11
|
-
|
12
|
-
* Configuration
|
13
|
-
|
14
|
-
* Database creation
|
15
|
-
|
16
|
-
* Database initialization
|
17
|
-
|
18
|
-
* How to run the test suite
|
19
|
-
|
20
|
-
* Services (job queues, cache servers, search engines, etc.)
|
21
|
-
|
22
|
-
* Deployment instructions
|
23
|
-
|
24
|
-
* ...
|
25
|
-
|
26
|
-
|
27
|
-
Please feel free to use a different markup language if you do not plan to run
|
28
|
-
<tt>rake doc:app</tt>.
|