has_public_id 1.1.5 → 1.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/has_public_id/version.rb +1 -1
- data/test/dummy/app/models/admin.rb +2 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +606 -0
- data/test/dummy/test/fixtures/admins.yml +13 -0
- data/test/dummy/test/models/admin_test.rb +27 -0
- metadata +26 -26
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 89f5426224bce80e6a794537e43261b3ce27c83c
|
4
|
+
data.tar.gz: ac18e851de5203cc4fde0821164c92fcff2fb3c3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: a2923f031a5bac460f116e3bb4cb59860dea5cb03574de7f78e83a03f561c6f62aa299d4adeb3ce87a2f928682c1b58a1fd4e6a83a0dca2f76f6783a29a7d03f
|
7
|
+
data.tar.gz: 007662b9c50ea0d2ef0a302eb0f41be11c6869b1382ecdef862c632cc78d2c13cb5437d96d922998d5642568d1d3fdb2deab1ecfc72d680db2dc2ccf443d4dc4
|
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -4936,3 +4936,609 @@ UserTest: test_to_param_matches_identifier
|
|
4936
4936
|
------------------------------------------
|
4937
4937
|
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-0nqgjjrLuQUi' LIMIT 1[0m
|
4938
4938
|
[1m[35m (0.0ms)[0m rollback transaction
|
4939
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
4940
|
+
[1m[35mFixture Delete (1.3ms)[0m DELETE FROM "users"
|
4941
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:32:44', '2014-03-13 17:32:44', 980190962)[0m
|
4942
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:32:44', '2014-03-13 17:32:44', 298486374)
|
4943
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:32:44', '2014-03-13 17:32:44', 113629430)[0m
|
4944
|
+
[1m[35m (0.9ms)[0m commit transaction
|
4945
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4946
|
+
----------------------------------------
|
4947
|
+
AdminTest: test_identifier_doesnt_change
|
4948
|
+
----------------------------------------
|
4949
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4950
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4951
|
+
--------------------------------------------------
|
4952
|
+
AdminTest: test_identifier_initializes_from_parent
|
4953
|
+
--------------------------------------------------
|
4954
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4955
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
4956
|
+
-------------------------------------------
|
4957
|
+
HasPublicId::UtilTest: test_char_set.length
|
4958
|
+
-------------------------------------------
|
4959
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4960
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4961
|
+
--------------------------------------------------
|
4962
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
4963
|
+
--------------------------------------------------
|
4964
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4965
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4966
|
+
----------------------------------------------------------
|
4967
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
4968
|
+
----------------------------------------------------------
|
4969
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4970
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4971
|
+
------------------------------------------------------------
|
4972
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
4973
|
+
------------------------------------------------------------
|
4974
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4975
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4976
|
+
------------------------------------------------------------
|
4977
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
4978
|
+
------------------------------------------------------------
|
4979
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4980
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4981
|
+
---------------------------------------------------------
|
4982
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
4983
|
+
---------------------------------------------------------
|
4984
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4985
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4986
|
+
----------------------------------------------------------
|
4987
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
4988
|
+
----------------------------------------------------------
|
4989
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4990
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4991
|
+
------------------------------------------------------
|
4992
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
4993
|
+
------------------------------------------------------
|
4994
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
4995
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
4996
|
+
---------------------------
|
4997
|
+
HasPublicIdTest: test_Mixin
|
4998
|
+
---------------------------
|
4999
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5000
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5001
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
5002
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:32:44', '2014-03-13 17:32:44', 980190962)[0m
|
5003
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:32:44', '2014-03-13 17:32:44', 298486374)
|
5004
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:32:44', '2014-03-13 17:32:44', 113629430)[0m
|
5005
|
+
[1m[35m (0.9ms)[0m commit transaction
|
5006
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5007
|
+
--------------------------------
|
5008
|
+
UserTest: test_find_by_public_id
|
5009
|
+
--------------------------------
|
5010
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-XvdEK40Jdmwq' LIMIT 1
|
5011
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5012
|
+
[1m[35mSQL (7.2ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00], ["ident", "user-XvdEK40Jdmwq"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00]]
|
5013
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5014
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-XvdEK40Jdmwq' ORDER BY "users"."id" ASC LIMIT 1
|
5015
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5016
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
5017
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5018
|
+
---------------------------------
|
5019
|
+
UserTest: test_find_by_public_id!
|
5020
|
+
---------------------------------
|
5021
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-kFLfj9DvXV1i' LIMIT 1
|
5022
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5023
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00], ["ident", "user-kFLfj9DvXV1i"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00]]
|
5024
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5025
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-kFLfj9DvXV1i' ORDER BY "users"."id" ASC LIMIT 1
|
5026
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5027
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
5028
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5029
|
+
---------------------------------------
|
5030
|
+
UserTest: test_identifier_doesnt_change
|
5031
|
+
---------------------------------------
|
5032
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-KaWELaYhD39I' LIMIT 1
|
5033
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5034
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00], ["ident", "user-KaWELaYhD39I"], ["updated_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00]]
|
5035
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5036
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
5037
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5038
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5039
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
5040
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
5041
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5042
|
+
-------------------------------------
|
5043
|
+
UserTest: test_identifier_initializes
|
5044
|
+
-------------------------------------
|
5045
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-NTaZQWneNkMR' LIMIT 1
|
5046
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-CHjoe4mN8rso' LIMIT 1[0m
|
5047
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5048
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5049
|
+
-------------------------------------
|
5050
|
+
UserTest: test_initialize_public_ids!
|
5051
|
+
-------------------------------------
|
5052
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
5053
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000[0m
|
5054
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-HXZSd6F9imyA' LIMIT 1
|
5055
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-uWiYq8f4oDzy' LIMIT 1[0m
|
5056
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-RbU1BOAVVurN' LIMIT 1
|
5057
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-zOyEcIw4R3Ef' LIMIT 1[0m
|
5058
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5059
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430[0m [["ident", "user-zOyEcIw4R3Ef"], ["updated_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00]]
|
5060
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5061
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-arm8aMoMs5gQ' LIMIT 1[0m
|
5062
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5063
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374[0m [["ident", "user-arm8aMoMs5gQ"], ["updated_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00]]
|
5064
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5065
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-R5qxRUiXcy9h' LIMIT 1[0m
|
5066
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5067
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962[0m [["ident", "user-R5qxRUiXcy9h"], ["updated_at", Thu, 13 Mar 2014 17:32:44 UTC +00:00]]
|
5068
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5069
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
5070
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
5071
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5072
|
+
----------------------------
|
5073
|
+
UserTest: test_new_public_id
|
5074
|
+
----------------------------
|
5075
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-WmMhTFJYVuye' LIMIT 1
|
5076
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5077
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5078
|
+
------------------------------------------
|
5079
|
+
UserTest: test_to_param_matches_identifier
|
5080
|
+
------------------------------------------
|
5081
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-MRV1BKylFRGo' LIMIT 1[0m
|
5082
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5083
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
5084
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "users"
|
5085
|
+
[1m[36mFixture Insert (0.3ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:36:50', '2014-03-13 17:36:50', 980190962)[0m
|
5086
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:36:50', '2014-03-13 17:36:50', 298486374)
|
5087
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:36:50', '2014-03-13 17:36:50', 113629430)[0m
|
5088
|
+
[1m[35m (1.0ms)[0m commit transaction
|
5089
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5090
|
+
----------------------------------------
|
5091
|
+
AdminTest: test_identifier_doesnt_change
|
5092
|
+
----------------------------------------
|
5093
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5094
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5095
|
+
--------------------------------------------------
|
5096
|
+
AdminTest: test_identifier_initializes_from_parent
|
5097
|
+
--------------------------------------------------
|
5098
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5099
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5100
|
+
--------------------------------------------------
|
5101
|
+
AdminTest: test_inherited_class_has_public_id_attr
|
5102
|
+
--------------------------------------------------
|
5103
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5104
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5105
|
+
-------------------------------------------
|
5106
|
+
HasPublicId::UtilTest: test_char_set.length
|
5107
|
+
-------------------------------------------
|
5108
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5109
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5110
|
+
--------------------------------------------------
|
5111
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
5112
|
+
--------------------------------------------------
|
5113
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5115
|
+
----------------------------------------------------------
|
5116
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
5117
|
+
----------------------------------------------------------
|
5118
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5119
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5120
|
+
------------------------------------------------------------
|
5121
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
5122
|
+
------------------------------------------------------------
|
5123
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5124
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5125
|
+
------------------------------------------------------------
|
5126
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
5127
|
+
------------------------------------------------------------
|
5128
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5129
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5130
|
+
---------------------------------------------------------
|
5131
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
5132
|
+
---------------------------------------------------------
|
5133
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5134
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5135
|
+
----------------------------------------------------------
|
5136
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
5137
|
+
----------------------------------------------------------
|
5138
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5139
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5140
|
+
------------------------------------------------------
|
5141
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
5142
|
+
------------------------------------------------------
|
5143
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5144
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5145
|
+
---------------------------
|
5146
|
+
HasPublicIdTest: test_Mixin
|
5147
|
+
---------------------------
|
5148
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5149
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5150
|
+
[1m[35mFixture Delete (0.2ms)[0m DELETE FROM "users"
|
5151
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:36:51', '2014-03-13 17:36:51', 980190962)[0m
|
5152
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:36:51', '2014-03-13 17:36:51', 298486374)
|
5153
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:36:51', '2014-03-13 17:36:51', 113629430)[0m
|
5154
|
+
[1m[35m (0.9ms)[0m commit transaction
|
5155
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5156
|
+
--------------------------------
|
5157
|
+
UserTest: test_find_by_public_id
|
5158
|
+
--------------------------------
|
5159
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-Ku87RBPFeD38' LIMIT 1
|
5160
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5161
|
+
[1m[35mSQL (5.6ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00], ["ident", "user-Ku87RBPFeD38"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00]]
|
5162
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5163
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-Ku87RBPFeD38' ORDER BY "users"."id" ASC LIMIT 1
|
5164
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5165
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5166
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5167
|
+
---------------------------------
|
5168
|
+
UserTest: test_find_by_public_id!
|
5169
|
+
---------------------------------
|
5170
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-VxFz56t0nNw1' LIMIT 1
|
5171
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5172
|
+
[1m[35mSQL (0.5ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00], ["ident", "user-VxFz56t0nNw1"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00]]
|
5173
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5174
|
+
[1m[35mUser Load (0.2ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-VxFz56t0nNw1' ORDER BY "users"."id" ASC LIMIT 1
|
5175
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5176
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5177
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5178
|
+
---------------------------------------
|
5179
|
+
UserTest: test_identifier_doesnt_change
|
5180
|
+
---------------------------------------
|
5181
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-zD5AQDVD2F6X' LIMIT 1
|
5182
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5183
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00], ["ident", "user-zD5AQDVD2F6X"], ["updated_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00]]
|
5184
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5185
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
5186
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5187
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5188
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
5189
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
5190
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5191
|
+
-------------------------------------
|
5192
|
+
UserTest: test_identifier_initializes
|
5193
|
+
-------------------------------------
|
5194
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-vGgowkyA2A6h' LIMIT 1
|
5195
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-xOxdk2si6JnO' LIMIT 1[0m
|
5196
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5197
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5198
|
+
-------------------------------------
|
5199
|
+
UserTest: test_initialize_public_ids!
|
5200
|
+
-------------------------------------
|
5201
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
5202
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000[0m
|
5203
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-LTDvCfm4dgv4' LIMIT 1
|
5204
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-zJ0F8emjklzS' LIMIT 1[0m
|
5205
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-UuZoEY0N2Ahm' LIMIT 1
|
5206
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-hYz1OHCcsmak' LIMIT 1[0m
|
5207
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5208
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430[0m [["ident", "user-hYz1OHCcsmak"], ["updated_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00]]
|
5209
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5210
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-rMfCyxgbORUB' LIMIT 1[0m
|
5211
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5212
|
+
[1m[36mSQL (0.9ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374[0m [["ident", "user-rMfCyxgbORUB"], ["updated_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00]]
|
5213
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5214
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-6ObwrC9GObtD' LIMIT 1[0m
|
5215
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5216
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962[0m [["ident", "user-6ObwrC9GObtD"], ["updated_at", Thu, 13 Mar 2014 17:36:51 UTC +00:00]]
|
5217
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5218
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
5219
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5220
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5221
|
+
----------------------------
|
5222
|
+
UserTest: test_new_public_id
|
5223
|
+
----------------------------
|
5224
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-pvuxozBv5x0l' LIMIT 1
|
5225
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5226
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5227
|
+
----------------------------------
|
5228
|
+
UserTest: test_sets_public_id_attr
|
5229
|
+
----------------------------------
|
5230
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5231
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5232
|
+
------------------------------------------
|
5233
|
+
UserTest: test_to_param_matches_identifier
|
5234
|
+
------------------------------------------
|
5235
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-6OPzbpC4CmuN' LIMIT 1[0m
|
5236
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5237
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
5238
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "users"
|
5239
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:37:21', '2014-03-13 17:37:21', 980190962)[0m
|
5240
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:37:21', '2014-03-13 17:37:21', 298486374)
|
5241
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:37:21', '2014-03-13 17:37:21', 113629430)[0m
|
5242
|
+
[1m[35m (1.0ms)[0m commit transaction
|
5243
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5244
|
+
----------------------------------------
|
5245
|
+
AdminTest: test_identifier_doesnt_change
|
5246
|
+
----------------------------------------
|
5247
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5248
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5249
|
+
--------------------------------------------------
|
5250
|
+
AdminTest: test_identifier_initializes_from_parent
|
5251
|
+
--------------------------------------------------
|
5252
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5253
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5254
|
+
--------------------------------------------------
|
5255
|
+
AdminTest: test_inherited_class_has_public_id_attr
|
5256
|
+
--------------------------------------------------
|
5257
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5258
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5259
|
+
-------------------------------------------
|
5260
|
+
HasPublicId::UtilTest: test_char_set.length
|
5261
|
+
-------------------------------------------
|
5262
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5263
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5264
|
+
--------------------------------------------------
|
5265
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
5266
|
+
--------------------------------------------------
|
5267
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5268
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5269
|
+
----------------------------------------------------------
|
5270
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
5271
|
+
----------------------------------------------------------
|
5272
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5273
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5274
|
+
------------------------------------------------------------
|
5275
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
5276
|
+
------------------------------------------------------------
|
5277
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5278
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5279
|
+
------------------------------------------------------------
|
5280
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
5281
|
+
------------------------------------------------------------
|
5282
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5283
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5284
|
+
---------------------------------------------------------
|
5285
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
5286
|
+
---------------------------------------------------------
|
5287
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5288
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5289
|
+
----------------------------------------------------------
|
5290
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
5291
|
+
----------------------------------------------------------
|
5292
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5293
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5294
|
+
------------------------------------------------------
|
5295
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
5296
|
+
------------------------------------------------------
|
5297
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
5298
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
5299
|
+
---------------------------
|
5300
|
+
HasPublicIdTest: test_Mixin
|
5301
|
+
---------------------------
|
5302
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5303
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5304
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "users"
|
5305
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:37:21', '2014-03-13 17:37:21', 980190962)[0m
|
5306
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:37:21', '2014-03-13 17:37:21', 298486374)
|
5307
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:37:21', '2014-03-13 17:37:21', 113629430)[0m
|
5308
|
+
[1m[35m (2.2ms)[0m commit transaction
|
5309
|
+
[1m[36m (0.2ms)[0m [1mbegin transaction[0m
|
5310
|
+
--------------------------------
|
5311
|
+
UserTest: test_find_by_public_id
|
5312
|
+
--------------------------------
|
5313
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-odIL2bPmsD6l' LIMIT 1
|
5314
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5315
|
+
[1m[35mSQL (2.5ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00], ["ident", "user-odIL2bPmsD6l"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00]]
|
5316
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5317
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-odIL2bPmsD6l' ORDER BY "users"."id" ASC LIMIT 1
|
5318
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5319
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5320
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5321
|
+
---------------------------------
|
5322
|
+
UserTest: test_find_by_public_id!
|
5323
|
+
---------------------------------
|
5324
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-ezrQYOM3izfV' LIMIT 1
|
5325
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5326
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00], ["ident", "user-ezrQYOM3izfV"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00]]
|
5327
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5328
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-ezrQYOM3izfV' ORDER BY "users"."id" ASC LIMIT 1
|
5329
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5330
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5331
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5332
|
+
---------------------------------------
|
5333
|
+
UserTest: test_identifier_doesnt_change
|
5334
|
+
---------------------------------------
|
5335
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-2MgnhPAYWvRr' LIMIT 1
|
5336
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5337
|
+
[1m[35mSQL (0.3ms)[0m INSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00], ["ident", "user-2MgnhPAYWvRr"], ["updated_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00]]
|
5338
|
+
[1m[36m (0.0ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5339
|
+
[1m[35mUser Load (0.3ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
5340
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5341
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5342
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
5343
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
5344
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5345
|
+
-------------------------------------
|
5346
|
+
UserTest: test_identifier_initializes
|
5347
|
+
-------------------------------------
|
5348
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-pM2w2pl0R7vw' LIMIT 1
|
5349
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-oyzUYqlK0apL' LIMIT 1[0m
|
5350
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5351
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5352
|
+
-------------------------------------
|
5353
|
+
UserTest: test_initialize_public_ids!
|
5354
|
+
-------------------------------------
|
5355
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
5356
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000[0m
|
5357
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-2L15suFHsCqD' LIMIT 1
|
5358
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-EUljg4WFsNQg' LIMIT 1[0m
|
5359
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-GIDJeevcXEZe' LIMIT 1
|
5360
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-iYLJEwjTAQxU' LIMIT 1[0m
|
5361
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5362
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430[0m [["ident", "user-iYLJEwjTAQxU"], ["updated_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00]]
|
5363
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5364
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-JlfXKML8Tm13' LIMIT 1[0m
|
5365
|
+
[1m[35m (0.1ms)[0m SAVEPOINT active_record_1
|
5366
|
+
[1m[36mSQL (1.2ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374[0m [["ident", "user-JlfXKML8Tm13"], ["updated_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00]]
|
5367
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5368
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-ca3lY6FoWiIp' LIMIT 1[0m
|
5369
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5370
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962[0m [["ident", "user-ca3lY6FoWiIp"], ["updated_at", Thu, 13 Mar 2014 17:37:21 UTC +00:00]]
|
5371
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5372
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
5373
|
+
[1m[35m (0.6ms)[0m rollback transaction
|
5374
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5375
|
+
----------------------------
|
5376
|
+
UserTest: test_new_public_id
|
5377
|
+
----------------------------
|
5378
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-G4bcY1TFA6hk' LIMIT 1
|
5379
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5380
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5381
|
+
----------------------------------
|
5382
|
+
UserTest: test_sets_public_id_attr
|
5383
|
+
----------------------------------
|
5384
|
+
[1m[36m (0.1ms)[0m [1mrollback transaction[0m
|
5385
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5386
|
+
------------------------------------------
|
5387
|
+
UserTest: test_to_param_matches_identifier
|
5388
|
+
------------------------------------------
|
5389
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-WFnRMgHANoTZ' LIMIT 1[0m
|
5390
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5391
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
5392
|
+
[1m[35mFixture Delete (0.7ms)[0m DELETE FROM "users"
|
5393
|
+
[1m[36mFixture Insert (0.7ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:41:33', '2014-03-13 17:41:33', 980190962)[0m
|
5394
|
+
[1m[35mFixture Insert (0.2ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:41:33', '2014-03-13 17:41:33', 298486374)
|
5395
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:41:33', '2014-03-13 17:41:33', 113629430)[0m
|
5396
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5397
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5398
|
+
----------------------------------------
|
5399
|
+
AdminTest: test_identifier_doesnt_change
|
5400
|
+
----------------------------------------
|
5401
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5402
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5403
|
+
--------------------------------------------------
|
5404
|
+
AdminTest: test_identifier_initializes_from_parent
|
5405
|
+
--------------------------------------------------
|
5406
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5407
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5408
|
+
--------------------------------------------------
|
5409
|
+
AdminTest: test_inherited_class_has_public_id_attr
|
5410
|
+
--------------------------------------------------
|
5411
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5412
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5413
|
+
-------------------------------------------
|
5414
|
+
HasPublicId::UtilTest: test_char_set.length
|
5415
|
+
-------------------------------------------
|
5416
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
5417
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5418
|
+
--------------------------------------------------
|
5419
|
+
HasPublicId::UtilTest: test_generate_random_suffix
|
5420
|
+
--------------------------------------------------
|
5421
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5422
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5423
|
+
----------------------------------------------------------
|
5424
|
+
HasPublicId::UtilTest: test_generate_random_suffix(length)
|
5425
|
+
----------------------------------------------------------
|
5426
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5427
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5428
|
+
------------------------------------------------------------
|
5429
|
+
HasPublicId::UtilTest: test_new_public_id(with_blank_prefix)
|
5430
|
+
------------------------------------------------------------
|
5431
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5432
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5433
|
+
------------------------------------------------------------
|
5434
|
+
HasPublicId::UtilTest: test_new_public_id(with_false_prefix)
|
5435
|
+
------------------------------------------------------------
|
5436
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5437
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5438
|
+
---------------------------------------------------------
|
5439
|
+
HasPublicId::UtilTest: test_new_public_id(with_join_with)
|
5440
|
+
---------------------------------------------------------
|
5441
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5442
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5443
|
+
----------------------------------------------------------
|
5444
|
+
HasPublicId::UtilTest: test_new_public_id(with_nil_prefix)
|
5445
|
+
----------------------------------------------------------
|
5446
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5447
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5448
|
+
------------------------------------------------------
|
5449
|
+
HasPublicId::UtilTest: test_new_public_id(with_prefix)
|
5450
|
+
------------------------------------------------------
|
5451
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5452
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5453
|
+
---------------------------
|
5454
|
+
HasPublicIdTest: test_Mixin
|
5455
|
+
---------------------------
|
5456
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5457
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5458
|
+
[1m[35mFixture Delete (0.3ms)[0m DELETE FROM "users"
|
5459
|
+
[1m[36mFixture Insert (0.2ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Sammy', NULL, '2014-03-13 17:41:33', '2014-03-13 17:41:33', 980190962)[0m
|
5460
|
+
[1m[35mFixture Insert (0.1ms)[0m INSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Joe', NULL, '2014-03-13 17:41:33', '2014-03-13 17:41:33', 298486374)
|
5461
|
+
[1m[36mFixture Insert (0.1ms)[0m [1mINSERT INTO "users" ("name", "ident", "created_at", "updated_at", "id") VALUES ('Susan', NULL, '2014-03-13 17:41:33', '2014-03-13 17:41:33', 113629430)[0m
|
5462
|
+
[1m[35m (0.8ms)[0m commit transaction
|
5463
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5464
|
+
--------------------------------
|
5465
|
+
UserTest: test_find_by_public_id
|
5466
|
+
--------------------------------
|
5467
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-XkWMjdMtQzPU' LIMIT 1
|
5468
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5469
|
+
[1m[35mSQL (5.6ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00], ["ident", "user-XkWMjdMtQzPU"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00]]
|
5470
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5471
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-XkWMjdMtQzPU' ORDER BY "users"."id" ASC LIMIT 1
|
5472
|
+
[1m[36mUser Load (0.2ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5473
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
5474
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5475
|
+
---------------------------------
|
5476
|
+
UserTest: test_find_by_public_id!
|
5477
|
+
---------------------------------
|
5478
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-rbh3TRnrK3Cr' LIMIT 1
|
5479
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5480
|
+
[1m[35mSQL (0.6ms)[0m INSERT INTO "users" ("created_at", "ident", "name", "updated_at") VALUES (?, ?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00], ["ident", "user-rbh3TRnrK3Cr"], ["name", "joey"], ["updated_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00]]
|
5481
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5482
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."ident" = 'user-rbh3TRnrK3Cr' ORDER BY "users"."id" ASC LIMIT 1
|
5483
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" = 'bad_key' ORDER BY "users"."id" ASC LIMIT 1[0m
|
5484
|
+
[1m[35m (0.5ms)[0m rollback transaction
|
5485
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5486
|
+
---------------------------------------
|
5487
|
+
UserTest: test_identifier_doesnt_change
|
5488
|
+
---------------------------------------
|
5489
|
+
[1m[35mUser Exists (0.2ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-MZqjZ4s6Xxjo' LIMIT 1
|
5490
|
+
[1m[36m (0.0ms)[0m [1mSAVEPOINT active_record_1[0m
|
5491
|
+
[1m[35mSQL (0.4ms)[0m INSERT INTO "users" ("created_at", "ident", "updated_at") VALUES (?, ?, ?) [["created_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00], ["ident", "user-MZqjZ4s6Xxjo"], ["updated_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00]]
|
5492
|
+
[1m[36m (0.1ms)[0m [1mRELEASE SAVEPOINT active_record_1[0m
|
5493
|
+
[1m[35mUser Load (0.1ms)[0m SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 980190963]]
|
5494
|
+
[1m[36m (0.1ms)[0m [1mSAVEPOINT active_record_1[0m
|
5495
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5496
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1[0m [["id", 980190963]]
|
5497
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5498
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5499
|
+
-------------------------------------
|
5500
|
+
UserTest: test_identifier_initializes
|
5501
|
+
-------------------------------------
|
5502
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-cKb7GW2w0Jom' LIMIT 1
|
5503
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-DTKSRW7U0Hxt' LIMIT 1[0m
|
5504
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
5505
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5506
|
+
-------------------------------------
|
5507
|
+
UserTest: test_initialize_public_ids!
|
5508
|
+
-------------------------------------
|
5509
|
+
[1m[35m (0.1ms)[0m SELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL
|
5510
|
+
[1m[36mUser Load (0.1ms)[0m [1mSELECT "users".* FROM "users" WHERE "users"."ident" IS NULL ORDER BY "users"."id" ASC LIMIT 1000[0m
|
5511
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-2AFiXusm2Z7b' LIMIT 1
|
5512
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-17cgrrI3GLaG' LIMIT 1[0m
|
5513
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-ZnmdmclX5KdA' LIMIT 1
|
5514
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-DMZj3vQgEekA' LIMIT 1[0m
|
5515
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5516
|
+
[1m[36mSQL (0.4ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 113629430[0m [["ident", "user-DMZj3vQgEekA"], ["updated_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00]]
|
5517
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5518
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-wofksgdROwnj' LIMIT 1[0m
|
5519
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5520
|
+
[1m[36mSQL (1.0ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 298486374[0m [["ident", "user-wofksgdROwnj"], ["updated_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00]]
|
5521
|
+
[1m[35m (0.1ms)[0m RELEASE SAVEPOINT active_record_1
|
5522
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-8qmfL6Yi5f3P' LIMIT 1[0m
|
5523
|
+
[1m[35m (0.0ms)[0m SAVEPOINT active_record_1
|
5524
|
+
[1m[36mSQL (0.2ms)[0m [1mUPDATE "users" SET "ident" = ?, "updated_at" = ? WHERE "users"."id" = 980190962[0m [["ident", "user-8qmfL6Yi5f3P"], ["updated_at", Thu, 13 Mar 2014 17:41:33 UTC +00:00]]
|
5525
|
+
[1m[35m (0.0ms)[0m RELEASE SAVEPOINT active_record_1
|
5526
|
+
[1m[36m (0.1ms)[0m [1mSELECT COUNT(*) FROM "users" WHERE "users"."ident" IS NULL[0m
|
5527
|
+
[1m[35m (0.4ms)[0m rollback transaction
|
5528
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5529
|
+
----------------------------
|
5530
|
+
UserTest: test_new_public_id
|
5531
|
+
----------------------------
|
5532
|
+
[1m[35mUser Exists (0.1ms)[0m SELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-hsPIzEm2Wc4j' LIMIT 1
|
5533
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5534
|
+
[1m[35m (0.0ms)[0m begin transaction
|
5535
|
+
----------------------------------
|
5536
|
+
UserTest: test_sets_public_id_attr
|
5537
|
+
----------------------------------
|
5538
|
+
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
5539
|
+
[1m[35m (0.1ms)[0m begin transaction
|
5540
|
+
------------------------------------------
|
5541
|
+
UserTest: test_to_param_matches_identifier
|
5542
|
+
------------------------------------------
|
5543
|
+
[1m[36mUser Exists (0.1ms)[0m [1mSELECT 1 AS one FROM "users" WHERE "users"."ident" = 'user-UZUbiOQs0Ho4' LIMIT 1[0m
|
5544
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'test_helper'
|
2
|
+
|
3
|
+
class AdminTest < ActiveSupport::TestCase
|
4
|
+
fixtures :admins
|
5
|
+
self.use_transactional_fixtures = true
|
6
|
+
|
7
|
+
test "inherited_class_has_public_id_attr" do
|
8
|
+
assert Admin.respond_to?(:public_id_attr)
|
9
|
+
assert_equal User.public_id_attr, Admin.public_id_attr
|
10
|
+
end
|
11
|
+
|
12
|
+
test "identifier_initializes_from_parent" do
|
13
|
+
assert Admin.new.ident.present?, "should have an id when initialized"
|
14
|
+
assert_equal Admin.new.ident.first(5), 'user-', "should have a 3 letter prefix from the class name"
|
15
|
+
end
|
16
|
+
|
17
|
+
test "identifier_doesnt_change" do
|
18
|
+
u = Admin.new
|
19
|
+
identifier = u.ident
|
20
|
+
u.save!
|
21
|
+
u.reload
|
22
|
+
assert_equal identifier, u.ident, "doesn't match after create"
|
23
|
+
u.save!
|
24
|
+
u.reload
|
25
|
+
assert_equal identifier, u.ident, "doesn't match after update"
|
26
|
+
end
|
27
|
+
end
|
metadata
CHANGED
@@ -1,46 +1,41 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: has_public_id
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
5
|
-
prerelease:
|
4
|
+
version: 1.1.6
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Graham Melcher
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2014-
|
11
|
+
date: 2014-11-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: rails
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 4.0
|
19
|
+
version: '4.0'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 4.0
|
26
|
+
version: '4.0'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: sqlite3
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- -
|
31
|
+
- - ">="
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- -
|
38
|
+
- - ">="
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '0'
|
46
41
|
description: Allows for the easy creation and use of random, unique record identifiers
|
@@ -52,23 +47,27 @@ executables: []
|
|
52
47
|
extensions: []
|
53
48
|
extra_rdoc_files: []
|
54
49
|
files:
|
50
|
+
- MIT-LICENSE
|
51
|
+
- README.md
|
52
|
+
- Rakefile
|
53
|
+
- lib/has_public_id.rb
|
55
54
|
- lib/has_public_id/activerecord/mixin.rb
|
56
55
|
- lib/has_public_id/util.rb
|
57
56
|
- lib/has_public_id/version.rb
|
58
|
-
- lib/has_public_id.rb
|
59
57
|
- lib/tasks/public_id_tasks.rake
|
60
|
-
-
|
61
|
-
- Rakefile
|
62
|
-
- README.md
|
58
|
+
- test/dummy/README.rdoc
|
59
|
+
- test/dummy/Rakefile
|
63
60
|
- test/dummy/app/assets/javascripts/application.js
|
64
61
|
- test/dummy/app/assets/stylesheets/application.css
|
65
62
|
- test/dummy/app/controllers/application_controller.rb
|
66
63
|
- test/dummy/app/helpers/application_helper.rb
|
64
|
+
- test/dummy/app/models/admin.rb
|
67
65
|
- test/dummy/app/models/user.rb
|
68
66
|
- test/dummy/app/views/layouts/application.html.erb
|
69
67
|
- test/dummy/bin/bundle
|
70
68
|
- test/dummy/bin/rails
|
71
69
|
- test/dummy/bin/rake
|
70
|
+
- test/dummy/config.ru
|
72
71
|
- test/dummy/config/application.rb
|
73
72
|
- test/dummy/config/boot.rb
|
74
73
|
- test/dummy/config/database.yml
|
@@ -85,7 +84,6 @@ files:
|
|
85
84
|
- test/dummy/config/initializers/wrap_parameters.rb
|
86
85
|
- test/dummy/config/locales/en.yml
|
87
86
|
- test/dummy/config/routes.rb
|
88
|
-
- test/dummy/config.ru
|
89
87
|
- test/dummy/db/development.sqlite3
|
90
88
|
- test/dummy/db/migrate/20140109180823_create_users.rb
|
91
89
|
- test/dummy/db/schema.rb
|
@@ -96,41 +94,41 @@ files:
|
|
96
94
|
- test/dummy/public/422.html
|
97
95
|
- test/dummy/public/500.html
|
98
96
|
- test/dummy/public/favicon.ico
|
99
|
-
- test/dummy/
|
100
|
-
- test/dummy/README.rdoc
|
97
|
+
- test/dummy/test/fixtures/admins.yml
|
101
98
|
- test/dummy/test/fixtures/users.yml
|
99
|
+
- test/dummy/test/models/admin_test.rb
|
102
100
|
- test/dummy/test/models/user_test.rb
|
103
101
|
- test/has_public_id_test.rb
|
104
102
|
- test/test_helper.rb
|
105
103
|
homepage: https://github.com/hinthealth/has_public_id
|
106
104
|
licenses: []
|
105
|
+
metadata: {}
|
107
106
|
post_install_message:
|
108
107
|
rdoc_options: []
|
109
108
|
require_paths:
|
110
109
|
- lib
|
111
110
|
required_ruby_version: !ruby/object:Gem::Requirement
|
112
|
-
none: false
|
113
111
|
requirements:
|
114
|
-
- -
|
112
|
+
- - ">="
|
115
113
|
- !ruby/object:Gem::Version
|
116
114
|
version: '0'
|
117
115
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
118
|
-
none: false
|
119
116
|
requirements:
|
120
|
-
- -
|
117
|
+
- - ">="
|
121
118
|
- !ruby/object:Gem::Version
|
122
119
|
version: '0'
|
123
120
|
requirements: []
|
124
121
|
rubyforge_project:
|
125
|
-
rubygems_version:
|
122
|
+
rubygems_version: 2.2.2
|
126
123
|
signing_key:
|
127
|
-
specification_version:
|
124
|
+
specification_version: 4
|
128
125
|
summary: Random, unique identifiers for activerecord models
|
129
126
|
test_files:
|
130
127
|
- test/dummy/app/assets/javascripts/application.js
|
131
128
|
- test/dummy/app/assets/stylesheets/application.css
|
132
129
|
- test/dummy/app/controllers/application_controller.rb
|
133
130
|
- test/dummy/app/helpers/application_helper.rb
|
131
|
+
- test/dummy/app/models/admin.rb
|
134
132
|
- test/dummy/app/models/user.rb
|
135
133
|
- test/dummy/app/views/layouts/application.html.erb
|
136
134
|
- test/dummy/bin/bundle
|
@@ -165,7 +163,9 @@ test_files:
|
|
165
163
|
- test/dummy/public/favicon.ico
|
166
164
|
- test/dummy/Rakefile
|
167
165
|
- test/dummy/README.rdoc
|
166
|
+
- test/dummy/test/fixtures/admins.yml
|
168
167
|
- test/dummy/test/fixtures/users.yml
|
168
|
+
- test/dummy/test/models/admin_test.rb
|
169
169
|
- test/dummy/test/models/user_test.rb
|
170
170
|
- test/has_public_id_test.rb
|
171
171
|
- test/test_helper.rb
|