okei 1.0.1 → 1.0.2

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: a418052c1bc3ff9739db9889d24e4f751aadb187
4
- data.tar.gz: 45ed7957c003b003290d85653edc7ffafeae7d92
3
+ metadata.gz: c6d25b61567dafcd154149243dc419cc854d5c04
4
+ data.tar.gz: ccc13a18618b5878bc28fedd71e8fdaaa9ccef1a
5
5
  SHA512:
6
- metadata.gz: c98c4892af2d33053ecdb9ca737f689c6b91abd85d6f291611dc695ded177eb9121a9ec99ad9be165702347ae70817fcb6ee9ffb9ff85c95e79a3fda6c505b94
7
- data.tar.gz: a917875943e595efb60a21ab805102f7d6e3984cf33bfa63d3e5c29ac8d4755d9b12a62ffbb7f142287c1412f68e8a3d8a1fa42001ee37babe9eab87808581b8
6
+ metadata.gz: d41edf219d0587fd4385bc1f7b0c2a3c1e479d70472b71377f1d0d30ab00fd781c2c4cdc303d27bb33e8e09fea4841451595de1a9526f1402ad0f7cb28c32ea5
7
+ data.tar.gz: b81e88bd7705706fc0d7c556cbfdfe293c0eccddc746c3e91ab0dde52fbfb181250d56f91a620e658d323f08e306c29ad69b69ef13b590e5d735966f44886099
@@ -25,9 +25,8 @@ module Okei
25
25
  # unit = Unit.new(
26
26
  # name: "Километры в час", code: "КМ/Ч", num: "007", int_code: "KMH",
27
27
  # base: "М/С", factor: 0.28, measure: "СКОРОСТЬ"
28
+ # uuid: "9ac7e74a-d51a-424c-8fcd-71b0b55f6658"
28
29
  # )
29
- # # this can be skipped:
30
- # unit.uuids.new value: "9ac7e74a-d51a-424c-8fcd-71b0b55f6658"
31
30
  #
32
31
  class Unit < ActiveRecord::Base
33
32
  include Uuids::Base
@@ -49,12 +49,7 @@ class PopulateOkeiUnits < ActiveRecord::Migration
49
49
  # Populates units and their uuids from given JSON
50
50
  def populate_units_from(json)
51
51
  say_with_time "Adding #{ json.count } units" do
52
- json.each do |item|
53
- unit = Okei::Unit.new
54
- unit.uuids.new value: item.delete("uuid")
55
- unit.attributes = item
56
- unit.save!
57
- end
52
+ json.each { |item| Okei::Unit.create! item }
58
53
  end
59
54
  end
60
55
  end
@@ -2,5 +2,5 @@
2
2
  module Okei
3
3
 
4
4
  # Current release.
5
- VERSION = "1.0.1"
5
+ VERSION = "1.0.2"
6
6
  end
Binary file
@@ -2239,3 +2239,993 @@ Processing by Okei::Api::V1::UnitsController#index as HTML
2239
2239
  Unpermitted parameters: code
2240
2240
  Completed 200 OK in 1ms (Views: 0.3ms | ActiveRecord: 0.0ms)
2241
2241
   (0.0ms) rollback transaction
2242
+  (2.7ms) CREATE TABLE "schema_migrations" ("version" varchar(255) NOT NULL) 
2243
+  (0.1ms) select sqlite_version(*)
2244
+  (2.5ms) CREATE UNIQUE INDEX "unique_schema_migrations" ON "schema_migrations" ("version")
2245
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2246
+ Migrating to CreateCorrectorBases (20141018085223)
2247
+  (0.0ms) begin transaction
2248
+  (0.3ms) CREATE TABLE "corrector_bases" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "type" varchar(6), "from" varchar(255) NOT NULL, "to" varchar(255) NOT NULL, "scope" varchar(255))
2249
+  (0.2ms) CREATE UNIQUE INDEX "index_corrector_bases_on_scope_and_from" ON "corrector_bases" ("scope", "from")
2250
+  (0.1ms) SELECT sql
2251
+ FROM sqlite_master
2252
+ WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
2253
+ UNION ALL
2254
+ SELECT sql
2255
+ FROM sqlite_temp_master
2256
+ WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
2257
+
2258
+  (0.1ms) CREATE INDEX "index_corrector_bases_on_type" ON "corrector_bases" ("type")
2259
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141018085223"]]
2260
+  (2.8ms) commit transaction
2261
+ Migrating to CreateUuidsUuids (20141018085226)
2262
+  (0.0ms) begin transaction
2263
+  (0.3ms) CREATE TABLE "uuids_uuids" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "value" varchar(36) NOT NULL, "record_id" integer NOT NULL, "record_type" varchar(255) NOT NULL) 
2264
+  (0.1ms) CREATE INDEX "index_uuids_uuids_on_record_id_and_record_type" ON "uuids_uuids" ("record_id", "record_type")
2265
+  (0.1ms)  SELECT sql
2266
+ FROM sqlite_master
2267
+ WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
2268
+ UNION ALL
2269
+ SELECT sql
2270
+ FROM sqlite_temp_master
2271
+ WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
2272
+ 
2273
+  (0.2ms) CREATE UNIQUE INDEX "index_uuids_uuids_on_value" ON "uuids_uuids" ("value")
2274
+ SQL (0.1ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141018085226"]]
2275
+  (2.3ms) commit transaction
2276
+ Migrating to CreateOkeiUnits (20141019072900)
2277
+  (0.0ms) begin transaction
2278
+  (0.4ms) CREATE TABLE "okei_units" ("id" INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, "name" varchar(255) NOT NULL, "code" varchar(255) NOT NULL, "num" varchar(3), "int_code" varchar(4), "base" varchar(255) NOT NULL, "measure" varchar(255) NOT NULL, "factor" float NOT NULL)
2279
+  (0.2ms) CREATE UNIQUE INDEX "index_okei_units_on_code" ON "okei_units" ("code")
2280
+  (0.1ms) SELECT sql
2281
+ FROM sqlite_master
2282
+ WHERE name='index_okei_units_on_code' AND type='index'
2283
+ UNION ALL
2284
+ SELECT sql
2285
+ FROM sqlite_temp_master
2286
+ WHERE name='index_okei_units_on_code' AND type='index'
2287
+
2288
+  (0.1ms) CREATE INDEX "index_okei_units_on_base" ON "okei_units" ("base")
2289
+  (0.1ms) SELECT sql
2290
+ FROM sqlite_master
2291
+ WHERE name='index_okei_units_on_base' AND type='index'
2292
+ UNION ALL
2293
+ SELECT sql
2294
+ FROM sqlite_temp_master
2295
+ WHERE name='index_okei_units_on_base' AND type='index'
2296
+
2297
+  (0.1ms)  SELECT sql
2298
+ FROM sqlite_master
2299
+ WHERE name='index_okei_units_on_code' AND type='index'
2300
+ UNION ALL
2301
+ SELECT sql
2302
+ FROM sqlite_temp_master
2303
+ WHERE name='index_okei_units_on_code' AND type='index'
2304
+ 
2305
+  (0.1ms) CREATE INDEX "index_okei_units_on_measure" ON "okei_units" ("measure")
2306
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141019072900"]]
2307
+  (2.2ms) commit transaction
2308
+ Migrating to PopulateOkeiUnits (20141019072901)
2309
+  (0.0ms) begin transaction
2310
+ SQL (0.2ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141019072901"]]
2311
+  (1.7ms) commit transaction
2312
+ Migrating to PopulateOkeiCorrectors (20141019072902)
2313
+  (0.1ms) begin transaction
2314
+ SQL (0.3ms) INSERT INTO "schema_migrations" ("version") VALUES (?) [["version", "20141019072902"]]
2315
+  (2.2ms) commit transaction
2316
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2317
+  (0.1ms) SELECT sql
2318
+ FROM sqlite_master
2319
+ WHERE name='index_corrector_bases_on_type' AND type='index'
2320
+ UNION ALL
2321
+ SELECT sql
2322
+ FROM sqlite_temp_master
2323
+ WHERE name='index_corrector_bases_on_type' AND type='index'
2324
+
2325
+  (0.1ms)  SELECT sql
2326
+ FROM sqlite_master
2327
+ WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
2328
+ UNION ALL
2329
+ SELECT sql
2330
+ FROM sqlite_temp_master
2331
+ WHERE name='index_corrector_bases_on_scope_and_from' AND type='index'
2332
+ 
2333
+  (0.1ms) SELECT sql
2334
+ FROM sqlite_master
2335
+ WHERE name='index_okei_units_on_measure' AND type='index'
2336
+ UNION ALL
2337
+ SELECT sql
2338
+ FROM sqlite_temp_master
2339
+ WHERE name='index_okei_units_on_measure' AND type='index'
2340
+
2341
+  (0.1ms)  SELECT sql
2342
+ FROM sqlite_master
2343
+ WHERE name='index_okei_units_on_base' AND type='index'
2344
+ UNION ALL
2345
+ SELECT sql
2346
+ FROM sqlite_temp_master
2347
+ WHERE name='index_okei_units_on_base' AND type='index'
2348
+ 
2349
+  (0.1ms) SELECT sql
2350
+ FROM sqlite_master
2351
+ WHERE name='index_okei_units_on_code' AND type='index'
2352
+ UNION ALL
2353
+ SELECT sql
2354
+ FROM sqlite_temp_master
2355
+ WHERE name='index_okei_units_on_code' AND type='index'
2356
+
2357
+  (0.1ms)  SELECT sql
2358
+ FROM sqlite_master
2359
+ WHERE name='index_uuids_uuids_on_value' AND type='index'
2360
+ UNION ALL
2361
+ SELECT sql
2362
+ FROM sqlite_temp_master
2363
+ WHERE name='index_uuids_uuids_on_value' AND type='index'
2364
+ 
2365
+  (0.1ms) SELECT sql
2366
+ FROM sqlite_master
2367
+ WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
2368
+ UNION ALL
2369
+ SELECT sql
2370
+ FROM sqlite_temp_master
2371
+ WHERE name='index_uuids_uuids_on_record_id_and_record_type' AND type='index'
2372
+
2373
+ ActiveRecord::SchemaMigration Load (0.1ms) SELECT "schema_migrations".* FROM "schema_migrations"
2374
+  (5.6ms) DELETE FROM "corrector_bases";
2375
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2376
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'corrector_bases';
2377
+  (3.0ms) DELETE FROM "uuids_uuids";
2378
+  (0.3ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2379
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'uuids_uuids';
2380
+  (2.5ms) DELETE FROM "okei_units";
2381
+  (0.1ms) SELECT name FROM sqlite_master WHERE type='table' AND name='sqlite_sequence';
2382
+  (0.1ms) DELETE FROM sqlite_sequence where name = 'okei_units';
2383
+  (0.1ms) begin transaction
2384
+  (0.0ms) commit transaction
2385
+  (0.0ms) begin transaction
2386
+  (0.0ms) SAVEPOINT active_record_1
2387
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 1' LIMIT 1
2388
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 1' LIMIT 1
2389
+ SQL (0.5ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 1"], ["factor", 179.64], ["int_code", "BBB"], ["measure", "Длина"], ["name", "Единица 1"], ["num", "002"]]
2390
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2391
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "dbb334f0-db12-4846-9ddb-7fdb969d72a5"]]
2392
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2393
+ Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
2394
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (6.4ms)
2395
+ Cache digest for /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder: 127be0d5a5f519d0d2795ca7929831b4
2396
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (3.4ms)
2397
+  (0.2ms) rollback transaction
2398
+  (0.1ms) begin transaction
2399
+  (0.0ms) commit transaction
2400
+  (0.0ms) begin transaction
2401
+  (0.0ms) SAVEPOINT active_record_1
2402
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2403
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 2' LIMIT 1
2404
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 113.3], ["int_code", "CCC"], ["measure", "Длина"], ["name", "Единица 2"], ["num", "003"]]
2405
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2406
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "cc63ae7f-16f1-4709-bf29-10da570a692e"]]
2407
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2408
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' ORDER BY "okei_units"."id" ASC LIMIT 1
2409
+  (0.2ms) rollback transaction
2410
+  (0.0ms) begin transaction
2411
+  (0.0ms) commit transaction
2412
+  (0.0ms) begin transaction
2413
+  (0.0ms) SAVEPOINT active_record_1
2414
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2415
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 3' LIMIT 1
2416
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 460.85], ["int_code", "DDD"], ["measure", "Длина"], ["name", "Единица 3"], ["num", "004"]]
2417
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2418
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "76da8b00-538b-4bd4-8fc0-15fb3eb2a514"]]
2419
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2420
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' ORDER BY "okei_units"."id" ASC LIMIT 1
2421
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' ORDER BY "okei_units"."id" ASC LIMIT 1
2422
+  (0.2ms) rollback transaction
2423
+  (0.0ms) begin transaction
2424
+  (0.0ms) commit transaction
2425
+  (0.0ms) begin transaction
2426
+  (0.0ms) SAVEPOINT active_record_1
2427
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2428
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 4' LIMIT 1
2429
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 701.01], ["int_code", "EEE"], ["measure", "Длина"], ["name", "Единица 4"], ["num", "005"]]
2430
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2431
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1bad496d-26ee-4855-876a-6c2389a9ac65"]]
2432
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2433
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' ORDER BY "okei_units"."id" ASC LIMIT 1
2434
+  (0.2ms) rollback transaction
2435
+  (0.0ms) begin transaction
2436
+  (0.1ms) commit transaction
2437
+  (0.0ms) begin transaction
2438
+  (0.0ms) SAVEPOINT active_record_1
2439
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2440
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 5' LIMIT 1
2441
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 235.15], ["int_code", "FFF"], ["measure", "Длина"], ["name", "Единица 5"], ["num", "006"]]
2442
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2443
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "498677b0-c89b-42b8-ab32-6ac6a2e72f76"]]
2444
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2445
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'тысяч км в сек' ORDER BY "okei_units"."id" ASC LIMIT 1
2446
+  (0.2ms) rollback transaction
2447
+  (0.0ms) begin transaction
2448
+  (0.0ms) commit transaction
2449
+  (0.1ms) begin transaction
2450
+  (0.0ms) SAVEPOINT active_record_1
2451
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2452
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 6' LIMIT 1
2453
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 159.3], ["int_code", "GGG"], ["measure", "Длина"], ["name", "Единица 6"], ["num", "007"]]
2454
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2455
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b079a386-12ab-4f08-a975-afec99ca10c6"]]
2456
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2457
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'тысяч км в сек' ORDER BY "okei_units"."id" ASC LIMIT 1
2458
+  (0.2ms) rollback transaction
2459
+  (0.0ms) begin transaction
2460
+  (0.0ms) commit transaction
2461
+  (0.0ms) begin transaction
2462
+  (0.0ms) SAVEPOINT active_record_1
2463
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 2' LIMIT 1
2464
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 7' LIMIT 1
2465
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 2"], ["factor", 389.51], ["int_code", "HHH"], ["measure", "Длина"], ["name", "Единица 7"], ["num", "008"]]
2466
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2467
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "f48b99d8-8563-4187-a825-b911ff7e6268"]]
2468
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2469
+ Okei::Unit Load (0.2ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'f48b99d8-8563-4187-a825-b911ff7e6268' ORDER BY "okei_units"."id" ASC LIMIT 1
2470
+  (0.2ms) rollback transaction
2471
+  (0.0ms) begin transaction
2472
+  (0.0ms) commit transaction
2473
+  (0.0ms) begin transaction
2474
+  (0.0ms) SAVEPOINT active_record_1
2475
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 3' LIMIT 1
2476
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 8' LIMIT 1
2477
+ SQL (0.5ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 3"], ["factor", 152.81], ["int_code", "III"], ["measure", "Длина"], ["name", "Единица 8"], ["num", "009"]]
2478
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2479
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b2cd3064-2566-4749-ac25-499bc0adafb5"]]
2480
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2481
+ Okei::Unit Load (0.2ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'b2cd3064-2566-4749-ac25-499bc0adafb5' ORDER BY "okei_units"."id" ASC LIMIT 1
2482
+  (0.2ms) rollback transaction
2483
+  (0.1ms) begin transaction
2484
+  (0.1ms) commit transaction
2485
+  (0.0ms) begin transaction
2486
+  (0.0ms) SAVEPOINT active_record_1
2487
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 4' LIMIT 1
2488
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 9' LIMIT 1
2489
+ SQL (0.6ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 4"], ["factor", 710.98], ["int_code", "JJJ"], ["measure", "Длина"], ["name", "Единица 9"], ["num", "010"]]
2490
+ Okei::Unit Load (0.2ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2491
+ SQL (0.3ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a9a84c8b-bf7a-4ef2-b593-fa5e979d608d"]]
2492
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2493
+ Okei::Unit Load (0.3ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong' ORDER BY "okei_units"."id" ASC LIMIT 1
2494
+  (0.2ms) rollback transaction
2495
+  (0.0ms) begin transaction
2496
+  (0.0ms) commit transaction
2497
+  (0.0ms) begin transaction
2498
+  (0.0ms) SAVEPOINT active_record_1
2499
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 5' LIMIT 1
2500
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 10' LIMIT 1
2501
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 5"], ["factor", 630.91], ["int_code", "KKK"], ["measure", "Длина"], ["name", "Единица 10"], ["num", "011"]]
2502
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2503
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "7b46361b-346e-4a6c-ab98-35de0d7acc3c"]]
2504
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2505
+ Okei::Unit Load (0.1ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'wrong' ORDER BY "okei_units"."id" ASC LIMIT 1
2506
+  (0.2ms) rollback transaction
2507
+  (0.0ms) begin transaction
2508
+  (0.0ms) commit transaction
2509
+  (0.0ms) begin transaction
2510
+  (0.0ms) SAVEPOINT active_record_1
2511
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 6' LIMIT 1
2512
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 11' LIMIT 1
2513
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 6"], ["factor", 475.57], ["int_code", "LLL"], ["measure", "Длина"], ["name", "Единица 11"], ["num", "012"]]
2514
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2515
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa"]]
2516
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2517
+ Started GET "/okei/api/v1/units/a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2518
+ Processing by Okei::Api::V1::UnitsController#show as JSON
2519
+ Parameters: {"uuid"=>"a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa"}
2520
+ Unpermitted parameters: format
2521
+ Okei::Unit Load (0.2ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'a348e18d-3b6b-4eb6-ab8c-4f160e87b6aa' ORDER BY "okei_units"."id" ASC LIMIT 1
2522
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
2523
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (1.2ms)
2524
+ Completed 200 OK in 7ms (Views: 5.9ms | ActiveRecord: 0.3ms)
2525
+  (0.2ms) rollback transaction
2526
+  (0.0ms) begin transaction
2527
+  (0.0ms) commit transaction
2528
+  (0.0ms) begin transaction
2529
+  (0.0ms) SAVEPOINT active_record_1
2530
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 7' LIMIT 1
2531
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 12' LIMIT 1
2532
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 7"], ["factor", 409.91], ["int_code", "MMM"], ["measure", "Длина"], ["name", "Единица 12"], ["num", "013"]]
2533
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2534
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b126221f-6b88-4d23-b1f5-79609a980a29"]]
2535
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2536
+ Started GET "/okei/api/v1/units/b126221f-6b88-4d23-b1f5-79609a980a29" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2537
+ Processing by Okei::Api::V1::UnitsController#show as JSON
2538
+ Parameters: {"uuid"=>"b126221f-6b88-4d23-b1f5-79609a980a29"}
2539
+ Unpermitted parameters: format
2540
+ Okei::Unit Load (0.2ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = 'b126221f-6b88-4d23-b1f5-79609a980a29' ORDER BY "okei_units"."id" ASC LIMIT 1
2541
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
2542
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
2543
+ Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
2544
+  (0.2ms) rollback transaction
2545
+  (0.0ms) begin transaction
2546
+  (0.0ms) commit transaction
2547
+  (0.0ms) begin transaction
2548
+  (0.0ms) SAVEPOINT active_record_1
2549
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 8' LIMIT 1
2550
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 13' LIMIT 1
2551
+ SQL (0.5ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 8"], ["factor", 198.66], ["int_code", "NNN"], ["measure", "Длина"], ["name", "Единица 13"], ["num", "014"]]
2552
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2553
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "811acc8b-83b3-4f85-936a-9d950ad951de"]]
2554
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2555
+ Started GET "/okei/api/v1/units/811acc8b-83b3-4f85-936a-9d950ad951de" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2556
+ Processing by Okei::Api::V1::UnitsController#show as JSON
2557
+ Parameters: {"uuid"=>"811acc8b-83b3-4f85-936a-9d950ad951de"}
2558
+ Unpermitted parameters: format
2559
+ Okei::Unit Load (0.2ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '811acc8b-83b3-4f85-936a-9d950ad951de' ORDER BY "okei_units"."id" ASC LIMIT 1
2560
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
2561
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
2562
+ Completed 200 OK in 5ms (Views: 3.3ms | ActiveRecord: 0.2ms)
2563
+  (0.2ms) rollback transaction
2564
+  (0.0ms) begin transaction
2565
+  (0.0ms) commit transaction
2566
+  (0.0ms) begin transaction
2567
+  (0.0ms) SAVEPOINT active_record_1
2568
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 9' LIMIT 1
2569
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 14' LIMIT 1
2570
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 9"], ["factor", 579.86], ["int_code", "OOO"], ["measure", "Длина"], ["name", "Единица 14"], ["num", "015"]]
2571
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2572
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "15e6bb2d-dc3d-41c0-9065-8d07b4747452"]]
2573
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2574
+ Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2575
+ Processing by Okei::Api::V1::UnitsController#show as JSON
2576
+ Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
2577
+ Unpermitted parameters: format
2578
+ Okei::Unit Load (0.2ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000' ORDER BY "okei_units"."id" ASC LIMIT 1
2579
+ Completed 404 Not Found in 4ms (Views: 2.7ms | ActiveRecord: 0.2ms)
2580
+  (0.2ms) rollback transaction
2581
+  (0.0ms) begin transaction
2582
+  (0.0ms) commit transaction
2583
+  (0.0ms) begin transaction
2584
+  (0.0ms) SAVEPOINT active_record_1
2585
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 10' LIMIT 1
2586
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 15' LIMIT 1
2587
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 10"], ["factor", 659.06], ["int_code", "PPP"], ["measure", "Длина"], ["name", "Единица 15"], ["num", "016"]]
2588
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2589
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "13afd229-0e29-4ccc-896e-ea9b338595a3"]]
2590
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2591
+ Started GET "/okei/api/v1/units/00000000-0000-0000-0000-000000000000" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2592
+ Processing by Okei::Api::V1::UnitsController#show as JSON
2593
+ Parameters: {"uuid"=>"00000000-0000-0000-0000-000000000000"}
2594
+ Unpermitted parameters: format
2595
+ Okei::Unit Load (0.2ms) SELECT DISTINCT "okei_units".* FROM "okei_units" INNER JOIN "uuids_uuids" ON "uuids_uuids"."record_id" = "okei_units"."id" AND "uuids_uuids"."record_type" = 'Okei::Unit' WHERE "uuids_uuids"."value" = '00000000-0000-0000-0000-000000000000' ORDER BY "okei_units"."id" ASC LIMIT 1
2596
+ Completed 404 Not Found in 4ms (Views: 2.2ms | ActiveRecord: 0.2ms)
2597
+  (0.2ms) rollback transaction
2598
+  (0.0ms) begin transaction
2599
+  (0.0ms) commit transaction
2600
+  (0.0ms) begin transaction
2601
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2602
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
2603
+  (0.1ms) rollback transaction
2604
+  (0.0ms) begin transaction
2605
+  (0.0ms) commit transaction
2606
+  (0.0ms) begin transaction
2607
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2608
+ Completed 200 OK in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2609
+  (0.0ms) rollback transaction
2610
+  (0.0ms) begin transaction
2611
+  (0.0ms) commit transaction
2612
+  (0.0ms) begin transaction
2613
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2614
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2615
+  (0.1ms) rollback transaction
2616
+  (0.0ms) begin transaction
2617
+  (0.0ms) commit transaction
2618
+  (0.0ms) begin transaction
2619
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2620
+ Completed 404 Not Found in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2621
+  (0.0ms) rollback transaction
2622
+  (0.0ms) begin transaction
2623
+  (0.0ms) commit transaction
2624
+  (0.0ms) begin transaction
2625
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2626
+ Completed 404 Not Found in 2ms (Views: 1.7ms | ActiveRecord: 0.0ms)
2627
+  (0.0ms) rollback transaction
2628
+  (0.0ms) begin transaction
2629
+  (0.0ms) commit transaction
2630
+  (0.0ms) begin transaction
2631
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2632
+ Completed 404 Not Found in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2633
+  (0.1ms) rollback transaction
2634
+  (0.0ms) begin transaction
2635
+  (0.0ms) commit transaction
2636
+  (0.0ms) begin transaction
2637
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2638
+ Completed 200 OK in 2ms (Views: 1.9ms | ActiveRecord: 0.0ms)
2639
+  (0.0ms) rollback transaction
2640
+  (0.0ms) begin transaction
2641
+  (0.0ms) commit transaction
2642
+  (0.0ms) begin transaction
2643
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2644
+ Completed 200 OK in 2ms (Views: 1.6ms | ActiveRecord: 0.0ms)
2645
+  (0.0ms) rollback transaction
2646
+  (0.0ms) begin transaction
2647
+  (0.0ms) commit transaction
2648
+  (0.0ms) begin transaction
2649
+ Processing by Okei::Api::V1::ResponderController#index as JSON
2650
+ Completed 200 OK in 2ms (Views: 2.2ms | ActiveRecord: 0.0ms)
2651
+  (0.1ms) rollback transaction
2652
+  (0.0ms) begin transaction
2653
+  (0.0ms) commit transaction
2654
+  (0.0ms) begin transaction
2655
+  (0.0ms) SAVEPOINT active_record_1
2656
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 11' LIMIT 1
2657
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 16' LIMIT 1
2658
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 11"], ["factor", 86.75], ["int_code", "QQQ"], ["measure", "ДЛИНА"], ["name", "Единица 16"], ["num", "017"]]
2659
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2660
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "69d390e5-cb9a-4e82-8bc7-913769152105"]]
2661
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2662
+  (0.0ms) SAVEPOINT active_record_1
2663
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 12' LIMIT 1
2664
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 17' LIMIT 1
2665
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 12"], ["factor", 203.89], ["int_code", "RRR"], ["measure", "ПРОЧИЕ"], ["name", "Единица 17"], ["num", "018"]]
2666
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
2667
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "f899a4e5-8716-447c-b670-34c4facf64b2"]]
2668
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2669
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" ORDER BY "okei_units"."code" ASC
2670
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" ORDER BY "okei_units"."code" ASC
2671
+  (0.2ms) rollback transaction
2672
+  (0.0ms) begin transaction
2673
+  (0.0ms) commit transaction
2674
+  (0.0ms) begin transaction
2675
+  (0.0ms) SAVEPOINT active_record_1
2676
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 13' LIMIT 1
2677
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 18' LIMIT 1
2678
+ SQL (0.3ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 13"], ["factor", 426.31], ["int_code", "SSS"], ["measure", "ДЛИНА"], ["name", "Единица 18"], ["num", "019"]]
2679
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2680
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "25785b12-c705-4bb0-86c5-054f7282aeea"]]
2681
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2682
+  (0.0ms) SAVEPOINT active_record_1
2683
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 14' LIMIT 1
2684
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 19' LIMIT 1
2685
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 14"], ["factor", 208.08], ["int_code", "TTT"], ["measure", "ПРОЧИЕ"], ["name", "Единица 19"], ["num", "020"]]
2686
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
2687
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "45d4665e-32f7-475a-a707-5e3c0e1367a7"]]
2688
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2689
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" ORDER BY "okei_units"."code" ASC
2690
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" ORDER BY "okei_units"."code" ASC
2691
+  (0.2ms) rollback transaction
2692
+  (0.0ms) begin transaction
2693
+  (0.0ms) commit transaction
2694
+  (0.0ms) begin transaction
2695
+  (0.0ms) SAVEPOINT active_record_1
2696
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 15' LIMIT 1
2697
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 20' LIMIT 1
2698
+ SQL (0.3ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 15"], ["factor", 98.3], ["int_code", "UUU"], ["measure", "ДЛИНА"], ["name", "Единица 20"], ["num", "021"]]
2699
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2700
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "af580bde-e9c9-49ec-9048-febe30326969"]]
2701
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2702
+  (0.0ms) SAVEPOINT active_record_1
2703
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 16' LIMIT 1
2704
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 21' LIMIT 1
2705
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 16"], ["factor", 449.68], ["int_code", "VVV"], ["measure", "ПРОЧИЕ"], ["name", "Единица 21"], ["num", "022"]]
2706
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
2707
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "1fdc503d-d720-4e6d-b725-2c9483fa4f32"]]
2708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
2709
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."measure" = 'ДЛИНА' ORDER BY "okei_units"."code" ASC
2710
+  (0.2ms) rollback transaction
2711
+  (0.0ms) begin transaction
2712
+  (0.0ms) commit transaction
2713
+  (0.0ms) begin transaction
2714
+  (0.0ms) SAVEPOINT active_record_1
2715
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 17' LIMIT 1
2716
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 22' LIMIT 1
2717
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 17"], ["factor", 754.0], ["int_code", "WWW"], ["measure", "ДЛИНА"], ["name", "Единица 22"], ["num", "023"]]
2718
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2719
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "07eb9892-d83f-4ecf-b6a5-1cca68d8a76f"]]
2720
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2721
+  (0.0ms) SAVEPOINT active_record_1
2722
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 18' LIMIT 1
2723
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 23' LIMIT 1
2724
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 18"], ["factor", 787.29], ["int_code", "XXA"], ["measure", "ПРОЧИЕ"], ["name", "Единица 23"], ["num", "024"]]
2725
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
2726
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "6515a2fd-c056-40fe-8bd7-0c9067dc5552"]]
2727
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2728
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."measure" = 'ДЛИНА' ORDER BY "okei_units"."code" ASC
2729
+  (0.2ms) rollback transaction
2730
+  (0.0ms) begin transaction
2731
+  (0.0ms) commit transaction
2732
+  (0.0ms) begin transaction
2733
+ Processing by Okei::Api::V1::UnitsController#search as HTML
2734
+ Parameters: {"text"=>"text", "wrong"=>"wrong"}
2735
+ Unpermitted parameters: wrong
2736
+ Completed 200 OK in 2ms (Views: 1.4ms | ActiveRecord: 0.0ms)
2737
+  (0.0ms) rollback transaction
2738
+  (0.0ms) begin transaction
2739
+  (0.0ms) commit transaction
2740
+  (0.0ms) begin transaction
2741
+ Processing by Okei::Api::V1::UnitsController#search as HTML
2742
+ Parameters: {"text"=>"text", "wrong"=>"wrong"}
2743
+ Unpermitted parameters: wrong
2744
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2745
+  (0.0ms) rollback transaction
2746
+  (0.0ms) begin transaction
2747
+  (0.0ms) commit transaction
2748
+  (0.0ms) begin transaction
2749
+ Processing by Okei::Api::V1::UnitsController#search as HTML
2750
+ Parameters: {"text"=>"text", "wrong"=>"wrong"}
2751
+ Unpermitted parameters: wrong
2752
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2753
+  (0.0ms) rollback transaction
2754
+  (0.0ms) begin transaction
2755
+  (0.0ms) commit transaction
2756
+  (0.0ms) begin transaction
2757
+ Processing by Okei::Api::V1::UnitsController#show as HTML
2758
+ Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
2759
+ Unpermitted parameters: wrong
2760
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2761
+  (0.1ms) rollback transaction
2762
+  (0.0ms) begin transaction
2763
+  (0.0ms) commit transaction
2764
+  (0.0ms) begin transaction
2765
+ Processing by Okei::Api::V1::UnitsController#show as HTML
2766
+ Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
2767
+ Unpermitted parameters: wrong
2768
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2769
+  (0.0ms) rollback transaction
2770
+  (0.1ms) begin transaction
2771
+  (0.0ms) commit transaction
2772
+  (0.1ms) begin transaction
2773
+ Processing by Okei::Api::V1::UnitsController#show as HTML
2774
+ Parameters: {"wrong"=>"wrong", "uuid"=>"00000000-0000-0000-0000-000000000000"}
2775
+ Unpermitted parameters: wrong
2776
+ Completed 200 OK in 1ms (Views: 0.5ms | ActiveRecord: 0.0ms)
2777
+  (0.1ms) rollback transaction
2778
+  (0.0ms) begin transaction
2779
+  (0.0ms) commit transaction
2780
+  (0.0ms) begin transaction
2781
+ Processing by Okei::Api::V1::UnitsController#index as HTML
2782
+ Parameters: {"measure"=>"measure", "code"=>"code"}
2783
+ Unpermitted parameters: code
2784
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2785
+  (0.0ms) rollback transaction
2786
+  (0.0ms) begin transaction
2787
+  (0.0ms) commit transaction
2788
+  (0.0ms) begin transaction
2789
+ Processing by Okei::Api::V1::UnitsController#index as HTML
2790
+ Parameters: {"measure"=>"measure", "code"=>"code"}
2791
+ Unpermitted parameters: code
2792
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2793
+  (0.0ms) rollback transaction
2794
+  (0.0ms) begin transaction
2795
+  (0.0ms) commit transaction
2796
+  (0.0ms) begin transaction
2797
+ Processing by Okei::Api::V1::UnitsController#index as HTML
2798
+ Parameters: {"measure"=>"measure", "code"=>"code"}
2799
+ Unpermitted parameters: code
2800
+ Completed 200 OK in 1ms (Views: 0.4ms | ActiveRecord: 0.0ms)
2801
+  (0.0ms) rollback transaction
2802
+  (0.1ms) begin transaction
2803
+  (0.1ms) commit transaction
2804
+  (0.0ms) begin transaction
2805
+  (0.0ms) rollback transaction
2806
+  (0.0ms) begin transaction
2807
+  (0.0ms) commit transaction
2808
+  (0.0ms) begin transaction
2809
+  (0.0ms) rollback transaction
2810
+  (0.0ms) begin transaction
2811
+  (0.0ms) commit transaction
2812
+  (0.0ms) begin transaction
2813
+  (0.0ms) rollback transaction
2814
+  (0.0ms) begin transaction
2815
+  (0.0ms) commit transaction
2816
+  (0.0ms) begin transaction
2817
+  (0.0ms) SAVEPOINT active_record_1
2818
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2819
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 24' LIMIT 1
2820
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 172.95], ["int_code", "YAB"], ["measure", "Длина"], ["name", "Единица 24"], ["num", "025"]]
2821
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2822
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "b2f0878d-00af-4817-bb09-b962157272cf"]]
2823
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2824
+ Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2825
+ Processing by Okei::Api::V1::UnitsController#search as JSON
2826
+ Parameters: {"text"=>"километров в сек"}
2827
+ Unpermitted parameters: format
2828
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' ORDER BY "okei_units"."id" ASC LIMIT 1
2829
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
2830
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
2831
+ Completed 200 OK in 5ms (Views: 3.6ms | ActiveRecord: 0.2ms)
2832
+  (0.2ms) rollback transaction
2833
+  (0.0ms) begin transaction
2834
+  (0.0ms) commit transaction
2835
+  (0.0ms) begin transaction
2836
+  (0.0ms) SAVEPOINT active_record_1
2837
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2838
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 25' LIMIT 1
2839
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 867.79], ["int_code", "ABC"], ["measure", "Длина"], ["name", "Единица 25"], ["num", "026"]]
2840
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2841
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "92cf23b3-06f1-4b5e-9e4c-c485b2bf2a46"]]
2842
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2843
+ Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2844
+ Processing by Okei::Api::V1::UnitsController#search as JSON
2845
+ Parameters: {"text"=>"километров в сек"}
2846
+ Unpermitted parameters: format
2847
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' ORDER BY "okei_units"."id" ASC LIMIT 1
2848
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
2849
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
2850
+ Completed 200 OK in 4ms (Views: 3.3ms | ActiveRecord: 0.2ms)
2851
+  (0.2ms) rollback transaction
2852
+  (0.0ms) begin transaction
2853
+  (0.0ms) commit transaction
2854
+  (0.0ms) begin transaction
2855
+  (0.0ms) SAVEPOINT active_record_1
2856
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2857
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 26' LIMIT 1
2858
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 61.69], ["int_code", "BCD"], ["measure", "Длина"], ["name", "Единица 26"], ["num", "027"]]
2859
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2860
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "6edef11c-4365-48ce-b447-a2b537c313bd"]]
2861
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2862
+ Started GET "/okei/api/v1/units/search?text=%D0%BA%D0%B8%D0%BB%D0%BE%D0%BC%D0%B5%D1%82%D1%80%D0%BE%D0%B2+%D0%B2+%D1%81%D0%B5%D0%BA" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2863
+ Processing by Okei::Api::V1::UnitsController#search as JSON
2864
+ Parameters: {"text"=>"километров в сек"}
2865
+ Unpermitted parameters: format
2866
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' ORDER BY "okei_units"."id" ASC LIMIT 1
2867
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
2868
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
2869
+ Completed 200 OK in 4ms (Views: 3.2ms | ActiveRecord: 0.2ms)
2870
+  (0.2ms) rollback transaction
2871
+  (0.0ms) begin transaction
2872
+  (0.0ms) commit transaction
2873
+  (0.0ms) begin transaction
2874
+  (0.1ms) SAVEPOINT active_record_1
2875
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2876
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 27' LIMIT 1
2877
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 454.66], ["int_code", "CDE"], ["measure", "Длина"], ["name", "Единица 27"], ["num", "028"]]
2878
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2879
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "e9aa39df-6df2-4291-a9d2-431268c45bbe"]]
2880
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2881
+ Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2882
+ Processing by Okei::Api::V1::UnitsController#search as JSON
2883
+ Parameters: {"text"=>"wrong text"}
2884
+ Unpermitted parameters: format
2885
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'wrong text' ORDER BY "okei_units"."id" ASC LIMIT 1
2886
+ Completed 404 Not Found in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
2887
+  (0.2ms) rollback transaction
2888
+  (0.0ms) begin transaction
2889
+  (0.1ms) commit transaction
2890
+  (0.0ms) begin transaction
2891
+  (0.0ms) SAVEPOINT active_record_1
2892
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ТЫС М/С2' LIMIT 1
2893
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 28' LIMIT 1
2894
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ТЫС М/С2"], ["factor", 510.45], ["int_code", "DEF"], ["measure", "Длина"], ["name", "Единица 28"], ["num", "029"]]
2895
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2896
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "fbd46c3a-d3e1-474f-a137-87f26c01fa29"]]
2897
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2898
+ Started GET "/okei/api/v1/units/search?text=wrong+text" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
2899
+ Processing by Okei::Api::V1::UnitsController#search as JSON
2900
+ Parameters: {"text"=>"wrong text"}
2901
+ Unpermitted parameters: format
2902
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."code" = 'wrong text' ORDER BY "okei_units"."id" ASC LIMIT 1
2903
+ Completed 404 Not Found in 3ms (Views: 2.1ms | ActiveRecord: 0.1ms)
2904
+  (0.2ms) rollback transaction
2905
+  (0.0ms) begin transaction
2906
+  (0.1ms) commit transaction
2907
+  (0.0ms) begin transaction
2908
+  (0.0ms) rollback transaction
2909
+  (0.0ms) begin transaction
2910
+  (0.0ms) commit transaction
2911
+  (0.0ms) begin transaction
2912
+  (0.1ms) rollback transaction
2913
+  (0.0ms) begin transaction
2914
+  (0.0ms) commit transaction
2915
+  (0.0ms) begin transaction
2916
+  (0.0ms) rollback transaction
2917
+  (0.0ms) begin transaction
2918
+  (0.0ms) commit transaction
2919
+  (0.0ms) begin transaction
2920
+  (0.0ms) rollback transaction
2921
+  (0.0ms) begin transaction
2922
+  (0.0ms) commit transaction
2923
+  (0.0ms) begin transaction
2924
+  (0.0ms) rollback transaction
2925
+  (0.0ms) begin transaction
2926
+  (0.0ms) commit transaction
2927
+  (0.0ms) begin transaction
2928
+  (0.0ms) rollback transaction
2929
+  (0.0ms) begin transaction
2930
+  (0.0ms) commit transaction
2931
+  (0.0ms) begin transaction
2932
+  (0.0ms) rollback transaction
2933
+  (0.0ms) begin transaction
2934
+  (0.0ms) commit transaction
2935
+  (0.0ms) begin transaction
2936
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
2937
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 29' LIMIT 1
2938
+  (0.0ms) SAVEPOINT active_record_1
2939
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 20' LIMIT 1
2940
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 30' LIMIT 1
2941
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 20"], ["factor", 882.36], ["int_code", "EFG"], ["measure", "Длина"], ["name", "Единица 30"], ["num", "031"]]
2942
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2943
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "cf4883e3-a16c-4d6f-b22c-c8279c007a2d"]]
2944
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2945
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 19' LIMIT 1
2946
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 29' LIMIT 1
2947
+  (0.2ms) rollback transaction
2948
+  (0.0ms) begin transaction
2949
+  (0.0ms) commit transaction
2950
+  (0.0ms) begin transaction
2951
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 21' LIMIT 1
2952
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 31' LIMIT 1
2953
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 21' LIMIT 1
2954
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 31' LIMIT 1
2955
+  (0.0ms) rollback transaction
2956
+  (0.0ms) begin transaction
2957
+  (0.0ms) commit transaction
2958
+  (0.0ms) begin transaction
2959
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 22' LIMIT 1
2960
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 32' LIMIT 1
2961
+  (0.0ms) SAVEPOINT active_record_1
2962
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 23' LIMIT 1
2963
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 33' LIMIT 1
2964
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 23"], ["factor", 285.72], ["int_code", "HIJ"], ["measure", "Длина"], ["name", "Единица 33"], ["num", "033"]]
2965
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
2966
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "70d64a95-2ef3-4765-bf1f-a06eee3fe1bf"]]
2967
+  (0.0ms) RELEASE SAVEPOINT active_record_1
2968
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 22' LIMIT 1
2969
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 32' LIMIT 1
2970
+  (0.1ms) rollback transaction
2971
+  (0.0ms) begin transaction
2972
+  (0.0ms) commit transaction
2973
+  (0.0ms) begin transaction
2974
+ Okei::Unit Exists (0.2ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 24' LIMIT 1
2975
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 34' LIMIT 1
2976
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 24' LIMIT 1
2977
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 34' LIMIT 1
2978
+  (0.1ms) rollback transaction
2979
+  (0.1ms) begin transaction
2980
+  (0.1ms) commit transaction
2981
+  (0.1ms) begin transaction
2982
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 25' LIMIT 1
2983
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 35' LIMIT 1
2984
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 25' LIMIT 1
2985
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 35' LIMIT 1
2986
+  (0.1ms) rollback transaction
2987
+  (0.0ms) begin transaction
2988
+  (0.0ms) commit transaction
2989
+  (0.0ms) begin transaction
2990
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 26' LIMIT 1
2991
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 36' LIMIT 1
2992
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 26' LIMIT 1
2993
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 36' LIMIT 1
2994
+  (0.0ms) rollback transaction
2995
+  (0.0ms) begin transaction
2996
+  (0.0ms) commit transaction
2997
+  (0.0ms) begin transaction
2998
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 27' LIMIT 1
2999
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 37' LIMIT 1
3000
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 27' LIMIT 1
3001
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 37' LIMIT 1
3002
+  (0.0ms) rollback transaction
3003
+  (0.0ms) begin transaction
3004
+  (0.0ms) commit transaction
3005
+  (0.0ms) begin transaction
3006
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 28' LIMIT 1
3007
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 38' LIMIT 1
3008
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 28' LIMIT 1
3009
+  (0.0ms) rollback transaction
3010
+  (0.0ms) begin transaction
3011
+  (0.0ms) commit transaction
3012
+  (0.0ms) begin transaction
3013
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
3014
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
3015
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
3016
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
3017
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 29' LIMIT 1
3018
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 39' LIMIT 1
3019
+  (0.0ms) rollback transaction
3020
+  (0.0ms) begin transaction
3021
+  (0.0ms) commit transaction
3022
+  (0.0ms) begin transaction
3023
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 30' LIMIT 1
3024
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
3025
+  (0.0ms) SAVEPOINT active_record_1
3026
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 31' LIMIT 1
3027
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
3028
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 31"], ["factor", 185.8], ["int_code", "PQR"], ["measure", "Длина"], ["name", "Единица 40"], ["num", "041"]]
3029
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3030
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "cd3b46e3-9b52-4550-9ce6-90f0babde92e"]]
3031
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3032
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 30' LIMIT 1
3033
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 40' LIMIT 1
3034
+  (0.2ms) rollback transaction
3035
+  (0.0ms) begin transaction
3036
+  (0.0ms) commit transaction
3037
+  (0.0ms) begin transaction
3038
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
3039
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 41' LIMIT 1
3040
+  (0.0ms) SAVEPOINT active_record_1
3041
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
3042
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 42' LIMIT 1
3043
+ SQL (0.3ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "ЕИ 32"], ["factor", 542.8], ["int_code", "RST"], ["measure", "Длина"], ["name", "Единица 42"], ["num", "043"]]
3044
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3045
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "7bb825c2-a6ee-49ce-b386-d1a835ff5e47"]]
3046
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3047
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 32' LIMIT 1
3048
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 41' LIMIT 1
3049
+  (0.1ms) rollback transaction
3050
+  (0.0ms) begin transaction
3051
+  (0.0ms) commit transaction
3052
+  (0.0ms) begin transaction
3053
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 33' LIMIT 1
3054
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 43' LIMIT 1
3055
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 43' LIMIT 1
3056
+  (0.0ms) rollback transaction
3057
+  (0.0ms) begin transaction
3058
+  (0.0ms) commit transaction
3059
+  (0.0ms) begin transaction
3060
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
3061
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
3062
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
3063
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
3064
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
3065
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
3066
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'ЕИ 34' LIMIT 1
3067
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 44' LIMIT 1
3068
+  (0.0ms) rollback transaction
3069
+  (0.0ms) begin transaction
3070
+  (0.0ms) commit transaction
3071
+  (0.1ms) begin transaction
3072
+  (0.0ms) rollback transaction
3073
+  (0.0ms) begin transaction
3074
+  (0.0ms) commit transaction
3075
+  (0.0ms) begin transaction
3076
+  (0.0ms) SAVEPOINT active_record_1
3077
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
3078
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 45' LIMIT 1
3079
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МИЛЬ"], ["factor", 444.51], ["int_code", "UVW"], ["measure", "ДЛИНА"], ["name", "Единица 45"], ["num", "046"]]
3080
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3081
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "a335e7d4-8262-43a7-990b-cb9f39cf29c8"]]
3082
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3083
+  (0.0ms) SAVEPOINT active_record_1
3084
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
3085
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 46' LIMIT 1
3086
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МОЛЬ"], ["factor", 876.93], ["int_code", "VWA"], ["measure", "ПРОЧИЕ"], ["name", "Единица 46"], ["num", "047"]]
3087
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
3088
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "581022d6-4df5-4cb5-88da-856e51c9dafe"]]
3089
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3090
+ Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
3091
+ Processing by Okei::Api::V1::UnitsController#index as JSON
3092
+ Unpermitted parameters: format
3093
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" ORDER BY "okei_units"."code" ASC
3094
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
3095
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
3096
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 2], ["record_type", "Okei::Unit"]]
3097
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.5ms)
3098
+ Completed 200 OK in 6ms (Views: 5.1ms | ActiveRecord: 0.2ms)
3099
+  (0.2ms) rollback transaction
3100
+  (0.0ms) begin transaction
3101
+  (0.0ms) commit transaction
3102
+  (0.0ms) begin transaction
3103
+  (0.0ms) SAVEPOINT active_record_1
3104
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
3105
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 47' LIMIT 1
3106
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МИЛЬ"], ["factor", 174.26], ["int_code", "WXB"], ["measure", "ДЛИНА"], ["name", "Единица 47"], ["num", "048"]]
3107
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3108
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "904806ae-270d-4e93-a789-fb085fde3f78"]]
3109
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3110
+  (0.0ms) SAVEPOINT active_record_1
3111
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
3112
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 48' LIMIT 1
3113
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МОЛЬ"], ["factor", 779.25], ["int_code", "XAC"], ["measure", "ПРОЧИЕ"], ["name", "Единица 48"], ["num", "049"]]
3114
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
3115
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "62f1e480-385c-4345-88c4-0873b79f440b"]]
3116
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3117
+ Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
3118
+ Processing by Okei::Api::V1::UnitsController#index as JSON
3119
+ Unpermitted parameters: format
3120
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" ORDER BY "okei_units"."code" ASC
3121
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
3122
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
3123
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 2], ["record_type", "Okei::Unit"]]
3124
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
3125
+ Completed 200 OK in 5ms (Views: 4.4ms | ActiveRecord: 0.2ms)
3126
+  (0.2ms) rollback transaction
3127
+  (0.0ms) begin transaction
3128
+  (0.0ms) commit transaction
3129
+  (0.0ms) begin transaction
3130
+  (0.0ms) SAVEPOINT active_record_1
3131
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
3132
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 49' LIMIT 1
3133
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МИЛЬ"], ["factor", 723.51], ["int_code", "YBD"], ["measure", "ДЛИНА"], ["name", "Единица 49"], ["num", "050"]]
3134
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3135
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "1970d3da-cc32-4ea6-9679-70f52a3c1920"]]
3136
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3137
+  (0.0ms) SAVEPOINT active_record_1
3138
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
3139
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 50' LIMIT 1
3140
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МОЛЬ"], ["factor", 375.59], ["int_code", "ACE"], ["measure", "ПРОЧИЕ"], ["name", "Единица 50"], ["num", "051"]]
3141
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
3142
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "9d51800f-8b71-4f3d-86f4-17ce90758c02"]]
3143
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3144
+ Started GET "/okei/api/v1/units" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
3145
+ Processing by Okei::Api::V1::UnitsController#index as JSON
3146
+ Unpermitted parameters: format
3147
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" ORDER BY "okei_units"."code" ASC
3148
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
3149
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.7ms)
3150
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 2], ["record_type", "Okei::Unit"]]
3151
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.6ms)
3152
+ Completed 200 OK in 5ms (Views: 4.6ms | ActiveRecord: 0.2ms)
3153
+  (0.2ms) rollback transaction
3154
+  (0.0ms) begin transaction
3155
+  (0.0ms) commit transaction
3156
+  (0.0ms) begin transaction
3157
+  (0.0ms) SAVEPOINT active_record_1
3158
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
3159
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 51' LIMIT 1
3160
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МИЛЬ"], ["factor", 206.59], ["int_code", "BDF"], ["measure", "ДЛИНА"], ["name", "Единица 51"], ["num", "052"]]
3161
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3162
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "98f68a40-8d24-40ac-82bb-9a825fc2c5d5"]]
3163
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3164
+  (0.0ms) SAVEPOINT active_record_1
3165
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
3166
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 52' LIMIT 1
3167
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МОЛЬ"], ["factor", 805.13], ["int_code", "CEG"], ["measure", "ПРОЧИЕ"], ["name", "Единица 52"], ["num", "053"]]
3168
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
3169
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "20a19458-98b6-4b84-9949-7773bb115bfd"]]
3170
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3171
+ Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
3172
+ Processing by Okei::Api::V1::UnitsController#index as JSON
3173
+ Parameters: {"measure"=>"ДЛИНА"}
3174
+ Unpermitted parameters: format
3175
+ Okei::Unit Load (0.1ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."measure" = 'ДЛИНА' ORDER BY "okei_units"."code" ASC
3176
+ Uuids::Uuid Load (0.0ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
3177
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
3178
+ Completed 200 OK in 4ms (Views: 3.7ms | ActiveRecord: 0.2ms)
3179
+  (0.2ms) rollback transaction
3180
+  (0.0ms) begin transaction
3181
+  (0.1ms) commit transaction
3182
+  (0.0ms) begin transaction
3183
+  (0.0ms) SAVEPOINT active_record_1
3184
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
3185
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 53' LIMIT 1
3186
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МИЛЬ"], ["factor", 978.7], ["int_code", "DFH"], ["measure", "ДЛИНА"], ["name", "Единица 53"], ["num", "054"]]
3187
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3188
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "78303b3f-b6e9-4d4e-855e-3208803b51e5"]]
3189
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3190
+  (0.0ms) SAVEPOINT active_record_1
3191
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
3192
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 54' LIMIT 1
3193
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МОЛЬ"], ["factor", 149.31], ["int_code", "EGI"], ["measure", "ПРОЧИЕ"], ["name", "Единица 54"], ["num", "055"]]
3194
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
3195
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "6c9d20c4-69f0-4f4b-89d4-5cdacadfaaa0"]]
3196
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3197
+ Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-25 21:38:32 +0400
3198
+ Processing by Okei::Api::V1::UnitsController#index as JSON
3199
+ Parameters: {"measure"=>"ДЛИНА"}
3200
+ Unpermitted parameters: format
3201
+ Okei::Unit Load (0.2ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."measure" = 'ДЛИНА' ORDER BY "okei_units"."code" ASC
3202
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
3203
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (0.8ms)
3204
+ Completed 200 OK in 5ms (Views: 4.1ms | ActiveRecord: 0.2ms)
3205
+  (0.2ms) rollback transaction
3206
+  (0.0ms) begin transaction
3207
+  (0.0ms) commit transaction
3208
+  (0.0ms) begin transaction
3209
+  (0.0ms) SAVEPOINT active_record_1
3210
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МИЛЬ' LIMIT 1
3211
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 55' LIMIT 1
3212
+ SQL (0.4ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МИЛЬ"], ["factor", 269.2], ["int_code", "FHJ"], ["measure", "ДЛИНА"], ["name", "Единица 55"], ["num", "056"]]
3213
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 1]]
3214
+ SQL (0.2ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 1], ["record_type", "Okei::Unit"], ["value", "aeb83d62-28de-46fd-82e9-b6d81bb6ed44"]]
3215
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3216
+  (0.0ms) SAVEPOINT active_record_1
3217
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."code" = 'МОЛЬ' LIMIT 1
3218
+ Okei::Unit Exists (0.1ms) SELECT 1 AS one FROM "okei_units" WHERE "okei_units"."name" = 'Единица 56' LIMIT 1
3219
+ SQL (0.1ms) INSERT INTO "okei_units" ("base", "code", "factor", "int_code", "measure", "name", "num") VALUES (?, ?, ?, ?, ?, ?, ?) [["base", "М"], ["code", "МОЛЬ"], ["factor", 665.04], ["int_code", "GIK"], ["measure", "ПРОЧИЕ"], ["name", "Единица 56"], ["num", "057"]]
3220
+ Okei::Unit Load (0.0ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."id" = ? LIMIT 1 [["id", 2]]
3221
+ SQL (0.1ms) INSERT INTO "uuids_uuids" ("record_id", "record_type", "value") VALUES (?, ?, ?) [["record_id", 2], ["record_type", "Okei::Unit"], ["value", "4a8582b1-b5d8-445d-ab8d-f506a23099aa"]]
3222
+  (0.0ms) RELEASE SAVEPOINT active_record_1
3223
+ Started GET "/okei/api/v1/units?measure=%D0%94%D0%9B%D0%98%D0%9D%D0%90" for 127.0.0.1 at 2014-10-25 21:38:33 +0400
3224
+ Processing by Okei::Api::V1::UnitsController#index as JSON
3225
+ Parameters: {"measure"=>"ДЛИНА"}
3226
+ Unpermitted parameters: format
3227
+ Okei::Unit Load (0.2ms) SELECT "okei_units".* FROM "okei_units" WHERE "okei_units"."measure" = 'ДЛИНА' ORDER BY "okei_units"."code" ASC
3228
+ Uuids::Uuid Load (0.1ms) SELECT "uuids_uuids".* FROM "uuids_uuids" WHERE "uuids_uuids"."record_id" = ? AND "uuids_uuids"."record_type" = ? [["record_id", 1], ["record_type", "Okei::Unit"]]
3229
+ Rendered /home/nepalez/Sites/okei/app/views/okei/api/v1/units/_unit.json.jbuilder (1.7ms)
3230
+ Completed 200 OK in 7ms (Views: 5.8ms | ActiveRecord: 0.3ms)
3231
+  (0.4ms) rollback transaction
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: okei
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Kozin
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-23 00:00:00.000000000 Z
11
+ date: 2014-10-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: hexx
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '1.0'
81
+ version: '1.1'
82
82
  type: :runtime
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '1.0'
88
+ version: '1.1'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: database_cleaner
91
91
  requirement: !ruby/object:Gem::Requirement