economy 4.0.2.1 → 4.0.2.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: 13d10a77b47402a2a07309995a8ff50e0ae557b8
4
- data.tar.gz: a64781d6c6609cc1dc4d65bfbfa27b80bc71351f
3
+ metadata.gz: 604ef31f6b464eba0d5b4d8c8a454df35fd71702
4
+ data.tar.gz: 8a1a64a988d2512cd3d9153a9fb546423a4f9119
5
5
  SHA512:
6
- metadata.gz: 8509d0e01126a6fd1e615fc236d92001d73583543072ee4033965e08b34b5f067923931b18896f9b91dd718f3abc6beec484e41adda54ad406d90ab1f9018650
7
- data.tar.gz: e99d82b0127de9e80ec18212f2b755def17db253c5ebe1cc06ac490a56d01e3193a18953d0de63ec82ab0d760e3ccf30f3775f1324796d8de15f1c8f9052aa4f
6
+ metadata.gz: 10e15710522822f0a16ce3593d062f8fdcf3fe8f0a17bcb42726c3bc5b05c35d14b961bf275115c007f16ced00368facfc68eabf5350d82902d365de410923f9
7
+ data.tar.gz: eb8348a59397084bea84f35228b26b70dbe7d2128f0a2043b40fa9de4f1cce8f4456fa9e633ce006f42ecc3db932669f58d3139870eb373cbff1bcc83edaf8ae
@@ -136,7 +136,7 @@ module Economy
136
136
  if rate = Economy.rate(currency, new_currency)
137
137
  Money.new (amount * BigDecimal(rate)), new_currency
138
138
  else
139
- raise "Exchange #{currency} => #{new_currency} not found"
139
+ raise "Exchange #{currency.iso_code} => #{new_currency.iso_code} not found"
140
140
  end
141
141
  else
142
142
  self
@@ -1,5 +1,5 @@
1
1
  module Economy
2
2
 
3
- VERSION = '4.0.2.1'
3
+ VERSION = '4.0.2.2'
4
4
 
5
5
  end
@@ -4680,3 +4680,309 @@ TaskTest: test_update_rates
4680
4680
  GeneratorTest: test_install
4681
4681
  ---------------------------
4682
4682
   (0.2ms) ROLLBACK
4683
+ ActiveRecord::SchemaMigration Load (4.8ms) SELECT "schema_migrations".* FROM "schema_migrations"
4684
+  (0.2ms) BEGIN
4685
+ ---------------------------
4686
+ GeneratorTest: test_install
4687
+ ---------------------------
4688
+  (0.2ms) ROLLBACK
4689
+  (0.1ms) BEGIN
4690
+ ----------------------
4691
+ RateTest: test_retries
4692
+ ----------------------
4693
+  (0.1ms) ROLLBACK
4694
+  (0.1ms) BEGIN
4695
+ --------------------
4696
+ RateTest: test_yahoo
4697
+ --------------------
4698
+  (0.1ms) ROLLBACK
4699
+  (0.1ms) BEGIN
4700
+ ------------------------
4701
+ RecordTest: test_helpers
4702
+ ------------------------
4703
+  (0.2ms) SAVEPOINT active_record_1
4704
+ SQL (0.8ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.733183"], ["updated_at", "2016-12-14 06:35:25.733183"]]
4705
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4706
+  (0.1ms) SAVEPOINT active_record_1
4707
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.739381"], ["updated_at", "2016-12-14 06:35:25.739381"]]
4708
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4709
+  (0.2ms) ROLLBACK
4710
+  (0.1ms) BEGIN
4711
+ ---------------------------
4712
+ RecordTest: test_validators
4713
+ ---------------------------
4714
+  (0.1ms) SAVEPOINT active_record_1
4715
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.746903"], ["updated_at", "2016-12-14 06:35:25.746903"]]
4716
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4717
+  (0.1ms) SAVEPOINT active_record_1
4718
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.748775"], ["updated_at", "2016-12-14 06:35:25.748775"]]
4719
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4720
+  (0.2ms) ROLLBACK
4721
+  (0.1ms) BEGIN
4722
+ ---------------------------------
4723
+ RecordTest: test_default_currency
4724
+ ---------------------------------
4725
+  (0.1ms) SAVEPOINT active_record_1
4726
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.756996"], ["updated_at", "2016-12-14 06:35:25.756996"]]
4727
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4728
+  (0.1ms) SAVEPOINT active_record_1
4729
+ SQL (0.3ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.758677"], ["updated_at", "2016-12-14 06:35:25.758677"]]
4730
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4731
+  (0.1ms) ROLLBACK
4732
+  (0.1ms) BEGIN
4733
+ ---------------------------
4734
+ RecordTest: test_persistent
4735
+ ---------------------------
4736
+  (0.1ms) SAVEPOINT active_record_1
4737
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.760958"], ["updated_at", "2016-12-14 06:35:25.760958"]]
4738
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4739
+  (0.1ms) SAVEPOINT active_record_1
4740
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.762752"], ["updated_at", "2016-12-14 06:35:25.762752"]]
4741
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4742
+  (0.1ms) SAVEPOINT active_record_1
4743
+ SQL (0.3ms) INSERT INTO "plans" ("monthly_price", "annually_price", "currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5) RETURNING "id" [["monthly_price", "20.0"], ["annually_price", "200.0"], ["currency", "UYU"], ["created_at", "2016-12-14 06:35:25.770044"], ["updated_at", "2016-12-14 06:35:25.770044"]]
4744
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4745
+  (0.1ms) SAVEPOINT active_record_1
4746
+ SQL (0.3ms) UPDATE "plans" SET "monthly_price" = $1, "updated_at" = $2 WHERE "plans"."id" = $3 [["monthly_price", "100.0"], ["updated_at", "2016-12-14 06:35:25.772081"], ["id", 2]]
4747
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4748
+  (0.1ms) SAVEPOINT active_record_1
4749
+ SQL (0.4ms) INSERT INTO "products" ("price", "price_currency", "created_at", "updated_at") VALUES ($1, $2, $3, $4) RETURNING "id" [["price", "15.0"], ["price_currency", "UYU"], ["created_at", "2016-12-14 06:35:25.781623"], ["updated_at", "2016-12-14 06:35:25.781623"]]
4750
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4751
+  (0.1ms) SAVEPOINT active_record_1
4752
+ SQL (0.3ms) UPDATE "products" SET "price" = $1, "price_currency" = $2, "updated_at" = $3 WHERE "products"."id" = $4 [["price", "5.0"], ["price_currency", "USD"], ["updated_at", "2016-12-14 06:35:25.783980"], ["id", 2]]
4753
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4754
+  (0.1ms) ROLLBACK
4755
+  (0.1ms) BEGIN
4756
+ ---------------------------
4757
+ TaskTest: test_update_rates
4758
+ ---------------------------
4759
+  (0.2ms) SAVEPOINT active_record_1
4760
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "29.32"], ["created_at", "2016-12-14 06:35:25.812599"], ["updated_at", "2016-12-14 06:35:25.812599"]]
4761
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4762
+  (0.1ms) SAVEPOINT active_record_1
4763
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.0341"], ["created_at", "2016-12-14 06:35:25.814061"], ["updated_at", "2016-12-14 06:35:25.814061"]]
4764
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4765
+  (0.3ms) SELECT COUNT(*) FROM "exchanges"
4766
+ Economy::Exchange Exists (0.3ms) SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", 29.32]]
4767
+ Economy::Exchange Exists (0.2ms) SELECT 1 AS one FROM "exchanges" WHERE "exchanges"."service" = $1 AND "exchanges"."from" = $2 AND "exchanges"."to" = $3 AND "exchanges"."rate" = $4 LIMIT 1 [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", 0.0341]]
4768
+  (0.1ms) ROLLBACK
4769
+  (0.1ms) BEGIN
4770
+ -------------------------
4771
+ MoneyTest: test_remainder
4772
+ -------------------------
4773
+  (0.1ms) SAVEPOINT active_record_1
4774
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.827131"], ["updated_at", "2016-12-14 06:35:25.827131"]]
4775
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4776
+  (0.1ms) SAVEPOINT active_record_1
4777
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.828526"], ["updated_at", "2016-12-14 06:35:25.828526"]]
4778
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4779
+  (0.1ms) ROLLBACK
4780
+  (0.1ms) BEGIN
4781
+ ----------------------
4782
+ MoneyTest: test_divmod
4783
+ ----------------------
4784
+  (0.1ms) SAVEPOINT active_record_1
4785
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.830899"], ["updated_at", "2016-12-14 06:35:25.830899"]]
4786
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4787
+  (0.1ms) SAVEPOINT active_record_1
4788
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.832328"], ["updated_at", "2016-12-14 06:35:25.832328"]]
4789
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4790
+  (0.1ms) ROLLBACK
4791
+  (0.1ms) BEGIN
4792
+ -----------------
4793
+ MoneyTest: test_*
4794
+ -----------------
4795
+  (0.1ms) SAVEPOINT active_record_1
4796
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.834896"], ["updated_at", "2016-12-14 06:35:25.834896"]]
4797
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4798
+  (0.1ms) SAVEPOINT active_record_1
4799
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.836263"], ["updated_at", "2016-12-14 06:35:25.836263"]]
4800
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4801
+  (0.1ms) ROLLBACK
4802
+  (0.1ms) BEGIN
4803
+ -------------------
4804
+ MoneyTest: test_===
4805
+ -------------------
4806
+  (0.1ms) SAVEPOINT active_record_1
4807
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.838518"], ["updated_at", "2016-12-14 06:35:25.838518"]]
4808
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4809
+  (0.1ms) SAVEPOINT active_record_1
4810
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.839829"], ["updated_at", "2016-12-14 06:35:25.839829"]]
4811
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4812
+  (0.1ms) ROLLBACK
4813
+  (0.1ms) BEGIN
4814
+ ------------------------
4815
+ MoneyTest: test_nonzero?
4816
+ ------------------------
4817
+  (0.1ms) SAVEPOINT active_record_1
4818
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.841951"], ["updated_at", "2016-12-14 06:35:25.841951"]]
4819
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4820
+  (0.1ms) SAVEPOINT active_record_1
4821
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.843114"], ["updated_at", "2016-12-14 06:35:25.843114"]]
4822
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4823
+  (0.1ms) ROLLBACK
4824
+  (0.1ms) BEGIN
4825
+ -----------------
4826
+ MoneyTest: test_<
4827
+ -----------------
4828
+  (0.1ms) SAVEPOINT active_record_1
4829
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.844960"], ["updated_at", "2016-12-14 06:35:25.844960"]]
4830
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4831
+  (0.1ms) SAVEPOINT active_record_1
4832
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.846042"], ["updated_at", "2016-12-14 06:35:25.846042"]]
4833
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4834
+  (0.1ms) ROLLBACK
4835
+  (0.1ms) BEGIN
4836
+ -----------------
4837
+ MoneyTest: test_-
4838
+ -----------------
4839
+  (0.1ms) SAVEPOINT active_record_1
4840
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.849242"], ["updated_at", "2016-12-14 06:35:25.849242"]]
4841
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4842
+  (0.1ms) SAVEPOINT active_record_1
4843
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.850620"], ["updated_at", "2016-12-14 06:35:25.850620"]]
4844
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4845
+  (0.1ms) ROLLBACK
4846
+  (0.1ms) BEGIN
4847
+ ---------------------------
4848
+ MoneyTest: test_exchange_to
4849
+ ---------------------------
4850
+  (0.1ms) SAVEPOINT active_record_1
4851
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.852680"], ["updated_at", "2016-12-14 06:35:25.852680"]]
4852
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4853
+  (0.1ms) SAVEPOINT active_record_1
4854
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.854105"], ["updated_at", "2016-12-14 06:35:25.854105"]]
4855
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4856
+  (0.1ms) ROLLBACK
4857
+  (0.1ms) BEGIN
4858
+ ----------------------------
4859
+ MoneyTest: test_%_and_modulo
4860
+ ----------------------------
4861
+  (0.1ms) SAVEPOINT active_record_1
4862
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.856242"], ["updated_at", "2016-12-14 06:35:25.856242"]]
4863
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4864
+  (0.1ms) SAVEPOINT active_record_1
4865
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.857444"], ["updated_at", "2016-12-14 06:35:25.857444"]]
4866
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4867
+  (0.1ms) ROLLBACK
4868
+  (0.1ms) BEGIN
4869
+ -------------------
4870
+ MoneyTest: test_<=>
4871
+ -------------------
4872
+  (0.1ms) SAVEPOINT active_record_1
4873
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.859783"], ["updated_at", "2016-12-14 06:35:25.859783"]]
4874
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4875
+  (0.1ms) SAVEPOINT active_record_1
4876
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.861447"], ["updated_at", "2016-12-14 06:35:25.861447"]]
4877
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4878
+  (0.1ms) ROLLBACK
4879
+  (0.1ms) BEGIN
4880
+ --------------------
4881
+ MoneyTest: test_to_s
4882
+ --------------------
4883
+  (0.1ms) SAVEPOINT active_record_1
4884
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.863851"], ["updated_at", "2016-12-14 06:35:25.863851"]]
4885
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4886
+  (0.1ms) SAVEPOINT active_record_1
4887
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.865139"], ["updated_at", "2016-12-14 06:35:25.865139"]]
4888
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4889
+  (0.2ms) ROLLBACK
4890
+  (0.1ms) BEGIN
4891
+ ------------------
4892
+ MoneyTest: test_-@
4893
+ ------------------
4894
+  (0.1ms) SAVEPOINT active_record_1
4895
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.873808"], ["updated_at", "2016-12-14 06:35:25.873808"]]
4896
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4897
+  (0.1ms) SAVEPOINT active_record_1
4898
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.875386"], ["updated_at", "2016-12-14 06:35:25.875386"]]
4899
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4900
+  (0.1ms) ROLLBACK
4901
+  (0.1ms) BEGIN
4902
+ -------------------------
4903
+ MoneyTest: test_positive?
4904
+ -------------------------
4905
+  (0.1ms) SAVEPOINT active_record_1
4906
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.877485"], ["updated_at", "2016-12-14 06:35:25.877485"]]
4907
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4908
+  (0.1ms) SAVEPOINT active_record_1
4909
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.878784"], ["updated_at", "2016-12-14 06:35:25.878784"]]
4910
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4911
+  (0.1ms) ROLLBACK
4912
+  (0.1ms) BEGIN
4913
+ ---------------------
4914
+ MoneyTest: test_zero?
4915
+ ---------------------
4916
+  (0.1ms) SAVEPOINT active_record_1
4917
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.880632"], ["updated_at", "2016-12-14 06:35:25.880632"]]
4918
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4919
+  (0.1ms) SAVEPOINT active_record_1
4920
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.881942"], ["updated_at", "2016-12-14 06:35:25.881942"]]
4921
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4922
+  (0.1ms) ROLLBACK
4923
+  (0.1ms) BEGIN
4924
+ ---------------------------------
4925
+ MoneyTest: test_abs_and_magnitude
4926
+ ---------------------------------
4927
+  (0.1ms) SAVEPOINT active_record_1
4928
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.883735"], ["updated_at", "2016-12-14 06:35:25.883735"]]
4929
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4930
+  (0.1ms) SAVEPOINT active_record_1
4931
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.885049"], ["updated_at", "2016-12-14 06:35:25.885049"]]
4932
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4933
+  (0.1ms) ROLLBACK
4934
+  (0.1ms) BEGIN
4935
+ -----------------------------------
4936
+ MoneyTest: test_to_json_and_as_json
4937
+ -----------------------------------
4938
+  (0.1ms) SAVEPOINT active_record_1
4939
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.887180"], ["updated_at", "2016-12-14 06:35:25.887180"]]
4940
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4941
+  (0.6ms) SAVEPOINT active_record_1
4942
+ SQL (0.3ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.889688"], ["updated_at", "2016-12-14 06:35:25.889688"]]
4943
+  (0.2ms) RELEASE SAVEPOINT active_record_1
4944
+  (0.1ms) ROLLBACK
4945
+  (0.1ms) BEGIN
4946
+ -------------------------
4947
+ MoneyTest: test_/_and_div
4948
+ -------------------------
4949
+  (0.1ms) SAVEPOINT active_record_1
4950
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.892992"], ["updated_at", "2016-12-14 06:35:25.892992"]]
4951
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4952
+  (0.1ms) SAVEPOINT active_record_1
4953
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.894454"], ["updated_at", "2016-12-14 06:35:25.894454"]]
4954
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4955
+  (0.1ms) ROLLBACK
4956
+  (0.1ms) BEGIN
4957
+ ----------------------
4958
+ MoneyTest: test_coerce
4959
+ ----------------------
4960
+  (0.1ms) SAVEPOINT active_record_1
4961
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.896683"], ["updated_at", "2016-12-14 06:35:25.896683"]]
4962
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4963
+  (0.1ms) SAVEPOINT active_record_1
4964
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.898087"], ["updated_at", "2016-12-14 06:35:25.898087"]]
4965
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4966
+  (0.1ms) ROLLBACK
4967
+  (0.1ms) BEGIN
4968
+ -----------------
4969
+ MoneyTest: test_+
4970
+ -----------------
4971
+  (0.1ms) SAVEPOINT active_record_1
4972
+ SQL (0.1ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.900530"], ["updated_at", "2016-12-14 06:35:25.900530"]]
4973
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4974
+  (0.1ms) SAVEPOINT active_record_1
4975
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.901956"], ["updated_at", "2016-12-14 06:35:25.901956"]]
4976
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4977
+  (0.1ms) ROLLBACK
4978
+  (0.1ms) BEGIN
4979
+ -------------------------
4980
+ MoneyTest: test_negative?
4981
+ -------------------------
4982
+  (0.1ms) SAVEPOINT active_record_1
4983
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "USD"], ["to", "UYU"], ["rate", "20.0"], ["created_at", "2016-12-14 06:35:25.904369"], ["updated_at", "2016-12-14 06:35:25.904369"]]
4984
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4985
+  (0.1ms) SAVEPOINT active_record_1
4986
+ SQL (0.2ms) INSERT INTO "exchanges" ("service", "from", "to", "rate", "created_at", "updated_at") VALUES ($1, $2, $3, $4, $5, $6) RETURNING "id" [["service", "Yahoo"], ["from", "UYU"], ["to", "USD"], ["rate", "0.05"], ["created_at", "2016-12-14 06:35:25.905753"], ["updated_at", "2016-12-14 06:35:25.905753"]]
4987
+  (0.1ms) RELEASE SAVEPOINT active_record_1
4988
+  (0.1ms) ROLLBACK
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: economy
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.0.2.1
4
+ version: 4.0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - mmontossi