hash_ids 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d9c4f65db955160308f238b89f6edd87c0a2826
4
- data.tar.gz: c179c1348c4183c332e2c99ff2efba51c71dcaa7
3
+ metadata.gz: ac35c03faf1ac7f5711028c298bd6daaaf9726da
4
+ data.tar.gz: 9c7c37759f9972750904663352e7bc8825b360d1
5
5
  SHA512:
6
- metadata.gz: 957fba1cc86626c2e182a3d9f873788c9ead5a40dbaa2acf828a5b9ec7f6c31222292291afe57ce91466abd8da8bbb36312690efebdd67cd256a67575ba83541
7
- data.tar.gz: 33089380ee2bb36f98f2d7273fdce6501c59f5f530f8311afd6c5c4ca761422c8354d83bae6808d9122f1938dc571575e22a17079f2aa79b3460c5310752de35
6
+ metadata.gz: d7aefa159a1d1424830d096194bd4605f0d364290c73f89427025bb1ca27d2ea1ce59daa6cc148e09db0bccdd5efd07c50b1bba2ab8a30dd24e92a36b41e9f39
7
+ data.tar.gz: 996fca5f3e099aba240d82bb5a97aab2ca2aac2bb91a0f23e736153eebb9019662b60bd6ecb67d500cc1c4a7416881520b3162f92294689b3a0a9f40a6fad2b4
data/lib/hash_ids.rb CHANGED
@@ -28,4 +28,6 @@ module HashIds
28
28
 
29
29
  end
30
30
 
31
- ActiveRecord::Base.extend HashIds
31
+ if defined?(ActiveRecord::Base)
32
+ ActiveRecord::Base.extend HashIds
33
+ end
@@ -4,8 +4,13 @@ module HashIds
4
4
  attr_accessor :salt, :min_hash_length, :alphabet
5
5
 
6
6
  def initialize
7
+ # the encrypted id length
7
8
  @min_hash_length = 16
9
+
10
+ # the encrypting pool
8
11
  @alphabet = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ1234567890'
12
+
13
+ # secret
9
14
  @salt = @alphabet
10
15
  end
11
16
  end
@@ -9,6 +9,7 @@ module HashIds
9
9
 
10
10
  module ClassMethods
11
11
 
12
+ # check args super able
12
13
  def super_able? args
13
14
  primary_key.nil? ||
14
15
  default_scopes.any? ||
@@ -18,8 +19,10 @@ module HashIds
18
19
  end
19
20
 
20
21
  def find(*args)
22
+ # invoke super condition
21
23
  return super if block_given? || super_able?(args)
22
24
 
25
+ # decode hash id to true id
23
26
  if args.kind_of?(Array)
24
27
  args = args.first.kind_of?(Array) ? args.first : args
25
28
  args.map! do |id|
@@ -35,6 +38,7 @@ module HashIds
35
38
  HashIds::hasher.encode ids
36
39
  end
37
40
 
41
+ # return an string array
38
42
  def hash_ids_decode ids
39
43
  HashIds::hasher.decode ids
40
44
  end
@@ -1,3 +1,3 @@
1
1
  module HashIds
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
Binary file
@@ -123,3 +123,253 @@
123
123
   (0.1ms) rollback transaction
124
124
   (0.1ms) begin transaction
125
125
   (0.1ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+ SQL (16.7ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "jxam"], ["age", 45], ["created_at", "2015-02-05 08:00:31.057498"], ["updated_at", "2015-02-05 08:00:31.057498"]]
128
+  (159.9ms) commit transaction
129
+  (0.1ms) begin transaction
130
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "jxam"], ["age", 47], ["created_at", "2015-02-05 08:00:31.307827"], ["updated_at", "2015-02-05 08:00:31.307827"]]
131
+  (139.2ms) commit transaction
132
+  (0.1ms) begin transaction
133
+  (0.2ms) rollback transaction
134
+  (0.1ms) begin transaction
135
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 17]]
136
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 17]]
137
+  (0.1ms) rollback transaction
138
+  (0.1ms) begin transaction
139
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16, 17)
140
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16, 17)
141
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16, 17)
142
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (16, 17)
143
+  (0.1ms) rollback transaction
144
+  (0.1ms) begin transaction
145
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "fgmy"], ["age", 48], ["created_at", "2015-02-05 08:00:31.612404"], ["updated_at", "2015-02-05 08:00:31.612404"]]
146
+  (152.9ms) commit transaction
147
+  (0.1ms) begin transaction
148
+  (0.1ms) rollback transaction
149
+  (0.1ms) begin transaction
150
+  (0.1ms) rollback transaction
151
+  (0.1ms) begin transaction
152
+ SQL (0.5ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "wzgn"], ["age", 52], ["created_at", "2015-02-05 08:01:44.502575"], ["updated_at", "2015-02-05 08:01:44.502575"]]
153
+  (141.1ms) commit transaction
154
+  (0.1ms) begin transaction
155
+ SQL (0.4ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "wzgn"], ["age", 32], ["created_at", "2015-02-05 08:01:44.652044"], ["updated_at", "2015-02-05 08:01:44.652044"]]
156
+  (130.1ms) commit transaction
157
+  (0.1ms) begin transaction
158
+  (0.2ms) rollback transaction
159
+  (0.1ms) begin transaction
160
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 20]]
161
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 20]]
162
+  (0.1ms) rollback transaction
163
+  (0.1ms) begin transaction
164
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19, 20)
165
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19, 20)
166
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19, 20)
167
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (19, 20)
168
+  (0.1ms) rollback transaction
169
+  (0.1ms) begin transaction
170
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "tbdq"], ["age", 60], ["created_at", "2015-02-05 08:01:44.883480"], ["updated_at", "2015-02-05 08:01:44.883480"]]
171
+  (141.4ms) commit transaction
172
+  (0.1ms) begin transaction
173
+  (0.1ms) rollback transaction
174
+  (0.1ms) begin transaction
175
+  (0.1ms) rollback transaction
176
+  (0.1ms) begin transaction
177
+ SQL (0.5ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "nsiy"], ["age", 26], ["created_at", "2015-02-05 08:02:53.645435"], ["updated_at", "2015-02-05 08:02:53.645435"]]
178
+  (137.2ms) commit transaction
179
+  (0.1ms) begin transaction
180
+  (0.1ms) rollback transaction
181
+  (0.1ms) begin transaction
182
+  (0.1ms) rollback transaction
183
+  (0.1ms) begin transaction
184
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "nfio"], ["age", 76], ["created_at", "2015-02-05 08:02:53.798166"], ["updated_at", "2015-02-05 08:02:53.798166"]]
185
+  (156.4ms) commit transaction
186
+  (0.1ms) begin transaction
187
+ SQL (0.5ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "nfio"], ["age", 67], ["created_at", "2015-02-05 08:02:53.957544"], ["updated_at", "2015-02-05 08:02:53.957544"]]
188
+  (148.6ms) commit transaction
189
+  (0.1ms) begin transaction
190
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 24]]
191
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 24]]
192
+  (0.1ms) rollback transaction
193
+  (0.1ms) begin transaction
194
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23, 24)
195
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23, 24)
196
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23, 24)
197
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (23, 24)
198
+  (0.1ms) rollback transaction
199
+  (0.1ms) begin transaction
200
+  (0.1ms) rollback transaction
201
+  (0.1ms) begin transaction
202
+ SQL (13.1ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "brkf"], ["age", 41], ["created_at", "2015-02-05 08:20:00.467248"], ["updated_at", "2015-02-05 08:20:00.467248"]]
203
+  (427.4ms) commit transaction
204
+  (0.1ms) begin transaction
205
+  (0.1ms) rollback transaction
206
+  (0.1ms) begin transaction
207
+  (0.1ms) rollback transaction
208
+  (0.1ms) begin transaction
209
+ SQL (0.2ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "blcw"], ["age", 84], ["created_at", "2015-02-05 08:20:00.945224"], ["updated_at", "2015-02-05 08:20:00.945224"]]
210
+  (135.7ms) commit transaction
211
+  (0.1ms) begin transaction
212
+ SQL (0.2ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "blcw"], ["age", 99], ["created_at", "2015-02-05 08:20:01.083216"], ["updated_at", "2015-02-05 08:20:01.083216"]]
213
+  (123.2ms) commit transaction
214
+  (0.1ms) begin transaction
215
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26, 27)
216
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26, 27)
217
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26, 27)
218
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (26, 27)
219
+  (0.1ms) rollback transaction
220
+  (0.1ms) begin transaction
221
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 27]]
222
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 27]]
223
+  (0.1ms) rollback transaction
224
+  (0.1ms) begin transaction
225
+  (0.1ms) rollback transaction
226
+  (0.1ms) begin transaction
227
+ SQL (0.4ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "qmwh"], ["age", 10], ["created_at", "2015-02-05 08:29:58.348986"], ["updated_at", "2015-02-05 08:29:58.348986"]]
228
+  (143.9ms) commit transaction
229
+  (0.1ms) begin transaction
230
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "qmwh"], ["age", 83], ["created_at", "2015-02-05 08:29:58.497654"], ["updated_at", "2015-02-05 08:29:58.497654"]]
231
+  (105.9ms) commit transaction
232
+  (0.1ms) begin transaction
233
+  (0.1ms) rollback transaction
234
+  (0.1ms) begin transaction
235
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28, 29)
236
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28, 29)
237
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28, 29)
238
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (28, 29)
239
+  (0.1ms) rollback transaction
240
+  (0.1ms) begin transaction
241
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 29]]
242
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 29]]
243
+  (0.1ms) rollback transaction
244
+  (0.1ms) begin transaction
245
+ SQL (0.4ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "heav"], ["age", 29], ["created_at", "2015-02-05 08:29:58.635755"], ["updated_at", "2015-02-05 08:29:58.635755"]]
246
+  (143.3ms) commit transaction
247
+  (0.1ms) begin transaction
248
+  (0.1ms) rollback transaction
249
+  (0.1ms) begin transaction
250
+  (0.1ms) rollback transaction
251
+  (0.1ms) begin transaction
252
+ SQL (0.4ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "avzi"], ["age", 94], ["created_at", "2015-02-05 08:54:44.941370"], ["updated_at", "2015-02-05 08:54:44.941370"]]
253
+  (158.8ms) commit transaction
254
+  (0.1ms) begin transaction
255
+  (0.1ms) rollback transaction
256
+  (0.1ms) begin transaction
257
+  (0.1ms) rollback transaction
258
+  (0.1ms) begin transaction
259
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "qktd"], ["age", 23], ["created_at", "2015-02-05 08:54:45.112569"], ["updated_at", "2015-02-05 08:54:45.112569"]]
260
+  (150.5ms) commit transaction
261
+  (0.1ms) begin transaction
262
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "qktd"], ["age", 63], ["created_at", "2015-02-05 08:54:45.265925"], ["updated_at", "2015-02-05 08:54:45.265925"]]
263
+  (283.0ms) commit transaction
264
+  (0.1ms) begin transaction
265
+  (0.1ms) rollback transaction
266
+  (0.1ms) begin transaction
267
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 33]]
268
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 33]]
269
+  (0.1ms) rollback transaction
270
+  (0.1ms) begin transaction
271
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32, 33)
272
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32, 33)
273
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32, 33)
274
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (32, 33)
275
+  (0.1ms) rollback transaction
276
+  (0.1ms) begin transaction
277
+ SQL (0.4ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "cfgh"], ["age", 21], ["created_at", "2015-02-05 08:59:05.509334"], ["updated_at", "2015-02-05 08:59:05.509334"]]
278
+  (128.0ms) commit transaction
279
+  (0.1ms) begin transaction
280
+  (0.1ms) rollback transaction
281
+  (0.2ms) begin transaction
282
+  (0.2ms) rollback transaction
283
+  (0.2ms) begin transaction
284
+ SQL (0.5ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "hnyi"], ["age", 16], ["created_at", "2015-02-05 08:59:05.650493"], ["updated_at", "2015-02-05 08:59:05.650493"]]
285
+  (122.5ms) commit transaction
286
+  (0.1ms) begin transaction
287
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "hnyi"], ["age", 14], ["created_at", "2015-02-05 08:59:05.776880"], ["updated_at", "2015-02-05 08:59:05.776880"]]
288
+  (106.2ms) commit transaction
289
+  (0.1ms) begin transaction
290
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35, 36)
291
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35, 36)
292
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35, 36)
293
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (35, 36)
294
+  (0.1ms) rollback transaction
295
+  (0.1ms) begin transaction
296
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 36]]
297
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 36]]
298
+  (0.1ms) rollback transaction
299
+  (0.1ms) begin transaction
300
+  (0.1ms) rollback transaction
301
+  (0.1ms) begin transaction
302
+ SQL (0.5ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "qxze"], ["age", 90], ["created_at", "2015-02-05 10:33:49.274149"], ["updated_at", "2015-02-05 10:33:49.274149"]]
303
+  (138.0ms) commit transaction
304
+  (0.1ms) begin transaction
305
+  (0.1ms) rollback transaction
306
+  (0.1ms) begin transaction
307
+  (0.1ms) rollback transaction
308
+  (0.1ms) begin transaction
309
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "jrei"], ["age", 94], ["created_at", "2015-02-05 10:33:49.422023"], ["updated_at", "2015-02-05 10:33:49.422023"]]
310
+  (126.1ms) commit transaction
311
+  (0.1ms) begin transaction
312
+ SQL (0.4ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "jrei"], ["age", 91], ["created_at", "2015-02-05 10:33:49.551080"], ["updated_at", "2015-02-05 10:33:49.551080"]]
313
+  (122.8ms) commit transaction
314
+  (0.1ms) begin transaction
315
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 39]]
316
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 39]]
317
+  (0.1ms) rollback transaction
318
+  (0.1ms) begin transaction
319
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38, 39)
320
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38, 39)
321
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38, 39)
322
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (38, 39)
323
+  (0.1ms) rollback transaction
324
+  (0.1ms) begin transaction
325
+  (0.1ms) rollback transaction
326
+  (0.1ms) begin transaction
327
+ SQL (0.5ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "pinw"], ["age", 69], ["created_at", "2015-02-06 06:14:32.549499"], ["updated_at", "2015-02-06 06:14:32.549499"]]
328
+  (123.5ms) commit transaction
329
+  (0.1ms) begin transaction
330
+  (0.1ms) rollback transaction
331
+  (0.1ms) begin transaction
332
+  (0.1ms) rollback transaction
333
+  (0.1ms) begin transaction
334
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "lkfv"], ["age", 21], ["created_at", "2015-02-06 06:14:32.698136"], ["updated_at", "2015-02-06 06:14:32.698136"]]
335
+  (140.5ms) commit transaction
336
+  (0.1ms) begin transaction
337
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "lkfv"], ["age", 77], ["created_at", "2015-02-06 06:14:32.841460"], ["updated_at", "2015-02-06 06:14:32.841460"]]
338
+  (139.5ms) commit transaction
339
+  (0.1ms) begin transaction
340
+ User Load (0.2ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 42]]
341
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 42]]
342
+  (0.1ms) rollback transaction
343
+  (0.1ms) begin transaction
344
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41, 42)
345
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41, 42)
346
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41, 42)
347
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (41, 42)
348
+  (0.1ms) rollback transaction
349
+  (0.1ms) begin transaction
350
+  (0.1ms) rollback transaction
351
+  (0.1ms) begin transaction
352
+ SQL (0.4ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "nica"], ["age", 55], ["created_at", "2015-02-06 06:20:36.123260"], ["updated_at", "2015-02-06 06:20:36.123260"]]
353
+  (134.6ms) commit transaction
354
+  (0.1ms) begin transaction
355
+ SQL (0.3ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "nica"], ["age", 54], ["created_at", "2015-02-06 06:20:36.262928"], ["updated_at", "2015-02-06 06:20:36.262928"]]
356
+  (121.9ms) commit transaction
357
+  (0.1ms) begin transaction
358
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43, 44)
359
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43, 44)
360
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43, 44)
361
+ User Load (0.3ms) SELECT "users".* FROM "users" WHERE "users"."id" IN (43, 44)
362
+  (0.1ms) rollback transaction
363
+  (0.1ms) begin transaction
364
+ User Load (0.4ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 44]]
365
+ User Load (0.1ms) SELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT 1 [["id", 44]]
366
+  (0.1ms) rollback transaction
367
+  (0.1ms) begin transaction
368
+  (0.1ms) rollback transaction
369
+  (0.1ms) begin transaction
370
+ SQL (0.2ms) INSERT INTO "users" ("name", "age", "created_at", "updated_at") VALUES (?, ?, ?, ?) [["name", "xofz"], ["age", 70], ["created_at", "2015-02-06 06:20:36.417416"], ["updated_at", "2015-02-06 06:20:36.417416"]]
371
+  (143.7ms) commit transaction
372
+  (0.1ms) begin transaction
373
+  (0.1ms) rollback transaction
374
+  (0.1ms) begin transaction
375
+  (0.1ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hash_ids
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - kemingcao
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-02-04 00:00:00.000000000 Z
11
+ date: 2015-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -136,7 +136,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
136
136
  requirements:
137
137
  - - ">="
138
138
  - !ruby/object:Gem::Version
139
- version: '0'
139
+ version: 1.9.3
140
140
  required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  requirements:
142
142
  - - ">="