favourite_object 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cbeeed5c59264d00c115023aab22a0e74ca78a9
4
- data.tar.gz: 95e36678938f214d334f5de131a797178a4986c7
3
+ metadata.gz: 10e8aa16ee8823e7a4ee8e63bd9e03f4ec599f2e
4
+ data.tar.gz: 9ece4107df4043ef93b43a2458a4fdde13453ff8
5
5
  SHA512:
6
- metadata.gz: 06a55f2f6bf41bc4c8e09df58b36eff54010b5cef411207ffe6db9765ca3004708bbee3c8664c14748103016e268e606117eea7d6d90691348dc6f083c597b85
7
- data.tar.gz: acdb22f9d8cbb44c959d1713f4afc4e5b155a021868fb362d54df8fd6a41bffd2f57ba59159e2449da48071d299b3949b22c83f118efbea15850e86e1ab4bb13
6
+ metadata.gz: f61b9e5f3c8dddeecc66f7cea433d882709b8ea963a65507f2b1b8320b841c8760351c1fc8d367e883622e1a439a4e606aa06f743b914b88531aa47c367310cf
7
+ data.tar.gz: c608eca028fea05206c72928394917d7db4a97ae17cdb35b74771c34f35ab064eadc6d480191357b33d471421da67f41ac7cae07b1c40a1c5880ecdf5ab9e0c8
@@ -1,3 +1,3 @@
1
1
  module FavouriteObject
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -1635,3 +1635,180 @@ Completed 200 OK in 4ms (Views: 0.5ms | ActiveRecord: 0.5ms)
1635
1635
   (0.0ms) RELEASE SAVEPOINT active_record_1
1636
1636
  FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
1637
1637
   (0.5ms) rollback transaction
1638
+  (0.6ms) begin transaction
1639
+  (0.1ms) SAVEPOINT active_record_1
1640
+ SQL (6.0ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1641
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1642
+  (0.0ms) SAVEPOINT active_record_1
1643
+ SQL (1.2ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1644
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1645
+  (0.1ms) SAVEPOINT active_record_1
1646
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1647
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1648
+  (0.0ms) SAVEPOINT active_record_1
1649
+ SQL (0.2ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["params", "--- {}\n"]]
1650
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1651
+ Processing by FavouriteObject::FavouritesController#index as JSON
1652
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't'
1653
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' ORDER BY created_at DESC LIMIT 25 OFFSET 0
1654
+ ArbitraryObject Load (0.2ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
1655
+ Completed 500 Internal Server Error in 30ms
1656
+  (0.6ms) rollback transaction
1657
+  (0.1ms) begin transaction
1658
+  (0.0ms) SAVEPOINT active_record_1
1659
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1660
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1661
+  (0.0ms) SAVEPOINT active_record_1
1662
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1663
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1664
+  (0.0ms) SAVEPOINT active_record_1
1665
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1666
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1667
+  (0.0ms) SAVEPOINT active_record_1
1668
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["params", "--- {}\n"]]
1669
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1670
+ Processing by FavouriteObject::FavouritesController#index as JSON
1671
+ Parameters: {"type"=>"ArbitraryObject"}
1672
+  (0.1ms) SELECT COUNT(*) FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'ArbitraryObject')
1673
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."is_favourited" = 't' AND (target_type = 'ArbitraryObject') ORDER BY created_at DESC LIMIT 25 OFFSET 0
1674
+ ArbitraryObject Load (0.1ms) SELECT "arbitrary_objects".* FROM "arbitrary_objects" WHERE "arbitrary_objects"."id" = ? ORDER BY "arbitrary_objects"."id" ASC LIMIT 1 [["id", 1]]
1675
+ Completed 500 Internal Server Error in 7ms
1676
+  (0.5ms) rollback transaction
1677
+  (0.1ms) begin transaction
1678
+  (0.0ms) SAVEPOINT active_record_1
1679
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1680
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1681
+  (0.0ms) SAVEPOINT active_record_1
1682
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1683
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1684
+  (0.0ms) SAVEPOINT active_record_1
1685
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1686
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1687
+  (0.0ms) SAVEPOINT active_record_1
1688
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["params", "--- {}\n"]]
1689
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1690
+ Processing by FavouriteObject::FavouritesController#index as HTML
1691
+ Completed 200 OK in 15ms (Views: 13.7ms | ActiveRecord: 0.0ms)
1692
+  (0.7ms) rollback transaction
1693
+  (0.1ms) begin transaction
1694
+  (0.1ms) SAVEPOINT active_record_1
1695
+ SQL (0.6ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1696
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1697
+  (0.0ms) SAVEPOINT active_record_1
1698
+ SQL (0.4ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1699
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1700
+ Processing by FavouriteObject::FavouritesController#update as HTML
1701
+ Parameters: {"target_type"=>"ArbitraryObject", "target_id"=>"1"}
1702
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
1703
+  (0.1ms) SAVEPOINT active_record_1
1704
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1705
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.2ms)
1706
+  (0.5ms) rollback transaction
1707
+  (0.1ms) begin transaction
1708
+  (0.1ms) SAVEPOINT active_record_1
1709
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1710
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1711
+  (0.0ms) SAVEPOINT active_record_1
1712
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1713
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1714
+  (0.1ms) SAVEPOINT active_record_1
1715
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1716
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1717
+  (0.0ms) SAVEPOINT active_record_1
1718
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["params", "--- {}\n"]]
1719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1720
+ Processing by FavouriteObject::FavouritesController#update as HTML
1721
+ Parameters: {"favourite"=>false, "target_type"=>"ArbitraryObject", "target_id"=>"1"}
1722
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
1723
+  (0.1ms) SAVEPOINT active_record_1
1724
+ SQL (0.1ms) DELETE FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."id" = ? [["id", 1]]
1725
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1726
+ Completed 200 OK in 3ms (Views: 0.2ms | ActiveRecord: 0.4ms)
1727
+  (0.5ms) rollback transaction
1728
+  (0.1ms) begin transaction
1729
+  (0.1ms) SAVEPOINT active_record_1
1730
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1731
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1732
+ Processing by FavouriteObject::FavouritesController#update as HTML
1733
+ Parameters: {"third_party_flag"=>"true", "favourite"=>"true", "target_type"=>"RandomClass", "target_id"=>"object_1"}
1734
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = 'object_1' AND "favourite_object_favourites"."third_party_type" = 'RandomClass' AND "favourite_object_favourites"."third_party_flag" = 't' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
1735
+  (0.1ms) SAVEPOINT active_record_1
1736
+ SQL (0.6ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", "object_1"], ["third_party_type", "RandomClass"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1737
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1738
+ Completed 200 OK in 5ms (Views: 0.6ms | ActiveRecord: 0.8ms)
1739
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" ORDER BY "favourite_object_favourites"."id" DESC LIMIT 1
1740
+  (0.5ms) rollback transaction
1741
+  (0.1ms) begin transaction
1742
+  (0.0ms) SAVEPOINT active_record_1
1743
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1745
+  (0.0ms) SAVEPOINT active_record_1
1746
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1747
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1748
+  (0.0ms) SAVEPOINT active_record_1
1749
+ SQL (0.2ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1750
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1751
+  (0.0ms) SAVEPOINT active_record_1
1752
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["params", "--- {}\n"]]
1753
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1754
+  (0.0ms) SAVEPOINT active_record_1
1755
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["params", "--- {}\n"]]
1756
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1757
+  (0.1ms) SAVEPOINT active_record_1
1758
+ SQL (0.3ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["params", "--- {}\n"]]
1759
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1760
+  (0.6ms) rollback transaction
1761
+  (0.1ms) begin transaction
1762
+  (0.0ms) SAVEPOINT active_record_1
1763
+ SQL (0.3ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1764
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1765
+  (0.1ms) SAVEPOINT active_record_1
1766
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:12 UTC +00:00]]
1767
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1768
+  (0.0ms) SAVEPOINT active_record_1
1769
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1770
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1771
+  (0.0ms) SAVEPOINT active_record_1
1772
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["params", "--- {}\n"]]
1773
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1774
+  (0.0ms) SAVEPOINT active_record_1
1775
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "is_favourited" = ?, "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["is_favourited", true], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["params", "--- {}\n"]]
1776
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1777
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
1778
+  (0.5ms) rollback transaction
1779
+  (0.2ms) begin transaction
1780
+  (0.1ms) SAVEPOINT active_record_1
1781
+ SQL (0.4ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1782
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1783
+  (0.0ms) SAVEPOINT active_record_1
1784
+ SQL (0.3ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1785
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1786
+  (0.0ms) SAVEPOINT active_record_1
1787
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1788
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1789
+  (0.0ms) SAVEPOINT active_record_1
1790
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["params", "--- {}\n"]]
1791
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1792
+  (0.0ms) SAVEPOINT active_record_1
1793
+ SQL (0.1ms) INSERT INTO "favourite_object_favourites" ("created_at", "is_favourited", "owner_id", "owner_type", "params", "third_party_flag", "third_party_id", "third_party_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["is_favourited", true], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["third_party_flag", true], ["third_party_id", 1], ["third_party_type", "Sale"], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1794
+  (0.0ms) RELEASE SAVEPOINT active_record_1
1795
+ FavouriteObject::Favourite Load (0.1ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."third_party_id" = '1' AND "favourite_object_favourites"."third_party_type" = 'Sale' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
1796
+  (0.6ms) rollback transaction
1797
+  (0.1ms) begin transaction
1798
+  (0.1ms) SAVEPOINT active_record_1
1799
+ SQL (0.5ms) INSERT INTO "users" ("created_at", "email", "updated_at") VALUES (?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["email", "user@example.com"], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1801
+  (0.1ms) SAVEPOINT active_record_1
1802
+ SQL (0.5ms) INSERT INTO "arbitrary_objects" ("created_at", "updated_at") VALUES (?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1803
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1804
+  (0.1ms) SAVEPOINT active_record_1
1805
+ SQL (0.3ms) INSERT INTO "favourite_object_favourites" ("created_at", "owner_id", "owner_type", "params", "target_id", "target_type", "updated_at") VALUES (?, ?, ?, ?, ?, ?, ?) [["created_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["owner_id", 1], ["owner_type", "User"], ["params", "--- {}\n"], ["target_id", 1], ["target_type", "ArbitraryObject"], ["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00]]
1806
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1807
+  (0.0ms) SAVEPOINT active_record_1
1808
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["params", "--- {}\n"]]
1809
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1810
+  (0.0ms) SAVEPOINT active_record_1
1811
+ SQL (0.1ms) UPDATE "favourite_object_favourites" SET "updated_at" = ?, "params" = ? WHERE "favourite_object_favourites"."id" = 1 [["updated_at", Mon, 28 Apr 2014 12:05:13 UTC +00:00], ["params", "--- {}\n"]]
1812
+  (0.1ms) RELEASE SAVEPOINT active_record_1
1813
+ FavouriteObject::Favourite Load (0.2ms) SELECT "favourite_object_favourites".* FROM "favourite_object_favourites" WHERE "favourite_object_favourites"."owner_type" = 'User' AND "favourite_object_favourites"."owner_id" = 1 AND "favourite_object_favourites"."target_id" = 1 AND "favourite_object_favourites"."target_type" = 'ArbitraryObject' ORDER BY "favourite_object_favourites"."id" ASC LIMIT 1
1814
+  (0.7ms) rollback transaction
data/spec/spec_helper.rb CHANGED
@@ -11,6 +11,7 @@ Bundler.setup
11
11
  ENV['RAILS_ENV'] = 'test'
12
12
  ENV['RAILS_ROOT'] = File.expand_path("../dummy/rails-#{ENV['RAILS_VERSION']}", __FILE__)
13
13
 
14
+ ENV['RAILS_VERSION'] = "4.0.2"
14
15
 
15
16
 
16
17
  # Create the test app if it doesn't exists
metadata CHANGED
@@ -1,29 +1,29 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: favourite_object
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Porter
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-28 00:00:00.000000000 Z
11
+ date: 2015-04-20 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
- version: 4.0.2
19
+ version: 4.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: 4.0.2
26
+ version: 4.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: kaminari
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -241,7 +241,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
241
241
  version: '0'
242
242
  requirements: []
243
243
  rubyforge_project:
244
- rubygems_version: 2.2.2
244
+ rubygems_version: 2.4.2
245
245
  signing_key:
246
246
  specification_version: 4
247
247
  summary: Favourites plugin