uuid_ids 0.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (45) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +29 -0
  3. data/Rakefile +28 -0
  4. data/lib/tasks/uuid_ids_tasks.rake +4 -0
  5. data/lib/uuid_ids.rb +4 -0
  6. data/lib/uuid_ids/model_helper.rb +25 -0
  7. data/lib/uuid_ids/version.rb +3 -0
  8. data/spec/dummy/README.rdoc +261 -0
  9. data/spec/dummy/Rakefile +7 -0
  10. data/spec/dummy/app/assets/javascripts/application.js +15 -0
  11. data/spec/dummy/app/assets/stylesheets/application.css +13 -0
  12. data/spec/dummy/app/controllers/application_controller.rb +3 -0
  13. data/spec/dummy/app/helpers/application_helper.rb +2 -0
  14. data/spec/dummy/app/models/thing.rb +6 -0
  15. data/spec/dummy/app/views/layouts/application.html.erb +14 -0
  16. data/spec/dummy/config.ru +4 -0
  17. data/spec/dummy/config/application.rb +65 -0
  18. data/spec/dummy/config/boot.rb +10 -0
  19. data/spec/dummy/config/database.yml +25 -0
  20. data/spec/dummy/config/environment.rb +5 -0
  21. data/spec/dummy/config/environments/development.rb +37 -0
  22. data/spec/dummy/config/environments/production.rb +67 -0
  23. data/spec/dummy/config/environments/test.rb +37 -0
  24. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  25. data/spec/dummy/config/initializers/inflections.rb +15 -0
  26. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  27. data/spec/dummy/config/initializers/secret_token.rb +7 -0
  28. data/spec/dummy/config/initializers/session_store.rb +8 -0
  29. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  30. data/spec/dummy/config/locales/en.yml +5 -0
  31. data/spec/dummy/config/routes.rb +58 -0
  32. data/spec/dummy/db/development.sqlite3 +0 -0
  33. data/spec/dummy/db/migrate/20130510232457_create_things.rb +9 -0
  34. data/spec/dummy/db/schema.rb +24 -0
  35. data/spec/dummy/db/test.sqlite3 +0 -0
  36. data/spec/dummy/log/development.log +25 -0
  37. data/spec/dummy/log/test.log +256 -0
  38. data/spec/dummy/public/404.html +26 -0
  39. data/spec/dummy/public/422.html +26 -0
  40. data/spec/dummy/public/500.html +25 -0
  41. data/spec/dummy/public/favicon.ico +0 -0
  42. data/spec/dummy/script/rails +6 -0
  43. data/spec/models/thing_spec.rb +24 -0
  44. data/spec/spec_helper.rb +39 -0
  45. metadata +196 -0
@@ -0,0 +1,256 @@
1
+ Connecting to database specified by database.yml
2
+ Connecting to database specified by database.yml
3
+ Connecting to database specified by database.yml
4
+ Connecting to database specified by database.yml
5
+ Connecting to database specified by database.yml
6
+  (0.3ms) begin transaction
7
+  (0.0ms) rollback transaction
8
+ Connecting to database specified by database.yml
9
+  (0.3ms) begin transaction
10
+  (0.0ms) rollback transaction
11
+ Connecting to database specified by database.yml
12
+  (0.1ms) select sqlite_version(*)
13
+  (1.0ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL)
14
+  (0.8ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
15
+  (0.9ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
16
+ Migrating to CreateThings (20130510232457)
17
+  (0.0ms) begin transaction
18
+  (0.2ms) CREATE TABLE "things" ("id" blob, "created_at" datetime NOT NULL, "updated_at" datetime NOT NULL)
19
+  (0.2ms) CREATE UNIQUE INDEX "index_things_on_id" ON "things" ("id")
20
+  (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES ('20130510232457')
21
+  (0.6ms) commit transaction
22
+  (0.1ms) SELECT "schema_migrations"."version" FROM "schema_migrations"
23
+ Connecting to database specified by database.yml
24
+  (0.3ms) begin transaction
25
+  (0.0ms) SAVEPOINT active_record_1
26
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
27
+  (0.0ms) rollback transaction
28
+ Connecting to database specified by database.yml
29
+  (0.3ms) begin transaction
30
+  (0.0ms) SAVEPOINT active_record_1
31
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
32
+  (0.0ms) rollback transaction
33
+ Connecting to database specified by database.yml
34
+  (0.3ms) begin transaction
35
+  (0.0ms) SAVEPOINT active_record_1
36
+  (0.9ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'66356635343633612d373766392d346130612d623038362d303766306464306564636338'
37
+ SQL (3.0ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:35:04 UTC +00:00], ["id", "f5f5463a-77f9-4a0a-b086-07f0dd0edcc8"], ["updated_at", Fri, 10 May 2013 23:35:04 UTC +00:00]]
38
+  (0.0ms) RELEASE SAVEPOINT active_record_1
39
+  (4.4ms) rollback transaction
40
+ Connecting to database specified by database.yml
41
+  (0.3ms) begin transaction
42
+  (0.0ms) SAVEPOINT active_record_1
43
+  (0.8ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'66366364336263642d613331382d343134382d623234612d363332313337636164343537'
44
+ SQL (2.7ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:36:11 UTC +00:00], ["id", "f6cd3bcd-a318-4148-b24a-632137cad457"], ["updated_at", Fri, 10 May 2013 23:36:11 UTC +00:00]]
45
+  (0.0ms) RELEASE SAVEPOINT active_record_1
46
+  (4.3ms) rollback transaction
47
+  (0.0ms) begin transaction
48
+  (0.0ms) SAVEPOINT active_record_1
49
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'39366466366631302d393633312d343264352d386430642d303630356539326231323032'
50
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:36:11 UTC +00:00], ["id", "96df6f10-9631-42d5-8d0d-0605e92b1202"], ["updated_at", Fri, 10 May 2013 23:36:11 UTC +00:00]]
51
+  (0.0ms) RELEASE SAVEPOINT active_record_1
52
+  (0.3ms) rollback transaction
53
+ Connecting to database specified by database.yml
54
+  (0.3ms) begin transaction
55
+  (0.0ms) SAVEPOINT active_record_1
56
+  (0.9ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'62306364353034612d336365662d343163652d623434332d666233613762336663373531'
57
+ SQL (3.1ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:36:22 UTC +00:00], ["id", "b0cd504a-3cef-41ce-b443-fb3a7b3fc751"], ["updated_at", Fri, 10 May 2013 23:36:22 UTC +00:00]]
58
+  (0.0ms) RELEASE SAVEPOINT active_record_1
59
+  (4.3ms) rollback transaction
60
+  (0.0ms) begin transaction
61
+  (0.0ms) SAVEPOINT active_record_1
62
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'37663762646265312d366535662d343237632d616565352d646433323536623632613366'
63
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:36:22 UTC +00:00], ["id", "7f7bdbe1-6e5f-427c-aee5-dd3256b62a3f"], ["updated_at", Fri, 10 May 2013 23:36:22 UTC +00:00]]
64
+  (0.0ms) RELEASE SAVEPOINT active_record_1
65
+  (0.3ms) rollback transaction
66
+ Connecting to database specified by database.yml
67
+  (0.3ms) begin transaction
68
+  (0.0ms) SAVEPOINT active_record_1
69
+  (0.8ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'62343564643137392d363537312d343436612d396335392d313665386663646236666335'
70
+ SQL (2.8ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:45:46 UTC +00:00], ["id", "b45dd179-6571-446a-9c59-16e8fcdb6fc5"], ["updated_at", Fri, 10 May 2013 23:45:46 UTC +00:00]]
71
+  (0.0ms) RELEASE SAVEPOINT active_record_1
72
+  (0.4ms) rollback transaction
73
+  (0.0ms) begin transaction
74
+  (0.0ms) SAVEPOINT active_record_1
75
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'66323462383966322d633462632d343736642d623938652d383932626337376131346461'
76
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:45:46 UTC +00:00], ["id", "f24b89f2-c4bc-476d-b98e-892bc77a14da"], ["updated_at", Fri, 10 May 2013 23:45:46 UTC +00:00]]
77
+  (0.0ms) RELEASE SAVEPOINT active_record_1
78
+  (0.3ms) rollback transaction
79
+ Connecting to database specified by database.yml
80
+  (0.3ms) begin transaction
81
+  (0.0ms) SAVEPOINT active_record_1
82
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
83
+  (0.0ms) rollback transaction
84
+  (0.0ms) begin transaction
85
+  (0.0ms) SAVEPOINT active_record_1
86
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
87
+  (0.0ms) rollback transaction
88
+  (0.0ms) begin transaction
89
+  (0.0ms) SAVEPOINT active_record_1
90
+  (0.0ms) ROLLBACK TO SAVEPOINT active_record_1
91
+  (0.0ms) rollback transaction
92
+ Connecting to database specified by database.yml
93
+  (0.3ms) begin transaction
94
+  (0.0ms) SAVEPOINT active_record_1
95
+  (1.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'31383031363465612d623963632d313165322d616262652d303030613237303230303432'
96
+ SQL (3.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:48:20 UTC +00:00], ["id", "180164ea-b9cc-11e2-abbe-000a27020042"], ["updated_at", Fri, 10 May 2013 23:48:20 UTC +00:00]]
97
+  (0.0ms) RELEASE SAVEPOINT active_record_1
98
+  (4.3ms) rollback transaction
99
+  (0.0ms) begin transaction
100
+  (0.0ms) SAVEPOINT active_record_1
101
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'31383034663563342d623963632d313165322d616262652d303030613237303230303432'
102
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:48:20 UTC +00:00], ["id", "1804f5c4-b9cc-11e2-abbe-000a27020042"], ["updated_at", Fri, 10 May 2013 23:48:20 UTC +00:00]]
103
+  (0.0ms) RELEASE SAVEPOINT active_record_1
104
+  (0.4ms) rollback transaction
105
+  (0.0ms) begin transaction
106
+  (0.0ms) SAVEPOINT active_record_1
107
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'31383035383030632d623963632d313165322d616262652d303030613237303230303432'
108
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:48:20 UTC +00:00], ["id", "1805800c-b9cc-11e2-abbe-000a27020042"], ["updated_at", Fri, 10 May 2013 23:48:20 UTC +00:00]]
109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
110
+  (0.2ms) rollback transaction
111
+ Connecting to database specified by database.yml
112
+  (0.4ms) begin transaction
113
+  (0.0ms) SAVEPOINT active_record_1
114
+  (1.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'33313062303732612d623963632d313165322d616261612d303030613237303230303432'
115
+ SQL (3.8ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:02 UTC +00:00], ["id", "310b072a-b9cc-11e2-abaa-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:02 UTC +00:00]]
116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
117
+  (4.3ms) rollback transaction
118
+  (0.0ms) begin transaction
119
+  (0.0ms) SAVEPOINT active_record_1
120
+  (0.6ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'33313065613166302d623963632d313165322d616261612d303030613237303230303432'
121
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:02 UTC +00:00], ["id", "310ea1f0-b9cc-11e2-abaa-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:02 UTC +00:00]]
122
+  (0.0ms) RELEASE SAVEPOINT active_record_1
123
+  (0.4ms) rollback transaction
124
+  (0.0ms) begin transaction
125
+  (0.0ms) SAVEPOINT active_record_1
126
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'33313066346334302d623963632d313165322d616261612d303030613237303230303432'
127
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:02 UTC +00:00], ["id", "310f4c40-b9cc-11e2-abaa-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:02 UTC +00:00]]
128
+  (0.0ms) RELEASE SAVEPOINT active_record_1
129
+  (0.2ms) rollback transaction
130
+ Connecting to database specified by database.yml
131
+  (0.3ms) begin transaction
132
+  (0.0ms) SAVEPOINT active_record_1
133
+  (1.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'33666637346336322d623963632d313165322d393234382d303030613237303230303432'
134
+ SQL (3.6ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:27 UTC +00:00], ["id", "3ff74c62-b9cc-11e2-9248-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:27 UTC +00:00]]
135
+  (0.0ms) RELEASE SAVEPOINT active_record_1
136
+  (4.4ms) rollback transaction
137
+  (0.1ms) begin transaction
138
+  (0.0ms) SAVEPOINT active_record_1
139
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'33666661646366362d623963632d313165322d393234382d303030613237303230303432'
140
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:27 UTC +00:00], ["id", "3ffadcf6-b9cc-11e2-9248-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:27 UTC +00:00]]
141
+  (0.0ms) RELEASE SAVEPOINT active_record_1
142
+  (0.3ms) rollback transaction
143
+  (0.1ms) begin transaction
144
+  (0.0ms) SAVEPOINT active_record_1
145
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:27 UTC +00:00], ["id", "3ffb9718-b9cc-11e2-9248-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:27 UTC +00:00]]
146
+  (0.0ms) RELEASE SAVEPOINT active_record_1
147
+  (0.3ms) rollback transaction
148
+ Connecting to database specified by database.yml
149
+  (0.3ms) begin transaction
150
+  (0.0ms) SAVEPOINT active_record_1
151
+  (1.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'34626135653134612d623963632d313165322d616264642d303030613237303230303432'
152
+ SQL (3.6ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:46 UTC +00:00], ["id", "4ba5e14a-b9cc-11e2-abdd-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:46 UTC +00:00]]
153
+  (0.0ms) RELEASE SAVEPOINT active_record_1
154
+  (4.4ms) rollback transaction
155
+  (0.1ms) begin transaction
156
+  (0.0ms) SAVEPOINT active_record_1
157
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'34626139383266612d623963632d313165322d616264642d303030613237303230303432'
158
+ SQL (0.4ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:46 UTC +00:00], ["id", "4ba982fa-b9cc-11e2-abdd-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:46 UTC +00:00]]
159
+  (0.0ms) RELEASE SAVEPOINT active_record_1
160
+  (0.3ms) rollback transaction
161
+  (0.1ms) begin transaction
162
+  (0.0ms) SAVEPOINT active_record_1
163
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'34626161353631632d623963632d313165322d616264642d303030613237303230303432'
164
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:49:46 UTC +00:00], ["id", "4baa561c-b9cc-11e2-abdd-000a27020042"], ["updated_at", Fri, 10 May 2013 23:49:46 UTC +00:00]]
165
+  (0.0ms) RELEASE SAVEPOINT active_record_1
166
+  (0.3ms) rollback transaction
167
+ Connecting to database specified by database.yml
168
+  (0.3ms) begin transaction
169
+  (0.0ms) SAVEPOINT active_record_1
170
+  (1.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'36306332386431632d623963632d313165322d616664322d303030613237303230303432'
171
+ SQL (3.4ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:50:22 UTC +00:00], ["id", "60c28d1c-b9cc-11e2-afd2-000a27020042"], ["updated_at", Fri, 10 May 2013 23:50:22 UTC +00:00]]
172
+  (0.0ms) RELEASE SAVEPOINT active_record_1
173
+  (4.4ms) rollback transaction
174
+  (0.0ms) begin transaction
175
+  (0.0ms) SAVEPOINT active_record_1
176
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'36306335663235342d623963632d313165322d616664322d303030613237303230303432'
177
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:50:22 UTC +00:00], ["id", "60c5f254-b9cc-11e2-afd2-000a27020042"], ["updated_at", Fri, 10 May 2013 23:50:22 UTC +00:00]]
178
+  (0.0ms) RELEASE SAVEPOINT active_record_1
179
+  (0.2ms) rollback transaction
180
+  (0.0ms) begin transaction
181
+  (0.0ms) SAVEPOINT active_record_1
182
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:50:22 UTC +00:00], ["id", "60c673b4-b9cc-11e2-afd2-000a27020042"], ["updated_at", Fri, 10 May 2013 23:50:22 UTC +00:00]]
183
+  (0.0ms) RELEASE SAVEPOINT active_record_1
184
+  (0.2ms) rollback transaction
185
+ Connecting to database specified by database.yml
186
+  (0.3ms) begin transaction
187
+  (0.1ms) SAVEPOINT active_record_1
188
+ SQL (4.5ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:51:05 UTC +00:00], ["id", "7a755186-b9cc-11e2-b92f-000a27020042"], ["updated_at", Fri, 10 May 2013 23:51:05 UTC +00:00]]
189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
190
+  (0.4ms) rollback transaction
191
+  (0.0ms) begin transaction
192
+  (0.0ms) SAVEPOINT active_record_1
193
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'37613738663262652d623963632d313165322d623932662d303030613237303230303432'
194
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:51:05 UTC +00:00], ["id", "7a78f2be-b9cc-11e2-b92f-000a27020042"], ["updated_at", Fri, 10 May 2013 23:51:05 UTC +00:00]]
195
+  (0.0ms) RELEASE SAVEPOINT active_record_1
196
+  (0.2ms) rollback transaction
197
+  (0.0ms) begin transaction
198
+  (0.0ms) SAVEPOINT active_record_1
199
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'37613739623639302d623963632d313165322d623932662d303030613237303230303432'
200
+ SQL (0.2ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:51:05 UTC +00:00], ["id", "7a79b690-b9cc-11e2-b92f-000a27020042"], ["updated_at", Fri, 10 May 2013 23:51:05 UTC +00:00]]
201
+  (0.0ms) RELEASE SAVEPOINT active_record_1
202
+  (0.3ms) rollback transaction
203
+ Connecting to database specified by database.yml
204
+  (0.3ms) begin transaction
205
+  (0.0ms) SAVEPOINT active_record_1
206
+  (1.0ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'61373432656562322d623963632d313165322d616461332d303030613237303230303432'
207
+ SQL (3.5ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:52:20 UTC +00:00], ["id", "a742eeb2-b9cc-11e2-ada3-000a27020042"], ["updated_at", Fri, 10 May 2013 23:52:20 UTC +00:00]]
208
+  (0.0ms) RELEASE SAVEPOINT active_record_1
209
+  (4.4ms) rollback transaction
210
+  (0.1ms) begin transaction
211
+  (0.0ms) SAVEPOINT active_record_1
212
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'61373436393335302d623963632d313165322d616461332d303030613237303230303432'
213
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:52:20 UTC +00:00], ["id", "a7469350-b9cc-11e2-ada3-000a27020042"], ["updated_at", Fri, 10 May 2013 23:52:20 UTC +00:00]]
214
+  (0.0ms) RELEASE SAVEPOINT active_record_1
215
+  (0.3ms) rollback transaction
216
+  (0.0ms) begin transaction
217
+  (0.0ms) SAVEPOINT active_record_1
218
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:52:20 UTC +00:00], ["id", "a747453e-b9cc-11e2-ada3-000a27020042"], ["updated_at", Fri, 10 May 2013 23:52:20 UTC +00:00]]
219
+  (0.0ms) RELEASE SAVEPOINT active_record_1
220
+  (0.3ms) rollback transaction
221
+ Connecting to database specified by database.yml
222
+  (0.3ms) begin transaction
223
+  (0.1ms) SAVEPOINT active_record_1
224
+ SQL (4.6ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:52:51 UTC +00:00], ["id", "b974e4c8-b9cc-11e2-a528-000a27020042"], ["updated_at", Fri, 10 May 2013 23:52:51 UTC +00:00]]
225
+  (0.0ms) RELEASE SAVEPOINT active_record_1
226
+  (4.4ms) rollback transaction
227
+  (0.1ms) begin transaction
228
+  (0.0ms) SAVEPOINT active_record_1
229
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'62393739316638342d623963632d313165322d613532382d303030613237303230303432'
230
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:52:51 UTC +00:00], ["id", "b9791f84-b9cc-11e2-a528-000a27020042"], ["updated_at", Fri, 10 May 2013 23:52:51 UTC +00:00]]
231
+  (0.0ms) RELEASE SAVEPOINT active_record_1
232
+  (0.3ms) rollback transaction
233
+  (0.0ms) begin transaction
234
+  (0.0ms) SAVEPOINT active_record_1
235
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'62393761326666302d623963632d313165322d613532382d303030613237303230303432'
236
+ SQL (0.3ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:52:51 UTC +00:00], ["id", "b97a2ff0-b9cc-11e2-a528-000a27020042"], ["updated_at", Fri, 10 May 2013 23:52:51 UTC +00:00]]
237
+  (0.0ms) RELEASE SAVEPOINT active_record_1
238
+  (0.3ms) rollback transaction
239
+ Connecting to database specified by database.yml
240
+  (0.3ms) begin transaction
241
+  (0.0ms) SAVEPOINT active_record_1
242
+  (1.0ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'33333636643439652d623963642d313165322d386433612d303030613237303230303432'
243
+ SQL (3.4ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:56:15 UTC +00:00], ["id", "3366d49e-b9cd-11e2-8d3a-000a27020042"], ["updated_at", Fri, 10 May 2013 23:56:15 UTC +00:00]]
244
+  (0.0ms) RELEASE SAVEPOINT active_record_1
245
+  (4.4ms) rollback transaction
246
+  (0.1ms) begin transaction
247
+  (0.0ms) SAVEPOINT active_record_1
248
+  (0.1ms) SELECT COUNT(*) FROM "things" WHERE "things"."id" = x'33333661373131632d623963642d313165322d386433612d303030613237303230303432'
249
+ SQL (0.4ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:56:15 UTC +00:00], ["id", "336a711c-b9cd-11e2-8d3a-000a27020042"], ["updated_at", Fri, 10 May 2013 23:56:15 UTC +00:00]]
250
+  (0.0ms) RELEASE SAVEPOINT active_record_1
251
+  (0.3ms) rollback transaction
252
+  (0.1ms) begin transaction
253
+  (0.0ms) SAVEPOINT active_record_1
254
+ SQL (0.4ms) INSERT INTO "things" ("created_at", "id", "updated_at") VALUES (?, ?, ?) [["created_at", Fri, 10 May 2013 23:56:15 UTC +00:00], ["id", "336b2d14-b9cd-11e2-8d3a-000a27020042"], ["updated_at", Fri, 10 May 2013 23:56:15 UTC +00:00]]
255
+  (0.0ms) RELEASE SAVEPOINT active_record_1
256
+  (0.3ms) rollback transaction
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The page you were looking for doesn't exist (404)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/404.html -->
21
+ <div class="dialog">
22
+ <h1>The page you were looking for doesn't exist.</h1>
23
+ <p>You may have mistyped the address or the page may have moved.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,26 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>The change you wanted was rejected (422)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/422.html -->
21
+ <div class="dialog">
22
+ <h1>The change you wanted was rejected.</h1>
23
+ <p>Maybe you tried to change something you didn't have access to.</p>
24
+ </div>
25
+ </body>
26
+ </html>
@@ -0,0 +1,25 @@
1
+ <!DOCTYPE html>
2
+ <html>
3
+ <head>
4
+ <title>We're sorry, but something went wrong (500)</title>
5
+ <style type="text/css">
6
+ body { background-color: #fff; color: #666; text-align: center; font-family: arial, sans-serif; }
7
+ div.dialog {
8
+ width: 25em;
9
+ padding: 0 4em;
10
+ margin: 4em auto 0 auto;
11
+ border: 1px solid #ccc;
12
+ border-right-color: #999;
13
+ border-bottom-color: #999;
14
+ }
15
+ h1 { font-size: 100%; color: #f00; line-height: 1.5em; }
16
+ </style>
17
+ </head>
18
+
19
+ <body>
20
+ <!-- This file lives in public/500.html -->
21
+ <div class="dialog">
22
+ <h1>We're sorry, but something went wrong.</h1>
23
+ </div>
24
+ </body>
25
+ </html>
File without changes
@@ -0,0 +1,6 @@
1
+ #!/usr/bin/env ruby
2
+ # This command will automatically be run when you run "rails" with Rails 3 gems installed from the root of your application.
3
+
4
+ APP_PATH = File.expand_path('../../config/application', __FILE__)
5
+ require File.expand_path('../../config/boot', __FILE__)
6
+ require 'rails/commands'
@@ -0,0 +1,24 @@
1
+ require 'spec_helper'
2
+
3
+ describe Thing do
4
+ describe "autmatically setting an id" do
5
+ before do
6
+ @thing = Thing.create!
7
+ end
8
+ it "should happen when an object is created" do
9
+ @thing.id.should_not be_nil
10
+ end
11
+ it "should have a UUID as the id" do
12
+ @thing.id.should match(/[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}/)
13
+ end
14
+ end
15
+ describe "manually setting an id" do
16
+ before do
17
+ @uuid = UUIDTools::UUID.timestamp_create.to_s
18
+ @thing = Thing.create! :id => @uuid
19
+ end
20
+ it "should work" do
21
+ @thing.id.should == @uuid
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,39 @@
1
+ # This file is copied to spec/ when you run 'rails generate rspec:install'
2
+ ENV["RAILS_ENV"] ||= 'test'
3
+ require File.expand_path("../dummy/config/environment", __FILE__)
4
+ require 'rspec/rails'
5
+ require 'rspec/autorun'
6
+
7
+ # Requires supporting ruby files with custom matchers and macros, etc,
8
+ # in spec/support/ and its subdirectories.
9
+ Dir[Rails.root.join("spec/support/**/*.rb")].each { |f| require f }
10
+
11
+ RSpec.configure do |config|
12
+ # ## Mock Framework
13
+ #
14
+ # If you prefer to use mocha, flexmock or RR, uncomment the appropriate line:
15
+ #
16
+ # config.mock_with :mocha
17
+ # config.mock_with :flexmock
18
+ # config.mock_with :rr
19
+
20
+ # Remove this line if you're not using ActiveRecord or ActiveRecord fixtures
21
+ config.fixture_path = "#{::Rails.root}/spec/fixtures"
22
+
23
+ # If you're not using ActiveRecord, or you'd prefer not to run each of your
24
+ # examples within a transaction, remove the following line or assign false
25
+ # instead of true.
26
+ config.use_transactional_fixtures = true
27
+
28
+ # If true, the base class of anonymous controllers will be inferred
29
+ # automatically. This will be the default behavior in future versions of
30
+ # rspec-rails.
31
+ config.infer_base_class_for_anonymous_controllers = false
32
+
33
+ # Run specs in random order to surface order dependencies. If you find an
34
+ # order dependency and want to debug it, you can fix the order by providing
35
+ # the seed, which is printed after each run.
36
+ # --seed 1234
37
+ config.order = "random"
38
+ end
39
+
metadata ADDED
@@ -0,0 +1,196 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: uuid_ids
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Jeremy Green
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-05-11 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rails
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ~>
20
+ - !ruby/object:Gem::Version
21
+ version: 3.2.13
22
+ type: :runtime
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ version: 3.2.13
30
+ - !ruby/object:Gem::Dependency
31
+ name: uuidtools
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ~>
36
+ - !ruby/object:Gem::Version
37
+ version: 2.1.4
38
+ type: :runtime
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 2.1.4
46
+ - !ruby/object:Gem::Dependency
47
+ name: sqlite3
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: '0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ - !ruby/object:Gem::Dependency
63
+ name: rspec-rails
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ description: A simple gem to auto generate UUIDs for the id field of models.
79
+ email:
80
+ - jeremy@octolabs.com
81
+ executables: []
82
+ extensions: []
83
+ extra_rdoc_files: []
84
+ files:
85
+ - lib/tasks/uuid_ids_tasks.rake
86
+ - lib/uuid_ids/model_helper.rb
87
+ - lib/uuid_ids/version.rb
88
+ - lib/uuid_ids.rb
89
+ - MIT-LICENSE
90
+ - Rakefile
91
+ - README.md
92
+ - spec/dummy/app/assets/javascripts/application.js
93
+ - spec/dummy/app/assets/stylesheets/application.css
94
+ - spec/dummy/app/controllers/application_controller.rb
95
+ - spec/dummy/app/helpers/application_helper.rb
96
+ - spec/dummy/app/models/thing.rb
97
+ - spec/dummy/app/views/layouts/application.html.erb
98
+ - spec/dummy/config/application.rb
99
+ - spec/dummy/config/boot.rb
100
+ - spec/dummy/config/database.yml
101
+ - spec/dummy/config/environment.rb
102
+ - spec/dummy/config/environments/development.rb
103
+ - spec/dummy/config/environments/production.rb
104
+ - spec/dummy/config/environments/test.rb
105
+ - spec/dummy/config/initializers/backtrace_silencers.rb
106
+ - spec/dummy/config/initializers/inflections.rb
107
+ - spec/dummy/config/initializers/mime_types.rb
108
+ - spec/dummy/config/initializers/secret_token.rb
109
+ - spec/dummy/config/initializers/session_store.rb
110
+ - spec/dummy/config/initializers/wrap_parameters.rb
111
+ - spec/dummy/config/locales/en.yml
112
+ - spec/dummy/config/routes.rb
113
+ - spec/dummy/config.ru
114
+ - spec/dummy/db/development.sqlite3
115
+ - spec/dummy/db/migrate/20130510232457_create_things.rb
116
+ - spec/dummy/db/schema.rb
117
+ - spec/dummy/db/test.sqlite3
118
+ - spec/dummy/log/development.log
119
+ - spec/dummy/log/test.log
120
+ - spec/dummy/public/404.html
121
+ - spec/dummy/public/422.html
122
+ - spec/dummy/public/500.html
123
+ - spec/dummy/public/favicon.ico
124
+ - spec/dummy/Rakefile
125
+ - spec/dummy/README.rdoc
126
+ - spec/dummy/script/rails
127
+ - spec/models/thing_spec.rb
128
+ - spec/spec_helper.rb
129
+ homepage: https://github.com/jagthedrummer/uuid_ids
130
+ licenses: []
131
+ post_install_message:
132
+ rdoc_options: []
133
+ require_paths:
134
+ - lib
135
+ required_ruby_version: !ruby/object:Gem::Requirement
136
+ none: false
137
+ requirements:
138
+ - - ! '>='
139
+ - !ruby/object:Gem::Version
140
+ version: '0'
141
+ segments:
142
+ - 0
143
+ hash: -3181629830934013621
144
+ required_rubygems_version: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ segments:
151
+ - 0
152
+ hash: -3181629830934013621
153
+ requirements: []
154
+ rubyforge_project:
155
+ rubygems_version: 1.8.25
156
+ signing_key:
157
+ specification_version: 3
158
+ summary: A simple gem to auto generate UUIDs for the id field of models.
159
+ test_files:
160
+ - spec/dummy/app/assets/javascripts/application.js
161
+ - spec/dummy/app/assets/stylesheets/application.css
162
+ - spec/dummy/app/controllers/application_controller.rb
163
+ - spec/dummy/app/helpers/application_helper.rb
164
+ - spec/dummy/app/models/thing.rb
165
+ - spec/dummy/app/views/layouts/application.html.erb
166
+ - spec/dummy/config/application.rb
167
+ - spec/dummy/config/boot.rb
168
+ - spec/dummy/config/database.yml
169
+ - spec/dummy/config/environment.rb
170
+ - spec/dummy/config/environments/development.rb
171
+ - spec/dummy/config/environments/production.rb
172
+ - spec/dummy/config/environments/test.rb
173
+ - spec/dummy/config/initializers/backtrace_silencers.rb
174
+ - spec/dummy/config/initializers/inflections.rb
175
+ - spec/dummy/config/initializers/mime_types.rb
176
+ - spec/dummy/config/initializers/secret_token.rb
177
+ - spec/dummy/config/initializers/session_store.rb
178
+ - spec/dummy/config/initializers/wrap_parameters.rb
179
+ - spec/dummy/config/locales/en.yml
180
+ - spec/dummy/config/routes.rb
181
+ - spec/dummy/config.ru
182
+ - spec/dummy/db/development.sqlite3
183
+ - spec/dummy/db/migrate/20130510232457_create_things.rb
184
+ - spec/dummy/db/schema.rb
185
+ - spec/dummy/db/test.sqlite3
186
+ - spec/dummy/log/development.log
187
+ - spec/dummy/log/test.log
188
+ - spec/dummy/public/404.html
189
+ - spec/dummy/public/422.html
190
+ - spec/dummy/public/500.html
191
+ - spec/dummy/public/favicon.ico
192
+ - spec/dummy/Rakefile
193
+ - spec/dummy/README.rdoc
194
+ - spec/dummy/script/rails
195
+ - spec/models/thing_spec.rb
196
+ - spec/spec_helper.rb