nostalgic 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/nostalgic/nostalgic_for.rb +1 -1
- data/lib/nostalgic/version.rb +1 -1
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +100 -0
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ebc06d3e51a6e4356e28520a4636621bbcee8ef1
|
4
|
+
data.tar.gz: 97e22ad956de717219eef870ae766b86e5b4eb71
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 361e005c038b952faa109809532dbc990b7b50a7888cf648c1f253079bcba20ed8ae29a745db2ab5864a546edc85d1a79fba85aab9cf5b94e8af97913f72ecbc
|
7
|
+
data.tar.gz: 91266e6bd24be58bc5d633ebe3307934a9d0e6fba05b7de1693cb1f97e440ddebae11185009da37b64948028204ddbdda788cd3866c73ab3ab1218de8a49522e
|
@@ -50,7 +50,7 @@ module Nostalgic
|
|
50
50
|
def #{name}_on(date)
|
51
51
|
return self.#{name} unless date.present?
|
52
52
|
|
53
|
-
'#{name}'.classify.constantize.find_by_id(#{foreign_key}
|
53
|
+
'#{name}'.classify.constantize.find_by_id(#{foreign_key}_on(date))
|
54
54
|
end
|
55
55
|
|
56
56
|
alias_method :#{name}_at, :#{name}_on
|
data/lib/nostalgic/version.rb
CHANGED
data/test/dummy/db/test.sqlite3
CHANGED
Binary file
|
data/test/dummy/log/test.log
CHANGED
@@ -9522,3 +9522,103 @@ UserTest: test_save_tel
|
|
9522
9522
|
Nostalgic::AttrTest: test_nostalgic_model
|
9523
9523
|
-----------------------------------------
|
9524
9524
|
[1m[36m (0.0ms)[0m [1mrollback transaction[0m
|
9525
|
+
[1m[36mActiveRecord::SchemaMigration Load (0.1ms)[0m [1m[34mSELECT "schema_migrations".* FROM "schema_migrations"[0m
|
9526
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
9527
|
+
[1m[36mFixture Delete (0.3ms)[0m [1m[31mDELETE FROM "nostalgic_attrs"[0m
|
9528
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (1, 'User', 1, 'tel', '111-123-4567', '2017-01-17', '2017-02-17 04:51:08.311013', '2017-02-17 04:51:08.311013')[0m
|
9529
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (2, 'User', 1, 'tel', '222-123-4567', '2017-02-17', '2017-02-17 04:51:08.311013', '2017-02-17 04:51:08.311013')[0m
|
9530
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (3, 'User', 1, 'tel', '333-123-4567', '2017-02-18', '2017-02-17 04:51:08.311013', '2017-02-17 04:51:08.311013')[0m
|
9531
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("id", "model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (4, 'User', 1, 'company_id', '1', '2017-02-16', '2017-02-17 04:51:08.311013', '2017-02-17 04:51:08.311013')[0m
|
9532
|
+
[1m[36mFixture Delete (0.1ms)[0m [1m[31mDELETE FROM "users"[0m
|
9533
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "users" ("id", "company_id", "email", "tel", "created_at", "updated_at") VALUES (1, 1, 'test1@example.com', '222-123-4567', '2017-02-17 04:51:08.316303', '2017-02-17 04:51:08.316303')[0m
|
9534
|
+
[1m[36mFixture Delete (0.2ms)[0m [1m[31mDELETE FROM "companies"[0m
|
9535
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (1, 'TestCompany001', '2017-02-17 04:51:08.318020', '2017-02-17 04:51:08.318020')[0m
|
9536
|
+
[1m[36mFixture Insert (0.1ms)[0m [1m[32mINSERT INTO "companies" ("id", "name", "created_at", "updated_at") VALUES (2, 'TestCompany002', '2017-02-17 04:51:08.318020', '2017-02-17 04:51:08.318020')[0m
|
9537
|
+
[1m[35m (3.1ms)[0m [1m[36mcommit transaction[0m
|
9538
|
+
[1m[35m (0.1ms)[0m [1m[36mbegin transaction[0m
|
9539
|
+
-----------------------------------------
|
9540
|
+
Nostalgic::AttrTest: test_nostalgic_model
|
9541
|
+
-----------------------------------------
|
9542
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9543
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9544
|
+
--------------------------------------------
|
9545
|
+
NostalgicTest: test_it_does_something_useful
|
9546
|
+
--------------------------------------------
|
9547
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
9548
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9549
|
+
------------------------------------------------
|
9550
|
+
NostalgicTest: test_that_it_has_a_version_number
|
9551
|
+
------------------------------------------------
|
9552
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9553
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9554
|
+
-------------------------
|
9555
|
+
UserTest: test_belongs_to
|
9556
|
+
-------------------------
|
9557
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
9558
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
9559
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
9560
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
9561
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
9562
|
+
[1m[36mCompany Load (0.2ms)[0m [1m[34mSELECT "companies".* FROM "companies" ORDER BY "companies"."id" ASC LIMIT ? OFFSET ?[0m [["LIMIT", 1], ["OFFSET", 1]]
|
9563
|
+
[1m[35m (0.1ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9564
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "company_id" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["company_id", 2], ["updated_at", 2017-02-17 04:51:08 UTC], ["id", 1]]
|
9565
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", :company_id], ["effective_at", Sat, 18 Feb 2017], ["LIMIT", 1]]
|
9566
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["value", "2"], ["effective_at", Sat, 18 Feb 2017], ["created_at", 2017-02-17 04:51:08 UTC], ["updated_at", 2017-02-17 04:51:08 UTC]]
|
9567
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", :tel], ["effective_at", Fri, 17 Feb 2017], ["LIMIT", 1]]
|
9568
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9569
|
+
[1m[36mUser Load (0.2ms)[0m [1m[34mSELECT "users".* FROM "users" WHERE "users"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
9570
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
9571
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
9572
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
9573
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-16') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
9574
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
9575
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
9576
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 1], ["LIMIT", 1]]
|
9577
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-18') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "company_id"], ["LIMIT", 1]]
|
9578
|
+
[1m[36mCompany Load (0.1ms)[0m [1m[34mSELECT "companies".* FROM "companies" WHERE "companies"."id" = ? LIMIT ?[0m [["id", 2], ["LIMIT", 1]]
|
9579
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9580
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9581
|
+
-----------------------
|
9582
|
+
UserTest: test_save_tel
|
9583
|
+
-----------------------
|
9584
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
9585
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
9586
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
9587
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9588
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9589
|
+
[1m[35mSQL (0.2ms)[0m [1m[33mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "444-123-4567"], ["updated_at", 2017-02-17 04:51:08 UTC], ["id", 1]]
|
9590
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", :company_id], ["effective_at", Thu, 16 Feb 2017], ["LIMIT", 1]]
|
9591
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", :tel], ["effective_at", Fri, 17 Feb 2017], ["LIMIT", 1]]
|
9592
|
+
[1m[35mSQL (0.1ms)[0m [1m[33mUPDATE "nostalgic_attrs" SET "value" = ?, "updated_at" = ? WHERE "nostalgic_attrs"."id" = ?[0m [["value", "444-123-4567"], ["updated_at", 2017-02-17 04:51:08 UTC], ["id", 2]]
|
9593
|
+
[1m[35m (0.0ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9594
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9595
|
+
[1m[35m (0.0ms)[0m [1m[35mSAVEPOINT active_record_1[0m
|
9596
|
+
[1m[35mSQL (0.3ms)[0m [1m[33mUPDATE "users" SET "tel" = ?, "updated_at" = ? WHERE "users"."id" = ?[0m [["tel", "555-123-4567"], ["updated_at", 2017-02-17 04:51:08 UTC], ["id", 1]]
|
9597
|
+
[1m[36mNostalgic::Attr Load (0.0ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", :company_id], ["effective_at", Thu, 16 Feb 2017], ["LIMIT", 1]]
|
9598
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND "nostalgic_attrs"."effective_at" = ? ORDER BY "nostalgic_attrs"."id" ASC LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", :tel], ["effective_at", Sun, 19 Feb 2017], ["LIMIT", 1]]
|
9599
|
+
[1m[35mSQL (0.2ms)[0m [1m[32mINSERT INTO "nostalgic_attrs" ("model_type", "model_id", "name", "value", "effective_at", "created_at", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?)[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["value", "555-123-4567"], ["effective_at", Sun, 19 Feb 2017], ["created_at", 2017-02-17 04:51:08 UTC], ["updated_at", 2017-02-17 04:51:08 UTC]]
|
9600
|
+
[1m[35m (0.1ms)[0m [1m[35mRELEASE SAVEPOINT active_record_1[0m
|
9601
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9602
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-18') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9603
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-19') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9604
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9605
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9606
|
+
-------------------
|
9607
|
+
UserTest: test_tels
|
9608
|
+
-------------------
|
9609
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
9610
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
9611
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
9612
|
+
[1m[35m (0.1ms)[0m [1m[34mSELECT COUNT(*) FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"]]
|
9613
|
+
[1m[35m (0.1ms)[0m [1m[31mrollback transaction[0m
|
9614
|
+
[1m[35m (0.0ms)[0m [1m[36mbegin transaction[0m
|
9615
|
+
------------------
|
9616
|
+
UserTest: test_tel
|
9617
|
+
------------------
|
9618
|
+
[1m[36mUser Load (0.1ms)[0m [1m[34mSELECT "users".* FROM "users" ORDER BY "users"."id" ASC LIMIT ?[0m [["LIMIT", 1]]
|
9619
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "company_id"], ["LIMIT", 1]]
|
9620
|
+
[1m[36mNostalgic::Attr Load (0.3ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_id", 1], ["model_type", "User"], ["name", "tel"], ["LIMIT", 1]]
|
9621
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-16') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9622
|
+
[1m[36mNostalgic::Attr Load (0.1ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-17') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9623
|
+
[1m[36mNostalgic::Attr Load (0.2ms)[0m [1m[34mSELECT "nostalgic_attrs".* FROM "nostalgic_attrs" WHERE "nostalgic_attrs"."model_type" = ? AND "nostalgic_attrs"."model_id" = ? AND "nostalgic_attrs"."name" = ? AND (effective_at <= '2017-02-18') ORDER BY effective_at desc LIMIT ?[0m [["model_type", "User"], ["model_id", 1], ["name", "tel"], ["LIMIT", 1]]
|
9624
|
+
[1m[35m (0.0ms)[0m [1m[31mrollback transaction[0m
|
metadata
CHANGED
@@ -1,35 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nostalgic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2017-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '4.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: 5.
|
22
|
+
version: '5.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
26
26
|
requirements:
|
27
|
-
- - "
|
27
|
+
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '4.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: 5.
|
32
|
+
version: '5.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: bundler
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|